1 2000-05-29 Richard Earnshaw (rearnsha@arm.com)
3 * flow.c (mark_used_reg): If a register is unconditionally live,
4 remove any conditional death information.
6 2000-05-29 Richard Henderson <rth@cygnus.com>
8 * final.c (current_output_insn): New.
9 (final_scan_insn): Set it.
10 * output.h: Declare it.
12 2000-05-29 Richard Henderson <rth@cygnus.com>
14 * stor-layout.c (finalize_record_size): Fix typo.
16 * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
19 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
21 * cpplib.h (cpp_reader): Remove if_stack. Change
22 potential_control_macro to a cpp_hashnode *. Add skipping flag.
23 * cpphash.h (struct ihash): Change control_macro to a
24 cpp_hashnode * and shorten name to cmacro.
25 Add NEVER_REINCLUDE constant.
27 * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
28 Examine the cmacro node directly, no need to call cpp_defined.
29 (_cpp_execute_include, read_include_file): Set cmacro to
30 NEVER_REINCLUDE, not U"".
31 * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
32 (cpp_get_token): If pfile->skipping is true, discard text and
33 keep scanning until we hit a directive; don't expand macros.
35 * cpplib.c (struct if_stack): Remove if_succeeded, add
36 was_skipping. Change control_macro to a cpp_hashnode * and
37 shorten name to cmacro. Remove typedef IF_STACK.
38 (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
39 (conditional_skip, skip_if_group,
40 consider_directive_while_skipping): Delete.
41 (push_conditional): New.
42 (_cpp_handle_directive): Don't process directives other than
43 conditionals if we are skipping.
45 (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
47 (validate_else): Skip rest of line here, unconditionally.
48 (_cpp_unwind_if_stack): The stack is per-buffer. Force
51 (all): Remove `scare quotes' from error messages.
53 2000-05-29 Richard Henderson <rth@cygnus.com>
55 * function.c (emit_return_into_block): New line_note arg; emit it.
56 (thread_prologue_and_epilogue_insns): Attempt to locate a line note
57 for the close brace to accompany HAVE_return. Move all line notes
58 following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
60 2000-05-29 Richard Henderson <rth@cygnus.com>
62 * longlong.h [__alpha] (count_leading_zeros): New.
63 (count_trailing_zeros): New.
64 (COUNT_LEADING_ZEROS_0): New.
66 * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
67 (alpha_split_conditional_move): New.
68 * config/alpha/alpha-protos.h: Prototype them.
69 * config/alpha/alpha.h (PREDICATE_CODES): Update.
70 (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
71 * config/alpha/alpha.md: Update ffs cix commentary.
73 (*nabssf2, *nabsdf2): New.
74 (*mov[qhsd]icc_internal): Use add_operand.
75 (if_then_else constant splitters): New.
76 (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
77 (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
79 2000-05-29 Richard Henderson <rth@cygnus.com>
81 * combine.c (force_to_mode) [MINUS]: Convert subtraction from
82 a constant to NEG or NOT when conditions allow.
84 * combine.c (combine_simplify_rtx): Don't create an if_then_else
85 unless both args are general_operand. Don't canonicalize plus
86 to ior unless it helps.
88 * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
89 instead track register_life_up_to_date. Toggle no_new_pseudos
92 2000-05-28 Geoff Keating <geoffk@cygnus.com>
94 * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
95 so output_operand doesn't see them.
97 Sun May 28 18:37:07 2000 Clinton Popetz <cpopetz@cygnus.com>
99 * lcm.c (make_preds_opaque): Fix comment.
100 (optimize_mode_switching): Use NORMAL_MODE instead of
101 MODE_USES_IN_EXIT_BLOCK. Change leftover instance of
102 FP_MODE_NONE to no_mode. Rename MODE_AT_ENTRY to NORMAL_MODE.
103 Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
104 * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
105 (MODE_USES_IN_EXIT_BLOCK): Delete.
106 (MODE_AT_ENTRY) Rename to NORMAL_MODE.
107 * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
108 (MODE_AT_ENTRY): Rename to NORMAL_MODE.
109 (MODE_NEEDED): Don't look for USE.
110 (EPILOGUE_USES): Define.
112 Sun May 28 23:26:59 2000 Philippe De Muyter <phdm@macqel.be>
114 * mklibgcc.in (all): Variable initialised to `libgcc'.
116 2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
118 * toplev.h (skip_leading_substring): New macro.
119 * toplev.c (decode_f_option): Use skip_leading_substring instead
121 (decode_W_option): Likewise.
123 2000-05-28 Nick Clifton <nickc@cygnus.com>
125 * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
128 2000-05-28 Richard Henderson <rth@cygnus.com>
130 * regclass.c (record_operand_costs): Protect reg_changes_size
131 with CLASS_CANNOT_CHANGE_SIZE.
133 * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
135 2000-05-28 Richard Henderson <rth@cygnus.com>
137 * function.c (diddle_return_value): A pcc-style struct return
140 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
142 * cppfiles.c: Read files in, using mmap if possible, then
143 prescan them separately.
144 (read_file, read_with_read): New functions.
145 * cpplex.c: Don't define UCHAR_MAX.
146 (_cpp_read_and_prescan): Rename to _cpp_prescan. Don't read
149 * cppinit.c (handle_option): Automatically define __cplusplus,
150 __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
151 the respective -lang switch.
153 * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
154 prototype): Move to...
155 * cpplib.h: ... here. Rename struct hashnode to struct
156 cpp_hashnode and give it a typedef. Rename _cpp_lookup to
157 cpp_lookup. Add 'fe_value' slot, a union tree_node *.
159 2000-05-27 Geoffrey Keating <geoffk@cygnus.com>
161 * config/rs6000/rs6000.md (movsi): Constify 'name'.
163 * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
164 (class_can_change_size): New variable.
165 (reg_changes_size): New variable.
166 (init_reg_sets_1): Initialise class_can_change_size.
167 (record_operand_costs): Remove subreg_changes_size.
168 Don't pass it around. Instead update reg_changes_size.
169 (regclass): Initialise and free reg_changes_size. If a register
170 changes size, don't preference it to a class that contains
171 registers that can't change size.
172 (record_reg_classes): Don't look at subreg_changes_size.
174 2000-05-27 Richard Henderson <rth@cygnus.com>
176 * print-rtl.c (reg_names): Remove const.
177 * regclass.c (reg_names): Likewise.
178 * regs.h (reg_names): Likewise.
179 * hard-reg-set.h (reg_names): Likewise.
181 2000-05-27 Richard Henderson <rth@cygnus.com>
183 * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
185 2000-05-27 Richard Henderson <rth@cygnus.com>
187 * config/alpha/alpha.c (alpha_does_function_need_gp): Test
188 TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
189 (alpha_expand_prologue): Emit prologue_mcount if needed.
190 * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
191 * config/alpha/alpha.md (prologue_mcount): New.
192 * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
193 (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
194 * config/alpha/netbsd.h: Likewise.
196 2000-05-27 Richard Henderson <rth@cygnus.com>
198 * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
199 change to config/elfos.h.
201 2000-05-27 Richard Henderson <rth@cygnus.com>
203 * Makefile.in (resource.o): Depend on except.h.
204 * except.h (output_exception_table_data): Prototype.
205 * genconfig.c (gen_peephole2): Prototype.
206 * genemit.c (main): Include ggc.h.
207 * genoutput.c: Revert parts of last change: include errors.h
208 (main): Set progname.
209 * recog.c: Include hard-reg-set.h before recog.h.
210 * resource.c: Include except.h.
212 * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
214 (alpha_write_linkage): Protect with BUFSIZ.
215 (alpha_need_linkage): Update prototype.
216 * config/alpha/alpha.c (function_arg): Move VMS code here.
217 (alpha_links_base): Remove.
219 (mark_alpha_links_node, mark_alpha_links): New.
220 (alpha_write_one_linkage): New.
221 (alpha_need_linkage): Use a splay tree. Build the linkage symbol.
222 (alpha_write_linkage): Use splay_tree_foreach.
223 * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
224 to get the linkage symbol.
225 (call_value_vms): Likewise.
226 * config/alpha/elf.h (output_file_directive): Remove decl.
227 (ctors_section, dtors_section): Prototype.
228 (sbss_section, sdata_section): Prototype.
229 * config/alpha/vms.h (FUNCTION_ARG): Remove.
230 (readonly_section, link_section, literals_section): Prototype.
231 (ctors_section, dtors_section): Prototype.
232 (vms_valid_decl_attribute_p): Remove decl.
233 (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
235 2000-05-27 Geoff Keating <geoffk@cygnus.com>
237 * reload.c (get_secondary_mem): Don't widen floating-point modes.
239 * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
240 substituting the REG in a (subreg:X (reg:Y ...)).
242 2000-05-28 Neil Booth <NeilB@earthling.net>
244 * cpplex.c (_cpp_lex_line): Merge vertical space. Flag
245 first token of a line BOL. Update EOF code for this.
246 Remove illegal directive check - it appears in the (not
247 yet committed) caller.
248 * cpplib.h (BOL): New flag.
250 2000-05-28 Neil Booth <NeilB@earthling.net>
252 * cpplex.c (_cpp_init_toklist): No comment space to initialise.
253 (_cpp_free_toklist): No comment space to free.
254 (expand_comment_space): Remove.
255 (save_comment_space): Place the comment in the current token and
256 not in a separate comment space.
257 (_cpp_lex_line): Save comments during plain code and #define
259 * cpplib.h (struct _cpp_toklist): Remove comment space.
261 2000-05-28 Neil Booth <NeilB@earthling.net>
263 * cppexp.c (parse_assertion): Supply extra argument to
265 * cpplib.c (do_assert, do_unassert): Similarly.
266 * cpphash.h (_cpp_init_toklist) Update.
267 (_cpp_expand_token_space): New.
268 (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
269 * cpplex.c (_cpp_init_toklist): New argument.
270 (parse_string2): New argument multiline_ok.
271 (spell_token): Take a const cpp_token *.
272 (INIT_NAME): Replace with INIT_TOKEN_NAME. Update tokens_used.
273 (SPELL_ macros): Replace with enum.
274 (expand_token_space): Replace with _cpp_expand_token_space.
276 (IS_DIRECTIVE): Update.
277 (_cpp_lex_line): Update token structure before parsing number.
278 Don't assume start at beginning of token list.
279 (save_comment): Use INIT_TOKEN_NAME.
281 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
283 * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
284 -Wmissing-prototypes.
285 * configure: Regenerate.
286 * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
288 * builtins.c, calls.c: Change all instances of gen_call_* or
289 gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
290 * calls.c (struct_value_size_rtx): Separate definition from
291 initialization to avoid unused variable warning.
293 * genflags.c (gen_macro): New function.
294 (gen_proto): Call it for gen_call_* and gen_sibcall_*.
295 (gen_nonproto): Delete.
296 (gen_insn): Put all insns on the same obstack.
297 (main): Generate prototypes for everything unconditionally.
299 * configure.in: Add AC_CHECK_TYPE(ssize_t). Remove commented
300 out check for wchar_t.
301 * acconfig.h: Add template for ssize_t. Remove @TOP@.
302 * system.h: Add infrastructure for defining missing
303 TYPE_MAX/TYPE_MIN macros. Use it to provide fallback
304 definitions of UCHAR_MAX and SSIZE_MAX.
305 * configure: Regenerate.
306 * config.in: Regenerate.
308 * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
309 Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
311 (clean): No need to delete libgcc1.a, libgcc1-asm.a,
312 libgcc2.a, or libgcc1.null.
314 2000-05-27 Richard Henderson <rth@cygnus.com>
316 * Makefile.in (recog.o): Don't depend on resource.h.
317 * recog.c: Don't include resource.h.
318 (recog_last_allowed_insn): Remove.
319 (recog_next_insn): Remove.
320 (struct peep2_insn_data): New.
321 (peep2_insn_data, peep2_current): New.
322 (peep2_next_insn): New.
323 (peep2_regno_dead_p, peep2_reg_dead_p): New.
324 (peep2_find_free_register): New.
325 (peephole2_optimize): Track life information by insn as we go.
326 * recog.h: Update declarations.
327 * resource.c (find_free_register, reg_dead_p): Remove.
328 * resource.h: Remove their declarations.
329 * toplev.c: Include hard-reg-set.h before recog.h.
331 * genconfig.c (max_insns_per_peep2): New.
332 (gen_peephole2): New.
334 * genemit.c (output_peephole2_scratches): Generate calls to
335 peep2_find_free_register; adjust surrounding code.
336 (main): Have insn-emit.c include hard-reg-set.h before recog.h.
337 * genrecog.c (change_state): Don't track last_insn.
338 (write_action): Write into *_pmatch_len before accepting.
339 (write_tree): Adjust peephole2_insns and subroutines to match.
341 * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
343 * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
344 (hard_int_register_operand): New.
345 * config/alpha/alpha-protos.h: Declare it.
346 * config/alpha/alpha.h (PREDICATE_CODES): Update.
347 * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
348 as needed; use peep2_reg_dead_p instead of dead_or_set_p.
350 2000-05-27 Richard Henderson <rth@cygnus.com>
352 * function.c (thread_prologue_epilogue_insns): Don't move the
353 line note at the head of the chain. Only force a lineno note
354 before the end of block 0.
356 2000-05-27 Richard Henderson <rth@cygnus.com>
358 * gensupport.c (collect_insn_data): Record the maximum number
359 of alternatives, not the last seen.
361 * genoutput.c: Don't include errors.h.
362 (struct data): Add lineno member.
364 (scan_operands): Use message_with_line instead of error.
365 (validate_insn_alternatives): Likewise.
366 (gen_insn): Accept and store the pattern's line number.
367 (gen_peephole, gen_expand, gen_split): Likewise.
368 (main): Don't set progname. Pass line_no to gen_foo.
370 2000-05-27 Richard Henderson <rth@cygnus.com>
372 * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
373 * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
374 * config/d30v/d30v.md (attr predicable): New.
375 (all insn patterns): Mark non-predicable patterns; use %: on the rest.
376 (andsi3*): Unify into one pattern.
377 (iorsi3*, xorsi3*): Likewise.
378 (peephole2 patterns): Use peep2_reg_dead_p; verify not a
380 (old cond_exec patterns): Remove.
381 (define_cond_exec): New.
383 Sat May 27 11:01:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
385 * tree.h (TREE_CODE_LENGTH): New macro.
386 * c-common.c (c_find_base_decl): Use it.
387 * expr.c (safe_from_p): Likewise.
388 * print-tree.c (print_node): Likewise.
389 * tree.c (make_node, copy_node, get_identifier): Likewie.
390 (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
391 (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
392 * fold-const.c (make_range): Likewise.
393 (fold): Likewise; also use first_rtl_op.
394 * c-iterate.c (collect_iterators): Use first_rtl_op.
395 * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
396 Use IS_EXPR_CODE_CLASS.
397 (preexpand_calls): Likewise.
398 * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
399 and TREE_CODE_LENGTH.
400 * stmt.c (warn_if_unused_value): If no operands, no unused value.
402 2000-05-26 Geoffrey Keating <geoffk@cygnus.com>
404 * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
406 (movdi_internal64): Likewise.
408 * config/rs6000/rs6000.md: Correct order of operands for DImode
411 * config/rs6000/rs6000.c (boolean_or_operator): New function.
412 * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
413 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
414 * config/rs6000/rs6000.md: Use boolean_or_operator instead of
415 boolean_operator for the boolean patterns without NOTs.
417 * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
418 from reg_or_u_cint_operand. Change comment and behaviour.
419 (logical_operand): Clean up, add assertion.
420 (non_logical_cint_operand): Also check for
421 reg_or_logical_cint_operand.
422 * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
423 * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
429 2000-05-26 Mark Mitchell <mark@codesourcery.com>
431 * tree.h (struct record_layout_info): Rename to (struct
432 record_layout_info_s).
433 * stor-layout.c (start_record_layout): Replace
434 `record_layout_info' with `record_layout_info_s'.
436 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
438 * flow.c (find_label_refs): New function.
439 (find_basic_blocks_1): Call it for each alternative of a call
442 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
444 * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
447 2000-05-25 Richard Henderson <rth@cygnus.com>
449 * config/alpha/alpha.c (alpha_comparison_operator): Don't be
450 so strict about DImode.
451 (alpha_swapped_comparison_operator): Likewise.
452 * config/alpha/alpha.md (*setne_internal): Name it. Allow
453 any integer output mode.
454 (*setcc_internal): Likewise.
455 (*setcc_swapped_internal): Likewise.
456 (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
457 (*mov[qhs]icc_internal): New.
458 (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
460 2000-05-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
462 * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
464 2000-05-25 Richard Henderson <rth@cygnus.com>
466 * bb-reorder.c (reorder_block_def): Reorder elements for size.
467 Remove add_jump; add next; replace flags with visited.
469 (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
470 (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
471 (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
472 (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
474 (reorder_index, reorder_last_visited): Remove.
475 (skip_insns_after_block): Rewrite to use a switch.
476 (get_common_dest): Remove.
477 (chain_reorder_blocks): Remove.
478 (record_effective_endpoints): Split out from reorder_basic_blocks.
479 (make_reorder_chain): Likewise. Loop until all blocks are placed.
480 (make_reorder_chain_1): Renamed from old make_reorder_chain.
481 Only construct the reorder chain, do not move insns. Try harder
483 (label_for_bb, emit_jump_to_block_after): New.
484 (fixup_reorder_chain): Use them. Do bulk block movement. Examine
485 and adjust the jump insns appropriately. Fixup basic_block_info.
486 (verify_insn_chain): Always define.
487 (relate_bbs_with_scopes): Call xmalloc, not xcalloc. Fix thinko
489 (make_new_scope): Don't write zeros to calloc'd space.
490 (build_scope_forest): Rely on xrealloc to DTRT.
491 (reorder_basic_blocks): Don't build loop nest. Don't fail if
492 profile_arc_flag. Streamline EH test.
494 * flow.c (redirect_edge_succ, redirect_edge_pred): New.
495 * basic-block.h: Declare them.
497 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
499 * emit-rtl.c (reset_used_decls): New function.
500 (unshare_all_rtl_again): Call it.
502 2000-05-25 Zack Weinberg <zack@wolery.cumb.org>
504 * cpplex.c (maybe_macroexpand): Warn about function-like
505 macros used in non-function context, if -Wtraditional.
507 2000-05-25 Mark Mitchell <mark@codesourcery.com>
509 * recog.c (peephole2_optimize): Use INSN_P.
511 2000-05-25 Richard Henderson <rth@cygnus.com>
513 * ifcvt.c (seq_contains_jump): New.
514 (noce_try_store_flag_constants): Use it to fail conversion.
515 (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
517 2000-05-25 Mark Mitchell <mark@codesourcery.com>
519 * except.h (can_throw): Declare it.
520 * except.c (can_throw): Give it external linkage.
521 * resource.c (find_dead_or_set_registers): Use can_throw.
523 2000-05-25 Richard Henderson <rth@cygnus.com>
525 * flow.c (mark_set_1): Don't record conditionally dead memory.
527 2000-05-25 Jan Hubicka <jh@suse.cz>
529 * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
530 and pc_set at the place of simplejump_p and condjump_p.
531 * cse.c (record_jump_equiv): Likewise.
532 * emit-rtl.c (emit): Likewise.
533 * explow.c (find_next_ref): Likewise.
534 * flow.c (tidy_fallthru_edge): Likewise.
535 (init_propagate_block_info): Likewise.
536 * gcse.c (delete_null_pointer_checks): Likewise.
537 * ifcvt.c (cond_exec_get_condition, noce_get_condition,
538 dead_or_predicable): Likewise.
539 * integrate.c (copy_insn_list): Likewise.
540 * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
541 for_each_insn_in_loop, check_dbra_loop, get_condition,
542 insert_bct, load_mems): Likewise.
543 * resource.c (find_dead_or_set_registers): Likewise.
544 * sibcalls.c (simplejump_p): Likewise.
545 * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
547 2000-05-25 David Edelsohn <edelsohn@gnu.org>
549 * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
550 to STRING case. Use doubleword STRING move for TARGET_POWERPC64
552 * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
553 (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
554 (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
555 * rs6000.md: Name various internal patterns.
557 2000-05-25 Jan Hubicka <jh@suse.cz>
559 * jump.c (invert_exp_1): Remove first argument, use pc_set
560 to get the expression.
561 (redirect_exp): Make static; redirect only the pc_set expression,
562 remove first argument.
563 (invert_exp): Remove first argument, make static.
564 (jump_optimize): Use any_condjump_p, any_uncondjump_p and
565 any_onlyjump at most places where we originaly did condjump_p
567 (jump_back_p, follow_jumps, thread_jumps): Likewise.
568 (delete_barrier_succesors): Use pc_set.
569 (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
570 calls of invert_exp and redirect_exp.
571 * rtl.h (redirect_exp, invert_exp): Remove.
572 * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
574 2000-05-25 Richard Henderson <rth@cygnus.com>
576 * stmt.c (expand_end_bindings): Fix thinko last change.
578 2000-05-25 Andrew MacLeod <amacleod@cygnus.com>
579 Andrew Haley <aph@cygnus.com>
581 * except.c (func_eh_entry): Add emitted field.
582 (new_eh_region_entry): Set emitted field to 0;
583 (output_exception_table_entry): Only emit previously un-emitted data,
584 and send it to the eh_data section.
585 (output_exception_table): Break out common parts. Output
586 exception table for entire compilation unit to eh_data section.
587 (output_exception_table_data): Common parts of output_exception_table.
588 Send output to eh_data section.
589 (output_function_exception_table): Output exception table data for
590 a single function to eh_data section.
591 (free_exception_table): New external to free the table.
592 * except.h (free_exception_table): Add prototype.
593 (output_function_exception_table): Add prototype.
594 * final.c (final_end_function): Output function exception table
595 for IA64_UNWIND_INFO.
596 (final_scan_insn): Emit any unwind directives for an insn.
598 * frame-dwarf2.c: New file containing all DWARF 2 specific code
600 * frame.c: Remove all DWARF 2 specific code.
601 * config/ia64/frame-ia64.c: New file.
602 (gthread_stuff): Make all gthread available with
604 (dwarf_fde): Define an IA64 struct for dwarf_fde.
605 (__register_frame_info, __register_frame): Move to common area of file.
606 (__register_frame_info_table, __register_frame_table): Move to common i
608 (__deregister_frame_info, __deregister_frame): Move to common area.
609 (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
610 (read_uleb128): New version for ia64.
611 (get_unwind_record): Read the next IA-64 unwind record.
612 (read_R_record): Read a region header record.
613 (process_a_b_reg_code): X record helper.
614 (read_X_record): Read an X format record.
615 (read_B_record): Read a B format record.
616 (P3_record_types): List of record types matching the P3 format.
617 (P7_record_types): List of record types matching the P7 format.
618 (P8_record_types): List of record types matching the P8 format.
619 (read_P_record): Read a P format record.
620 (init_ia64_reg_loc): Set default fields for a register.
621 (init_ia64_unwind_frame): Set defaults for all register records.
622 (execute_one_ia64_descriptor): Execute one descriptor record.
623 (rse_address_add): Calculate the position of a local reg in memory.
624 (normalize_reg_loc): Turn a location descriptor into a memory address.
625 (maybe_normalize_reg_loc): Only normalize a descriptor if it falls
626 within a specified PC offset range.
627 (get_real_reg_value): Given a register location, retrieve its value.
628 (set_real_reg_value): Change the value of a register location.
629 (copy_reg_value): Copy reg values, if needed.
630 (copy_saved_reg_state): Copy all registers that need to be copied.
631 (process_state_between): Normalize all frame register records that
632 fall within the specified PC range.
633 (frame_translate): Take a processed frame description, and turn
634 everything into addresses.
635 (build_ia64_frame_state ): Find and create frame state record for a PC.
636 (get_personality): Get the personality routine for a given frame.
637 (get_except_table): Get the exception table for a given frame.
638 (record_name): Unwind record names for debugging.
639 (print_record): Print and unwind record.
640 (print_all_records): Print an entire unwind image.
641 (__ia64_backtrace): Print a backtrace.
642 (ia64_backtrace_helper): New function.
643 (__register_frame_info_aux): New function.
644 * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
646 * frame.h (enum unw_record_type): New unwind record types.
647 (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
648 (struct unw_r_record, unwind_record): New unwind record structs.
649 (struct unwind_info_ptr): Unwind information layout.
650 (IA64_UNW_LOC_TYPE_*): Macros for different types for location
652 (struct ia64_reg_loc): Register location description.
653 (struct ia64_frame_state): Location of all registers in a frame.
654 (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
655 * libgcc2.c (__ia64_personality_v1): Personality routine.
656 (__calc_caller_bsp): Calculate the bsp register for the caller's
658 (ia64_throw_helper): Figure out who to return to and set up the
660 (__throw): Throw routine.
662 * output.h (assemble_eh_align, assemble_eh_label): New functions
663 to generate EH info where we want it.
664 (assemble_eh_integer): New function.
665 * toplev.c (compile_file): Output module level exception table for
667 (main): Set exceptions_via_longjump and flag_new_exceptions based
668 on IA64_UNWIND_INFO too.
670 * varasm.c (assemble_eh_label): Generate a label via
671 ASM_OUTPUT_EH_LABEL if it has been specified.
672 (assemble_eh_align): Generate an alignment directive via
673 ASM_OUTPUT_EH_ALIGN if it has been specified.
674 (assemble_eh_label): Generate an integer value via
675 ASM_OUTPUT_EH_type if they have been specified.
676 * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
677 (ia64_init_builtins): Add __builtin_ia64_bsp
678 and __builtin_ia64_flushrs.
679 (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
680 IA64_BUILTIN_FLUSHRS.
681 * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
682 IA64_BUILTIN_FLUSHRS.
684 * config/ia64/ia64.md (flushrs): New insn to flush the register
685 stack. Add to unspec list.
687 * config/ia64/crtbegin.asm (frame_object): Change size.
688 (__do_frame_setup_aux): New function.
689 * config/ia64/crtend.asm: call __do_frame_setup_aux.
690 * config/ia64/t-ia64 (LIB2ADDEH): Add.
691 * Makefile.in (LIB2ADDEH): Add.
692 (LIB2ADD): Use LIB2ADDEH.
694 2000-05-24 Richard Henderson <rth@cygnus.com>
696 * recog.c (offsettable_address_p): If mode size is zero, assume
699 2000-05-24 J. David Anglin <dave@hiauly.hia.nrc.ca>
701 * configure.in: Check for -Wno-long-long option support and improve
702 handling of warning CFLAGS for stages 1 and 2.
703 * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
704 * configure: Regenerate.
706 Wed May 24 19:37:53 2000 Jeffrey A Law (law@cygnus.com)
708 * gcc.texi: Remove contributor list. Instead include contrib.texi.
709 * contrib.texi: New file.
711 Thu May 25 02:27:22 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
713 * loop.c (basic_induction_var): Avoid double recording of an increment.
715 Thu May 25 02:19:27 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
717 * Back out this patch:
718 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
719 * loop.h (struct induction): Add multi_insn_incr.
720 * loop.c (basic_induction_var): New multi_insn_incr argument.
721 Set it if we search back through previous insns for the biv.
722 (record_biv): New multi_insn_incr argument; fill in struct induction.
723 (strength_reduce): Discard an iv with multiple bivs, any of
724 which require multiple insns to increment.
726 * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
728 Thu May 25 02:09:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
730 * rtl.h (loc_mentioned_in_p): Declare.
731 * reload.c (loc_mentioned_in_p): Moved from here...
732 * rtlanal.c (loc_mentioned_in_p): to here. No longer static.
733 Fix loop increment for 'E' handling.
734 * loop.c (strength_reduce): When doing biv->giv conversion,
735 take multi-insn biv increments into account.
737 2000-05-24 Jason Merrill <jason@casey.soma.redhat.com>
739 * stmt.c (expand_end_bindings): Look through NOTEs to find a
742 2000-05-24 Mark Mitchell <mark@codesourcery.com>
744 * calls.c (expand_call): Handle cleanups in tail-recursion
745 arguments analagously to cleanups in sibling calls.
747 2000-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
749 * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
752 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
754 * expr.c (expand_assignment, store_expr, expand_expr,
755 expand_expr_unaligned): Set in_check_memory_usage while emitting
756 chkr_check_addr libcall.
758 2000-05-24 Nick Clifton <nickc@cygnus.com>
760 * fold-const.c (extract_muldiv): When constructing a
761 multiplier/divisor, do not expect const_binop to correctly
762 determine if overflow has occured, so check explicitly.
764 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
766 * c-decl.c (build_enumerator): Don't modify the value's type,
769 2000-05-24 Andreas Jaeger <aj@suse.de>
771 * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
773 2000-05-24 Eric Christopher <echristo@cygnus.com>
775 * configure.in: Redefine inhibit_libc conditions.
776 * libgcc2.c: Remove inhibit_libc conditional define.
777 * configure: Regenerate.
779 2000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
781 * configure.in: For --enable-languages=LIST, check for empty LIST.
782 * configure: Regenerate.
784 2000-05-24 Lars Brinkhoff <lars@nocrew.org>
786 * pdp11.h (STACK_BOUNDARY): Define.
788 2000-05-24 Jakub Jelinek <jakub@redhat.com>
790 * ifcvt.c (if_convert): Update life info globally.
792 2000-05-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
794 * emit-rtl.c (unshare_all_decls): New function.
795 (unshare_all_rtl): Call it.
797 2000-05-23 Nick Clifton <nickc@cygnus.com>
799 * configure.in: Treat 'strongarm' as if it were 'arm' when
800 determining cpu type.
802 * configure: Regenerate.
804 * config/arm/arm.c: Change 'char *' to 'const char *' for cases
805 where constant strings are involved.
807 * config/arm/arm.h (arm_condition_codes): Change type to 'const
810 * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
811 cases where constant strings are involved.
813 Tue May 23 15:08:31 2000 Clinton Popetz <cpopetz@cygnus.com>
815 * config/sh/sh.c (gen_far_branch, split_branches): Update
816 to reflect new prototypes for redirect_jump and invert_jump.
817 (sh_insn_length_adjustment): Get rid of const warnings.
819 2000-05-23 Kazu Hirata <kazu@hxi.com>
821 * invoke.texi (Options for Debugging Your Program or GCC): Update
822 the names of dump files.
824 Tue May 23 13:58:52 2000 Philippe De Muyter <phdm@macqel.be>
826 * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
827 * configure: Regenerated.
829 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
831 * simplify-rtx.c (SIGN_EXTEND): New macro.
832 (simplify_unary_operation, simplify_binary_operation,
833 simplify_relational_operation): Use SIGN_EXTEND. Make low
834 halves of (low, high) pairs unsigned if they weren't already.
835 (simplify_ternary_operation): Cast INTVAL to unsigned before
836 comparing to a MODE_BITSIZE.
838 2000-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
840 * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
841 rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
843 * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
844 gcc_AC_NEED_DECLARATIONS.
846 * dwarfout.c: Don't prototype time().
848 * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
850 * system.h: Likewise.
852 * toplev.c: Likewise.
854 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
856 * c-decl.c (pushdecl): Invert sense of test for non-global types.
858 Tue May 23 18:11:42 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
860 * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
862 2000-05-23 Jonathan Larmour <jlarmour@redhat.co.uk>
864 * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
866 Tue May 23 06:50:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
868 * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
869 (alpha_start_function): Never write ..ng label if VMS or NT.
870 (alpha_align_insns): Remove GP_IN_USE arg.
871 Alignment now unsigned.
872 (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
873 * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
874 and two define_insn's.
876 2000-05-22 Richard Henderson <rth@cygnus.com>
878 * combine.c (simplify_comparison): Use trunc_int_for_mode.
880 2000-05-22 Richard Henderson <rth@cygnus.com>
882 * stor-layout.c (place_field): Change rli->size to rli->offset.
884 2000-05-22 Richard Henderson <rth@cygnus.com>
886 * function.c (thread_prologue_and_epilogue_insns): Make sure
887 existing line number notes appear after the prologue.
889 Mon May 22 21:49:00 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
891 * config/alpha/alpha.c (alpha_fnname): New static variable.
892 (print_operand, case '~'): New case.
893 (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
894 (alpha_start_function): Set alpha_fnname.
895 Write "ng" label if no ldgp; don't write ldgp insn.
896 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
897 * config/alpha/alpha.md (prologue_ldgp): New define_insn.
899 Mon May 22 11:30:48 2000 Clinton Popetz <cpopetz@cygnus.com>
901 * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
904 2000-05-22 Zack Weinberg <zack@wolery.cumb.org>
906 * varasm.c (eh_frame_section): Revert change to argument list.
908 Mon May 22 13:14:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
910 * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
911 (gen_extend_insn, can_fix_p, can_float_p): Likewise.
913 * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
914 dangling "else" that causes "break" to be conditional.
915 Also remove unneeded code at start.
917 Mon May 22 17:31:35 2000 Philippe De Muyter <phdm@macqel.be>
919 * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
920 * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
921 * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
923 2000-05-22 Jakub Jelinek <jakub@redhat.com>
925 * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
928 Mon May 22 06:57:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
930 * alias.c (record_component_aliases): New function.
931 * tree.h: Clean up some declarations and comments.
932 (record_component_aliases): New declaration.
933 * tree.c (get_alias_set): If type and has alias set, use it.
935 2000-05-22 Richard Henderson <rth@cygnus.com>
937 * simplify-rtx.c (simplify_ternary_operation): Try to simplify
938 IF_THEN_ELSE to a setcc form.
939 * jump.c (can_reverse_comparison_p): Be prepared for insn null.
941 2000-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
943 * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
944 (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
946 Sun May 21 16:42:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
948 * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
951 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
953 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
954 * config/mn10300/mn10300.c (print_operand): Likewise.
956 * final.c (split_double): Right shift of negative values is not
959 * ifcvt.c (if_convert): Scan and kill dead code.
961 * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
963 2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
965 * diagnostic.c: Eliminate implicit int.
966 * except.c, gcc.c: Add static prototypes.
967 * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
968 * gensupport.c (process_rtx): Use XVEC to initialize vector
971 * print-rtl.c: If DEBUG_REGISTER_NAMES, define static
972 debug_reg_names instead of static reg_names. If not, define
974 * regclass.c: Don't define global reg_names unless
975 DEBUG_REGISTER_NAMES is defined.
977 * reload1.c (order_regs_for_reload): Remove unused variable.
978 * varasm.c: Include output.h after defaults.h. Define
979 eh_frame_section as function of no args, not of unspecified args.
981 * gcc.c: Constify argbuf; arguments to store_arg,
982 process_command, main; elements of struct command and struct
983 switchstr; local variables in execute, process_command, main.
985 2000-05-20 Bruce Korb <bkorb@gnu.org>
987 * fixinc/inclhack.def: many applications of c_fix=format + tests
988 * fixinc/check.diff: regenerated
989 * fixinc/fixincl.x: regenerated
991 Sat May 20 09:30:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
993 * alias.c: Clarify some comments.
994 (record_base_value): REGNO is unsigned.
995 * rtl.h (record_base_value): Likewise.
997 * alias.c (aliases_everything_p): Don't special-case QImode here.
998 * c-common.c (c_get_alias_set): Do it here.
999 Handle BIT_FIELD_REF by getting alias info for arg.
1002 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
1004 * mklibgcc.in: Restore rule to create ${dir}.
1006 Sat May 20 08:45:41 2000 H.J. Lu <hjl@gnu.org>
1008 * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
1009 GCC_FOR_TARGET used by MULTILIBS.
1010 * mklibgcc.in: Make sure each .o file depends on the
1011 directory it will be in.
1012 Make the multilib directory depends libgcc.
1014 Sat May 20 08:29:28 2000 H.J. Lu <hjl@gnu.org>
1016 * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
1018 Sat May 20 07:27:35 2000 Alexandre Oliva <aoliva@cygnus.com>
1020 * fold-const.c (make_range): Handle degenerated intervals.
1021 Fixes c-torture/execute/991221-1.c
1023 Fri May 19 18:16:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1025 * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
1026 * reload.c (find_equiv_reg): Likewise.
1027 * alias.c (init_alias_analysis): Likewise.
1028 Only call prologue_epilogue_contains on insns.
1029 * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
1030 * bb-reorder.c (hard-reg-set.h): Include earlier.
1031 * haifa-sched.c (hard-reg-set.h): Likewise.
1032 * ifcvt.c (hard-reg-set.h): Likewise.
1033 * local-alloc.c (hard-reg-set.h): Likewise.
1034 * loop.c (hard-reg-set.h): Likewise.
1035 * predict.c (hard-reg-set.h): Likewise.
1036 * regrename.c (hard-reg-set.h): Likewise.
1037 * flow.c (hard-reg-set.h): Likewise.
1038 (reg_set_to_hard_reg_set): New function.
1039 * bitmap.c (regs.h, basic-block.h): No longer include.
1040 (bitmap.h): Now include.
1041 * conflict.c (hard-reg-set.h): Include.
1042 * profile.c (hard-reg-set.h): Likewise.
1043 * print-rtl.c (hard-reg-set.h): Likewise.
1044 * sbitmap.c (hard-reg-set.h): Likewise.
1045 * toplev.c (hard-reg-set.h): Likewise.
1046 * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
1047 * hard-reg-set.h (reg_names): Now constant.
1048 * regs.h (reg_names): Likewise.
1049 * regclass.c (reg_names): Likewise.
1050 * loop.h (basic-block.h): No longer include.
1051 (bitmap.h): Now include.
1052 * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
1053 * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
1054 (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
1056 2000-05-19 Jan Hubicka <jh@suse.cz>
1057 Richard Henderson <rth@cygnus.com>
1059 * basic-block.h (struct edge_def): New field "count".
1060 (struct basic_block_def): Likewise.
1061 * flow.c (entry_exit_blocks): Add count fileds.
1062 (split_edge): Keep count information up-to-date.
1063 (dump_edge_info, dump_flow_info): Dump count fields.
1065 * final.c (count_instrumented_edges): Rename to edge from arc.
1066 (end_final): Update users.
1067 * profile.c: Include expr.h, basic-block.h.
1068 (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
1069 (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
1070 (ignore_next_note, return_label_execution_count): Kill.
1071 (bbg_file_name, da_file_name): Kill.
1072 (edge_info, bb_info): New structures.
1073 (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
1074 (count_instrumented_edges, total_num_edges): Rename to edge from arc.
1075 (total_num_edges_instrumented): Likewise.
1076 (init_arc, expand_spanning_tree): Kill.
1077 (fill_spanning_tree, tablejump_entry_p): Kill.
1078 (instrument_edges): Rewrite from instrument_arcs to use
1079 commit_edge_insertions infrastructure.
1080 (compute_branch_probabilities): Remove arguments; rewrite for
1081 CFG infrastructure; use rtl_dump_file directly.
1082 (branch_prob, find_spanning_tree): Likewise.
1083 (union_groups, find_group): New.
1084 (init_branch_prob): Make bbg_file_name and da_file_name local.
1085 (end_branch_prob): Use rtl_dump_file directly.
1086 (init_edge_profiler): Rename to edge from arc.
1087 (output_arc_profiler): Kill.
1088 (gen_edge_profiler): New.
1089 (output_func_start_profiler): Turn off profiling. Make the
1090 constructor static when we can.
1091 * rtl.h (branch_prob, end_branch_prob): Update prototypes.
1093 * toplev.c (DFI_flow): Remove.
1094 (DFI_cfg, DFI_life): New.
1095 (dump_file): Update accordingly.
1096 (compile_file): Call end_branch_prob if profile_arc_flag too.
1097 (rest_of_compilation): Move flow1 cfg creation to DFI_cfg. Do edge
1098 profiling after the CFG is built. Move flow1 life analysis to
1099 DFI_life. Always estimate remaining probabilities.
1101 2000-05-19 Richard Henderson <rth@cygnus.com>
1103 * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
1105 * flow.c (make_edges): The sibling call edge to exit is abnormal.
1107 2000-05-19 Richard Henderson <rth@cygnus.com>
1109 * jump.c (redirect_jump): Add delete_unused argument. Don't
1110 remove labels and code following when LABEL_NUSES goes to zero.
1111 (invert_jump): Likewise.
1112 (jump_optimize_1): Fix redirect/invert arguments.
1113 (do_cross_jump, thread_jumps): Likewise.
1114 * flow.c (split_edge): Likewise.
1115 * reorg.c (optimize_skip): Likewise.
1116 (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
1117 * profile.c (instrument_arcs): Likewise.
1118 * loop.c (find_and_verify_loops): Likewise. Fix indentation.
1119 * rtl.h: Update prototypes.
1121 Fri May 19 12:05:13 2000 Clinton Popetz <cpopetz@cygnus.com>
1123 * ssa.c (convert_from_ssa): Tell life_analysis we need death
1125 (make_regs_equivalent_over_bad_edges): Only look at abnormal
1128 2000-05-19 Zack Weinberg <zack@wolery.cumb.org>
1130 * cpphash.c (funlike_macroexpand): Make sure not to walk p1
1131 past l1 when deleting whitespace and markers.
1133 * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
1134 * cpplib.c (do_unassert): Put the list to compare against on
1137 2000-05-19 Bruce Korb <bkorb@gnu.org>
1139 * fixinc/README: cleaned up old documentation
1140 * fixinc/check.diff: regenerated & verified on OSR5 on ix86
1141 * fixinc/check.tpl: compute the list of needed directories
1142 emit "#if defined(name)" because of conflict
1143 omit machine name differences from output differences
1144 * fixinc/inclhack.def( m88k_multi_incl ): Use `wrap' function
1145 (machine_name): change test text to use `sed' markers
1146 * fixinc/fixincl.x: regen
1148 Fri May 19 06:49:35 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1150 * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
1153 2000-05-18 Chris Demetriou <cgd@sibyte.com>
1155 * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
1156 it to match the current practice.
1158 2000-05-18 Mark Mitchell <mark@codesourcery.com>
1160 * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
1162 2000-05-18 Richard Henderson <rth@cygnus.com>
1164 * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
1165 * rtl.h (insn_dependant_p): Declare it.
1166 * loop.c (strength_reduce): Use it.
1168 2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
1170 * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
1171 16-bit and 64-bit clean-up.
1173 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
1175 * configure.in (*-pc-msdosdjgpp): Set float_format to none.
1176 * configure: Rebuilt.
1178 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
1180 * genopinit.c: Use $ for escape sequences in optab patterns.
1181 Remove backslashes from optab patterns. Change $A, $B, $C to
1182 expand to (int) whatever instead of just whatever; remove
1183 explicit (int) from all optab patterns.
1185 * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
1186 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
1187 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
1188 genrecog.c: Remove private copies of xmalloc, xrealloc, and
1191 2000-05-18 Richard Henderson <rth@cygnus.com>
1193 * jump.c (jump_optimize_1): Base minimum insn count during
1194 find_cross_jump on BRANCH_COST.
1196 2000-05-18 Jakub Jelinek <jakub@redhat.com>
1198 * print-rtl.c (print_rtx): Only print note line number as string
1199 if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
1200 * final.c (final_scan_insn): Do nothing for note line number 0.
1202 2000-05-18 Jakub Jelinek <jakub@redhat.com>
1204 * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
1205 from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
1206 NOTE_INSN_DELETED_LABEL.
1208 2000-05-18 Nick Clifton <nickc@cygnus.com>
1210 * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
1211 uninitialised data in .rodata not .bss, and do not interpret an
1212 error in the initialisation value as meaning that the variable
1213 should be placed in the .bss section.
1215 Thu May 18 12:10:18 2000 Philippe De Muyter <phdm@macqel.be>
1217 * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
1218 not `$ac_cv_prog_cc_cc_c_o'.
1219 * configure: Regenerated.
1221 2000-05-18 Chris Demetriou <cgd@sibyte.com>
1222 Richard Henderson <rth@cygnus.com>
1224 * c-common.h (enum c_tree_index): Add g77 type entries.
1225 (g77_integer_type_node, g77_uinteger_type_node): New.
1226 (g77_longint_type_node, g77_ulongint_type_node): New.
1227 * c-decl.c (init_decl_processing): Initialize them.
1229 2000-05-18 Richard Henderson <rth@cygnus.com>
1231 * config/h8300/h8300.md (subs patterns): Use %G to negate.
1233 * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
1234 (small_power_of_two): Likewise; use exact_log2.
1235 (adds_subs_operand, one_insn_adds_subs_operand): Remove.
1236 (output_adds_subs): Remove.
1237 (two_insn_adds_subs_operand): New.
1238 (split_adds_subs): New.
1239 * config/h8300/h8300-protos.h: Update.
1240 * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
1241 (CONST_OK_FOR_L): Match strict adds operands.
1242 (CONST_OK_FOR_N): Match struct subs operands.
1243 * config/h8300/h8300.md (adds_subs insns): Remove.
1244 (addhi patterns): Output adds/subs directly.
1245 (addsi_h8300h): Likewise.
1246 (addhi/addsi splitters): New. Decompose two_insn_adds_subs_operand.
1248 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
1250 * cppexp.c (parse_assertion): New.
1251 (lex): Call it for CPP_HASH. Remove CPP_ASSERTION case.
1252 (_cpp_parse_expr): Remove case '#'. Don't set
1253 parsing_if_directive.
1254 * cpphash.c (collect_objlike_expansion,
1255 collect_funlike_expansion, collect_params,
1256 _cpp_create_definition): The list no longer has a trailing
1258 * cpphash.h (enum node_type): Add T_ASSERTION.
1259 (struct hashnode): Remove aschain, add pred.
1260 (struct predicate): New.
1263 * cpplex.c (expand_token_space): Handle both offset and
1265 (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
1266 (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
1267 _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
1268 _cpp_equiv_toklists): New.
1269 (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
1270 stop at any single-character token, not just newline.
1271 (_cpp_lex_token): Remove special cases for #define and #if.
1272 (cpp_get_token): Expect # as a separate token type. Remove
1274 (_cpp_get_directive_token): Remove DIRECTIVE case.
1275 (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
1277 * cpplib.c (_cpp_check_directive): Set dirno and
1278 SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
1279 (_cpp_handle_directive): Run # <number> through the same logic
1280 as normal directives.
1281 (do_define): Don't set parsing_define_directive. Use
1282 _cpp_scan_until. The list does not have a VSPACE at the end.
1283 (do_if): Save, clear, and restore only_seen_white around
1285 (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
1286 (do_assert, do_unassert): Rewrite.
1288 * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
1289 (LIST_OFFSET): New flag.
1290 (struct cpp_toklist): Replace dir_handler and dir_flags with
1292 (struct cpp_reader): Remove parsing_if_directive and
1293 parsing_define_directive.
1295 2000-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1297 * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
1298 following the cabs decl which terminate on the following line.
1299 Add the corresponding test_text case.
1301 2000-05-18 Neil Booth <NeilB@earthling.net>
1303 * cppinit.c (cpp_reader_init): Initialise col_adjust and
1304 default tab stop size.
1305 (no_num, OPT_ftabstop): New.
1306 (handle_option): Handle "ftabstop=" command-line option.
1307 (print_help): Document it.
1308 * cpplex.c (COLUMN): Remove.
1309 (handle_newline): Reset col_adjust.
1310 (skip_whitespace): Update col_adjust as tabs encountered.
1311 (_cpp_lex_line): Update to use col_adjust. Call
1312 skip_whitespace for all whitespace.
1313 * cpplib.h (struct cpp_options): New member tabstop.
1314 (struct cpp_reader): New member col_adjust.
1315 (CPP_BUF_COL): Update.
1316 (CPP_BUF_COLUMN): New.
1317 * cpp.texi: Document "-ftabstop=" command line option.
1319 Wed May 17 18:19:41 2000 Philippe De Muyter <phdm@macqel.be>
1321 * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
1323 * configure: Rebuilt.
1325 Wed May 17 18:06:12 2000 John David Anglin <dave@hiauly1.hia.nrc.ca>
1327 * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
1329 * tree.c (build_common_tree_nodes): Do not build TI nodes unless
1330 HOST_BITS_PER_WIDE_INT is >= 64.
1332 2000-05-17 Richard Henderson <rth@cygnus.com>
1334 * jump.c (jump_optimize_1): Remove inactive but real insns
1335 in jump-to-next-insn optimization.
1337 2000-05-17 Richard Henderson <rth@cygnus.com>
1339 * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
1340 unless OPTIMIZE_MODE_SWITCHING. Conditionally set no_new_pseudos.
1341 Don't call recompute_reg_usage if no_new_pseudos is true.
1342 * lcm.c (optimize_mode_switching): Move ifdefs outside function.
1343 Return true if we did work; update global life information.
1344 * basic-block.h (optimize_mode_switching): Update decl.
1346 2000-05-17 Neil Booth <neilb@earthling.net>
1348 * cpplex.c (expand_name_space): Don't use ptrdiff_t.
1350 2000-05-17 Zack Weinberg <zack@wolery.cumb.org>
1352 * cpplib.c: New feature, #pragma system_header.
1353 * cpp.texi: Document special treatment of system headers, and
1354 the various mechanisms to get a header that special treatment.
1356 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1358 * system.h (offsetof): Define at the very end, to ensure we prefer
1359 the platform's definition if available.
1361 2000-05-16 Bruce Korb <bkorb@gnu.org>
1363 * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
1364 * fixinc/server.c: likewise
1365 * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
1366 + #ifdef debugging code + use #def constant for
1368 * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
1369 on C++ math namespace
1371 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1373 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
1374 Don't check the return value of sprintf. Use asprintf to avoid
1377 Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
1379 * flags.h (warn_unused_function, warn_unused_label,
1380 warn_unused_parameter, warn_unused_variable, warn_unused_value):
1381 Replace ``warn_unused''.
1382 (set_Wunused): Add declaration.
1383 * toplev.c (set_Wunused): New function.
1384 (warn_unused_function, warn_unused_label, warn_unused_parameter,
1385 warn_unused_variable, warn_unused_value): New variables.
1386 (W_options): Add -Wunused-function, -Wunused-function,
1387 -Wunused-label, -Wunused-parameter, -Wunused-variable and
1388 -Wunused-value. Delete -Wunused. Handled in decode_W_option.
1390 * toplev.c (decode_W_option): Update -Wunused flags by calling
1392 * c-decl.c (c_decode_option): Ditto for -Wall.
1394 * stmt.c (expand_expr_stmt, expand_expr_stmt,
1395 warn_about_unused_variables): Replace warn_unused with more
1396 explicit warn_unused_value et.al.
1397 * function.c (expand_function_end): Ditto.
1398 * c-typeck.c (internal_build_compound_expr,
1399 internal_build_compound_expr): Ditto.
1400 * c-decl.c (poplevel, pop_label_level): Ditto.
1401 * toplev.c (check_global_declarations): Replace warn_unused with
1402 check for either warn_unused_function or warn_unused_variable.
1404 * gcc.1, invoke.texi (Warning Options): Document
1405 -Wunused-function, -Wunused-function, -Wunused-label,
1406 -Wunused-parameter, -Wunused-variable and -Wunused-value options.
1408 Wed May 17 10:28:12 2000 Philippe De Muyter <phdm@macqel.be>
1410 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
1411 $(srcdir), not in the current directory.
1413 2000-05-16 Richard Henderson <rth@cygnus.com>
1415 * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
1416 assembler supports it.
1417 (.fini, .init): Use a gp-relative indirect call.
1418 (__do_global_dtors_aux): Preserve the gp; rebundle.
1419 (__do_frame_setup): Likewise.
1420 * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
1421 (.init): Use a gp-relative indirect call.
1422 (__do_global_ctors_aux): Preserve the gp.
1424 2000-05-16 Richard Henderson <rth@cygnus.com>
1426 * flow.c (commit_one_edge_insertion): Be prepared for a return
1427 insn to be inserted on the edge with a normal jump.
1428 * jump.c (jump_optimize_1): Don't look to create return isns.
1430 * flow.c (flow_delete_insn): Don't adjust reference count of notes.
1431 * jump.c (jump_optimize_1): Likewise.
1432 (returnjump_p): Verify the argument is a JUMP_INSN.
1433 * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
1435 2000-05-16 Nick Clifton <nickc@cygnus.com>
1437 * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
1438 GET_RTX_CLASS (GET_CODE ()) == 'i'.
1439 (large_insn_p): Ditto.
1440 (m32r_is_insn): New function: Return true if the insn contains
1441 an executable instruction.
1442 (m32r_adjust_insn): Use m32r_is_insn.
1443 (m32r_sched_reorder): Use m32r_is_insn.
1444 (m32r_sched_variable_issue): Use m32r_is_insn.
1446 2000-05-16 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1448 * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
1451 * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
1453 * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
1454 according to given options.
1456 Tue May 16 12:17:31 2000 Jeffrey A Law (law@cygnus.com)
1458 * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
1459 if X has VOIDmode either.
1460 (LIMIT_RELOAD_CLASS): Similarly.
1462 * mn10200.md (indirect_jump, tablejump): Use "register_operand",
1463 not "general_operand" to match the processor's capabilities.
1465 2000-05-16 Bruce Korb <bkorb@gnu.org>
1467 * fixinc/README: corrected return address
1468 * fixinc/check.diff: regenerate, now that test works
1469 * fixinc/fixfixes.c(format_fix,format_write): reformatted
1470 (char_macro_def_fix,char_macro_use_fix): corrected and
1471 rewrote to use regex to parse the text
1472 * fixinc/inclhack.def: more testing
1473 * fixinc/fixincl.x: regenerated
1475 * fixinc/inclhack.def: added several "test_text" attributes
1476 changed several fixes to use `c_fix = format'
1477 re-alphabetized the fixes
1479 * fixinc/check.diff: regenerate
1480 * fixinc/fixincl.x: regenerate
1481 * fixinc/check.tpl: added `sparc' and `netinet' to the list
1485 2000-05-16 Alexandre Oliva <aoliva@cygnus.com>
1487 * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
1489 2000-05-15 Richard Henderson <rth@cygnus.com>
1491 * toplev.c (rest_of_compilation): Run full jump pass before
1492 find_basic_blocks of flow2.
1494 2000-05-15 Richard Henderson <rth@cygnus.com>
1496 * jump.c: Fix typos and clarify commentary from last change.
1497 (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
1498 (safe_to_remove_jump_p): Remove.
1499 (condjump_label): Use pc_set.
1501 2000-05-15 Richard Henderson <rth@cygnus.com>
1503 * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
1504 that get in the way after reload.
1505 (cond_exec_process_if_block): Skip a label heading THEN block.
1507 2000-05-15 Richard Henderson <rth@cygnus.com>
1509 * varasm.c (output_constant_pool): Abort instead of converting
1510 (improperly) deleted labels to zero.
1512 2000-05-16 Neil Booth <NeilB@earthling.net>
1514 * cpplex.c (parse_string2): Update comment.
1515 (cpp_lex_line): No special assertion treatment for '('.
1516 * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
1517 * cpplib.h (SYNTAX_ASSERT): Remove.
1519 Mon May 15 21:45:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
1521 * jump.c (condjump_p): Mark as depreached.
1522 (any_condump_p): New.
1523 (any_uncondump_p): New.
1525 (safe_to_remove_jump_p): New.
1526 * rtl.h (any_condump_p, any_uncondjump_p, pc_set
1527 safe_to_remove_jump_p): Declare.
1529 Mon May 15 21:07:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
1531 * calls.c: Re-install both patches reverted by last patch.
1532 (struct arg_data): New field tail_call_reg.
1533 (initialize_argument_information): Initialize tail_call_reg
1534 (load_register_parameters): New argument flags, use
1535 tail_call_reg when emiting tail call sequence.
1536 (expand_call): Update call of load_register_parameters;
1537 copy unadjusted_args_size to adjusted_args_size.
1539 Mon May 15 19:01:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
1541 * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
1542 and bct_p parameters to flags.
1543 * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
1544 * rtl.h (loop_optimize): Update prototype.
1545 * toplev.c (rest_of_compilation): Update call of loop_optimize.
1547 2000-05-15 Jakub Jelinek <jakub@redhat.com>
1549 * calls.c (expand_call): Move expand_start_target_temps call after
1552 2000-05-15 Neil Booth <NeilB@earthling.net>
1554 * cpphash.c (trad_stringify, warn_trad_stringify,
1555 collect_params): Make some pointers pointers to const.
1556 * cpplex.c (auto_expand_name_space) Guaranteed to always
1557 expand by at least one character.
1558 (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
1559 (struct token_spelling): Use const U_CHAR * rather than PTR.
1560 (expand_name_space): Fix up token pointers if name space
1561 is moved when expanding.
1562 (INIT_NAME, cpp_scan_line, parse_name, parse_number,
1563 parse_string2, save_comment, spell_token, cpp_output_list):
1564 Update so the routines handle tokens with a direct pointer to
1565 their text, rather than an offset into the token's list's namebuf.
1566 (_cpp_lex_line): Rearrange for clarity.
1568 * cpplib.c (_cpp_check_directive): Similarly.
1569 (do_define): Make SYM a pointer to const.
1570 * cpplib.h (struct cpp_name): Replace offset with direct pointer.
1571 (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
1572 (TOK_OFFSET): Delete.
1575 2000-05-14 Geoffrey Keating <geoffk@cygnus.com>
1577 * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
1580 * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE
1582 (logical_u_operand): Delete.
1583 (non_logical_cint_operand): Rewrite to take MODE into account.
1584 (non_logical_u_cint_operand): Delete.
1585 (boolean_operator): New function.
1586 (print_operand): Add new %q operand.
1587 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
1588 remove logical_u_operand and non_logical_u_cint_operand,
1589 update logical_operand and non_logical_cint_operand.
1590 * config/rs6000/rs6000.md: Rewrite the patterns for performing
1591 logical operations to use %q.
1593 * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
1594 (movdi): Make similar to movsi.
1595 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
1596 is no such thing as a DImode CONST_DOUBLE.
1597 * config/rs6000/rs6000.c (output_toc): Likewise.
1599 * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
1600 codes when old mnemonics are in use. Print register names
1601 for cc registers when requested.
1603 * optabs.c (expand_float): Don't allow mode widening that causes
1606 * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
1607 flags to their current names -maix64 and -maix32.
1609 2000-05-14 Bruce Korb <bkorb@gnu.org>
1611 * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
1612 and/or after current text of file
1613 * fixinc/fixlib.c(must_malloc):
1614 * fixinc/fixlib.h(must_malloc): + reformatting
1615 * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
1616 with usages of ``c_fix = wrap;''
1617 Add several tests and use the ``c_fix = format'' fixer more.
1618 * fixinc/fixincl.x: regen
1619 * fixinc/check.diff: regen
1620 * fixinc/check.tpl: emit the associated header with the missing
1623 Sun May 14 17:58:59 2000 Hans-Peter Nilsson <hp@axis.com>
1625 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
1626 variables $src and $dst.
1628 2000-05-13 Gabriel Dos Reis <gdr@codesourcery.com>
1630 * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
1631 (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
1632 (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
1633 (struct output_buffer: emitted_prefix_p, prefixing_rule): New
1635 (set_message_prefixing_rule): Declare.
1637 * diagnostic.c: (current_prefixing_rule): New variable.
1638 (set_message_prefixing_rule): Define.
1639 (output_set_prefix): Adjust buffer->emitted_prefix_p.
1640 (init_output_buffer): Adjust Initialization.
1641 (output_emit_prefix): Rewrite. Take prefixing rules into account.
1643 Sat May 13 11:05:47 2000 Philippe De Muyter <phdm@macqel.be>
1645 * ifcvt.c (if_convert): Do not free NULL.
1647 2000-05-12 Nick Clifton <nickc@cygnus.com>
1649 * config/fr30/fr30.c (fr30_move_double): New function: Emit code
1650 to move a double word value.
1651 (di_operand): New function: Return true if the operand is suitbale
1652 for a double word move operation.
1653 (nonimmediate_di_operand): New function: Return true if the
1654 operand is a DImode register or MEM.
1656 * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
1657 nonimmediate_di_operand.
1659 * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
1660 nonimmediate_di_operand.
1662 * config/fr30/fr30.md (movdi): New pattern. Required because
1663 other patterns generate DImode results.
1664 (movdi_insn): New pattern.
1666 2000-05-12 Richard Henderson <rth@cygnus.com>
1668 * config/alpha/alpha.c (struct shadow_summary): Define
1669 bitfields as type unsigned int.
1671 Sat May 13 00:09:59 2000 Denis Chertykov <denisc@overta.ru>
1673 * config/avr/t-avr: Added definition of FLOAT while generates
1676 * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
1677 peepholes for tst+jump = sbrs/sbrc optimization.
1679 Fry May 12 20:03:00 CEST 2000 Jan Hubicka <jh@suse.cz>
1681 * expr.c (emit_push_insn): Do not adjust stack pointer when
1684 Fri May 12 19:03:58 2000 Philippe De Muyter <phdm@macqel.be>
1686 * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
1687 * system.h (offsetof): ... to here.
1689 2000-05-12 Richard Henderson <rth@cygnus.com>
1691 * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
1692 * final.c (final_end_function): Use app_disable. Rearrange note
1693 handling into a switch. Emit deleted labels.
1694 (output_asm_label): Generate label strings for deleted labels.
1695 * flow.c (tail_recursion_label_list): New.
1696 (find_basic_blocks_1): Set label_value_list directly. Collect list
1697 of tail recursion labels from call_placeholders. Don't add deleted
1698 labels to the label value list.
1699 (cleanup_cfg): Use free_EXPR_LIST_list.
1700 (flow_delete_insn_chain): Turn non-removable labels into notes.
1701 (flow_delete_block): Don't disable deleting the block because of
1702 a non-removable label.
1703 (tail_recursion_label_p): New.
1704 (merge_blocks_move_predecessor_nojumps): Don't disable the merge
1706 (merge_blocks_move_successor_nojumps): Likewise. Also move a
1708 (merge_blocks): Disable a merge because of tail recursion labels.
1709 * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
1710 Use a more accurate measure of not merging the join block.
1711 (find_if_block): Don't disable conversion because of a label.
1712 (find_if_case_1, find_if_case_2): Likewise.
1713 * jump.c (duplicate_loop_exit_test): Preserve the kind of list
1714 element when copying.
1715 (squeeze_notes): Also leave EH notes.
1716 (mark_jump_label): Ignore deleted labels. Use an INSN_LIST for
1718 (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
1720 * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
1721 NOTE_INSN_DELETED_LABEL. Print `[# deleted]' for a label_ref
1722 referring to a deleted label. Convert tail handling to a switch.
1723 * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
1724 for NOTE_INSN_DELETED_LABEL.
1725 (NOTE): Fix commentary.
1726 * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
1727 (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
1728 (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
1729 (LABEL_NUSES, LABEL_REFS): Likewise.
1730 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
1732 2000-05-12 Bruce Korb <bkorb@gnu.org>
1734 * fixinc/fixfixes.c(format_write): buglet & relaxed rules
1735 * fixinc/check.diff: updated
1736 * fixinc/inclhack.def: corrected & added some test_text-s
1737 * fixinc/genfixes: removed unneeded options to autogen invocation
1738 * fixinc/fixincl.tpl: Specified the output file
1739 * fixinc/fixfixes.c: visual appearance
1740 * fixinc/fixincl.x: regenerate
1742 2000-05-12 Zack Weinberg <zack@wolery.cumb.org>
1744 * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
1745 CTRL_defn_fix): Delete.
1746 (fix_char_macro_defines, fix_char_macro_uses): Rename to
1747 char_macro_def_fix and char_macro_use_fix, respectively. Put
1748 them into the FIXUP_TABLE. Get the string to search for from
1751 (format_write): New function.
1752 (format_fix): Use it.
1754 (FIX_PROC_HEAD): Constify text parameter.
1755 (machine_name_fix): Constify all char *s.
1756 * fixtests.c (skip_quote): Remove double static.
1758 * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
1759 ctrl_use_quotes): Update for new scheme.
1760 * fixincl.x: Regenerate.
1762 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
1764 * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
1766 (DWARF2_ASM_LINE_DEBUG_INFO): Define.
1767 (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
1769 2000-05-11 Robert Lipe <robertlipe@usa.net>
1771 * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
1772 * fixincl.x: Regenerate.
1774 2000-05-11 Richard Henderson <rth@cygnus.com>
1776 * calls.c: Revert both 05-09 patches.
1778 2000-05-11 Alexandre Oliva <aoliva@cygnus.com>
1780 * config/mn10300/mn10300.c (print_operand): Print FP constants in
1782 * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
1785 * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
1786 and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
1788 2000-05-11 Jason Merrill <jason@casey.cygnus.com>
1790 * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
1792 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
1794 * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
1796 Thu May 11 22:28:05 2000 Denis Chertykov <denisc@overta.ru>
1798 * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
1799 * config/avr/avr.c (jump_over_one_insn_p): New function.
1800 * config/avr/avr.md: New peepholes added. Output test and
1801 conditional jump to "sbrc" or "sbrs" command.
1803 2000-05-11 Mark Elbrecht <snowball3@bigfoot.com>
1805 * cppmain.c (main): Use IS_DIR_SEPARATOR.
1807 2000-05-11 Jakub Jelinek <jakub@redhat.com>
1809 * except.c (find_exception_handler_labels_1): New function.
1810 (find_exception_handler_labels): Split into two functions, dive
1811 into CALL_PLACEHOLDERs when looking for exception handler labels.
1813 2000-05-11 Stan Cox <scox@cygnus.com>
1815 * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
1816 * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
1817 * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
1819 2000-05-11 Bruce Korb <bkorb@gnu.org>
1821 * fixinc/fixfixes.c (double_slash_fix): obsolete
1822 (else_endif_label_fix): obsolete
1823 (format_fix): new, unused as yet
1825 * fixinc/fixlib.h: added fix description struct for use by format_fix
1826 * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
1827 * fixinc/Makefile.in: compile fixfixes.c and fixtests.c as separate
1828 modules. Removed the vestiges of the script version.
1829 Added support for "make check".
1830 * fixinc/check.diff: base diff file (needs work!!)
1831 * fixinc/check.tpl: quiet the fixup output
1832 * fixinc/fixtests.c (main): obsolete
1833 * fixinc/fixincl.sh: don't bother copying fixincl to ..
1834 * fixinc/fixincl.tpl: provide for arguments to c_fix routines
1836 Thu May 11 11:57:02 MET DST 2000 Jan Hubicka <jh@suse.cz>
1838 * toplev.c (rest_of_compilation): Remove dead code after
1841 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
1843 * cpphash.c (collect_funlike_expansion): Make "# is not
1844 followed by a macro argument name" a pedwarn, not an error.
1845 Preserve the # in the output. Suppress the warning if lang_asm.
1847 Thu May 11 01:19:31 2000 Jeffrey A Law (law@cygnus.com)
1849 * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
1850 * configure: Rebuilt.
1852 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
1854 * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
1856 2000-05-10 Kazu Hirata <kazu@hxi.com>
1858 * combine.c (try_combine): Fix a typo.
1860 Wed May 10 21:31:44 2000 Jim Wilson <wilson@cygnus.com>
1862 * config/ia64/ia64.md (insv): Add comment.
1864 2000-05-10 Richard Henderson <rth@cygnus.com>
1866 * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
1867 * mklibgcc.in: Rewrite to not use functions. Don't shortcut
1868 dependancies on FPBIT and DPBIT.
1870 2000-05-10 Nick Clifton <nickc@redhat.com>
1872 * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
1873 when optimising for size.
1874 (mark_used_regs:) Ditto.
1875 (try_pre_increment_1): Ditto.
1877 2000-05-10 Zack Weinberg <zack@wolery.cumb.org>
1879 * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
1880 Make error message friendlier.
1882 * cpphash.h (struct hashnode): Use struct hack for name
1884 * cpphash.c (struct hashdummy): New.
1885 (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
1886 (make_HASHNODE): No need to set ->name pointer. Correct
1888 (cpp_lookup): Make 'dummy' a struct hashdummy. Tidy up a bit.
1890 2000-05-10 Richard Henderson <rth@cygnus.com>
1892 * flow.c (find_basic_blocks_1): Remove any spare bb_note
1895 2000-05-10 Bruce Korb <bkorb@gnu.org>
1897 * fixinc/gnu-regex.c: reg_syntax_t re_syntax_options must be static
1899 2000-05-10 Eric Schweitz <schweitz@nortelnetworks.com>
1901 * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
1902 after we enter .debug.
1904 2000-05-10 Jason Merrill <jason@casey.cygnus.com>
1906 * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
1907 abstract instance of a nested inline function.
1909 * stor-layout.c (finish_record_layout): finalize_type_size
1910 before laying out the pending_statics.
1912 Wed 10 May 09:36:47 2000 Neil Booth <NeilB@earthling.net>
1914 * cpplex.c (spell_token): New function.
1915 (spell_string, spell_comment, spell_name): fold into
1918 (E, H): Remove macros.
1919 (save_comment): Save comment opening characters too.
1920 (_cpp_lex_file): Update to use spell_token. Tidy up comment
1922 * cpplib.h (I, S): Add macros.
1923 (E, H): Remove macros.
1924 (TTYPE_TABLE): Update entries for new speller.
1925 (SYNTAX_ASSERT): Remove.
1927 Wed 10 May 09:08:30 2000 Neil Booth <NeilB@earthling.net>
1929 * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
1930 when removing escaped newlines. Reverse sense of test for
1933 2000-05-09 Richard Henderson <rth@cygnus.com>
1935 * flow.c (find_basic_blocks_1): Do not delete the first
1936 bb_note we run across.
1937 (create_basic_block): Use reorder_insns to move an existing
1938 bb_note to the correct place.
1940 2000-05-09 Richard Henderson <rth@cygnus.com>
1942 * calls.c (expand_call): Increment currently_expanding_call
1943 before calling optimize_tail_recursion.
1945 Tue May 9 18:54:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1947 * reload1.c (reload_combine): Fix errors in last change.
1949 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
1951 * gcc.c (used_arg): Skip over a semicolon at the end of the
1952 split-up loop; don't break out of it.
1954 * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
1955 (tree.o): Depend on output.h.
1957 * c-decl.c (pending_invalid_xref_file,
1958 current_function_prototype_file): Constify.
1959 (pushdecl): Constify a local char *.
1960 (define_label): Constify filename parameter.
1961 * c-lex.c (init_parse): Constify parameter and return value.
1962 * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
1963 * c-tree.h: Update prototypes.
1964 * c-parse.in: Constify filename member of %union, and if_stmt_file.
1965 * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
1966 objc/objc-parse.c: Regenerate.
1968 * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
1969 * dwarfout.h: Update prototypes.
1970 * expr.c (expand_expr): Constify a local char *.
1971 * flags.h: Constify main_input_filename.
1972 * function.c (expand_function_end): Constify filename parameter.
1973 * genrecog.c (make_insn_sequence): Use a character array for
1975 (main): Remove unused variables.
1976 * input.h: Constify input_filename, main_input_filename, and
1977 file_stack.name. Update prototypes.
1978 * output.h: Declare first_global_object_name and
1979 weak_global_object_name here, as const char *.
1980 * stmt.c (expand_asm_operands): Constify filename parameter.
1981 * toplev.c (compile_file, push_srcloc, debug_start_source_file):
1982 Constify filename parameter.
1983 (input_filename, main_input_filename): Constify.
1984 * toplev.h: Update prototypes.
1985 * tree.c: Include output.h. Don't declare
1986 first_global_object_name or weak_global_object_name. Clean up string
1987 bashing in get_file_function_name_long.
1988 * tree.h (struct tree_decl): Constify filename member.
1989 (input_filename): Constify.
1991 * varasm.c (first_global_object_name, weak_global_object_name):
1993 (assemble_start_function, assemble_variable): Clean up string bashing.
1995 * gcc.c: Constify all spec-related strings initialized,
1996 transitively, from string constants. Constify all strings
1997 and string variables related to multilibs.
1998 (set_spec, read_specs): Cast argument to free to PTR.
1999 (used_arg): Do not modify multilib_matches. Use strncmp plus
2000 length comparison to compare multilib switches.
2001 * genmultilib: Constify everything declared in multilib.h.
2003 Tue May 9 22:28:03 2000 Denis Chertykov <denisc@overta.ru>
2005 * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
2008 Tue May 9 20:52:43 2000 Denis Chertykov <denisc@overta.ru>
2010 * config/avr/avr-protos.h (extra_constraint): change a type of
2011 second argument from char to int to avoid warnings.
2012 (asm_output_byte): Likewise.
2014 * config/avr/avr.c (MAX_LD_OFFSET) New macro.
2015 (initial_elimination_offset): Handle elimination from
2016 FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
2017 (legitimate_address_p): Use MAX_LD_OFFSET.
2018 (legitimize_address): Likewise.
2019 (out_movqi_r_mr): Likewise.
2020 (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
2021 (out_movsi_r_mr): Use MAX_LD_OFFSET.
2022 (out_movsi_mr_r): Likewise.
2023 (out_movqi_mr_r): Likewise.
2024 (out_movhi_mr_r): Likewise.
2025 (notice_update_cc): Correct CC for the ashrqi3 with the shift
2026 count as CONST_INT != 6.
2027 (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
2028 shift count is a CONSTANT_P, but not a CONST_INT.
2029 (ashlhi3_out): Coding style modifications.
2030 (ashlsi3_out): Likewise.
2031 (ashrhi3_out): Likewise.
2032 (ashrsi3_out): Likewise.
2033 (lshrhi3_out): Likewise.
2034 (lshrsi3_out): Likewise.
2035 (ashrqi3_out): Generate shift for any known constant count without
2036 scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
2037 but not a CONST_INT.
2038 (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
2039 shift count is a CONSTANT_P, but not a CONST_INT.
2040 (extra_constraint): change a type of
2041 second argument from char to int to avoid warnings.
2042 (asm_output_byte): Likewise.
2043 (asm_file_end): Output size generated commands count as a hex
2046 * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
2048 * config/avr/avr.md (addhi3): Fragment commented by &&0 is
2050 (ashlqi3): Values of "length" attribute changed. Shift count
2051 uses constraints 'n' instead of 'i'.
2052 (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
2053 shifts without clobber register.
2054 (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
2055 (call_insn): Correct test for which_alternative == 1 (was 0).
2056 (call_value_insn): Likewise.
2058 * config/avr/t-avr: Remove definition of FLOAT while generates
2061 2000-05-09 Bruce Korb <bkorb@gnu.org>
2063 * fixinc/check.tpl: Template for checking fixes
2064 * fixinc/inclhack.def: Added 'test_text' for many fixes
2065 disable hpux8_bogus_inlines on SCO
2066 * fixinc/fixinc.sco: Oh, yes, we don't need this any more.
2068 Tue May 9 16:30:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
2070 * calls.c (expand_call): Reorganize somewhat in order
2071 to avoid unnecesary recalculation inside loop and make
2072 tail call failure code cleaner.
2074 Tue May 9 06:30:20 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2076 * alias.c (nonlocal_reference_p): Minor reformatting.
2077 * reload.c (find_equiv_reg): Simplify logic for
2078 CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
2079 some some reformatting.
2080 * reload1.c (reload_combine): Don't assume everything in
2081 CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
2083 2000-05-08 Richard Henderson <rth@cygnus.com>
2085 * final.c (current_insn_predicate): New.
2086 (final_scan_insn): Set it.
2087 * output.h (current_insn_predicate): Declare.
2089 * ifcvt.c (cond_exec_process_insns): New argument prob_val.
2090 Attach it to call insns.
2091 (cond_exec_process_if_block): Track probability for true and
2093 (dead_or_predicable): Likewise.
2095 * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
2096 (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
2097 (PROB_VERY_LIKELY, PROB_ALWAYS): New.
2098 (estimate_probability, expected_value_to_br_prob): Use them.
2100 * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
2101 * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
2102 (ia64_expand_prediction): New.
2103 (emit_insn_group_barriers): Don't look at notes. Emit barriers
2104 as needed after calls.
2105 (ia64_epilogue_uses): Mark b0 used.
2106 * config/ia64/ia64.md (beq_true, beq_false): Remove.
2107 (bne_true, bne_false): Remove.
2108 (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
2109 (br_true, br_false): New. Use predicate_operator and
2110 ia64_expand_prediction.
2111 (return_true, return_false): Likewise.
2112 (call_internal): Use ia64_expand_prediction. Don't emit stop bit.
2113 (call_internal1, call_value_internal): Likewise.
2114 (call_value_internal1, call_multiple_values_internal1): Likewise.
2116 * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
2118 * config/ia64/ia64.md (extendsfdf2): Split only after reload.
2120 2000-05-08 Richard Henderson <rth@cygnus.com>
2122 * rtlanal.c (may_trap_p): Consider old-style and volatile
2125 Mon May 8 17:16:48 2000 Jim Wilson <wilson@cygnus.com>
2127 * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
2129 2000-05-08 Richard Henderson <rth@cygnus.com>
2131 * config/ia64/ia64.h (predicate_operator): Declare.
2133 * config/ia64/ia64.md (extendsfdf2): Split the nop case out
2136 * gensupport.c (process_rtx): Copy and post-process each member
2137 of the define_insn rtvec individually.
2139 Mon 8 May 22:17:35 2000 Neil Booth <NeilB@earthling.net>
2141 * cpplex.c (spell_token): New function.
2142 (TOKEN_LEN): Add 1 for whitespace.
2143 (_cpp_lex_file): Update to use spell_token.
2144 * cpplib.h (E): Remove.
2145 (TTYPE_TABLE): Update CPP_VSPACE entry.
2147 2000-05-08 Richard Henderson <rth@cygnus.com>
2149 * flow.c (init_propagate_block_info): Watch out for conditional
2150 branch to next instruction, and thus one outgoing edge.
2152 * config/ia64/ia64.c (ia64_encode_section_info): Exit early
2153 for global register variables; don't special case __[CD]TOR_LIST__;
2154 mind ggc_p for string allocation.
2156 2000-05-08 Nick Clifton <nickc@cygnus.com>
2158 * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
2160 2000-05-08 Bruce Korb <bkorb@gnu.org>
2162 * fixinc/mkfixinc.sh: fixinc.sco is no longer used
2163 i?86-*-msdosdjgpp* no longer uses fixincludes
2164 * fixinc/genfixes: inclhack.sh and fixincl.sh are no longer generated
2165 * fixinc/inclhack.sh: deleted
2166 * fixinc/hackshell.tpl: deleted
2167 * fixinc/inclhack.tpl: deleted
2168 * fixinc/Makefile.in: Remove dependencies on above
2169 * fixinc/fixincl.sh: "DO NOT EDIT" text modified
2171 2000-05-08 Andreas Jaeger <aj@suse.de>
2173 * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
2176 2000-05-07 Zack Weinberg <zack@wolery.cumb.org>
2178 * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
2181 Sun 7 May 08:43:53 2000 Neil Booth <NeilB@earthling.net>
2183 * cpplex.c: Move new lexer definitions and prototypes
2184 to top. Conditional include these and the code if
2185 NEW_LEXER is defined. Rename functions whose names
2186 clash if this code included.
2188 Sun May 7 00:54:57 EDT 2000 John Wehle (john@feith.com)
2190 * rtl.def (COND_EXEC): Clarify.
2192 * i386.md (extendsidi2): Clobber (reg:CC 17) in the
2193 same fashion as zero_extendsidi2.
2195 2000-05-06 Richard Henderson <rth@cygnus.com>
2197 * config/ia64/ia64.c (predicate_operator): New.
2198 (ia64_print_operand): Handle 'J'.
2199 (rtx_needs_barrier): Handle COND_EXEC.
2200 * config/ia64/ia64.h (BRANCH_COST): Define.
2201 (PREDICATE_CODES): Update.
2202 * config/ia64/ia64.md: Docuement used unspec values.
2203 (attr predicable): New.
2204 (movxf, movxf_internal): New.
2205 (extendsfdf2): Don't comment out nop.
2206 (floatdidf2): Remove.
2207 (truncxfsf2, truncxfdf2, floatdixf2): New.
2208 (abssi2, absdi2): Put the neg in the "true" slot.
2209 (conditional branch instructions): Mark not predicable.
2210 (cmov*_internal): Use predicate_operator. Split to cond_exec.
2211 (abs*_internal): Likewise.
2212 (alloc, set_bsp): Mark not predicable.
2213 (barrier, insn_group_barrier, flush_cache): Likewise.
2214 (define_cond_exec): New.
2216 2000-05-06 Richard Henderson <rth@cygnus.com>
2218 * c-decl.c: Include "tm_p.h".
2220 * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
2221 (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
2222 (ia64_expand_op_and_fetch): Declare.
2223 * config/ia64/ia64.c: Include "toplev.h". Kill trailing whitespace.
2224 (setjmp_operand): Constify variables for XSTR.
2225 (ia64_encode_section_info): Likewise.
2226 (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
2228 (ia64_asm_output_external): Constify name.
2229 (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
2230 (process_for_unwind_directive): Provide switch default.
2231 (ia64_expand_compare_and_swap): Remove unused variables.
2232 (ia64_expand_builtin): Likewise.
2233 * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
2236 * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
2237 (symbolic_operand, function_operand, setjmp_operand): Likewise.
2238 (shift_count_operand, shift_32bit_count_operand): Likewise.
2239 (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
2240 (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
2241 (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
2242 (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
2243 (ia64_expand_builtin): Likewise.
2244 (call_multiple_values_operation): Make dest_regno unsigned.
2246 2000-05-06 Richard Henderson <rth@cygnus.com>
2248 * rtl.def (DEFINE_COND_EXEC): New.
2249 * md.texi: Document it.
2251 * gensupport.c (input_file): Remove.
2252 (struct queue_elem): Add lineno.
2253 (rtx_ready_queue): Remove.
2255 (predicable_default): New.
2256 (predicable_true, predicable_false): New.
2257 (define_attr_queue, define_attr_tail): New.
2258 (define_insn_queue, define_insn_tail): New.
2259 (define_cond_exec_queue, define_cond_exec_tail): New.
2260 (other_queue, other_tail): New.
2261 (queue_pattern): New.
2262 (process_rtx): Add patterns to the appropriate queues.
2263 (is_predicable, identify_predicable_attribute): New.
2264 (n_alternatives, collect_insn_data): New.
2265 (alter_predicate_for_insn, alter_test_for_insn): New.
2266 (shift_output_template, alter_output_for_insn): New.
2267 (process_one_cond_exec, process_define_cond_exec): New.
2268 (init_md_reader): Read the entire file. Process define_cond_exec.
2269 (read_md_rtx): Return elements from the queues.
2271 2000-05-06 Richard Henderson <rth@cygnus.com>
2273 * flow.c (mark_set_1): Don't update conditional life info
2274 if the register is not_dead.
2276 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
2278 * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
2279 (mostlyclean): Also delete fixincl, fixinc.sh, and
2280 specs.ready, and make clean in the fixinc subdir.
2282 2000-05-06 Richard Henderson <rth@cygnus.com>
2284 * Makefile.in (gensupport.o): Compile for the host.
2285 (host-prefix gensuuprt.o): Remove.
2286 (genflags.o): Depend on gensupport.h and OBSTACK_H.
2287 (genattrtab.o): Likewise.
2288 (gencodes.o): Depend on gensupport.h.
2289 (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
2290 (genpeep.o, genattr.o, genoutput.o): Likewise.
2292 * gensupport.c (obstack, rtl_obstack): New.
2293 (init_md_reader): Initialize rtl_obstack.
2294 * gensupport.h (rtl_obstack): Declare.
2295 (message_with_line): Declare.
2297 * genattr.c: Remove all traces of obstack manipulation.
2298 * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
2299 * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
2301 * genattrtab.c (obstack, rtl_obstack): Remove.
2302 (main): Don't init rtl_obstack.
2303 * genflags.c: Likewise.
2305 * genrecog.c (message_with_line): Move ...
2306 * gensupport.c: ... here.
2308 2000-05-06 Richard Henderson <rth@cygnus.com>
2310 * c-typeck.c (build_c_cast): Remove dead code.
2312 2000-05-06 Richard Henderson <rth@cygnus.com>
2314 * flow.c (split_edge): Don't allocate global_live_at_start for
2315 the new block unless the old blocks had them as well.
2317 * flow.c (mark_set_1): Respect not_dead when updating reg_live.
2319 * ifcvt.c (noce_process_if_block): Don't use an insn_b from
2320 test_bb if a or b uses x.
2322 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
2324 * cpphash.h: Remove conditional #define of __extension__.
2325 * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
2326 RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
2327 (ENABLE_RTL_CHECKING only).
2328 * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
2329 CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
2330 (ENABLE_TREE_CHECKING only).
2331 * varray.h: Add __extension__ to VARRAY_CHECK macro
2332 (ENABLE_CHECKING only).
2334 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2336 Use new tail-calling mechanism on ARM.
2337 * arm.md (sibcall, sibcall_value): New expands.
2338 (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
2339 (tailcalling peepholes): Delete.
2340 (push_multi): Simplify.
2341 * arm.c (lr_save_eliminated): Delete definition.
2342 (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
2343 (output_return_instruction): Remove checks on lr_save_eliminated.
2344 (output_arm_prologue): Remove old tail-calling code.
2345 (arm_output_epilogue): New parameter, really_return. All callers
2346 changed. Handle tail-calling epilogues.
2347 * arm.h (lr_save_eliminated): Delete declaration.
2348 (frame_pointer_needed): Delete declaration.
2349 * arm-protos.h (arm_output_epilogue): Adjust prototype.
2351 * arm.md (is_thumb): Examine symbol thumb_code, not expression
2353 * arm.c (thumb_code): Define it.
2354 (arm_override_options): Set it.
2355 * arm.h (thumb_code): Declare it.
2357 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2359 * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
2361 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2363 * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
2364 bogus clobber to insns.
2365 (load_multiple_operation, store_mulitple_operation): Don't check
2367 * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
2369 * arm.md (and_scc, ior_scc): Add missing mode.
2371 * arm.md (call_value_symbol): Remove predicate from op2.
2373 * arm.h (SPECIAL_MODE_PREDICATES): Define.
2375 Sat May 6 06:25:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2377 * expr.c (get_subtarget): New function.
2378 (force_operand, expand_expr, do_store_flag): Use it.
2380 * toplev.c (compile_file): Don't take strlen of NAME if null.
2382 2000-05-06 David Edelsohn <edelsohn@gnu.org>
2384 * xcoffout.c (xcoff_current_include_file,
2385 xcoff_current_function_file, xcoff_lastfile): Constify char *.
2386 (xcoffout_source_file, xcoffout_source_line): Make filename 'const
2388 (xcoffout_declare_function): Make name 'const char *'.
2389 (xcoffout_end_epilogue): Make fname 'const char *'
2390 * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
2391 xcoffout_declare_function, xcoffout_source_line): Match above.
2393 * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
2395 * rs6000.c (print_operand): Fix lossage typo.
2396 (output_cbranch): Remove "cr" decoration for now.
2397 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'.
2399 Sat May 6 06:55:32 2000 Denis Chertykov <denisc@overta.ru>
2401 * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
2404 2000-05-05 Bruce Korb <bkorb@gnu.org>
2406 * fixinc/genfixes: Improve the matching for make target names
2408 2000-05-05 Catherine Moore <clm@cygnus.com>
2410 * c-common.c (decl_attributes): For TYPE_DECLs attach the
2411 attribute to the decl.
2412 * c-decl.c (pushdecl): Propagate the USED attribute to the
2415 2000-05-05 Richard Henderson <rth@cygnus.com>
2417 * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
2418 same way emit_group_load does.
2420 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
2422 * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
2424 * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
2427 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
2429 * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
2431 Fri May 5 10:29:21 2000 Marc Espie <espie@cvs.openbsd.org>
2433 * config/openbsd.h (LINK_SPEC): pass correct flags to ld
2434 to support -shared, on platforms with dynamic libraries.
2436 Fri May 5 10:27:06 2000 Philippe De Muyter <phdm@macqel.be>
2438 * system.h (S_ISBLK): Provide fallback definition.
2440 2000-05-05 Geoff Berry <geoffb@bops.com>
2442 * extend.texi (Extended Asm): Document inability to give asm
2443 statements access to condition codes.
2445 2000-05-05 Marek Michalkiewicz <marekm@linux.org.pl>
2447 * varasm.c (asm_emit_uninitialised): Use 0, not NULL
2448 as arg 2 of UNIQUE_SECTION.
2450 Fri May 5 10:11:41 2000 Jeffrey A Law (law@cygnus.com)
2452 * predict.c: Remove May 4 change.
2453 * bb-reorder.c (make_reorder_chain): Do not perform block movement
2454 if we have predicted the branch at 50-50 probability.
2456 2000-05-05 Richard Henderson <rth@cygnus.com>
2458 * flow.c (init_propagate_block_info): Fix merge error
2459 in HAVE_conditional_execution code.
2461 Fri May 5 07:43:50 2000 Denis Chertykov <denisc@overta.ru>
2463 * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
2464 shift cycle for unknown shift count. Also generates dec + brpl.
2465 (ashlqi3_out): Don't generate dec + brpl which now generates by
2466 `out_shift_with_cnt'.
2467 (ashlhi3_out): Likewise.
2468 (ashlsi3_out): Likewise.
2469 (ashrqi3_out): Likewise.
2470 (ashrhi3_out): Likewise.
2471 (ashrsi3_out): Likewise.
2472 (lshrqi3_out): Likewise.
2473 (lshrhi3_out): Likewise.
2474 (lshrsi3_out): Likewise.
2476 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
2478 * gcc.c (free_split_directories): Correct typo in explanation
2479 of make_relative_prefix.
2481 2000-05-04 Geoff Keating <geoffk@cygnus.com>
2483 * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
2484 comparison codes to branch_comparison_operator.
2486 2000-05-04 Richard Henderson <rth@cygnus.com>
2488 * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
2490 2000-05-04 Richard Henderson <rth@cygnus.com>
2492 * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
2493 (DPBIT_FUNCS): Remove _sf_to_usi.
2494 (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
2496 * ifcvt.c (noce_process_if_block): Fail if A or B modified
2497 between condition and jump.
2499 * libgcc2.c (near eh_context_specific): Comment #endif string.
2500 * longlong.h: Don't use strings with embedded newlines.
2502 2000-05-04 Geoff Keating <geoffk@cygnus.com>
2504 * config/rs6000/rs6000-protos.h: Add output_cbranch.
2505 * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
2506 (print_operand): Delete %t and %T codes.
2507 (output_cbranch): New function. Support branch prediction.
2508 * config/rs6000/rs6000.md: Use output_cbranch for
2509 conditional branches and returns.
2511 2000-05-04 Jason Merrill <jason@casey.cygnus.com>
2513 * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
2514 * stor-layout.c (place_field): Likewise.
2515 * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
2516 * expr.c (store_expr): Make align unsigned.
2517 * explow.c (plus_constant_wide): Make low words unsigned.
2518 * expmed.c (choose_multiplier): Likewise.
2519 * fold-const.c (fold): Likewise.
2520 * tree.h (build_int_2): Likewise.
2521 * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
2522 * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
2523 (init_emit): Change cast to unsigned char*.
2524 * varasm.c (compare_constant_1): Add cast to char*.
2525 * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
2526 * reload1.c (reload): Likewise.
2528 * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
2530 Thu May 4 14:37:23 2000 Jeffrey A Law (law@cygnus.com)
2532 * predict.c (estimate_probability): If no prediction was found, then
2533 predict the successor that is the next physical block (if such a
2536 2000-05-04 Richard Henderson <rth@cygnus.com>
2538 * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
2540 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2542 * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
2544 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
2546 * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
2547 attribute macros from here ...
2548 (CPP_SPEC): to here.
2549 * i386/mingw32.h (CPP_PREDEFINES): Likewise.
2550 (CPP_SPEC): Likewise.
2551 * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
2553 * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
2554 (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
2556 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2558 * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
2560 * diagnostic (vbuild_message_string, build_message_string,
2561 build_location_prefix, output_get_prefix, init_output_buffer,
2562 output_notice, vline_wrapper_message_with_location,
2563 v_message_with_decl, default_print_error_function): De-constify.
2564 (set_real_maximum_length): Prototype.
2566 * diagnostic.h (struct output_buffer, init_output_buffer,
2567 output_get_prefix, output_set_prefix): De-constify.
2569 * function.c (init_function_start): Constify.
2571 * gensupport.c (remove_constraints, process_rtx): Prototype.
2573 * gthr-posix.h: Indent uses of #pragma.
2575 * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
2578 * predict.c (find_expected_value): Delete prototype.
2579 (expected_value_to_br_prob): Initialize variable `ev_reg'.
2581 * sbitmap.h (debug_sbitmap): Prototype.
2583 * ssa.c (compute_coalesced_reg_partition): Prototype.
2585 * stor-layout.c (debug_rli): Prototype.
2587 * tree.h (round_down): Prototype.
2588 (init_function_start): Constify.
2590 2000-05-04 Zack Weinberg <zack@wolery.cumb.org>
2592 * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
2593 (overly conservative). Change extern inline wrappers to
2594 static inline, define them always, use PARAMS properly.
2595 * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
2596 whitespace warnings for \f and \v at the beginning of a line.
2598 Thu May 4 10:03:50 2000 Jeffrey A Law (law@cygnus.com)
2600 * haifa-sched.c (schedule_insns): Free the flow edge list when it
2603 2000-05-04 Bruce Korb <bkorb@gnu.org>
2605 * fixincl/inclhack.def: added broken_cabs -
2606 Remove `extern double cabs' declarations from math.h
2607 * fixincl/inclhack.sh: regen
2608 * fixincl/fixincl.x: regen
2609 * fixincl/fixincl.c: Remove BOGOSITY code
2610 * fixincl/mkfixinc.sh: Remove code for installing "shell" version
2612 Thu May 4 09:45:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2614 * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
2616 * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
2617 when calling MEM_COPY_ATTRIBUTES.
2618 * emit-rtl.c (operand_subword, change_address): Likewise.
2619 * explow.c (stabilize): Likewise.
2620 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
2621 * integrate.c (copy_rtx_and_substitute): Likewise.
2622 * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
2623 when calling MEM_COPY_ATTRIBUTES.
2624 (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
2626 * cse.c (gen_lowpart_if_possible): Likewise.
2627 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
2628 * optabs.c (gen_move_insn): Likewise.
2629 * recog.c (validate_replace_rtx_1): Likewise.
2630 * simplify-rtx.c (add_mem_for_addr): Likewise.
2631 * stmt.c (expand_anon_union_decl): Likewise.
2632 * config/arm/arm.md: Likewise.
2633 * config/h8300/h7300.c (fix_bit_operand): Likewise.
2634 * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
2635 (block_move_no_loop, block_move_sequence): Likewise.
2636 * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
2637 * config/alpha/alpha.c (get_aligned_mem): Likewise.
2638 Clear MEM_ALIAS_SET.
2639 * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
2640 MEM_COPY_ATTRIBUTES.
2642 2000-05-03 Robert Lipe <robertlipe@usa.net>
2644 * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
2645 to suppress libgcc1.
2646 (i[34567]86-*-sco3.2v5*) Likewise.
2647 (i[34567]86-*-sco3.2v4*) Likewise.
2648 (i[34567]86-*-sco) Likewise.
2649 (i[34567]86-*-solaris2) Likewise.
2650 (i[34567]86-*-sysv5*) Likewise.
2651 (i[34567]86-*-sysv4*) Likewise.
2652 (i[34567]86-*-udk*) Likewise.
2653 (i[34567]86-*-sysv*) Likewise.
2655 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
2657 * cpphash.h (U): New define, to correct type of string constants.
2658 (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
2659 routines, to do casts when passing unsigned strings to libc.
2660 * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
2662 * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
2663 * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
2664 * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
2665 * cpplex.c (parse_ifdef, parse_include, validate_else): Make
2666 second argument an U_CHAR *.
2668 * cppinit.c (builtin_array): Make name and value U_CHAR *, add
2669 length field, clean up initializer.
2670 (ISTABLE): Add __extension__ to designated-
2671 initializers version.
2672 * cpplex.c (CHARTAB): Likewise.
2674 * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
2675 case so the file won't be empty.
2677 Wed May 3 21:01:46 2000 Jason Eckhardt <jle@cygnus.com>
2679 * bb-reorder.c (struct reorder_block_def): Member succ removed.
2680 (REORDER_BLOCK_SUCC): Removed.
2681 (enum reorder_skip_type): Removed.
2682 (skip_insns_between_block): Renamed to skip_insns_after_block.
2683 Removed second argument. Removed dead code and cleaned up.
2684 (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
2685 (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
2686 second parameter to skip_insns_after_block.
2688 Wed May 3 13:29:54 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2690 * tree.c (staticp, case LABEL_DECL): New case.
2692 2000-05-03 Richard Henderson <rth@cygnus.com>
2694 * Makefile.in (start.encap): Do not depend on LIBGCC1.
2696 * mklibgcc1.in: Fix typo last change.
2698 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
2700 * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
2701 (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
2702 (GCC_CFLAGS): Use it.
2703 (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
2704 * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
2705 objc/Make-lang.in: Use it.
2707 2000-05-03 Jason R Thorpe <thorpej@zembu.com>
2709 * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
2711 2000-05-03 Richard Henderson <rth@cygnus.com>
2713 * mklibgcc.in: Restrict OLDCC=GCC test to native. Equate
2714 LIBGCC1 empty with libgcc1.null.
2716 Wed May 3 12:55:46 2000 Jim Wilson <wilson@cygnus.com>
2718 * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
2721 2000-05-03 Greg McGary <gkm@gnu.org>
2723 * tree.h (tree_common): Add bounded_flag member. Remove
2724 inaccurate comment about number of remaining bits.
2725 (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
2726 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
2727 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
2728 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
2729 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
2730 (TYPE_QUAL_BOUNDED): New constant.
2731 (TYPE_QUALS): Handle bounded qualifier.
2732 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
2733 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
2734 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
2735 TYPE_AMBIENT_BOUNDEDNESS): New macros.
2736 (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
2737 (tree_type): Add pointer_depth member. Remove
2738 inaccurate comment about number of remaining bits.
2739 (DECL_POINTER_DEPTH): Add macro.
2740 (tree_decl): Add pointer_depth member.
2742 Wed May 3 22:52:53 2000 Denis Chertykov <denisc@overta.ru>
2744 * config/avr/avr-protos.h (test_hard_reg_class): Declared.
2745 * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
2746 (lshrhi3_out): Likewise.
2747 (ashrsi3_out): bugfix in shift by 8.
2748 (test_hard_reg_class): New function.
2749 * config/avr/avr.md: Bugfix inside conditions in peepholes.
2750 (ashlhi3): removed define_expand of this pattern.
2751 (*ashlhi3_insn): renamed to ashlhi3.
2752 (ashlsi3): removed define_expand of this pattern.
2753 (*ashlsi3_insn): renamed to ashlsi3.
2754 (ashrqi3): removed define_expand of this pattern.
2755 (*ashrqi3_insn): renamed to ashrqi3.
2756 (ashrhi3): removed define_expand of this pattern.
2757 (*ashrhi3_insn): renamed to ashrhi3.
2758 (ashrsi3): removed define_expand of this pattern.
2759 (*ashrsi3_insn): renamed to ashrsi3.
2760 (lshrhi3): removed define_expand of this pattern.
2761 (*lshrhi3_insn): renamed to lshrhi3.
2762 (lshrsi3): removed define_expand of this pattern.
2763 (*lshrsi3_insn): renamed to lshrsi3.
2765 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
2767 * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
2768 inclusion of "system.h".
2770 Wed May 3 11:43:53 2000 Jim Wilson <wilson@cygnus.com>
2772 * config/ia64/ia64.c (ia64_encode_section_info): Add check for
2775 2000-05-03 David Mosberger <davidm@hpl.hp.com>
2777 * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
2778 if -mauto-pic is on.
2779 (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
2780 -mconstant-gp is in effect and function-descriptors are being used
2781 to make indirect calls.
2782 * config/ia64/ia64.h (MASK_CONST_GP): New macro.
2783 (MASK_AUTO_PIC): Ditto.
2784 (TARGET_CONST_GP): Ditto.
2785 (TARGET_AUTO_PIC): Ditto.
2786 (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
2787 (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
2788 -mno-pic is in effect.
2789 (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
2790 * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
2791 -mauto-pic is in effect.
2792 (gprel64_offset): New pattern.
2793 (load_gprel64): Ditto.
2794 (call): Handle -mauto-pic like -mno-pic (don't use fptr). If
2795 -mconstant-gp is in effect, no need to preserve gp around direct
2797 (call_value): Ditto.
2798 * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
2799 (FUNCTION_PROFILER): Define.
2800 * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
2801 @fptr() directive when -mno-pic or -mauto-pic is in effect.
2802 (ASM_OUTPUT_DESTRUCTOR): Ditto.
2804 2000-05-03 Richard Henderson <rth@cygnus.com>
2806 * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
2807 (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
2808 (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
2809 (mklibgcc, libgcc.mk): New targets.
2810 (libgcc.a): Use libgcc.mk.
2811 (stmp-multilib): Likewise.
2812 (stmp-multilib-sub): Remove.
2813 (mostlyclean): Don't delete libgcc2 temp files.
2814 * configure.in (AC_PROG_CC_C_O): Add.
2815 (NO_MINUS_C_MINUS_O): Substitute it.
2816 (all_outputs): Add mklibgcc.
2817 * mklibgcc.in: New file.
2819 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
2821 * cppexp.c (op_t): Make an int.
2823 * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
2825 * varasm.c (initializer_constant_valid_p): Fix parenthesis.
2827 * gensupport.c (process_rtx): Fix macros used.
2829 2000-05-03 Richard Henderson <rth@cygnus.com>
2831 * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
2832 call-clobbered registers of a call.
2834 Wed May 3 12:40:53 2000 Clinton Popetz <cpopetz@cygnus.com>
2836 * gensupport.c: New file.
2837 * gensupport.h: New file.
2838 * Makefile.in (HOST_RTL): Depend on gensupport.
2839 (gensupport.o) New rule.
2840 * genattr.c: Use gensupport for reading .md files.
2841 * genattrtab.c: Ditto.
2842 * gencodes.c: Ditto.
2843 * genconfig.c: Ditto.
2845 * genextract.c: Ditto.
2846 * genflags.c: Ditto.
2847 * genopinit.c: Ditto.
2848 * genoutput.c: Ditto.
2850 * genrecog.c: Ditto.
2851 * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
2852 * md.texi (Insn Splitting): Document define_insn_and_split.
2854 Tue May 2 00:20:30 2000 Jason Eckhardt <jle@cygnus.com>
2856 * flow.c (verify_flow_info): Added two more sanity checks. The
2857 first checks that the blocks are numbered consecutively. The second
2858 checks that n_basic_blocks is actually equal to the number of
2859 basic blocks in the insn chain.
2861 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
2863 * cpplib.h: Add accessor macros for token lists.
2864 * cpplib.c, cpphash.c, cpplex.c: Use them.
2866 Wed May 3 09:29:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2868 * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
2869 memory usage if not in a function.
2870 * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
2871 return address if static.
2873 Wed May 3 13:14:49 MET DST 2000 Jan Hubicka <jh@suse.cz>
2875 * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
2876 whether address may trap.
2878 Tue May 2 23:38:37 2000 Jason Eckhardt <jle@cygnus.com>
2880 * bb-reorder (chain_reorder_blocks): Changed code to test for
2881 EDGE_FALLTHRU rather than making erroneous assumption that the
2882 first outgoing edge is the fall-through edge.
2884 Tue May 2 18:20:31 2000 Donald Lindsay <dlindsay@hound.cygnus.com>
2886 * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
2887 ABI for varargs, across all MIPS. This is incompatible because the
2888 va_list (__builtin_va_list) structure is different, so a compilation
2889 unit passing a va_list and a compilation unit being passed one, should
2890 both be compiled with the same ABI. (The old structure had two
2891 pointers, now it has three.)
2893 Tue May 2 19:18:43 2000 Jason Eckhardt <jle@cygnus.com>
2895 * bb-reorder.c (struct reorder_block_def): Remove members end,
2896 block_begin, and block_end.
2897 (REORDER_BLOCK_OLD_END): Delete.
2898 (REORDER_BLOCK_BEGIN): Delete.
2899 (REORDER_BLOCK_END): Delete.
2900 (chain_reorder_blocks): Remove dead code.
2902 Tue May 2 17:06:53 2000 Jason Eckhardt <jle@cygnus.com>
2904 * bb-reorder.c (remove_scope_notes): Check for both types of scope
2905 notes as the end of a basic block before deleting.
2907 2000-05-02 Mumit Khan <khan@xraylith.wisc.edu>
2909 * final.c (final_start_function): Fix spelling of "necessary".
2911 2000-05-02 Jason Merrill <jason@casey.cygnus.com>
2913 * toplev.c (debug_ignore_block): Return int.
2914 * dwarf2out.c (dwarf2out_ignore_block): Likewise.
2915 * toplev.h, dwarf2out.h: Adjust.
2916 * emit-rtl.c (remove_unnecessary_notes): Test return value.
2918 * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
2919 * toplev.c, final.c, rtl.h: Adjust.
2921 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
2923 * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
2924 * configure.in: Look for makeinfo in the unified tree, then
2925 for a system makeinfo which is sufficiently new.
2926 * Makefile.in: If configure says makeinfo is too old, don't
2927 build or install Info documentation.
2929 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
2931 * cpphash.c (collect_params): Fix off-by-one error.
2932 (dump_hash_helper): Dump all four macro nodetypes.
2934 2000-05-02 Jakub Jelinek <jakub@redhat.com>
2936 * cpphash.c (trad_stringify): Adjust p after stringification as
2939 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
2941 * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
2942 (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
2944 * cppfiles.c (file_cleanup): Delete.
2945 * cpphash.c (macro_cleanup): Delete.
2946 (collect_objlike_expansion, collect_funlike_expansion,
2947 macarg, scan_arguments): Remove CPP_POP case.
2949 * cpplex.c (null_cleanup): Delete.
2950 (cpp_pop_buffer): Do the work that was done in the cleanups
2951 here. Call _cpp_unwind_if_stack from here.
2952 (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
2953 cpp_scan_buffer): Run until we see CPP_EOF and the top of
2954 stack is the buffer _below_ the one we stacked.
2955 (cpp_get_token): Always pop an exhausted buffer. Return
2956 CPP_EOF unless it's a macro buffer. Don't call _cpp_handle_eof.
2957 * cpplib.c (skip_if_group): Don't call cpp_get_token to
2958 increment the line number.
2959 (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
2961 * fix-header.c (read_scan_file) [parsing getchar()]: Run until
2962 we see CPP_EOF and the top of stack is the buffer _below_ the
2964 * scan-decls.c: Likewise.
2966 2000-05-02 Andrew Haley <aph@cygnus.com>
2968 * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
2969 where this function is called for the second time on a decl that
2970 has had its section info changed in such a way as to move it out
2972 * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
2974 2000-05-01 Richard Henderson <rth@cygnus.com>
2976 * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
2977 the sequence we're moving, not to merge_bb->head.
2979 2000-05-01 Richard Henderson <rth@cygnus.com>
2981 * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
2982 reference to alpha/t-linux.
2983 (alpha*-*-linux-gnu*): Likewise.
2984 * configure: Rebuild.
2986 * calls.c (expand_call): Don't emit reg notes for a sibcall.
2988 * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
2991 * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
2993 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
2995 * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
2998 2000-05-01 Richard Henderson <rth@cygnus.com>
3000 * ifcvt.c (noce_emit_cmove): Conditionally compile call to
3001 emit_conditional_move.
3003 2000-05-01 Jakub Jelinek <jakub@redhat.com>
3005 * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
3006 as the dynamic linker.
3008 2000-05-01 Zack Weinberg <zack@wolery.cumb.org>
3010 * cppfiles.c (open_include_file): Open file in blocking mode.
3011 (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
3012 Only exclude block devices and directories.
3014 * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
3015 static. Allocate the hashnode and its string in the same
3017 (del_HASHNODE): Don't free h->name.
3018 (_cpp_lookup): If there is no entry for this string, create
3019 one, of type T_VOID.
3020 (_cpp_lookup_slot): Delete.
3021 * cpphash.h: Update prototypes.
3023 * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
3025 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
3026 do_unassert, cpp_defined): Use _cpp_lookup. Don't create a
3027 node here, just fill in the value field properly. "Delete"
3028 entries by setting the value field to T_VOID. Check for
3029 hp->type == T_VOID, not hp == NULL.
3031 * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
3032 * cpperror.c, cppexp.c, cpplex.c, cpplib.c: Don't include
3035 2000-05-01 Alexandre Oliva <aoliva@cygnus.com>
3037 * config/mn10300/mn10300.c (print_operand_address): Do not add
3040 * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
3041 adjusted by less than 256 bytes, use ret regardless of having any
3042 callee-saved register to restore.
3044 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
3046 * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
3048 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
3050 * config/i386/djgpp.h (INT_ASM_OP): Define.
3051 (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
3052 (ASM_WEAKEN_LABEL): Define.
3053 (MASK_BNU210): Define.
3054 (SUBTARGET_SWITCHES): Define.
3055 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
3056 (MAKE_DECL_ONE_ONLY): Define.
3057 (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
3059 2000-05-01 Mumit Khan <khan@xraylith.wisc.edu>
3061 * i386/cygwin.h (INT_ASM_OP): Define.
3063 Mon May 1 18:20:06 2000 Denis Chertykov <denisc@overta.ru>
3065 * config/avr/avr.c (address_cost): renamed to avr_address_cost.
3066 * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
3068 Mon May 1 17:50:44 2000 Denis Chertykov <denisc@overta.ru>
3070 * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
3071 __tmp_reg__ and __zero_reg__ initialization.
3073 2000-04-30 Richard Henderson <rth@cygnus.com>
3075 * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
3077 * ifcvt.c (noce_process_if_block): Fail the conversion if X is
3078 referenced bewteen the condition and the jump. Don't delete
3079 anything but the jump.
3081 Sun Apr 30 22:48:24 2000 Jason Eckhardt <jle@cygnus.com>
3083 * bb-reorder.c (scope_def): New struct.
3084 (scope_forest_info): New struct.
3085 (struct reorder_block_def): New member "scope".
3086 (REORDER_BLOCK_SCOPE): New macro.
3087 (relate_bbs_with_scopes): New function and prototype.
3088 (make_new_scope): Likewise.
3089 (build_scope_forest): Likewise.
3090 (remove_scope_notes): Likewise.
3091 (insert_intra_1): Likewise.
3092 (insert_intra_bb_scope_notes): Likewise.
3093 (insert_inter_bb_scope_notes): Likewise.
3094 (rebuild_scope_notes): Likewise.
3095 (free_scope_forest_1): Likewise.
3096 (free_scope_forest): Likewise.
3097 (dump_scope_forest): Likewise.
3098 (dump_scope_forest_1): Likewise.
3099 (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
3100 Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
3102 (reorder_basic_blocks): Added calls to build_scope_scope_forest
3103 and remove_scope_notes before reordering is done. Added calls to
3104 rebuild_scope_notes, free_scope_forest, and reorder_blocks after
3105 after reordering is done.
3107 2000-40-30 Bruce Korb <bkorb@gnu.org>
3109 * fixinc/inclhack.def: Added definitions needed by OSR5,
3110 removed two stale entries (defined away with OLD_CPP).
3111 * fixinc/inclhack.sh: regen
3112 * fixinc/fixincl.x: regen
3114 2000-04-30 Richard Henderson <rth@cygnus.com>
3116 * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
3117 from the last insn in the sequence.
3119 2000-04-30 Zack Weinberg <zack@wolery.cumb.org>
3121 * cpplex.c (cpp_idcmp): New function.
3122 * cpplib.h: Prototype it.
3123 * scan_decls.c (scan_decls): Use it to inspect token names.
3124 * fix-header.c (read_scan_file): Likewise. Set system_header_p on
3125 the file being run through the preprocessor.
3126 (check_macro_names): Provide length of token to cpp_defined.
3128 * Makefile.in: Remove stale warning message.
3130 * cppfiles.c (redundant_include_p): Provide length of token to
3132 * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
3133 values are unsigned int.
3134 (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
3135 (_cpp_lookup_slot): Do not calculate the hash, either.
3136 * cpphash.h: Update prototypes.
3137 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
3138 Hashes are unsigned int. Calculate hash here, pass by value
3139 to _cpp_lookup_slot.
3141 2000-04-30 Bernd Schmidt <bernds@cygnus.co.uk>
3143 * simplify-rtx.c (check_value_useless): Delete function.
3144 (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
3146 (cselib_invalidate_regno): Likewise.
3147 (cselib_invalidate_mem_1): Likewise.
3148 (references_value_p): Recognize useless values by the fact that they
3150 (discard_useless_values): Likewise.
3151 (cselib_record_set): This may turn a useless value
3154 2000-04-30 Richard Henderson <rth@cygnus.com>
3156 * config/d30v: New port.
3158 * configure.in (d30v-*): Set fp format.
3159 * configure: Rebuild.
3161 2000-04-30 Richard Henderson <rth@cygnus.com>
3163 * ifcvt.c: New file.
3164 * Makefile.in (OBJS): Add it.
3165 (ifcvt.o): New target.
3166 * jump.c (jump_optimize_1): Remove all code related to if-conversion,
3167 and conditional arithmetic.
3168 (find_insert_position): Remove.
3169 * timevar.def (TV_IFCVT, TV_IFCVT2): New.
3170 * toplev.c (DFI_ce, DFI_ce2): New.
3171 (dump_file): Add ce and ce2 dumps.
3172 (rest_of_compilation): Run if_convert a couple o times. Set
3173 cse_not_expected after cse2. Don't set no_new_pseudos until
3174 after sched1 or recompute_reg_usage.
3176 2000-04-30 Richard Henderson <rth@cygnus.com>
3178 * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
3179 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
3181 2000-04-30 Richard Henderson <rth@cygnus.com>
3183 * flow.c (struct reg_cond_life_info): New.
3184 (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
3185 (init_propagate_block_info): Initialize them.
3186 (free_propagate_block_info): Destruct them.
3187 (mark_set_1): Consider conditional life before killing a register.
3188 (mark_regno_cond_dead): New.
3189 (free_reg_cond_life_info): New.
3190 (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
3191 (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
3192 (mark_used_reg): Record conditional life.
3194 * haifa-sched.c (schedule_insns): Disable death counting
3195 sanity check for HAVE_conditional_execution.
3197 2000-04-30 Richard Henderson <rth@cygnus.com>
3199 * Makefile.in (TIMEVAR_H): New.
3200 (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
3201 (timevar.h): Remove rule.
3203 2000-04-29 Richard Henderson <rth@cygnus.com>
3205 * config/alpha/crtend.asm: Use C comments instead of #.
3206 * config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
3208 * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
3210 2000-04-29 Zack Weinberg <zack@wolery.cumb.org>
3212 * cpphash.h (enum node_type: Take out T_MCONST.
3213 (union hashval): Move into struct hashnode.
3214 (struct hashnode): Pack tighter. Remove file, line, col
3216 * cpphash.c: Constify most of the macro-definition structures.
3217 (struct definition): Replace by struct object_defn
3218 and struct funct_defn. Put file, line, column information
3219 here. All users updated to match.
3220 (_cpp_create_definition, _cpp_macroexpand): Remove special
3221 case for #define WORD OTHERWORD.
3222 * cpplib.c (do_undef): Remove T_MCONST case.
3224 * cpphash.h: Move struct reflist, struct definition, and the
3225 DEFINITION typedef to cpphash.c. Use 'struct definition *' in
3226 union hashval. _cpp_free_definition takes a HASHNODE pointer.
3227 * cpphash.c (_cpp_free_definition): Free data pointed to by
3228 MCONST, XCONST, MACRO, and FMACRO nodes properly.
3229 (_cpp_create_definition, del_HASHNODE): Just call
3230 _cpp_free_definition to clear out a hashnode.
3231 * cpplib.c (do_pragma_poison): Likewise.
3233 Sat Apr 29 12:25:17 2000 Alexandre Oliva <aoliva@cygnus.com>
3235 * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
3236 LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
3237 FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
3238 (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
3239 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
3240 REGNO_AM33_P): Redefine in terms of the new macros.
3241 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3242 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
3243 STRUCT_VALUE): Likewise.
3244 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
3245 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
3247 Sat Apr 29 01:18:45 MET DST 2000 Jan Hubicka <jh@suse.cz>
3249 * regmove.c (struct record_stack_memrefs_data): New.
3250 (record_stack_memrefs): New function.
3251 (combine_stack_adjustments_for_block): Use it.
3253 Sat Apr 29 01:15:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
3255 * calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
3256 use special_function_p to detect alloca.
3258 Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
3260 * gcc.texi: Fixes for makeinfo 4.0 --html.
3262 2000-04-28 Zack Weinberg <zack@wolery.cumb.org>
3264 * pcp.h: Delete file.
3266 2000-04-28 Kazu Hirata <kazu@hxi.com>
3268 * h8300.c (function_epilogue): Clean up flags when the last insn
3269 in a function is a barrier.
3271 2000-04-28 Chris Demetriou <cgd@sibyte.com>
3273 * configure.in (sparc-hal-solaris2*): protect [] glob from
3275 (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
3276 rather than hard-coded constants in target_cpu_default2.
3277 * configure: Regenerate.
3279 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
3281 * tree.c (get_callee_fndecl): Extract the initial value from
3284 2000-04-28 Richard Henderson <rth@cygnus.com>
3286 * varasm.c (record_constant_1): Record the CODE_LABEL when
3287 taking the address of a LABEL_REF.
3289 2000-04-28 Richard Henderson <rth@cygnus.com>
3290 Jan Hubicka <jh@suse.cz>
3292 * calls.c (combine_pending_stack_adjustment_and_call): Return the
3293 adjustment; don't do the stack adjust.
3294 (expand_call): Call compute_argument_block_size right before
3295 allocating the block; update comment; don't do alignment sanity
3296 checking for sibling call; use args_size instead of
3297 unadjusted_args_size before args_size is adjusted. Use
3298 combine_pending_stack_adjustment_and_call to compute stack adjust
3299 for must_preallocate case.
3301 * expr.c (push_block): Remove shadow `temp' in inner scope.
3303 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
3305 * toplev.c (rest_of_compilation): Call
3306 note_deferral_of_defined_inline_function even if the function
3309 2000-04-28 Scott Bambrough <scottb@netwinder.org>
3311 * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
3313 2000-04-28 Richard Henderson <rth@cygnus.com>
3315 * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
3317 2000-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3319 * timevar.c (init_timevar): DeANSIfy function definition.
3321 2000-04-27 Alex Samuel <samuel@codesourcery.com>
3323 * Makefile.in (timevar.o): Depend on flags.h.
3324 * timevar.c (unused_stack_instances): New variable.
3325 (timevar_push): Take a timevar_stack_def from
3326 unused_stack_instances if available.
3327 (timevar_pop): Push the popped timevar_stack_def onto
3328 unused_stack_instances.
3329 (TIMEVAR_ENABLE): New macro.
3330 (timevar_def): Make standalone a 1-bit field. Add field used.
3331 (get_time): Rename parameter to now. Return after clearing it if
3333 (init_timevar): Do nothing if not TIMEVAR_ENABLE.
3334 (timevar_pop): Likewise.
3335 (timevar_stop): Likewise.
3336 (timevar_push): Likewise. Mark the timing variable as used.
3337 (timevar_start): Likewise.
3338 (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
3339 timevars that were never used.
3341 2000-04-27 Mark Mitchell <mark@codesourcery.com>
3343 * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
3344 always TREE_READONLY.
3346 2000-04-27 Ulrich Drepper <drepper@cygnus.com>
3348 * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
3349 for call instruction with mode QImode.
3351 2000-04-27 Alex Samuel <samuel@codesourcery.com>
3353 * Makefile.in (OBJS): Add timevar.o.
3354 (toplev.o): Depend on timevar.h.
3355 (ggc-simple.o): Likewise.
3356 (ggc-page.o): Likewise.
3357 (timevar.o): New rule.
3358 (timevar.h): New rule.
3360 * timevar.h: New file.
3361 * timevar.c: Likewise.
3362 * timevar.def: Likewise.
3364 * toplev.h (gc_time, parse_time, varconst_time): Remove.
3365 * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
3367 (TIMEVAR): Remove macro.
3368 (gc_time, parse_time, varconst_time, integration_time, jump_time,
3369 cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
3370 flow_time, combine_time, regmove_time, sched_time,
3371 local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
3372 sched2_time, dbr_sched_time, reorder_blocks_time,
3373 rename_registers_time, shorten_branch_time, stack_reg_time,
3374 to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
3376 (compile_file): Don't initialize time variables. Call
3377 init_timevar and start TV_TOTAL timer. Call timevar_print instead
3378 of many calls to print_time.
3379 (rest_of_compilation): Add timing for reload_cse_regs.
3380 (get_run_time): Removed to timevar.c.
3381 (print_time): Likewise.
3382 (get_run_time): Implement using TV_TOTAL time variable.
3383 (print_time): Get total run time from get_run_time.
3384 * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
3385 computing elapsed time explicitly.
3386 * ggc-simple.c (ggc_collect): Likewise.
3387 (gc_time): Remove declaration.
3389 2000-04-27 Mark Mitchell <mark@codesourcery.com>
3391 * calls.c (combine_pending_stack_adjustment_and_call): New function.
3392 (expand_call): Use it.
3394 2000-04-27 Jan Hubicka <jh@suse.cz>
3396 * flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
3399 Thu Apr 27 12:47:00 2000 Alexandre Oliva <aoliva@cygnus.com>
3401 * config/mn10300/mn10300.md (movhi): Simplify. Prefer data
3404 Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
3406 * function.c (epilogue_done): Pass whole insn to record_insns.
3408 Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
3410 * cse.c (CSE_ADDRESS_COST): Remove.
3411 (find_best_addr): Add new parameter "MODE", use address_cost instead
3413 (address_cost): New.
3414 (fold_rtx): Update call of find_best_addr.
3415 * rtl.h (address_cost): Declare.
3416 * loop.c (general_induction_var): Add new parameter "MODE", use
3417 address_cost instead of ADDRESS_COST
3418 (init_loop): Use address_cost instead of ADDRESS_COST.
3419 (check_insn_for_givs): Update call of general_induction_var.
3420 (find_mem_givs): Likewise.
3421 (consec_sets_giv): Likewise.
3422 * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
3423 * i386.c (ix86_address_cost): New.
3424 * i386-protos.h (ix86_address_cost): Declare.
3426 Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
3428 * config/mn10300/mn10300.md (movqi): Simplify. Prefer data
3431 Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
3433 * expr.c (store_expr): Use clear_storage instead of direct memset
3436 Thu Apr 27 10:36:51 2000 Alexandre Oliva <aoliva@cygnus.com>
3438 * config/mn10300/mn10300.c (mn10300_address_cost): Test
3439 ASHIFT, AND and LABEL_REF.
3441 Thu Apr 27 15:08:46 MET DST 2000 Jan Hubicka <jh@suse.cz>
3443 * invoke.texi (-foptimize-sibling-calls): Fix.
3445 Thu Apr 27 14:54:22 MET DST 2000 Jan Hubicka <jh@suse.cz>
3447 * loop.c (load_mems) Don't use hard registers for the hoisting.
3449 * unroll.c (unroll_loop): Avoid overflow in the n_iterations
3450 calculation; rename const_equiv array in the preconditioning code
3451 from loop_unroll to loop_unroll_precondition
3453 2000-04-27 Richard Henderson <rth@cygnus.com>
3455 * flow.c (struct propagate_block_info): Remove new_dead, new_live;
3457 (propagate_one_insn): Clear it. Don't update reg_live here.
3458 (init_propagate_block_info): Update for pbi member changes.
3459 (free_propagate_block_info): Likewise.
3460 (mark_set_1): Know that zero_extract, sign_extract, and
3461 strict_low_part don't kill their argument. Alter hard subregs.
3462 Update new_set for non-CLOBBER sets. Update reg_live.
3463 (find_auto_inc): Update reg_live, not new_dead.
3464 (mark_used_reg): Update reg_live, not new_live. Examine new_set
3465 to determine if the reg in question was set this insn. Only update
3466 reg info with PROP_REG_INFO.
3468 2000-04-26 Richard Henderson <rth@cygnus.com>
3470 * flow.c (allocate_reg_life_data): Set max_regno here ...
3471 (life_analysis): ... not here.
3473 * flow.c (calculate_global_regs_live): Force stack pointer
3476 2000-04-26 Richard Henderson <rth@cygnus.com>
3478 * jump.c (redirect_exp_1): Rework from old redirect_exp. Never
3479 commit change group changes.
3480 (invert_exp_1): Similarly.
3481 (redirect_exp, invert_exp): Use them.
3482 (redirect_jump_1): New.
3483 (invert_jump_1): New.
3484 (jump_optimize_1): Remove code subsumed by condexec.c.
3485 * rtl.h (invert_jump_1, redirect_jump_1): Declare.
3487 2000-04-26 Richard Henderson <rth@cygnus.com>
3489 * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
3491 * genconfig.c (main): Set all HAVE_foo to 1.
3493 * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
3495 2000-04-26 Alex Samuel <samuel@codesourcery.com>
3497 * invoke.texi: Document -fssa flag.
3499 2000-04-26 Richard Henderson <rth@cygnus.com>
3501 * flow.c (count_reg_sets_1): Remove.
3502 (count_reg_sets, count_reg_references): Remove.
3503 (recompute_reg_usage): Implement with update_life_info.
3504 Reallocate life data.
3506 2000-04-26 Richard Henderson <rth@cygnus.com>
3508 * flow.c (update_life_info): Consider blocks null to mean the
3510 (calculate_global_regs_live): Likewise.
3511 (life_analysis): Do that instead of collecting all_blocks.
3513 2000-04-26 Richard Henderson <rth@cygnus.com>
3515 * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
3516 a still-valid conditional jump.
3518 2000-04-26 Richard Henderson <rth@cygnus.com>
3520 * jump.c (invert_jump): Always invert REG_BR_PROB. Do it correctly.
3522 * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
3523 * flow.c (calculate_loop_depth): Remove.
3524 * output.h (calculate_loop_depth): Don't declare.
3525 * toplev.c (rest_of_compilation): Expand calculate_loop_depth
3526 inline; run estimate_probability at the same time.
3528 2000-04-26 Neil Booth <NeilB@earthling.net>
3530 * cpplib.h: "~=" is not a single pp-token.
3531 * cpplex.c: Correct commentary.
3533 2000-04-26 Richard Henderson <rth@cygnus.com>
3535 * flow.c (mark_set_1): New arguments code and flags; update all
3536 callers. Track regno_first and regno_last; do HARD_REGNO_NREGS
3537 test in one place. Tidy flags tests. Don't bias REG_N_REFS by
3538 loop_depth when optimizing for size. Do new_dead update after
3539 emitting REG_UNUSED notes. Merge mark_set_reg code.
3540 (mark_set_reg): Remove.
3541 (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
3542 arrange to not emit REG_UNUSED notes.
3544 2000-04-26 Richard Henderson <rth@cygnus.com>
3546 * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
3547 * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
3549 2000-04-26 Richard Henderson <rth@cygnus.com>
3551 * flow.c (propagate_one_insn): Break out from propagate_block.
3552 (init_propagate_block_info): Likewise.
3553 (free_propagate_block_info): Likewise.
3554 (propagate_block): Use them. Export.
3555 * basic-block.h: Declare them all.
3557 2000-04-26 Richard Henderson <rth@cygnus.com>
3559 * basic-block.h (life_analysis): Declare here ...
3560 * output.h: ... not here.
3561 * flow.c (life_analysis): Remove nregs parameter; replace
3562 remove_dead_code with flags. Remove ssa dead code check.
3563 Only init alias analysis if we'll use it.
3564 * reg-stack.c (reg_to_stack): Update life_analysis arguments.
3565 * ssa.c (convert_to_ssa): Likewise.
3566 (convert_from_ssa): Likewise.
3567 * toplev.c (rest_of_compilation): Likewise.
3569 2000-04-26 Richard Henderson <rth@cygnus.com>
3571 * flow.c (flow_delete_block): Rename from delete_block. Export.
3572 * basic-block.h (flow_delete_block): Declare.
3574 2000-04-26 David S. Miller <davem@redhat.com>
3576 * optabs.c (emit_libcall_block): Verify insns with INSN_P before
3577 taking a PATTERN of it.
3579 2000-04-26 <NeilB@earthling.net>
3581 * cpplex.c (spell_other, spell_char): Remove.
3583 (token_spelling, trigraph_map): Use unsigned chars.
3584 (_cpp_lex_line): Tidy up the switch statement.
3585 * cpplib.h: Implement spell_char with spell_string.
3588 2000-04-26 <RodneyBrown@pmsc.com>
3590 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3591 * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3593 2000-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3595 * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
3596 reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
3597 dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
3598 dwarf2out_return_save, dwarf2out_return_reg,
3599 dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
3600 add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
3601 gen_compile_unit_die, dwarf2out_init): Constify a char*.
3603 * dwarf2out.h (dwarf2out_init): Likewise.
3605 * dwarfout.c (filename_entry, primary_filename, last_filename,
3606 type_tag, output_compile_unit_die, dwarfout_init): Likewise.
3608 * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
3609 dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
3610 dwarf2out_return_reg): Likewise.
3612 2000-04-26 Andreas Jaeger <aj@suse.de>
3614 * extend.texi (Function Attributes): Fix description of pure
3617 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
3619 * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
3620 before calling rest_of_compilation.
3622 2000-04-26 Andreas Jaeger <aj@suse.de>
3624 * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
3627 2000-04-25 Richard Henderson <rth@cygnus.com>
3629 * cse.c (cse_insn): Emit barrier after unconditional jump.
3631 * calls.c (expand_call): Disable tail call generation once
3632 rtx_equal_function_value_matters is false.
3634 * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
3637 2000-04-25 Jason Merrill <jason@casey.cygnus.com>
3639 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
3641 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
3643 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
3644 is the primary DIE for a member function.
3645 (gen_decl_die): Call set_decl_origin_self here.
3646 * dwarfout.c (output_decl): And here.
3647 * integrate.c (output_inline_function): Not here.
3648 Don't clear DECL_INLINE until after calling rest_of_compilation.
3649 (set_decl_origin_self): No longer static.
3650 * tree.h: Add prototype.
3651 * toplev.c (note_deferral_of_defined_inline_function): Only write
3652 out abstract instance for actual inlines.
3654 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
3656 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
3657 EXTENDED_REGS only if TARGET_AM33.
3658 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
3659 SP_REGS to register allocation and reloading unless absolutely
3661 (movsi3): Remove special-case of adding non-constants to SP.
3663 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3665 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
3666 INCLUDES to search and does not provide any of its own. Also it
3667 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
3668 parameters. Also it does not call AC_DEFINE.
3669 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
3670 AC_DEFINE and provides for automatic entries for autoheader.
3671 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
3673 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
3674 so we can pass -I flags and include gansidecl.h/system.h in this
3677 * acconfig.h: Delete all NEED_DECLARATION_* entries.
3679 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3681 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3682 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3683 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
3685 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3686 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3687 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
3688 for these macros. Clean up spacing and linewraps.
3690 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
3692 * calls.c (expand_call): Use get_callee_fndecl.
3694 * print-tree.c (print_node): Print the chain of an _EXPR.
3696 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
3697 Jim Wilson <wilson@cygnus.com>
3698 Andrew Haley <aph@cygnus.com>
3700 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
3701 and gp save/restore problems.
3702 * config/ia64/crtend.asm: Add IA-64 unwind support.
3703 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
3704 in fr_pad_size calculation.
3705 (save_restore_insns): Move PR save area. Correct uses of
3706 RTX_FRAME_RELATED_P.
3707 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
3708 (ia64_expand_epilogue): Add eh_epilogue support.
3709 (ia64_function_prologue): Emit .prologue directive.
3710 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
3711 (ia64_override_options): Set init_machine_status and
3712 mark_machine_status.
3713 (rtx_needs_barrier): Handle bsp reads and writes.
3714 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
3715 New static variables.
3716 (process_set, process_for_unwind_directive): New functions.
3717 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
3718 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
3719 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
3721 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
3722 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
3723 (struct machine_function): Define.
3724 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
3726 2000-04-25 Bruce Korb <bkorb@gnu.org>
3728 * fixinc/Makefile.in: make the removal of old programs more
3730 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
3731 install-bin and install-sh
3733 2000-04-25 Nick Clifton <nickc@cygnus.com>
3735 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
3736 defined, define to return zero.
3737 (function_cannot_inline_p): If a function has any target
3738 specific attributes, then use the macro
3739 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
3740 whether it can be inlined. If it cannot, issue a suitable
3743 * tm.texi: Add a new node 'Inlining' to document the new macro
3744 FUNCTION_ATTRIBUTE_INLINABLE_P.
3746 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
3748 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
3751 2000-04-25 Neil Booth <NeilB@earthling.net>
3753 Restore previous patch, plus the following fixes:
3755 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
3756 flags, not CPP_OPEN_PAREN.
3757 * cpplex.c (expand_token_space, init_token_list,
3758 cpp_free_token_list): Put the dummy token at list->tokens[-1].
3759 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
3761 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3763 * config/i386/freebsd.h (INT_ASM_OP): Define.
3765 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
3767 * loop.c (strength_reduce): Fix typo in the last checkin.
3769 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3771 * stor-layout.c (finalize_record_size): Simplify to use existing
3773 (compute_record_mode): No longer static.
3774 * tree.h (compute_record_mode): New declaration.
3776 2000-04-25 Neil Booth <NeilB@earthling.net>
3778 * Revert my patch below until cause of build failures
3781 2000-04-25 Richard Henderson <rth@cygnus.com>
3783 * combine.c (combine_instructions): Add missing argument
3786 * toplev.c (rest_of_compilation): Delay sibcall optimization
3787 until after emit_eh_context.
3789 2000-04-24 Nick Clifton <nickc@redhat.com>
3791 * combine.c (combine_instructions): Do not try to combine a
3792 sequence of insns when the second insn has been replaced by a
3795 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
3797 * gcc.c (load_specs): New static function.
3798 (read_specs): Use it.
3800 * gcc.c (lookup_compiler): Make multiple passes for case
3801 insensitive filesystems.
3803 2000-04-24 Neil Booth <NeilB@earthling.net>
3805 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
3806 * cpphash.h (_cpp_check_directive): new.
3807 * cpplex.c (handle_newline, cpp_free_token_list,
3808 init_trigraph_map, trigraph_ok, trigraph_replace,
3809 backslash_start, skip_block_comment, skip_line_comment,
3810 skip_whitespace, parse_name, parse_number, parse_string,
3811 copy_comment, _cpp_lex_line, spell_char, spell_string,
3812 spell_comment, spell_name, spell_other, _cpp_lex_file,
3813 _cpp_output_list): new.
3814 (expand_name_space): take length argument.
3815 (init_token_list): add comment list initialisation.
3816 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
3817 instead of HSPACE_BEFORE.
3819 * cpplib.c (_cpp_check_directive): new
3820 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
3821 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
3822 (HSPACE_BEFORE): delete.
3823 (TTYPE_TABLE): rearrange.
3824 (struct cpp_toklist): update.
3826 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3828 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
3829 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
3830 argument form of AC_DEFINE.
3832 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
3833 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
3834 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
3835 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
3836 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
3838 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
3840 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3842 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
3843 deduced.h): Use -isystem, not -I, for including system headers.
3845 2000-04-24 Nick Clifton <nickc@cygnus.com>
3847 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
3848 the source register is the frame pointer or arg pointer.
3849 (addsi3_small_int): Disallow if source register is the frame
3850 pointer or arg pointer.
3852 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3854 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
3855 call to AC_MSG_RESULT.
3857 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3859 * invoke.texi: Correct grammatical errors, document
3860 -fno-gnu-keywords as identical to -fno-asm for C++.
3862 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3864 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
3865 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
3866 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
3867 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
3868 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
3870 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
3871 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
3872 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
3873 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
3876 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
3878 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
3879 (pop_alignment): Likewise.
3880 (handle_pragma_token): Likewise.
3882 2000-04-24 Robert Lipe <robertlipe@usa.net>
3884 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
3886 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
3888 * combine.c (try_combine): Update reg_nonzero_bits of
3889 newi2pat before newpat.
3891 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
3893 * loop.c (strength_reduce): Simplify test to INSN_P.
3894 (record_giv): Attempt to simplify the add value, use CONSTANT_P
3895 expressions instead of CONST_INT.
3896 (express_from_1): Likewise.
3898 2000-04-24 Mark Mitchell <mark@codesourcery.com>
3900 * regs.h (reg_n_max): Don't declare.
3901 * flow.c (reg_n_max): Don't define.
3902 * regclass.c (renumber): Don't initialize to zero.
3903 (regno_allocated): Likewise.
3904 (reg_n_max): Define.
3905 (allocate_reg_info): Don't initialize unnecessarily.
3907 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
3909 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
3910 and blockage_p in the newly allocated attribute.
3912 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
3914 * config/mn10300/mn10300.md (addsi): `inc4' on address
3915 registers does not modify cc, but `inc' on an extended
3918 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
3920 * reload.c (find_equiv_reg): Checks all valueno regs
3921 as a reload_reg_p regs.
3923 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
3925 * cpphash.c (collect_objlike_expansion): Add sanity check.
3926 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
3927 the buffer is the empty string, return. Mark __DATE__ and
3928 __TIME__ as XCONST nodes, not MCONST.
3929 (_cpp_macroexpand): Avoid pushing an empty buffer.
3930 (funlike_macroexpand): Don't pop token_buffer here.
3932 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
3934 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
3935 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
3936 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
3937 (REGNO_OK_FOR_BASE_P): Define in terms of them.
3938 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
3939 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
3940 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
3942 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
3944 * loop.c (simplify_giv_expr): Be more agressive on simplifying
3947 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
3949 * cpphash.h (struct definition): Move file, line, col members...
3950 (struct hashnode): ... here. Also add 'disabled' flag.
3951 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
3952 T_IDENTITY. Remove T_DISABLED.
3955 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
3956 (collect_expansion): Split into collect_objlike_expansion and
3957 collect_funlike_expansion.
3958 (_cpp_macroexpand): Split out scan_arguments, stringify, and
3959 funlike_macroexpand.
3960 (_cpp_compare_defs): Rename compare_defs, make static.
3961 (_cpp_make_hashnode): Initialize hp->disabled.
3962 (macro_cleanup): Adjust for new token types. Clear
3964 (_cpp_create_definition): Move code here to determine what
3965 sort of macro it is, and code to check for redefinitions, from
3966 do_define. Implement a few simple cases without creating a
3968 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
3969 Handle the simple cases.
3970 (push_macro_expansion): Set buf->has_escapes and hp->disabled
3973 * cppinit.c (builtin_array): Change MCONST to XCONST
3975 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
3976 fix check for disabled and function-like macros.
3977 * cpplib.c (do_define): Move most logic to
3978 _cpp_create_definition.
3979 (do_undef): Handle new special token types.
3981 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
3983 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
3984 of CONSTANT_P for mult_val; always use validate_change to update insn.
3986 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
3988 * cpphash.c (trad_stringify, add_pat): New functions.
3989 (collect_expansion): Restore support for -traditional syntax.
3990 Use trad_stringify and add_pat.
3991 (_cpp_macroexpand): Restore support for -traditional semantics.
3992 * cpplex.c (_cpp_scan_line): Don't change space_before if we
3993 get a COMMENT token.
3994 (_cpp_lex_token): Provide COMMENT tokens to caller if
3995 traditional and parsing_define_directive.
3996 (skip_comment): Warn about // comments if -Wtraditional.
3997 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
3999 (do_undef): Don't warn about undefining EMPTY nodes.
4001 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
4003 * loop.c (strength_reduce): Fix biv removal code.
4005 2000-04-22 Richard Henderson <rth@cygnus.com>
4007 * predict.c (estimate_probability): Examine both sides of
4008 a branch for no exits. Use 90% not 50% for predict taken.
4009 Reorg for one copy of note generation code.
4011 2000-04-22 Richard Henderson <rth@cygnus.com>
4013 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
4015 2000-04-22 Richard Henderson <rth@cygnus.com>
4017 * diagnostic.c (init_output_buffer): Don't initialize format_args.
4018 (output_clear): Likewise.
4019 (output_printf): Use va_copy.
4020 (vline_wrapper_message_with_location): Likewise.
4021 (v_message_with_decl): Likewise.
4022 (line_wrapper_printf): VA_START infor buffer.format_args directly.
4023 * system.h (va_copy): Provide default implementation.
4025 2000-04-22 Richard Henderson <rth@cygnus.com>
4027 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
4028 the collected condition is not a constant.
4030 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
4032 * diagnostic.h: New file.
4034 * Makefile.in (diagnostic.o): Depends on diagnostic.h
4036 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
4037 various function prototypes.
4038 (diagnostic.h): #include.
4039 (struct output_buffer): Move into diagnostic.h.
4040 (get_output_prefix): Rename to output_get_prefix. Export.
4041 (init_output_buffer): Export. Break out. Ajust intialization.
4042 (output_space_left, output_append): Export.
4043 (output_newline): Rename to output_add_newline. Export.
4044 (output_clear): Nullify additional output_buffer fields.
4045 (output_puts): Rename to output_add_string. Export.
4046 (dump_output): Rename to output_flush_on. Export.
4047 (build_location_prefix): Constify return-type.
4048 (emit_output_prefix): Rename to output_emit_prefix. Export.
4049 (set_real_maximum_length): New function.
4050 (output_set_maximum_length): Ditto
4051 (output_clear): Ditto.
4052 (output_add_character): Ditto.
4053 (output_add_integer): Ditto.
4054 (output_add_space): Ditto.
4055 (output_format): Ditto.
4056 (output_printf): Adjust buffer initialization.
4057 (vline_wrapper_message_with_location): Ditto.
4058 (v_message_with_decl): Ditto. Adjust call to output_puts
4059 and get_output_prefix.
4060 (default_print_error_function): Adjust buffer intialization.
4062 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4064 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
4067 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
4069 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
4072 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
4074 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
4075 accurate data about SP moves.
4077 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
4079 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
4080 aliases to AM33 registers.
4082 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
4084 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
4085 to all EXTENDED bitmaps.
4087 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
4089 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
4090 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
4091 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
4093 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
4095 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
4096 the operand is not constant.
4098 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
4100 * reload.c (find_equiv_reg): Checks all valueno and regno regs
4101 as a call-clobbered regs.
4103 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4105 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
4107 * rtl.def: Update comment.
4108 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
4109 * integrate.c (expand_inline_function): Likewise.
4110 * profile.c (branch_prob): Likewise.
4111 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
4112 * print-rtl.c (print_rtx): Likewise.
4113 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
4114 (reemit_notes): Likewise; also use enum insn_note.
4116 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
4117 (place_field): Properly compute know and actual alignment.
4119 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
4122 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
4125 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
4127 * cpphash.c (struct arg, struct arglist): Const-ify strings.
4128 (warn_trad_stringify, duplicate_arg_p): New helper functions.
4129 (collect_expansion): Rewrite to scan over a token list.
4130 Remove -traditional support.
4131 (collect_formal_parameters): Rename to collect_params; rewrite
4132 to scan over a token list.
4133 (_cpp_create_definition): Adjust to scan a token list.
4134 (_cpp_macroexpand): Remove -traditional support.
4135 (_cpp_compare_defs): Whitespace is now canonicalized.
4136 (comp_def_part): Delete function.
4138 * cpphash.h: Update prototypes.
4139 * cpplex.c (init_token_list): Don't set lineno if there is no
4141 (pedantic_whitespace): New function.
4142 (_cpp_scan_line): Mark tokens that had hspace before. Don't
4143 consume a newline. Use pedantic_whitespace.
4144 (_cpp_lex_token): Remove support for -traditional macros.
4145 (_cpp_get_define_token): Delete.
4146 (_cpp_get_directive_token): Do the real work here. Use
4147 pedantic_whitespace.
4148 (_cpp_init_input_buffer): Initialize pfile->directbuf.
4150 * cpplib.c (get_macro_name): Delete.
4151 (do_define): Read the entire line into pfile->directbuf, then
4152 feed the token list to _cpp_create_definition.
4153 * cpplib.h (HSPACE_BEFORE): new define.
4154 (struct cpp_reader): Add a toklist member, "directbuf".
4156 * predict.c (estimate_probability): New heuristic: if a jump
4157 branches around a block with no successors, predict it taken.
4158 Disentangle control flow.
4160 2000-04-20 Richard Henderson <rth@cygnus.com>
4162 * loop.c (emit_iv_add_mult): Revert last change.
4164 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
4166 * cpplib.h (enum cpp_ttype): Add token types for all
4167 punctuators. Distinguish pp-numbers from valid C numbers.
4168 Give some tokens better names. Initialize from macro.
4169 (struct cpp_name, cpp_token, cpp_toklist): New data
4172 * cpplex.c (bump_column, expand_name_space,
4173 expand_token_space, init_token_list, cpp_output_list,
4174 _cpp_scan_line): New functions.
4175 (output_line_command): Add third argument, new line number.
4176 * cpphash.h: Update prototypes.
4177 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
4180 2000-04-20 Richard Henderson <rth@cygnus.com>
4182 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
4184 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
4186 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
4189 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
4191 * loop.c (emit_iv_add_mult): Simplify it's input and emit
4192 REG_EQUAL note explaining the calculated value.
4194 * calls.c (expand_call): Avoid unnecesary precalculation
4195 and outgoing parameters space guarding for sibling calls.
4196 (store_one_arg): Likewise.
4198 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4200 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
4201 (rest_of_compilation): Write sibling dump file and account
4202 for time as jump time.
4203 * invoke.texi: Update documentation on dump flags.
4205 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
4207 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
4209 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
4211 * cpphash.c (special_symbol): Represent an empty macro with
4212 "\r \r " not just "\r ".
4213 (_cpp_macroexpand): Correct condition for the foo ( ) special
4215 (unsafe_chars): Handle EOF as second argument.
4216 (push_macro_expansion): Simplify test for removing escape at
4217 end. Do not trim both escapes if there is no text in between.
4219 2000-04-19 Jim Blandy <jimb@redhat.com>
4221 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
4222 of PTR_SIZE, when appropriate.
4224 2000-04-19 Mark Mitchell <mark@codesourcery.com>
4226 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
4227 (USE_ENUM_BITFIELDS): Fix typo.
4229 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4231 * stor-layout.c (place_field): Set rli->offset_align properly.
4233 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4235 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
4236 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
4237 PARM_BOUNDARY): Remove unnecessary casts.
4239 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
4241 * calls.c (precompute_arguments): Remove must_preallocate and
4243 (expand_call): Update call of precompute_arguments.
4245 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
4246 check_insn_for_givs): Break out from ...
4247 (strength_reduce) ... here; use for_every_insn_in_loop to call
4248 check_insn_for_givs.
4249 * loop.h (for_every_insn_in_loop): Declare.
4250 (loop_insn_callback): New type.
4252 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
4254 * cpplib.c (do_pragma_poison): Strings in the token buffer are
4257 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
4259 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
4262 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
4264 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
4266 * configure.in: Delete --disable-cpplib option and all
4267 references to cpp_main.
4268 * configure: Regenerate.
4269 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
4270 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
4271 cccp.o, cccp, or cppmain. Link cppmain.o straight to
4272 cpp$(exeext). Add --no-headers to makeinfo command line when
4273 generating INSTALL. Install and uninstall cpp.1 manpage, not
4275 * install.texi: Delete all references to cexp.y/cexp.c.
4276 Delete ancient instructions for compiling GCC on 3b1.
4277 * INSTALL: Regenerate.
4279 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
4280 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
4281 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
4283 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
4284 which is no longer tested anywhere.
4286 * cppinit.c (handle_option): Don't run error message through
4289 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4291 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
4292 * cpperror.c (hashtab.h): Now include.
4293 * cppexp.c (hashtab.h): Likewise.
4294 * cpplex.c (hashtab.h): Likewise.
4295 * cppfiles.c (hashtab.h): Likewise.
4296 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
4297 to htab_find_slot_with_hash.
4298 * cpphash.c (hashtab.h): Now include.
4299 (_cpp_lookup_slot): INSERT is now enum insert_option.
4300 * cpphash.h (_cpp_lookup_slot): Likewise.
4301 * cppinit.c (hashtab.h): Include earlier.
4302 (initialize_builtins): Pass enum to htab_find_slot.
4303 * cpplib.c (hashtab.h): Now include.
4304 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
4305 (do_pragma_poison, do_assert): Likewise.
4306 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
4307 htab_find_slot_with_hash.
4308 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
4309 * tree.c (type_hash_add): Likewise.
4310 (build1): Minor cleanup.
4312 * ggc-common.c: Add missing blanks.
4313 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
4314 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
4316 * stmt.c (mark_case_node): New function.
4317 (mark_case_nesting): Call it.
4319 * expmed.c (emit_store_flag): If comparing two-word integer
4320 with zero, can optimize NE, EQ, GE, and LT.
4322 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
4323 * conflict.c: Minor cleanups.
4324 * optabs.c: Add blank line
4325 * simplify-rtx.c: Minor cleanups.
4327 2000-04-18 Stan Cox <scox@cygnus.com>
4329 * gengenrtl.c (genlegend): Fix misspelling.
4331 2000-04-18 Robert Lipe <robertlipe@usa.net>
4333 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
4334 bitfields of the host compiler are not signed quantities.
4335 * config.in: Regenerate.
4336 * configure: Regenerate.
4337 * system.h (USE_ENUM_BITFIELDS): Added.
4338 (ENUM_BITFIELDS): Added.
4339 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
4340 (SHORT_ENUM_BUG): Deleted.
4341 * tree.h (tree_common): Members `code', `mode', `built_in_class',
4343 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
4344 (CODE_FIELD_BUG): Likewise.
4345 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
4347 * config/m68k/x-ccur (X_CFLAGS): Likewise.
4349 2000-04-18 Mark Mitchell <mark@codesourcery.com>
4351 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
4354 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
4356 * cppexp.c (lex): Don't assume tokens are NUL terminated.
4357 * cpplib.c (do_include, do_import, do_include_next,
4358 read_line_number, detect_if_not_defined): Likewise.
4359 * cpphash.c (collect_expansion): Likewise.
4360 (special_symbol, _cpp_macroexpand): Check return from
4362 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
4363 macros. Delete all uses.
4365 * gcc.dg/cpp-mi.c: Add two more test cases.
4366 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
4368 2000-04-17 Richard Henderson <rth@cygnus.com>
4370 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
4371 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
4373 2000-04-17 Mark Mitchell <mark@codesourcery.com>
4375 * function.c (expand_function_start): Use hard_function_value to
4376 compute the RTL to use for DECL_RESULT.
4378 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
4380 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
4381 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4382 x86_memory_mismatch_stall): New global variables.
4383 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
4384 alloved; fix load penalties for Athlon.
4385 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4386 x86_memory_mismatch_stall): Declare.
4387 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
4388 TARGET_MEMORY_MISMATCH_STALL): New.
4389 * i386.md (athlon scheduling parameters): Fix latencies according to
4390 Athlon Optimization Manual.
4391 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
4393 (fsqrt instruction patterns): Set athlon_decode to direct.
4394 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
4395 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
4396 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
4397 and TARGET_PARTIAL_REGISTER_STALL machines.
4398 (pushdf_nointeger): New pattern.
4399 (pushdf_integer): Rename from pushdf.
4400 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
4401 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
4403 2000-04-17 Richard Henderson <rth@cygnus.com>
4405 * loop.c (canonicalize_condition): Add WANT_REG argument.
4406 Stop the search if we match it.
4407 * expr.h (canonicalize_condition): Update decl.
4408 * predict.c (expected_value_to_br_prob): Use it. Track last
4409 expected value note.
4410 (find_expected_value): Remove.
4412 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
4414 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
4416 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
4417 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
4419 * configure.in: Call AC_FUNC_MMAP_FILE.
4420 * configure: Regenerate.
4421 * config.in: Regenerate.
4423 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
4424 * fixinc/fixincl.c: Likewise.
4426 2000-04-17 Richard Henderson <rth@cygnus.com>
4428 * builtins.c (expand_builtin_expect): New.
4429 (expand_builtin): Call it.
4430 * builtins.def (BUILT_IN_EXPECT): New.
4431 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
4432 * extend.texi: Document it.
4434 * predict.c (expected_value_to_br_prob): New.
4435 (find_expected_value): New.
4436 * basic-block.h (expected_value_to_br_prob): Declare.
4437 * toplev.c (rest_of_compilation): Invoke it.
4439 * rtl.h (NOTE_EXPECTED_VALUE): New.
4440 (NOTE_INSN_EXPECTED_VALUE): New.
4441 * rtl.c (note_insn_name): Update.
4442 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
4443 cases; handle NOTE_INSN_EXPECTED_VALUE.
4445 2000-04-17 Jakub Jelinek <jakub@redhat.com>
4447 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
4448 leaf sibcall delay slot if flag_pic.
4449 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
4451 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4453 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
4455 * fixproto: If fix-header fails, exit with an error.
4457 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
4459 * cse.c (struct check_depdendence_data): New.
4460 (check_dependence): New function.
4461 (invalidate): Use check_depdenence.
4463 2000-04-16 Mark Mitchell <mark@codesourcery.com>
4465 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
4466 UNITS_PER_WORD is unsigned.
4468 * tree.h (struct tree_common): Remove misleading comment.
4470 2000-04-16 Dave Pitts <dpitts@cozx.com>
4472 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
4473 message in quotes. Otherwise, IBM's make program treats the '#' as the
4474 start of a comment and ignores the remainder of the line.
4476 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
4478 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
4479 * cexp.y (initialize_random_junk): Likewise.
4480 * cppfiles.c (find_include_file): Cast alloca return value.
4481 * cppinit.c (initialize_standard_includes): Likewise.
4482 * cpplib.c (cpp_define, cpp_undef): Likewise.
4483 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
4484 * final.c (output_asm_insn): Allow for holes in EBCDIC.
4485 * fold-const.c (CHARMASK): New.
4486 (real_hex_to_f): Use it.
4487 * real.c (CHARMASK): New.
4488 (etoasc, asctoeg): Use it.
4489 (asctoeg): EBCDIC lower case characters preceed upper case.
4491 * i370.c (mvs_add_label): Change spacing for coding conventions.
4492 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
4493 outputing case vectors.
4494 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
4495 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
4496 since vector in in the data CSECT.
4497 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
4498 * i370.md (Many patterns): Put the length in the XL directives.
4499 (movdi): Put back STM and MVC in definition.
4500 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
4501 pattern using the TCA.
4502 * oe.h (CPP_SPEC): Added to allow trigraphs.
4503 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
4504 not support the "long long" type.
4506 2000-04-16 Mark Mitchell <mark@codesourcery.com>
4508 * config/mips/mips-protos.h (mips_legitimate_address_p): New
4510 (mips_reg_mode_ok_for_base_p): Likewise.
4511 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
4512 (REG_OK_FOR_INDEX_P): Define unconditionally.
4513 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
4514 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
4515 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
4516 that GET_MODE_SIZE is unsigned.
4517 (mips_reg_mode_ok_for_base_p): Define.
4518 (mips_legitimate_address_p): Likewise. Adjust now
4519 that GET_MODE_SIZE is unsigned.
4520 (block_move_loop): Make the number of bytes unsigned.
4521 (expand_block_move): Likewise.
4522 (function_arg): Make the loop counter unsigned to match the
4525 2000-04-16 Richard Henderson <rth@cygnus.com>
4527 * rtl.h (enum insn_note): New enumeration. Subsume
4528 NOTE_INSN_DELETED and friends.
4529 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
4530 * rtl.c (note_insn_name): Tweak string order.
4532 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
4534 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
4537 * cpplex.c (output_line_command): Remove debugging prints.
4538 (cpp_output_tokens): Don't write out a zero-length buffer or
4539 try to see if it has a newline in it.
4540 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
4541 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
4542 the end of the loop. Use memmove. Don't read past the end of
4543 the buffer. Remove trailing newlines from error messages.
4545 2004-04-16 Neil Booth <NeilB@earthling.net>
4547 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
4548 * cpplib.c: Add new syntax flags to directive table, and
4551 2000-04-15 Ulrich Drepper <drepper@redhat.com>
4553 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
4556 2000-04-15 David Edelsohn <edelsohn@gnu.org>
4558 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
4559 * haifa-sched.c: Update -fsched-verbose comments to use "=".
4561 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4563 * Makefile.in (ggc-page.o): Now includes toplev.h.
4564 * ggc-page.c (toplev.h): Now included.
4565 (gc_time): Remove declaration.
4566 (ggc_collect): TIME now long.
4567 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
4569 * toplev.h (gc_time, parse_time, gc_time): New declarations.
4571 * toplev.c: Make *_time variable long to reduce chance of overflow.
4572 (TIMEVAR): Likewise for `otime'.
4573 (print_time): Arg is now long; compute percentage in FP and round.
4574 * toplev.h (print_time): Arg is long.
4576 * tree.c: Minor whitespace changes.
4578 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
4579 * configure: Rebuilt.
4580 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
4581 (__fixunsxfDI): Renamed from __fixunsxfdi.
4582 (__fixunsdfDI): Renamed from __fixunsdfdi.
4583 (__fixunssfDI): Renamed from __fixunssfdi.
4584 (__floatdisf): Use proper type in REP_BIT macro.
4585 (__fixunsxfSI): Renamed from __fixunsxfsi.
4586 (__fixunsdfSI): Renamed from __fixunsdfsi.
4587 (__fixunssfSI): Renamed from __fixunssfsi.
4588 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
4589 Change location of macros and upper-case some names as above.
4590 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
4591 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
4593 * varasm.c (assemble_variable): Add cast to remove warning.
4594 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
4596 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
4597 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
4598 region number to -1.
4600 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
4602 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
4603 call unshare_all_rtl.
4605 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
4607 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
4609 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
4610 Use .s1 not .s0 for all FP instructions.
4612 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
4614 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
4616 (safe_fwrite, output_line_command): New static functions.
4617 (cpp_expand_to_buffer): Now private to cpplib.
4618 (cpp_scan_buffer): Take a printer.
4620 * cpphash.h: Update prototypes.
4621 * cpplib.h: Update prototypes.
4623 (cpp_buffer): Remove last_nominal_fname.
4624 (cpp_reader): Remove lineno.
4626 * cppmain.c: Use a cpp_printer.
4627 * fix-header.c: No need to inhibit line commands. Call
4628 cpp_start_read with no printer.
4630 * cpperror.c (cpp_notice_from_errno): Provide default name.
4631 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
4632 (find_include_file, cpp_read_file): Use make_IHASH.
4633 (file_cleanup): Set control_macro and clear
4634 input_stack_listing_current here.
4635 (_cpp_execute_include): Don't output entering-file marker.
4636 * cpphash.c (special_symbol): Look for the line number in the
4637 buffer, not the reader.
4638 (_cpp_macroexpand): No need to disable line commands.
4639 (_cpp_dump_definition): No need to generate line commands.
4640 (dump_hash_helper): Remove excess newline from output.
4641 * cppinit.c (dump_special_to_buffer): No need to generate line
4643 (cpp_printer_init): New.
4644 (cpp_start_read): Take a printer, and start it up if it's not
4645 NULL. No need to generate line commands.
4646 (cpp_finish): Expect no buffers stacked at all. Take a
4647 printer argument, and flush the output buffer if it's not
4649 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
4650 Don't put two hashes at the beginning of an assertion.
4651 (cpp_get_token): Don't increment pfile->lineno or emit line
4652 commands here. Return EOF if there's no buffer when we get
4654 * cpplib.c (do_define, skip_if_group):
4655 No need to disable line commands.
4656 (_cpp_output_line_command): Delete function.
4657 (do_line): Don't emit line commands here, but set things up so
4658 they will be emitted if necessary. Use _cpp_fake_ihash to
4659 make unique nominal_fnames if necessary.
4660 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
4661 with 0 for column, not -1.
4662 (_cpp_handle_eof): Don't set the control macro here. Don't
4663 clear input_stack_listing_current here. Don't emit line
4666 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4668 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
4669 always, use the default SVR4 start address.
4671 * config/rs6000/linux.h (LINK_SPEC): Don't define.
4672 (LINK_SHLIB_SPEC): Define.
4673 (LINK_START_DEFAULT_SPEC): Define.
4674 (LINK_OS_DEFAULT_SPEC): Define.
4676 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
4678 * config/rs6000/eabi.asm (__eabi): Call __init rather than
4679 __do_global_ctors to handle constructors.
4680 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
4681 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
4682 (STARTFILE_MVME_SPEC): Likewise.
4683 (STARTFILE_SIM_SPEC): Likewise.
4684 (ENDFILE_ADS_SPEC): Use crtend.
4685 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
4686 (ENDFILE_MVME_SPEC): Likewise.
4687 (ENDFILE_SIM_SPEC): Likewise.
4688 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
4689 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
4690 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
4691 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
4692 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
4693 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
4694 (CRTSTUFF_T_CFLAGS_S): Define.
4695 * config/rs6000/eabi-ctors.c: Delete.
4697 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
4700 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
4704 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
4706 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
4707 plus mask size is smaller or equal to the mode size.
4709 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4711 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
4714 * expr.c (reload.h): Now included.
4715 (emit_block_move): Set volatile_ok when checking for movstr.
4716 (emit_move_1): Check for replacements in addresses in multi-word case.
4717 * Makefile.in (expr.o): Now includes reload.h.
4719 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
4720 Never have a LIBCALL end a basic block.
4721 (find_basic_blocks_1): Likewise.
4722 Reorganize CALL_INSN cases.
4724 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
4726 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
4728 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
4729 completers from mov.ret instruction.
4731 2000-04-14 Richard Henderson <rth@cygnus.com>
4733 * fold-const.c (extract_muldiv): Don't distribute and widen
4734 multiply across plus for non-sizetype unsigned types.
4736 2000-04-14 Richard Henderson <rth@cygnus.com>
4738 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
4739 If the original source is dead in the incr insn, it's dead now.
4741 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4743 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
4744 see if DECL_BIT_FIELD needs to still be set.
4746 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
4748 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
4749 print_int_cst_octal with something that's not an INTEGER_CST.
4751 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
4752 and not a SUBREG to a FLOAT rtl.
4754 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
4756 * emit-rtl.c (try_split): Avoid infinite loop if the split
4757 results in a sequence that contains the original insn.
4759 2000-04-13 Andreas Jaeger <aj@suse.de>
4761 * config/mips/mips.c (expand_block_move): Pass alignment
4762 argument to move_by_pieces in bits, not bytes.
4764 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
4765 __pic__ for little endian.
4767 2000-04-13 Andreas Jaeger <aj@suse.de>
4769 * config/i386/i386-protos.h: Add prototype for
4770 uno_comparison_operator.
4772 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
4774 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
4775 * calls.c (ECF_PURE): New flag.
4776 (emit_call_1): Handle ECF_PURE calls.
4777 (initialize_argument_information): Unset ECF_PURE flag too.
4778 (precompute_arguments): Precompute for ECF_PURE too.
4779 (expand_call): Handle ECF_PURE calls too.
4780 (emit_library_call_value_1): Rename no_queue argument to fn_type,
4781 accept value of 2 as pure function.
4782 (emit_library_call_value, emit_library_call): Rename no_queue argument
4784 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
4786 * tree.h (DECL_IS_PURE): New macro.
4787 (struct tree_decl): Add pure_flag.
4788 * c-common.c (enum attrs): Add attribute "pure".
4789 (init_attributes): Initialize attribute "pure"
4790 (decl_attributes): Handle attribute "pure".
4791 * extend.texi (Attribute "pure"): Document.
4792 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
4794 (flags_from_decl_or_type): Support attribute "pure".
4796 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
4798 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
4799 the token except for numbers and identifiers.
4801 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
4803 * i386.c (ix86_expand_binary_operator,
4804 ix86_expand_unary_operator): Check no_new_pseudos
4805 instead of reload_in_progress and reload_completed.
4806 (ix86_split_ashldi, ix86_split_ashrdi,
4807 ix86_split_lshrdi): Check no_new_pseudos instead
4808 of reload_completed.
4810 2000-04-12 Jeffrey A Law (law@cygnus.com)
4812 * function.c (purge_addressof): Unshare any shared rtl created by
4813 purge_addressof and its children.
4815 2000-04-12 Mark Mitchell <mark@codesourcery.com>
4817 * function.c (aggregate_value_p): VOID_TYPE nodes are never
4820 2000-04-05 Andreas Jaeger <aj@suse.de>
4822 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
4823 not compiling PIC code, add flags for mabi=64.
4824 (SUBTARGET_CPP_SIZE_SPEC): New.
4825 (SUBTARGET_CPP_SPEC): New.
4826 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
4827 for MIPS/Linux and lots of code needs these defines.
4829 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
4831 * reorg.c (fill_slots_from_thread): Check side_effects_p when
4832 trying the "opposite arithmetic" approach.
4834 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4836 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
4837 (struct sh_args): Add new field force_mem.
4838 (INIT_CUMULATIVE_ARGS): Initialize it.
4839 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
4841 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
4843 * calls.c (expand_call): Do not reverse args in "equal from" field.
4844 (emit_library_call_value_1): Emit_libcall_block for const and pure
4847 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4849 * reload1.c (reload_combine): Don't enable optimization for fixed
4850 registers when encountering a BARRIER.
4852 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
4854 * builtins.c (expand_builtin_memcmp): Do expansion even with
4855 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
4857 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
4858 stack is propertly aligned; add sanity checking for aligned
4860 (expand_library_call_value_1): Add sanity checking for aligned
4863 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
4865 * calls.c (emit_library_call_value_1): Change 3rd arg to
4866 locate_and_pad_parm to disregard the setting of partial.
4868 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4870 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
4872 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
4873 CALL_INSN from the normal case.
4875 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
4877 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
4878 New global variables.
4879 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
4881 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
4883 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
4884 TARGET_ADD_ESP_8): New macros.
4885 * i386.md: Add peep2s to convert esp adjustments to push and pop
4887 (pushsi_prologue, popsi_epilogue): New patterns.
4889 2000-04-12 Jakub Jelinek <jakub@redhat.com>
4891 * real.c (toe64): Remove stale #endif from the last change.
4893 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
4895 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
4896 * real.c (toe64): Revert previous change.
4898 2000-04-12 Jakub Jelinek <jakub@redhat.com>
4900 * objc/objc-act.c: Include ggc.h.
4901 (objc_tree_index, objc_global_trees): Convert most of the
4902 static tree variables into a static array with previous names
4904 (objc_ellipsis_node): New variable.
4905 (lang_init): Call objc_act_parse_init and c_parse_init.
4906 Create objc_ellipsis_node.
4907 (build_selector_translation_table): Use objc_ellipsis_node instead
4909 (hack_method_prototype): Likewise.
4910 (get_arg_type_list): Likewise.
4911 (start_method_def): Likewise.
4912 (continue_method_def): Likewise.
4913 (gen_method_decl): Likewise.
4914 (ggc_mark_imp_list): New function.
4915 (ggc_mark_hash_table): New function.
4916 (objc_act_parse_init): New function.
4917 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
4918 * c-parse.in (c_parse_init): For objc add roots of objc specific
4919 local tree variables.
4920 * objc/objc-parse.y: Rebuilt.
4921 * objc/objc-parse.c: Rebuilt.
4922 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
4924 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
4926 * cse.c (delete_trivially_dead_insns): Also delete insns
4927 that copy a register to itself where the destination is
4930 2000-04-11 Richard Henderson <rth@cygnus.com>
4932 * flow.c (struct propagate_block_info): Add new_dead, new_live.
4933 (propagate_block): Initialize them. Use them in parallel instead
4934 of one tmp variable, ie revert much of the 0408 and 0407 functional
4935 changes, but keep the structural changes.
4936 (mark_set_regs): Take new_dead from propagate_block_info instead.
4937 (mark_set_1, mark_set_reg): Likewise.
4938 (mark_used_regs): Likewise with new_live.
4939 (mark_used_reg): Likewise. Revert 0408 change.
4941 2000-04-11 Nick Clifton <nickc@cygnus.com>
4943 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
4945 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
4947 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4949 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
4950 const section to output a CONSTRUCTOR based on the same conditions
4953 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
4955 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
4956 * pa/pa-protos.h (output_call): Add additional argument indicating
4957 if the call is a sibling/tail call.
4958 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
4959 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
4960 (function_arg, function_arg_partial_nregs): Likewise
4961 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
4962 (emit_move_sequence): Zero extend certain constants as needed
4964 (compute_zdepdi_operands, output_64bit_and): New functions.
4965 (output_64bit_ior, function_arg): Likewise.
4966 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
4967 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
4968 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
4969 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
4970 (output_bvb): Likewise.
4971 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
4972 (output_call): New argument 'sibcall'. Generate sibcall sequences
4974 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
4975 (ouput_arg_descriptor): Do not emit argument descriptors for
4977 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
4979 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
4980 (FUNCTION_OK_FOR_SIBALL): Define.
4981 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
4982 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
4983 (CPP_SPEC): Use new spec infrastructure.
4984 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
4985 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
4986 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
4987 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
4988 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
4989 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
4990 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
4991 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
4992 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
4993 (FUNCTION_ARG); Call out to C code.
4994 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
4995 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
4996 (MIN_UNITS_PER_WORD): Likewise.
4997 * pa/pa.md (cmpdi): New expander.
4998 (scc patterns, movstrsi): Not available for TARGET_64BIT.
4999 (64bit conditional arithmetic): New patterns.
5000 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
5001 (movsicc): Not available if modes on all the operands to not match.
5002 (movdicc): New expander and associated patterns.
5003 (64bit branches): New patterns.
5004 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
5005 (pre_ldd, post_std): New patterns.
5006 (64bit addil, load low part): New patterns.
5007 (special movsf constant): Not available for TARGET_64BIT.
5008 (movsf, movdf expanders): Force constants into memory.
5009 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
5010 (64bit movdf/movdi patterns): New patterns.
5011 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
5013 (extendqidi2, extendhidi2, extendsidi2): Similarly.
5014 (adddi3 expander): Allow "arith_operand" for second input.
5015 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
5016 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
5017 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
5018 (muldi3): New expander for TARGET_64BIT.
5019 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
5021 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
5022 patterns for TARGET_64BIT.
5023 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
5024 patterns for TARGET_64BIT.
5025 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
5026 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
5027 (sibcall_epilogue): New expander.
5028 (casesi): Tweak for TARGET_64BIT.
5029 (call expanders): Set & use the outgoing argument pointer. Use the
5030 64bit call patterns as needed. Add additional arg to output_call.
5031 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
5032 (sibcall, sibcall_internal_symref): New expanders.
5033 (sibcall_value, sibcall_value_internal_symref
5034 (interspace_jump): Turn into an expander + matching patterns.
5035 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
5036 * pa/pa64-regs.h: Eliminate trigraph sequences.
5037 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
5039 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
5041 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
5042 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
5043 cpp_token with cpp_ttype everywhere.
5044 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
5045 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
5046 CPP_BUF_COL. Line and column numbers are unsigned int, not
5048 * cpplex.c (cpp_buf_line_and_col): Delete.
5049 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
5050 'long lineno' to 'unsigned int lineno'.
5051 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
5053 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5055 * extend.texi: ISO C99 is not a draft anymore.
5056 * invoke.texi: ISO C++ is not a draft anymore.
5057 * cpp.texi: __cplusplus is required by the ISO standard.
5059 * extend.texi (-fthis-is-variable): Undocument.
5060 * flags.h (warn_template_debugging): Remove declaration.
5061 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
5062 -Wenum-clash, -Wtemplate-debugging): Undocument.
5064 2000-04-10 Nick Clifton <nickc@cygnus.com>
5066 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
5068 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
5070 (ARM_SIGN_EXTEND): Use HOST_UINT.
5071 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
5072 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
5073 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
5074 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
5076 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
5077 (arm_gen_constant): Use HOST_UINT.
5078 (arm_canonicalize_constant): Use HOST_UINT.
5079 (arm_reload_in_hi): Use HOST_UINT.
5080 (arm_reload_out_hi): Use HOST_UINT.
5081 (output_multi_immediate): Use HOST_UINT.
5082 (int_log2): Use HOST_UINT.
5083 (arm_poke_function_name): Use HOST_UINT.
5084 (arm_output_epilogue): Use arm_volatile_func().
5085 (output_thumb_prologue): Use arm_strip_name_encoding().
5087 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5089 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
5090 of sequence point problems.
5092 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
5094 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
5096 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
5098 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5100 * sbitmap.h: Whitespace changes and use upper-case macro args.
5101 (struct simple_bitmap_def): All sizes now unsigned.
5102 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
5103 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
5104 (sbitmap_vector_alloc): Parms and local vars now unsigned.
5105 (sbitmap_zero): Cast bzero arg to PTR.
5106 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
5107 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
5108 loop to make structure clearer.
5109 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
5110 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
5111 (sbitmap_a_and_b_or_c): Likewise.
5112 (sbitmap_intersection_of_succs): Minor cleanups.
5113 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
5114 (sbitmap_union_of_preds): Likewise.
5115 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
5116 (debug_sbitmap): New function.
5118 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
5119 * c-typeck.c (convert_for_assignment): Likewise.
5121 * expmed.c (init_expmed): Don't free objects we make.
5122 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
5124 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
5125 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
5127 * gcse.c (expr_hash_table_size): Now unsigned.
5128 (compute_ae_gen): Local variable `i' now unsigned.
5129 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
5130 (compute_transout, hoist_code): Likewise.
5131 (compute_local_properties): Likewise, also hash_table_size.
5132 (alloc_expr_hash_table): N_INSNS now unsigned.
5133 (delete_null_pointer_checks): Mark arg F as unused.
5135 * regrename.c: Minor cleanups, including chang some variables
5138 2000-04-10 Neil Booth <NeilB@earthling.net>
5140 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
5142 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
5144 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5146 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
5147 __classof__, and __headof__ from the list of gnu keywords.
5148 (-ansi): Remove -foperator-names from list of implied options.
5149 Do not call it ANSI C++.
5150 (-foperator-names): Document as -fno-operator-names.
5152 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
5154 * cpphash.c (timestamp): Delete.
5155 (del_HASHNODE): If type is T_MCONST, free value.cpval.
5156 (special_symbol): Remove unnecessary braces. Remove
5157 T_VERSION. Treat T_STDC like T_CONST unless
5158 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
5159 when one is encountered, then convert them into T_MCONST
5161 * cppinit.c (builtin_array): version_string is T_MCONST.
5162 __STDC__ has a "1" in its cpval. Don't have a terminator
5163 entry. Clean up which entries are dumped.
5164 (initialize_builtins): Only __STDC__ gets the special
5165 -traditional treatment. Count the length of builtin_array.
5166 Render version_string here.
5167 * cpphash.h: Remove T_VERSION. Add T_MCONST.
5168 * cpplib.h (struct cpp_reader): Remove timebuf.
5170 2000-04-09 Richard Henderson <rth@cygnus.com>
5172 * genrecog.c (pred): Update comparison_operator for the unordered
5175 * config/i386/i386.c (no_comparison_operator): Disallow unordered
5177 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
5178 (uno_comparison_operator): New.
5179 (put_condition_code): Handle UNORDERED/ORDERED.
5180 (unsigned_comparison): Likewise.
5181 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
5182 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
5183 (ix86_expand_fp_compare): Use them. Take scratch as argument,
5184 update all callers. Handle all 8 unordered operators.
5185 (ix86_expand_setcc): Lose the unordered argument, update all callers.
5186 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
5187 * config/i386/i386.h (PREDICATE_CODES): Update.
5188 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
5189 (ix86_expand_branch, ix86_expand_setcc): Update.
5190 * config/i386/i386.md (sunordered, sordered): New.
5191 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
5192 (bunordered, bordered): New.
5193 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
5194 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
5195 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
5197 2000-04-09 Philip Blundell <philb@gnu.org>
5199 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
5201 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
5203 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
5204 fix_truncxfhi2): New patterns.
5205 * i386.c (output_fix_trunc): Handle converting to HImode.
5207 2000-04-08 Alex Samuel <samuel@codesourcery.com>
5209 * ssa.c (convert_to_ssa): Eliminate dead code when calling
5211 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
5212 (for_each_successor_phi): Change parameter to basic_block.
5213 (coalesce_regs_in_successor_phi_nodes): Likewise.
5214 (coalesce_regs_in_copies): Likewise.
5215 (compute_coalesced_reg_partition): Use basic_block instead of index.
5216 * rtl.h (convert_to_ssa): Delete.
5217 (convert_from_ssa): Likewise.
5218 (successor_phi_fn): Likewise.
5219 (for_each_successor_phi): Likewise.
5220 (in_ssa_form): Likewise.
5221 * basic-block.h (convert_to_ssa): Moved from rtl.h.
5222 (convert_from_ssa): Likewise.
5223 (successor_phi_fn): Likewise.
5224 (in_ssa_form): Likewise.
5225 (for_each_successor_phi): Likewise. Change parameter to basic_block.
5226 * flow.c (calculate_global_regs_live): Pass a basic_block to
5227 for_each_successor_phi.
5229 2000-04-08 Richard Henderson <rth@cygnus.com>
5231 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
5232 was modified in the current insn.
5234 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
5236 * arm/thumb.md: Delete.
5237 * arm/thumb-protos.h: Delete.
5239 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
5241 Merge changes from merged-arm-thumb-backend-branch onto trunk.
5243 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
5245 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
5248 * arm.md (nop): Use the standard RTL expression. Don't code as a
5250 (*arm_nop, *thumb_nop): Delete.
5252 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
5253 constants. Use casts instead.
5254 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
5255 output_multi_immediate, arm_poke_function_name): Likewise.
5256 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
5257 MASK_RETURN_ADDDR): Likewise.
5259 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
5261 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
5264 * arm.md (eh_epilogue): New function.
5265 * arm.h (struct machine_function): Move to here ...
5266 * arm.c: ... from here.
5267 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
5268 (thumb_exit): Extra parameter eh_ofs. All callers changed.
5269 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
5271 2000-03-30 Nick Clifton <nickc@cygnus.com>
5273 * config/arm/semi.h (ASM_SPEC): Restore definition.
5274 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5276 * config/arm/elf.h (ASM_SPEC): Restore definition.
5277 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5279 * config/arm/arm.h (ASM_SPEC): Remove definition.
5280 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
5282 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
5284 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
5286 2000-03-24 Nick Clifton <nickc@cygnus.com>
5288 Various formating tidyups, elimination of compile time
5289 warnings and synchronisation with internal sources:
5291 * config/arm/arm-protos.h (assemble_align): Add prototype.
5292 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5293 (gen_comapre_reg): Rename to arm_gen_compare_reg.
5294 (arm_return_addr_rtx): Rename to arm_return_addr.
5296 * config/arm/arm.c: Include except.h.
5297 Define shorter typenames for strict minipool_node and struct
5299 (arm_return_in_memory): For WinCE return all structures <= 32 bits
5301 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5302 (gen_comapre_reg): Rename to arm_gen_compare_reg.
5304 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
5306 (ASM_SPEC): Define if not already defined.
5307 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5309 * config/arm/arm.md: Rename references to gen_rotated_half_load to
5310 arm_gen_rotated_half_load, and references to gen_comapre_reg to
5311 arm_gen_compare_reg.
5312 (indirect_jump): Only accept register operands.
5313 (load_indirect_jump): Keep this pattern since combine can generate
5316 * config/arm/coff.h: Include aout.h.
5317 (MULTILIB_DEFAULTS): Only define if not already defined.
5319 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
5320 into arm.h (so that COFF ports can support thumb based aliases).
5321 (ASM_SPEC): Move definition into arm.h
5323 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
5324 redundant apcs spec.
5325 (ASM_SPEC): Move definition to arm.h
5327 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
5329 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
5330 for entries in the .bss section
5332 2000-03-23 Nick Clifton <nickc@cygnus.com>
5334 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
5335 to thumb_far_jump_used_p.
5337 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
5338 single integer parameter.
5340 * config/arm/arm.c (struct machine_function): Add two new
5341 fields, 'far_jump_used' and 'arg_pointer_live'.
5342 (thumb_far_jump_used_p): Once the decision has been made that
5343 far jumps might be used, always return true.
5344 If being called from the initial elimination offset macro then
5345 do not bother to perform the test if the arg pointer is not
5347 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
5348 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
5350 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
5352 * arm.c (output_return_instruction): Handle more cases where we can
5353 return from a function with an ldr instruction.
5354 (arm_output_epilogue): Likewise.
5356 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
5357 if we need to push a large stack frame and there are no callee-saved
5360 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
5361 in ARM code if the frame pointer has been eliminated.
5363 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
5364 unspec_volatile arguments to avoid duplicates.
5365 (consttable_1, consttable_2): Fixes for big-endian mode.
5367 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
5370 Re-write constant pool code.
5371 * arm.c (minipool_node, minipool_fix): New types.
5372 (minifix): Delete type.
5373 (arm_add_minipool_constant): Delete.
5374 (arm_compute_minipool_offsets, arm_find_barrier,
5375 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
5376 (get_jump_table_size): Now returns HOST_WIDE_INT.
5377 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
5379 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
5380 (assign_minipool_offsets, arm_print_value): Likewise.
5381 (dump_minipool): Rewrite.
5382 (arm_barrier_cost): New function.
5383 (create_fix_barrier): New function.
5384 (push_minipool_barrier): New function.
5385 (push_minipool_fix): Record additional information about the fixup
5387 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
5388 check the mode of what needs fixing.
5389 (arm_reorg): Rewrite.
5391 2000-03-08 Nick Clifton <nickc@cygnus.com>
5393 * config/arm/arm.md (indirect_jump): Force constant addresses into
5396 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
5398 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
5400 2000-02-24 Nick Clifton <nickc@cygnus.com>
5402 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
5403 adjust is word aligned.
5404 (thumb_expand_epilogue): Make sure that stack adjust is word
5407 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
5409 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
5411 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
5412 pointer relative addresses.
5414 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
5416 * arm.c (find_barrier): Find the last barrier within the allowed
5419 2000-02-09 Nick Clifton <nickc@cygnus.com>
5421 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
5423 2000-02-09 Nick Clifton <nickc@cygnus.com>
5425 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
5426 ARM_FUNCTION_PROFILER.
5428 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
5429 ARM_FUNCTION_PROFILER.
5431 * config/arm/linux-oldld.h: Imported from mainline sources.
5433 2000-02-07 Nick Clifton <nickc@cygnus.com>
5435 * config/arm/lib1funcs.asm: Merge in thumb functions from
5438 * config/arm/lib1thumb.asm: Delete.
5440 2000-02-04 Nick Clifton <nickc@cygnus.com>
5442 * config/arm/arm.c: Sychronised with current Red hat local
5444 * config/arm/arm.h: Ditto.
5445 * config/arm/arm-protos.h: Ditto.
5447 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
5449 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
5451 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
5454 2000-02-02 Nick Clifton <nickc@cygnus.com>
5456 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
5458 * config/arm/arm.md (epilogue): Fix rtl checking abort because
5459 (return) was emited using an emit_insn() call.
5461 2000-01-31 Nick Clifton <nickc@cygnus.com>
5463 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
5465 (thumb_exit): Move frame pointer back into hard frame pointer
5466 register if backtracing is being used.
5468 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
5470 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
5473 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
5475 * config/arm/arm.md (neg_pool_offset): Provide default for new
5477 (arm_movsi_insn): Add neg_pool_offset attribute.
5478 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
5479 rtx for the insn that starts the scan and an unsigned long for its
5480 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
5481 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
5482 instructions in *PINSERTED.
5483 (struct minipool_fixup): Add MIN_ADDRESS elt.
5484 (sort_fixups): Compute it.
5485 (arm_reorg): Changes to support inserting pools before the insn to be
5488 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
5490 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
5491 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
5492 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
5494 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
5496 * config/arm/semi.h (TARGET_VERSION): Do not define if already
5498 (TARGET_DEFAULT): Do not define if already defined.
5500 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
5502 * config/arm/arm.md (anddi3): Allow disjoint source operands.
5503 (iordi3): Allow disjoint source operands.
5504 (xordi3): Allow disjoint source operands.
5505 (negdi2): Permit construction for ARM and Thumb.
5506 (arm_negdi2): Renamed version of old negdi2 pattern.
5507 (thumb_negdi2): New pattern: Only permit non-overlapping
5508 source and destination.
5510 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
5512 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
5513 scratch low register so that it will not be deleted.
5515 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
5517 * config/arm/pe.h (ARM_PE): Define.
5519 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
5520 interfacearm attribute if this is a PE toolchain.
5521 (output_return_instruction): Do not emit anything if the function
5522 has the naked attribute set.
5523 (is_called_in_ARM_mode): If the function has the interfacearm
5524 attribute then return true.
5525 (thumb_expand_prologue): Do not generate a prologue for naked
5527 (thumb_expand_epilogue): Do not generate an epilogie for a naked
5529 (output_thumb_prologue): Do not bother if the function is naked.
5530 Strip PE encoding from function name before emitting.
5532 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
5534 * arm.md (pic_load_addr): Fix constraints.
5536 * arm.md (casesi_insn): Fix mis-applied patch.
5538 * arm.md ("core" function unit): Add rules for single- and
5540 (All TARGET_THUMB patterns): Add "type" attribute information
5542 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
5543 the following insn is a CALL.
5545 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
5547 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
5548 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
5549 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
5551 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
5553 * config/arm/linux-gas.h: oops - this file was missed out when the
5554 branch was created...
5556 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
5558 * thumb.c: Deleted. Move contents to ...
5560 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
5562 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
5565 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
5566 declare a prototype for asm_output_align();
5568 * arm.c (thumb_condition_code): Delete.
5569 (arm_print_operand): Always use arm_condition_code array.
5571 * arm.c (thumb_return_addr_rtx): Delete.
5572 (arm_save_machine_status, arm_restore_machine_status): Delete.
5573 (arm_init_machine_status, arm_mark_machine_status): New functions.
5574 (arm_init_expanders): Update accordingly.
5575 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
5576 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
5577 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
5579 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
5581 * configure.in : Fix arm-*-aout target to use new t-arm-aout
5583 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
5586 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
5588 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
5589 stack backtrace structure.
5591 * config/arm/arm-protos.h: Add prototypes for functions defined in
5594 * config/arm/arm.c (arm_override_options): Fix selection of
5595 attributes of default processor.
5597 * config/arm/coff.h: Delete needless #include.
5599 * config/arm/pe.c: Delete unused code.
5601 * config/arm/pe.h (CPP_DEFINES): Delete
5602 (SUBTARGET_CPP_SPEC): Define.
5603 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
5605 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
5607 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
5609 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
5611 (CAN_DEBUG_WITHOUT_FP): Define.
5612 (FIXED_REGISTERS): Make r11 call-saved.
5613 (CALL_USED_REGISTERS): Likewise.
5614 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
5615 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
5616 frame-pointer is required.
5617 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
5618 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
5619 if the target normally needs a stack frame in non-leaf functions.
5620 (use_return_insn): Correct logic for determining when a return
5621 instruction can be used.
5622 (output_return_instruction): Handle the frame-pointer register as
5623 a normal register when not TARGET_APCS_FRAME.
5624 (arm_output_prologue): Likewise.
5625 (arm_output_epilogue): Likewise.
5626 (output_func_epilogue): Likewise.
5627 (arm_expand_prologue): Likewise.
5628 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
5630 * arm.c (use_return_insn): No need to check floating point regs if
5632 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
5633 the code of value stored in the minipool array.
5634 (arm_add_minipool_constant): Likewise.
5636 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5638 * basic-block.h (conflict_graph_enum_fn): K&R fix.
5640 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5642 * tree.c (tree_expr_nonnegative_p): New function.
5644 * tree.h (tree_expr_nonnegative_p): Declare.
5646 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
5647 elide some sign_compare warnings.
5648 (build_conditional_expr): Likewise.
5650 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
5652 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
5654 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
5655 * i386.c (print_operand): Use the proper suffix for a 387 HImode
5656 operand. Abort if a 387 operand has an unsupported size.
5658 2000-04-08 Neil Booth <NeilB@earthling.net>
5660 * cppexp.c (parse_charconst): Null does not end character
5662 * cppinit.c (ISTABLE): Null character handled as whitespace.
5663 * cpplex.c (null_warning): new function.
5664 (skip_string): Emit warning if nulls encountered.
5665 (_cpp_skip_hspace): Emit warning if nulls encountered.
5666 (_cpp_lex_token): Emit warning if nulls encountered. Drop
5670 2000-04-07 Richard Henderson <rth@cygnus.com>
5672 * flow.c (loop_depth): Remove.
5673 (reg_next_use, cc0_live, mem_set_list): Replace with ...
5674 (struct propagate_block_info): New.
5675 (life_analysis): Don't allocate reg_next_use.
5676 (propagate_block_delete_insn): Break out of propagate_block.
5677 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
5678 (propagate_block_delete_libcall): Likewise.
5679 (propagate_block): Create a propagate_block_info struct to pass
5680 to subroutines. Allocate one not two temporary regsets. Don't
5681 clobber memory for const calls. Look for clobbers in
5682 CALL_INSN_FUNCTION_USAGE.
5683 (mark_set_regs): Recognize COND_EXEC.
5684 (mark_set_reg): Break out of mark_set_1.
5685 (mark_used_reg): Break out of mark_used_regs.
5686 (mark_used_regs): Recognize COND_EXEC.
5687 (insn_dead_p): Use propagate_block_info struct.
5688 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
5689 (find_auto_inc, try_pre_increment_1): Likewise.
5690 (print_rtl_with_bb): Dump regs live at end too.
5691 (count_reg_sets_1): Pass in loop_depth.
5692 (count_reg_sets, count_reg_references): Likewise.
5693 (recompute_reg_usage): Provide it.
5695 2000-04-07 Richard Henderson <rth@cygnus.com>
5697 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
5700 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
5702 * cpplib.c (do_elif): Skip the rest of the line if we're
5703 not going to bother evaluating it.
5704 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
5705 to avoid pointless calls to the lexer.
5707 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
5709 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
5711 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
5713 * calls.c (expand_call): emit_queue if we're trying a sibcall.
5715 2000-04-07 Jakub Jelinek <jakub@redhat.com>
5717 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
5719 2000-04-06 Geoff Keating <geoffk@cygnus.com>
5721 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
5722 crtend so they can be multilibbed.
5723 (STAGESTUFF): Remove s-crt and s-crtS.
5725 2000-04-07 Richard Henderson <rth@cygnus.com>
5727 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
5728 if we discover we need a pseudo and no_new_pseudos is true.
5729 * config/alpha/alpha.md (ne:DI insn): New.
5730 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
5732 2000-04-07 Richard Henderson <rth@cygnus.com>
5734 * rtl.def (COND_EXEC): New.
5735 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
5736 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
5738 * genconfig.c (have_cond_arith_flag): Remove.
5739 (have_cond_exec_flag): New.
5740 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
5741 (main): Print HAVE_conditional_execution.
5743 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
5744 (sched_analyze_insn, print_pattern): Likewise.
5745 * reload.c (find_equiv_reg): Likewise.
5746 * rtlanal.c (reg_referenced_p): Likewise.
5747 (note_stores, dead_or_set_regno_p): Likewise.
5748 (reg_overlap_mentioned_p): Rewrite to use a switch.
5750 * ggc.h (struct rtx_def): Forward declare.
5752 * print-rtl.c (debug_rtx_range): New.
5753 * rtl.h (debug_rtx_range): Declare.
5755 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
5757 * gcse.c (gcse_main): Don't rebuild the CFG here.
5758 (delete_null_pointer_checks): Likewise.
5759 * ssa.c (convert_to_ssa): Likewise.
5760 * toplev.c (rest_of_compilation): Do it here instead. Combine
5761 sequential calls to TIMEVAR. Consistently use `insns' instead of
5762 `get_insns()'. Always split insns after reload when optimizing.
5764 * basic-block.h (merge_blocks_nomove): Declare.
5765 (tidy_fallthru_edge): Declare.
5766 * flow.c (merge_blocks_nomove): Document as merging into previous
5767 blocks. Remove cruft from between blocks; remove all edges out of A.
5768 (tidy_fallthru_edge): Export.
5770 2000-04-06 Alex Samuel <samuel@codesourcery.com>
5772 * ssa.c (compute_conservative_reg_partition): Declare with
5774 * toplev.c (clean_dump_file): Remove previously-deleted function
5775 inadvertantly merged back in.
5776 * conflict.c (conflict_graph_add): Use a single call to
5777 htab_find_slot to look up and insert.
5779 2000-04-06 Richard Henderson <rth@cygnus.com>
5781 * genrecog.c (*): Rename _last_insn to last_insn.
5782 (make_insn_sequence): Set the position of the peephole2 C test
5783 to be at the last insn.
5785 2000-04-06 Richard Henderson <rth@cygnus.com>
5787 * flow.c (compute_flow_dominators): Free worklist.
5789 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
5791 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
5793 2000-04-06 Alex Samuel <samuel@codesourcery.com>
5795 * rtl.h (INSN_P): New macro.
5796 (successor_phi_fn): New typedef.
5797 (for_each_successor_phi): New prototype.
5798 (in_ssa_form): New variable.
5799 (PHI_NODE_P): Likewise.
5800 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
5801 phi nodes in successors.
5802 (mark_used_regs): Add PHI case.
5803 (set_phi_alternative_reg): New function.
5804 (life_analysis): Assert that dead code elimination is not selected
5806 * toplev.c (to_ssa_time): New variable.
5807 (from_ssa_time): Likewise.
5808 (compile_file): Zero to_ssa_time and from_ssa_time.
5809 Print time to convert to and from SSA.
5810 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
5811 (print_time): Compute percent fraction as integer.
5812 * ssa.c (PHI_NODE_P): Moved to rtl.h.
5813 (convert_to_ssa): Check if we're already in SSA.
5814 Don't eliminate dead code in life_analysis.
5815 Rerun flow and life analysis at bottom.
5816 (eliminate_phi): Use canonical regnos when adding nodes.
5817 (mark_reg_in_phi): New function.
5818 (mark_phi_and_copy_regs): Likewise.
5819 (convert_from_ssa): Rerun life analysis at top.
5820 Use coalesced partition.
5821 Check for removing a phi node at the end of the block.
5822 (compute_coalesced_reg_partition): New function.
5823 (coalesce_regs_in_copies): Likewise.
5824 (coalesce_reg_in_phi): Likewise.
5825 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
5826 (for_each_successor_phi): Likewise.
5827 (rename_context): New struct.
5828 (rename_block): Use a rename_context with rename_insn_1. When
5829 renaming sets of a subreg, emit a copy of the entire reg first.
5830 (rename_insn_1): Treat data as a rename_context *. Save current
5832 (rename_set_data): Add field set_insn.
5833 * Makefile.in (HASHTAB_H): Move up in file.
5834 (OBSTACK_H): New macro.
5835 (collect2.o): Use OBSTACK_H in dependencies.
5836 (sdbout.o): Likewise.
5837 (emit-rtl.o): Likewise.
5838 (simplify-rtx.o): Likewise.
5839 (fix-header.o): Likewise.
5840 (OBJS): Add conflict.o.
5841 (conflict.o): New rule.
5842 * basic-block.h: Include partition.h.
5843 (conflict_graph): New typedef.
5844 (conflict_graph_enum_fn): Likewise.
5845 (conflict_graph_new): New prototype.
5846 (conflict_graph_delete): Likewise.
5847 (conflict_graph_add): Likewise.
5848 (conflict_graph_conflict_p): Likewise.
5849 (conflict_graph_enum): Likewise.
5850 (conflict_graph_merge_regs): Likewise.
5851 (conflict_graph_print): Likewise.
5852 (conflict_graph_compute): Likewise.
5853 * conflict.c: New file.
5855 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
5857 * tlink.c (read_repo_files): Don't look for .rpo info for
5860 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5862 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
5864 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5866 * config/sh/lib1funcs.asm (___udivsi3_i4):
5867 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
5868 only depends on FMOVD_WORKS.
5870 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5872 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
5873 make double constant 8-byte aligned.
5875 2000-04-06 Jakub Jelinek <jakub@redhat.com>
5877 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
5878 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
5879 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
5880 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
5881 Accept storing GENERAL_REGS into offsetable memory.
5882 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
5883 building a TFmode constant other than 0.0L into GENERAL_REGS.
5885 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
5887 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
5889 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
5891 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
5892 (macro_cleanup): No need to cast pbuf->macro.
5893 (collect_expansion): Use _cpp_get_define_token. Goto done if
5894 it returns VSPACE. Remove check for trailing space after
5896 (_cpp_create_definition): Don't diddle flags here. Return
5898 (unsafe_chars): Handle c1 being EOF.
5899 (push_macro_expansion): Use unsafe_chars for both accidental-paste
5900 checks. Don't push the buffer till after we're done with
5902 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
5903 (PEEKN, FORWARD, GETC, PEEKC): Use them.
5904 (cpp_push_buffer): Don't set new->alimit. Set new->mark
5906 (_cpp_parse_assertion): Don't NUL terminate.
5907 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
5908 hspace before calling _cpp_parse_assertion. Remove all sets
5909 of only_seen_white. Treat '\f' as hspace. Don't do anything
5910 special with '\n' here.
5911 (maybe_macroexpand): Handle T_EMPTY hash entries without
5912 pushing a buffer at all.
5913 (cpp_get_token): Handle clearing only_seen_white here. Handle
5914 incrementing the line number here. Clear
5915 potential_control_macro as well as only_seen_white, if
5917 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
5918 (_cpp_get_define_token): New function, basically like
5919 _cpp_get_directive_token was but doesn't eat horizontal space.
5920 Don't do anything with only_seen_white here.
5921 (_cpp_get_directive_token): Just call _cpp_get_define_token
5922 repeatedly till it returns non-hspace.
5924 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
5925 (conditional_skip, skip_if_group): Return int.
5926 (DIRECTIVE_TABLE): Change origin of all conditional directives
5928 (TRAD_DIRECT_P): New macro.
5929 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
5930 an error for a bogus directive, unless -lang-asm. Use
5931 TRAD_DIRECT_P. Loop calling handler functions till one returns
5933 (get_macro_name): Don't diddle flags here.
5934 (do_define): Diddle flags here. Use _cpp_get_directive_token.
5935 Create T_EMPTY nodes for #define macro /* nothing */.
5936 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
5937 Use hp->name when calling pass_thru_directive.
5938 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
5939 Return the result of conditional_skip and/or skip_if_group.
5940 Don't call _cpp_output_line_command.
5941 (consider_directive_while_skipping): Use _cpp_get_directive_token.
5942 Issue -Wtraditional warnings as appropriate. Don't complain
5943 about unrecognized directives. If we are to stop skipping,
5944 return the number of the directive that ended the skip.
5945 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
5946 expansion and line commands while skipping. Return the result
5947 of consider_directive_while_skipping, if nonzero.
5948 (do_endif): Just set potential_control_macro here.
5949 (validate_else): Use _cpp_get_directive_token.
5950 (do_assert, do_unassert): Don't save pointers into the
5951 token_buffer across calls to the lexer. Use
5952 _cpp_get_directive_token.
5954 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
5955 pointer, not an offset. Replace 'data', which was a generic
5956 pointer, with 'macro', which points to a struct hashnode.
5957 (cpp_reader): Add 'potential_control_macro' pointer.
5958 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
5959 (CPP_BUF_GET, CPP_FORWARD): Delete.
5960 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
5961 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
5962 ACTIVE_MARK_P): Update.
5963 (_cpp_get_define_token): New internal function.
5964 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
5966 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
5968 * configure.in: And here.
5969 * configure: Regenerate.
5970 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
5971 --enable-libstdcxx-v3 is passed at configure time.
5972 * config.h.in: Regenerate.
5974 2000-04-05 Mark Mitchell <mark@codesourcery.com>
5976 * final.c (final): Use xcalloc to allocate line_note_exists.
5977 * function.c (free_after_compilation): Free the temp_slots.
5978 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
5979 (combine_temp_slot): Free temp_slots when they get combined.
5980 (purge_addressof): Fix typo in comment.
5981 * stmt.c (mark_goto_fixup): Mark the fixup itself.
5982 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
5984 * ggc.h: Include varray.h.
5985 (ggc_pending_trees): Declare.
5986 (ggc_mark_tree_children): Remove declaration.
5987 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
5988 * ggc-common.c (ggc_pending_trees): New variable.
5989 (ggc_mark_roots): Call ggc_mark_trees.
5990 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
5991 the ggc_pending_trees.
5992 * Makefile.in (GGC_H): New variable. Use it throughout in place
5995 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5997 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
6000 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6002 * sh.c (sh_insn_length_adjustment): New function.
6003 * sh-protos.h (sh_insn_length_adjustment): Declare.
6004 * sh.h (ADJUST_INSN_LENGTH): Use it.
6006 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
6008 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
6009 from the insn where REG_RETVAL is added.
6010 (emit_no_conflict_block): Ditto.
6012 * md.texi (Standard Names): Clarify when movX is needed.
6014 * combine.c (simplify_comparison) [MINUS]: Do not replace
6015 all (op (minus A B) 0) with (op A B).
6017 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
6018 J"orn Rennecke <amylaar@cygnus.co.uk>
6020 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
6021 (block_lump_real): Likewise.
6023 2000-04-05 Chris Demetriou <cgd@netbsd.org>
6025 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
6026 remaining non-zero debugging masks.
6028 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
6030 * basic-block.h (verify_flow_info): Declare.
6031 (flow_loop_outside_edge_p): Declare.
6032 * flow.c (verify_flow_info): Remove declaration.
6033 (clear_log_links, flow_loop_outside_edge_p): Likewise.
6035 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
6037 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
6040 2000-04-05 Jakub Jelinek <jakub@redhat.com>
6042 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
6043 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
6044 seqdi_zero_trunc+1): Allow splits only if registers are
6047 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
6049 * acconfig.h: Add HAVE_GAS_HIDDEN.
6050 * config.in: Regenerated.
6051 * configure.in: Add test for .hidden pseudo-op in gas.
6052 * configure: Regenerated.
6053 * crtstuff.c: Include auto-host.h.
6054 Emit additional .hidden pseudo-op for __dso_handle if the
6055 assembler knows about it.
6057 2000-04-04 Philippe De Muyter <phdm@macqel.be>
6059 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
6060 before freeing argnames.
6061 * cpplib.c (do_ifndef): Cast return value of xstrdup.
6063 2000-04-05 Michael Meissner <meissner@redhat.com>
6065 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
6066 Walton <jonboy@gordian.com> to make memory references with update
6067 work wtih -mregnames.
6069 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6071 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
6072 (regrename_optimize): Rename variables `def_uses' and
6073 `ext_basic_blocks' to avoid conflicts with similarly named
6074 typedefs in traditional C.
6076 * calls.c (initialize_argument_information): Fix typo in previous
6079 2000-04-04 Richard Henderson <rth@cygnus.com>
6081 * regrename.c (consider_available): Test fixed_regs not
6082 PIC_OFFSET_TABLE_REGNUM.
6084 2000-04-04 Geoff Keating <geoffk@cygnus.com>
6086 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
6088 (CRTSTUFF_T_CFLAGS_S): Delete definition.
6089 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
6090 (ENDFILE_LINUX_SPEC): Always use crtend.
6091 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
6092 (powerpc-*-linux-gnu): Likewise.
6093 * configure: Regenerate.
6095 * config/rs6000/eabi.h: Don't include sysv4.h.
6096 (MULTILIB_DEFAULTS): Don't define.
6097 * config/rs6000/eabiaix.h: Don't include eabi.h.
6098 * config/rs6000/eabile.h: Delete.
6099 * config/rs6000/eabilesim.h: Delete.
6100 * config/rs6000/eabisim.h: Don't include eabi.h.
6101 * config/rs6000/linux.h: Don't include sysv4.h.
6102 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
6103 (MULTILIB_DEFAULTS): Don't redefine.
6104 * config/rs6000/rtems.h: Don't include eabi.h.
6105 * config/rs6000/sol2.h: Don't include sysv4le.h.
6106 * config/rs6000/sysv4le.h: Don't include sysv4.h.
6107 * config/rs6000/t-ppc: Delete.
6108 * config/rs6000/t-ppcgas: Correct comment.
6109 * config/rs6000/t-ppcos: Correct comment. Don't build
6110 multilibs for -fPIC, rather use -fPIC -mstrict-align
6112 * config/rs6000/t-ppc: Delete.
6113 * config/rs6000/vxppc.h: Don't include sysv4.h.
6114 * config/rs6000/vxppcle.h: Delete.
6115 * configure.in: Use multiple header files for p2pc ELF targets
6116 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
6117 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
6118 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
6119 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
6120 always available for these platforms.
6122 2000-04-04 Richard Henderson <rth@cygnus.com>
6124 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
6126 2000-04-04 Stan Cox <scox@cygnus.com>
6128 * Makefile.in: Add rules for regrename.o
6129 * regrename.c: New file.
6130 * rtl.h (regrename_optimize): Add prototype.
6131 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
6132 (compile_file, decode_d_option): Add support for -frename-registers.
6133 (rest_of_compilation): Call regrename_optimize.
6134 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
6137 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
6139 * Makefile (gccbug): New target.
6140 (doc): Depend on it.
6141 * gcc.texi (Bugs): Link subnodes.
6143 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
6144 Document severities, priorities, and classes in bug form.
6146 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
6148 * cpplex.c (trigraph_map, speccase): Combine into single
6150 (NORMAL, NONTRI): New macros.
6151 (_cpp_read_and_prescan): Change to use unified table. Use
6152 is_hspace to test for whitespace.
6154 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
6155 definition that doesn't provoke the "empty body in an
6156 if-statement" warning.
6158 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
6160 * builtins.c (expand_builtin_strlen): Force the source to
6161 be a memory address.
6163 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6165 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
6167 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
6169 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
6170 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
6171 (ECF_IS_CONST): Rename to ECF_CONST.
6172 (special_function_p): Make static, change interface.
6173 (flags_from_decl_or_type, try_to_integrate): Break out from ...
6174 (expand_call) ... here; convert number of variables to flags.
6175 (emit_library_call_vlue_1): Likewise.
6176 (setjmp_call_p): New function.
6177 (initialize_argument_information): Accepts flags as argument;
6179 (precompute_arguments): Likewise.
6180 * tree.h (special_function_p): Remove.
6181 (setjmp_call_p): Add prototype.
6183 2000-04-04 Jakub Jelinek <jakub@redhat.com>
6185 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
6186 so that addresses are offsetable by up to 16 bytes.
6187 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
6188 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
6191 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
6192 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
6193 (movsf): Don't force any constant to memory if target is integer
6195 Move fp_zero_operand check below the const0_rtx check.
6196 (movtf): Likewise. Also allow fp_zero_operand for stores into
6198 (movdf): Likewise. Also allow fp_zero_operand for stores into
6199 memory and into integer hard registers.
6200 (clear_df, clear_dfp, movdf_const_intreg_sp32,
6201 movdf_const_intreg_sp64): Remove.
6202 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
6204 (movdf_no_e_insn_v9_sp32): New pattern.
6205 (movdf_insn_v9only): Remove.
6206 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
6207 (movdf_insn_sp64): Remove.
6208 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
6209 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
6210 (following splits): Rewrite conditions. Add two new splits
6211 for storing 0.0 into memory and registers.
6212 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
6213 (movtf_insn_sp32): Redo constraints and conditions.
6214 (movtf_insn_vis_sp32): New pattern.
6215 (movtf_no_e_insn_sp32): Redo constraints and conditions.
6216 (movtf_insn_hq_sp64): Likewise.
6217 (movtf_insn_hq_vis_sp64): New pattern.
6218 (movtf_insn_sp64): Redo constraints and conditions.
6219 (movtf_insn_vis_sp64): New pattern.
6220 (movtf_no_e_insn_sp64): Redo constraints and conditions.
6221 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
6223 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
6224 -mvis or -m64 to take down the number of various reload patterns.
6226 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
6228 * pa/pa-64.h: New file.
6229 * pa/pa64-regs.h: New file.
6230 * pa/pa64-start.h: New file.
6231 * pa/t-pa64: New file.
6232 * pa/xm-pa64hpux.h: New file.
6234 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6236 * sparc.c (output_restore_regs): Prototype.
6237 (sparc_emit_float_lib_cmp): Constification.
6239 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
6241 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
6244 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
6245 (get_value_hash, hash_rtx): Likewise.
6247 * ssa.c (compute_conservative_reg_partition): Prototype.
6249 * tree.c (mark_hash_entry): Prototype.
6251 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
6253 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
6254 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
6255 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
6257 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
6258 * objc/lang-specs.h: Likewise.
6260 2000-04-03 Neil Booth <NeilB@earthling.net>
6262 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
6263 and SYNTAX_ERROR2. Replace `' in messages with ''.
6264 (op_to_str): Make re-entrant.
6265 (_cpp_parse_expr): Implement new error macros. Use | rather
6266 than || to logically or 2 boolean integers. Simply expression
6267 checking we have a left operand iff needed.
6269 2000-04-03 Nick Clifton <nickc@cygnus.com>
6271 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
6273 2000-04-03 Philip Blundell <philb@gnu.org>
6275 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
6277 2000-04-03 Felix Lee <flee@cygnus.com>
6279 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
6280 (run_shell): Use it.
6282 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
6284 * Makefile.in (stmp-int-hdrs): Make include subdir here...
6285 (stmp-fixproto): ...rather than here.
6287 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
6289 * pa.c (print_operand): Compute 'base' only inside the code paths
6292 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
6294 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
6297 2000-04-03 Philipp Thomas <pthomas@suse.de>
6299 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
6301 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
6303 * Makefile.in (alias.o): Depend on $(TREE_H).
6305 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
6307 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
6309 * cpplib.c (_cpp_handle_directive): Improve warnings for
6310 traditional C and indented directives.
6312 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
6313 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
6314 fixinc/inclhack.def: Indent the # of #include_next one space.
6315 * cp/rtti.c: Un-indent #if and #endif.
6317 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
6318 syntax error, but an error has already been printed.
6319 * cpplex.c (_cpp_parse_assertion): Give a more specific error
6320 message when called with nothing remaining on the line.
6321 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
6322 OTHER token, not an ASSERTION.
6323 * cpplib.c (do_assert): When we create a 'base' node, clear
6324 its aschain pointer.
6326 2000-04-02 Neil Booth <NeilB@earthling.net>
6328 * cppexp.c: New typedef op_t. struct operation and struct
6329 token updated to use it.
6330 (op_to_str): New function.
6331 (_cpp_parse_expr): Error messages modified to use op_to_str.
6333 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6335 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
6336 before checking MUST_PASS_IN_STACK.
6338 2000-04-02 Neil Booth <NeilB@earthling.net>
6340 * cppexp.c: New FINISHED dummy token. Combine operator initial
6341 flags and initial priority into a single constant. New
6342 EQUALITY macro. New operator flag SHORT_CIRCUIT.
6343 (_parse_cpp_expr): Implement new constants. Take left operand
6344 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
6345 parse indicated by reducing FINISHED token. Remove new lines
6346 from cpp_error messages.
6348 2000-04-01 Mark Mitchell <mark@codesourcery.com>
6350 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
6353 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
6355 * cpplib.c: Include symcat.h. Add 'origin' field to struct
6356 directive. Add origin values to DIRECTIVE_TABLE. Generate
6357 the strings and function names on the fly. Take the #sccs
6358 entry out of the table if SCCS_DIRECTIVE is not defined.
6359 (_cpp_handle_directive): Decide if the # was at the beginning
6360 of the line here. Issue -pedantic warnings for extended
6361 directives here. Warn about K+R directives with the #
6362 indented, and C89/extended directives with the # not indented,
6364 (do_import, do_include_next, do_warning, do_ident, do_sccs,
6365 do_assert, do_unassert): Don't issue pedantic warning here.
6367 * cpphash.h: Add CPP_WTRADITIONAL macro.
6368 * cpplib.h (struct cpp_options): Rename warn_stringify to
6369 warn_traditional; update comments.
6370 * cppinit.c (handle_option): Set warn_traditional not
6372 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
6373 CPP_WTRADITIONAL (pfile).
6374 * cpplex.c (_cpp_lex_token): Don't decide if directives should
6375 be ignored in -traditional mode here.
6377 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
6378 to initialize speccase[] and trigraph_map[]. Delete all
6379 references to pfile->input_speccase. Always treat '?' as a
6380 special character. Remove table-initialization code from
6381 _cpp_init_input_buffer.
6383 * cpplib.h (struct cpp_reader): Remove input_speccase field.
6384 * cppinit.c (cpp_cleanup): Don't free input_speccase.
6386 2000-04-01 Richard Henderson <rth@cygnus.com>
6388 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
6389 (mostlyclean): Likewise.
6391 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
6392 (struct dump_file_info, enum dump_file_index, dump_file): New.
6393 (open_dump_file): Take a dump_file_index not a suffix, and a decl
6394 not a string. Clean out file if we havn't yet done so. Do nothing
6395 if the dump isn't enabled.
6396 (close_dump_file): Do nothing if the dump isn't open. Dump
6397 graph data if requested.
6398 (dump_rtl, clean_dump_file): Remove.
6399 (compile_file): Don't clean the dump files. Only finalize .bp dump
6400 if flag_test_coverage or flag_branch_probabilities. Only finalize
6401 .combine dump if optimizing. Iterate over dump_file to finalize the
6403 (rest_of_compilation): Update for open_dump_file/close_dump_file.
6404 Convert all uses of dump_rtl.
6405 (decode_d_option): Iterate over dump_file to implement 'a' and to
6406 locate pass-specific dumps.
6408 2000-04-01 Neil Booth <NeilB@earthling.net>
6410 * cppexp.c: Redefine priority constants.
6411 (_cpp_parse_expr): Replace left and right priority scheme with
6412 single priority logic. Move LOGICAL to same place as COMPARE.
6413 Remove bogus check for multiple unary +/- operators.
6415 2000-04-01 Neil Booth <NeilB@earthling.net>
6417 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
6418 within the switch statement. Binary operations break out of
6419 the switch naturally. '(' tokens handled by forcing
6420 immediate shift. ')' handled by forcing immediate reduce to
6421 the previous '('. New error messages.
6423 2000-03-31 Geoff Keating <geoffk@cygnus.com>
6425 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
6426 part', it's already in use. Use %K instead. Add a return at the
6427 end of what is now %K.
6428 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
6430 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
6432 * builtins.c (expand_builtin_apply): Pass proper parameters to
6433 allocate_dynamic_stack_space.
6434 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
6435 update stack_pointer_delta; do not update arg_size_so_far.
6436 (compute_argument_block_size): Use stack_delta instead of
6437 stack_pointer_pending and arg_size_so_far.
6438 (expand_call): Add sanity checking for stack_pointer_delta;
6439 save and restore stack_pointer_delta for SIB, use
6440 stack_pointer_delta for alignment; do not update arg_space_so_far.
6441 (emit_library_call_value): Use stack_pointer_delta for alignment.
6442 (store_one_arg): Do not update arg_space_so_far.
6443 * explow.c (adjust_stack, anti_adjust_stack): Update
6444 stack_pointer_delta.
6445 (allocate_dynamic_stack_space): Add sanity checking for
6446 stack_pointer_delta.
6447 * expr.c (init_expr, clear_pending_stack_adjust): Clear
6448 stack_pointer_delta.
6449 (emit_push_insn): Update stack_pointer_delta.
6450 * function.h (struct expr_status): Add x_stack_pointer_delta;
6451 remove x_arg_space_so_far.
6452 (arg_space_so_far): Remove.
6453 (stack_pointer_delta): New macro.
6455 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
6457 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
6458 Reorder struct cpp_options and struct cpp_reader for better
6459 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
6460 takes two args. Change all 'char' flags to 'unsigned char'.
6461 Move show_column flag into struct cpp_options. Don't
6462 prototype cpp_options_init.
6463 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
6464 cppinit.c, cpplex.c, cpplib.c:
6465 Replace CPP_OPTIONS (pfile)->whatever with
6466 CPP_OPTION (pfile, whatever), and likewise for
6467 opts = CPP_OPTIONS (pfile); ... opts->whatever;
6469 * cppinit.c (merge_include_chains): Take a cpp_reader *.
6470 Extract CPP_OPTION (pfile, pending) and work with that
6472 (cpp_options_init): Delete.
6473 (cpp_reader_init): Turn on on-by-default options here.
6474 Allocate the pending structure here.
6475 (cl_options, enum opt_code): Define these from the same table,
6476 kept in a large macro. Add -fshow-column and -fno-show-column
6479 * cpperror.c (v_message): If show_column is off, don't print
6482 * cppmain.c: Update for new interface.
6483 * fix-header.c: Likewise.
6485 2000-03-30 Geoff Keating <geoffk@cygnus.com>
6487 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
6489 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
6490 are passed to any invocation of AR_FOR_TARGET.
6491 (AR_CREATE_FOR_TARGET): New macro.
6492 (AR_EXTRACT_FOR_TARGET): New macro.
6493 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
6494 AR_EXTRACT_FOR_TARGET.
6495 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
6496 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
6497 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
6498 AR_EXTRACT_FOR_TARGET to sub-makes.
6500 2000-03-31 Neil Booth <NeilB@earthling.net>
6502 * cppexp.c: Delete SKIP_OPERAND. Correct priority
6504 (_cpp_parse_expr): Check for multiple unary +/- operators.
6505 Correct priorities of ':' and '?'. Treat ')' as having a
6506 value. Ensure conditional expression is not void.
6508 2000-03-31 Mark Mitchell <mark@codesourcery.com>
6510 * alias.c (canon_rtx): Make it global.
6511 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
6513 * cse.c (struct table_elt): Add canon_exp.
6515 (invalidate): Canonicalize expressions only once.
6516 * rtl.h (canon_rtx): Declare.
6518 2000-03-30 Mark Mitchell <mark@codesourcery.com>
6520 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
6521 * alias.c (reg_known_value): Add comments.
6522 (init_alias_analysis): Likewise.
6523 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
6525 (cse_basic_block): Fix typo in comment.
6526 * emit-rtl.c: Include hashtab.h.
6527 (const_int_htab): New variable.
6528 (const_int_htab_hash): New function.
6529 (const_int_htab_eq): Likewise.
6530 (rtx_htab_mark_1): Likewise.
6531 (rtx_htab_mark): Likewise.
6532 (gen_rtx_CONST_INT): Cache all CONST_INTs.
6533 (unshare_all_rtx): Fix formatting.
6534 (init_emit_once): Initialize const_int_htab.
6535 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
6537 * rtl.texi: Document the fact that all CONST_INTs with the same
6540 2000-03-30 Richard Henderson <rth@cygnus.com>
6542 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
6544 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
6546 * configure.in: Comment out --enable-c-cpplib stanza.
6547 * configure: Regenerate.
6549 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6551 * expr.c (store_constructor): Properly compute displacement and
6552 alignment when offset is variable.
6554 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
6555 cases of alignment in bytes.
6557 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
6559 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
6560 since it is used to generate c-parse.y.
6561 * objc-parse.c, objc-parse.y: Regenerated.
6563 * function.c (expand_function_end): Pass alignment argument to
6564 emit_block_move in bits, not bytes.
6566 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6568 * expr.c (move_by_pieces_ninsns): Fix one more missing align
6571 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
6573 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
6574 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
6575 * function.c (assign_parms): Likewise.
6576 * integrate.c (expand_inline_function): Likewise.
6577 * stmt.c (expand_decl): Likewise.
6578 (copy_rtx_and_substitute): Likewise.
6579 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
6580 (clear_by_pieces): Fix error in last change.
6581 * emit-rtl.c (init_emit): Set known registers alignment in bits.
6582 * function.h (regno_pointer_align): Now unsigned.
6583 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
6585 * config/i386/i386.c (aligned_operand): Likewise.
6586 * config/sparc/sparc.c (mem_min_alignment): Likewise.
6587 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
6588 (unaligned_memory_operand): Likewise.
6589 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
6590 Also make alignments and sizes unsigned and some whitespace cleanup.
6591 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
6593 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
6594 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
6595 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
6596 (expand_builtin_memset): Likewise, but to clear_storage.
6597 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
6598 (restore_fixed_argument_area): Likewise.
6599 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
6600 (load_register_parameters): Likewise, to emit_group_load.
6601 (expand_call): Likewise, to emit_group_store and emit_block_move.
6602 (emit_library_call_value_1): Likewise, to emit_block_move.
6603 (store_one_arg): Likewise, and to emit_push_insn.
6604 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
6605 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
6606 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
6607 (emit_block_move, emit_group_load, emit_group_store): Likewise.
6608 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
6609 (expand_assigment, store_expr, store_constructor_field): Likewise.
6610 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
6611 (store_constructor, store_field, get_inner_reference): Likewise.
6612 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
6613 (expand_expr, case COMPONENT_REF): Likewise.
6614 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
6615 and positions; reindent code.
6616 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
6617 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
6618 (assign_parms): Likewise to emit_group_store.
6619 * optabs.c (prepare_cmp_insn): Alignment is in bits.
6620 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
6621 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
6622 (expand_return): Likewise to {extract,store}_bit_field.
6623 * stor-layout.c (get_mode_alignment): Minor cleanup.
6624 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
6625 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
6627 2000-03-29 Nick Clifton <nickc@cygnus.com>
6629 * config/arm/arm.h: Undo effects of previous delta:
6630 (ASM_SPEC): Do not define.
6631 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
6633 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
6636 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
6638 * cppinit.c (cpp_start_read): Call initialize_dependency_output
6639 only after reading in the primary source file.
6641 2000-03-29 Geoff Keating <geoffk@cygnus.com>
6643 * c-common.c (c_common_nodes_and_builtins): The first parameter to
6644 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
6645 or a reference to a va_list.
6646 * builtins.c (stabilize_va_list): Simplify now we don't have to
6647 work around C array address decay.
6648 * c-typeck.c (convert_for_assignment): Handle assignment to
6649 a reference parameter by taking the address of the RHS.
6650 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
6651 (va_copy): Likewise.
6652 (__va_copy): Likewise.
6653 * ginclude/varargs.h (va_start): Likewise.
6654 (__va_copy): Likewise.
6656 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
6658 * i386/djgpp.h: Remove extraneous "+".
6660 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
6662 * calls.c (expand_call): Fix typo in last change.
6664 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
6666 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
6669 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6671 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
6672 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
6673 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
6674 * tree.c (bit_position, byte_position): Likewise.
6675 * tree.h: Declare new functions.
6677 2000-03-29 Nick Clifton <nickc@cygnus.com>
6679 * config/arm/arm.c: Minor formatting changes/
6680 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
6682 (ASM_SPEC): Define if not already defined.
6684 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
6686 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
6689 2000-03-29 Jakub Jelinek <jakub@redhat.com>
6691 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
6692 value, don't output it as unsigned.
6694 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
6696 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
6698 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6700 * c-common.c (c_common_nodes_and_builtins): Don't special case
6701 cplus_mode when declaring builtin bzero/bcmp, always avoid
6702 prototype arguments.
6704 2000-03-29 Bruce Korb <bkorb@gnu.org>
6706 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
6709 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
6711 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
6712 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
6713 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
6714 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
6715 (save_fixed_argument_area, restore_fixed_argument_area):
6716 conditionize by #ifdef REG_PARM_STACK_SPACE only.
6717 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
6718 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
6719 (precompute_register_parameters): Avoid #ifdefs on
6720 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
6721 (stire_one_args): Likewise.
6722 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
6723 (emit_library_call_value_1): Likewise.
6724 (compute_argument_block_size): Align to STACK_BOUNDARY only for
6725 ACCUMULATE_OUTGOING_ARGS.
6726 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
6728 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
6729 (use_crosses_set_p): Likewise.
6730 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
6731 #define ACCUMULATE_OUTGOING_ARGS 1.
6732 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
6734 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
6736 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
6737 (TARGET_SWITCHES): Add push-args, no-push-args,
6738 accumulate-outgoing-args and no-accumulate-outgoing-args.
6739 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
6740 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
6741 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
6743 (emit_push_insn): Likewise.
6744 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6745 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
6746 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6747 (STACK_DYNAMIC_OFFSET): Define correctly for both
6748 ACCUMULATE_OUTGOING_ARGS and normal mode.
6749 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
6750 * tm.texi (PUSH_ARGS): Document.
6751 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
6753 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
6755 * flags.h (flag_optimize_sibling_calls): Declare.
6756 * calls.c (expand_call): Fail sibcall when
6757 !flag_optimize_sibling_calls
6758 * invoke.texi (flag_optimize_sibling_calls): Document.
6759 * toplev.c (flag_optimize_sibling_calls): New global variable.
6760 (f_options): Add flag_optimize_sibling_calls.
6761 (rest_of_compilation): Conditionize
6762 optimize_sibling_and_tail_recursive_calls by
6763 flag_optimize_sibling_calls.
6764 (main): Set flag_optimize_sibling_calls for -O2.
6765 * stmt.c (expand_return): Conditionize tail recursion by
6766 flag_optimize_sibling_calls.
6768 2000-03-29 Richard Henderson <rth@cygnus.com>
6770 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
6771 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
6773 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
6775 * except.c (add_eh_table_entry): Mark type_info's as referenced.
6777 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6779 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
6781 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
6782 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
6783 * config/rs6000/aix.h: then modified likewise.
6785 2000-03-28 Richard Henderson <rth@cygnus.com>
6787 * rtl.h: Redistribute enum reg_note documentation.
6788 Kill trailing whitespace.
6789 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
6790 Kill trailing whitespace.
6792 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
6794 * cppfiles.c (hash_IHASH): Just return i->hash.
6795 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
6796 htab_find_with_hash.
6797 (cpp_read_file): Likewise.
6798 (find_include_file): Likewise. Properly initialize
6799 ih->nshort. Share ih->name and ih->nshort if possible.
6800 * cpphash.c (_cpp_calc_hash): New function.
6801 (hash_HASHNODE): Just return h->hash.
6802 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
6803 htab_find_with_hash.
6804 * cpphash.h: Prototype _cpp_calc_hash.
6805 * cppinit.c (initialize_builtins): Provide a valid hash
6806 to _cpp_make_hashnode, using _cpp_calc_hash.
6808 * cpphash.c (collect_expansion): # is not a special character
6809 in object-like macros. In -traditional mode, /**/ is not
6810 token paste at the beginning or end of the line.
6811 * cpplib.c (do_include, do_import, do_include_next): If
6812 parse_include fails, return immediately.
6814 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
6816 * config/arm/arm.md (return peepholes): Update to reflect the new
6818 * config/arm/arm.c (arm_volatile_func): Also check
6819 current_function_nothrow.
6820 (output_return_instruction, output_func_prologue): Use it.
6821 (arm_output_epilogue, arm_expand_prologue): Likewise.
6823 2000-03-27 Tom Tromey <tromey@cygnus.com>
6825 * gcc.c (handle_braces): In {x*...} case, break out of loop if
6828 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6830 * expr.c (store_constructor): SIZE now signed.
6831 For EXPR_SIZE, don't evaluate size; just needed if constant.
6832 * fold-const.c (fold): Fix a number of cases when folded tree is
6834 * function.c (flush_addressof): Reenable.
6835 * tree.h (flush_addressof): Likewise.
6836 * toplev.c (independent_decode_option): Look at strings_processed.
6837 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
6839 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
6841 * sibcall.c (indentify_call_return_value): Find last call in the chain;
6842 Allow stack adjustment after function call.
6844 * regmove.c (struct csa_memlist): Make mem field rtx *.
6845 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
6846 (try_apply_stack_adjustment): Replace whole MEM rtx.
6847 (combine_stack_adjustments_for_block): Update calls
6848 to record_one_stack_ref.
6850 2000-03-28 Neil Booth <NeilB@earthling.net>
6852 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
6853 '\\' rather than a null character, so nulls are not special. Fix
6854 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
6855 speed trigraph conversion.
6856 (_cpp_init_input_buffer): Initialize trigraph map.
6858 2000-03-27 Alan Modra <alan@linuxcare.com.au>
6860 * config/i386/i386.c (output_387_binary_op): Correct intel
6861 mode assembly output, and add spaces after commas in AT&T
6862 output. Correct Unixware assembler comment. Document input
6863 constraints. Comment fp operations. Reduce profligate buffer
6864 size. Remove extraneous abort. Localize temp var.
6865 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
6866 (output_fix_trunc): Add spaces after commas in assembly output.
6868 2000-03-27 Richard Henderson <rth@cygnus.com>
6870 * i386-protos.h (ix86_match_ccmode): Declare.
6871 * i386.c (ix86_match_ccmode): New.
6872 (ix86_expand_fp_compare): Update for pattern renames.
6873 (ix86_expand_strlensi_unroll_1): Likewise.
6874 * i386.h (EXTRA_CC_MODES): Add CCZ.
6875 (SELECT_CC_MODE): Use it for EQ/NE zero.
6876 * i386.md (cmpsi_ccz_1): New.
6878 (*testsi_ccz_1): New.
6879 (testqi_ccz_1): New.
6880 (cmpsi_ccno_1): Rename from cmpsi_0.
6881 (testsi_ccno_1): Rename from testsi_1.
6882 (testqi_ccno_1): Rename from testqi_1.
6883 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
6884 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
6885 (*cmphi_0): Use ix86_match_ccmode.
6886 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
6887 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
6888 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
6889 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
6890 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
6891 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
6892 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
6893 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
6894 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
6895 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
6896 (appropriate peepholes): Likewise.
6897 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
6898 (*subsi_3, *subhi_3, *subqi_3): Remove.
6899 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
6900 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
6901 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
6902 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
6903 (x86_shift_adj_1): Use CCZ.
6904 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
6906 2000-03-27 Stan Cox <scox@cygnus.com>
6908 * resource.h (mark_resource_type): New.
6909 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
6910 find_free_register): Use mark_resource_type.
6911 (mark_set_resources): Change include_delayed_effects
6912 to mark_resource_type.
6913 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
6914 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
6915 Use mark_resource_type.
6917 2000-03-27 Richard Henderson <rth@cygnus.com>
6919 * i386.md (call_pop_0, call_value_pop_0): New.
6920 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
6921 (call_value_pop_1): Likewise.
6922 (call_0, call_value_0): New.
6923 (call_1, call_value_1): Remove constraint from unused arg.
6925 2000-03-27 Nick Clifton <nickc@cygnus.com>
6927 * invoke.texi (Spec Files): Document new spec % command created by
6928 Tom Tromey's recent patch.
6930 2000-03-27 Jakub Jelinek <jakub@redhat.com>
6932 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
6935 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6937 * expr.c (expand_assignment): Fix typo in last change.
6939 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
6941 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6943 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
6944 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
6945 and DECL_INLINE if FUNCTION_DECL.
6946 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
6947 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
6948 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
6949 (combine_parm_decls): Likewise.
6950 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
6951 * print-tree.c (print_node): Likewise.
6952 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
6953 DECL_TRANSPARENT_UNION on proper decl types.
6954 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
6955 * stor-layout.c (layout_decl): Only check DECL_PACKED and
6956 DECL_BIT_FIELD of FIELD_DECL.
6957 * tree.h (DECL_RESULT_FLD): New macro.
6959 * expr.c (expand_assignment): Add code to handle variable-sized
6962 2000-03-26 Richard Henderson <rth@cygnus.com>
6964 * calls.c (expand_call): Pass parms not original exp to
6965 optimize_tail_recursion. Mind return value instead of looking
6967 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
6968 call_expr. Move checks for call_expr and current_function_decl ...
6969 (expand_return): ... here.
6971 2000-03-26 Tom Tromey <tromey@cygnus.com>
6973 * gcc.c (handle_braces): Recognize `%{<S}' construct.
6974 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
6976 (process_command): Use them.
6977 (check_live_switch): Likewise.
6978 (give_switch): Skip ignored switches.
6980 2000-03-26 Jan Hubicka <jh@suse.cz>
6982 * jump.c (jump_optimize_1): Fix typo in elide optimizations
6983 for minimal jump pass test.
6985 2000-03-26 Mark Mitchell <mark@codesourcery.com>
6987 * integrate.c (function_cannot_inline_p): Do inline functions that
6990 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6992 * stor-layout.c (layout_type, set_sizetype): early_type_list is
6993 now a list of TREE_LIST entries, not types.
6994 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
6996 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
6997 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
6999 * config/mips/mips.c (function_arg): Likewise; also remove cast
7000 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
7001 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
7002 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
7003 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
7004 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
7005 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
7006 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
7007 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
7008 num_adjusts now unsigned.
7009 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
7010 * config/sparc/sparc.c (struct function_arg_record_value_parms):
7012 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
7013 as is BITPOS variable; use host_integerp and int_bit_position.
7014 (function_arg_record_value_2): Likewise.
7015 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
7016 Variable REGNO now unsigned.
7017 (function_arg_record_value): NREGS now unsigned.
7019 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
7021 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
7023 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7025 * Rework fields used to describe positions of bitfields and
7026 modify sizes to be unsigned and use HOST_WIDE_INT.
7027 * alias.c (reg_known_value_size): Now unsigned.
7028 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
7029 (really_start_incremental_init): Use bitsize_zero_node.
7030 (push_init_level, pop_init_level, output_init_element): Likewise.
7031 Use bitsize_unit_node and bitsize_one_node.
7032 (output_pending_init_elements, process_init_element): Likewise.
7033 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
7034 (make_extraction): Position and length HOST_WIDE_INT and unsigned
7035 HOST_WIDE_INT, respectively.
7036 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
7037 (num_sign_bit_copies): Returns unsigned.
7038 BITWIDTH now unsigned; rework arithmetic.
7039 Remove recursive call from arg to MAX.
7040 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
7041 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
7043 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
7044 (find_split_point, expand_compound_operation, make_extraction): LEN
7045 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
7046 (make_field_assignment): Likewise.
7047 (combine_simplify_rtx): Add cast.
7048 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
7049 (force_to_mode): WIDTH now unsigned; add cast.
7050 (if_then_else_cond): SIZE now unsigned.
7051 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
7052 (extended_count): Now returns unsigned.
7053 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
7054 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
7055 (simplify_comparison): MODE_WIDTH now unsigned.
7056 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
7057 (mark_used_regs_combine): Likewise; rework arithmetic.
7058 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
7059 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
7060 (record_promoted_value): REGNO now unsigned.
7061 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
7062 (get_last_value): REGNO now unsigned.
7063 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
7064 (reg_dead_regno, reg_dead_endregno): Now unsigned.
7065 (remove_death): Arg REGNO now unsigned.
7066 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
7067 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
7069 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
7070 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
7071 (struct cse_reg_info): REGNO now unsigned.
7072 (cached_regno): Now unsigned.
7073 (REGNO_QTY_VALID_P): Add cast.
7074 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
7075 (remove_invalid_regs): Likewise.
7076 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
7077 as are variables END and I.
7078 (get_cse_reg_info, insert): Likewise.
7079 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
7080 (canon_hash): Likewise.
7081 (insert_regs, lookup_for_remove): REGNO now unsigned.
7082 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
7084 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
7085 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
7086 * emit-rtl.c (subreg_realpart_p): Add cast.
7087 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
7088 (operand_subword_force): Arg I is now unsigned.
7089 * except.c (eh_regs): Variable I is now unsigned.
7090 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
7091 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
7092 length is unsigned HOST_WIDE_INT; likewise for internal variables.
7093 (store_split_bit_field, extract_fixed_bit_field): Likewise.
7094 (extract_split_bit_field, store_bit_field, extract_bit_field):
7096 * expr.c (store_constructor_fields, store_constructor, store_field):
7097 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
7098 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
7099 (do_jump): Likewise.
7100 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
7101 MAX_SIZE is now unsigned.
7102 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
7103 (emit_group_store): Likewise.
7104 (emit_move_insn): I now unsigned.
7105 (store_constructor): Use host_integerp, tree_low_cst, and
7107 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
7108 Rework all calculations to use trees and new fields.
7109 * expr.h (promoted_input_arg): Regno now unsigned.
7110 (store_bit_field, extract_bit_field): Adjust types of pos and size.
7111 (mark_seen_cases): Arg is HOST_WIDE_INT.
7112 * flow.c (verify_wide_reg_1): REGNO now unsigned.
7113 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
7114 precisions and alignments are unsigned.
7115 (optimize_bit_field_compare, fold_truthop): Likewise.
7116 (int_const_binop): Adjust threshold for size_int_type_wide call.
7117 (fold_convert): Likewise.
7118 (size_int_type_wide): Make table larger and fix thinko that only
7119 had half of table used.
7120 (all_ones_mask_p, fold): Precisions are unsigned.
7121 * function.c (put_reg_info_stack): REGNO is unsigned.
7122 (instantiate_decl): Size is HOST_WIDE_INT.
7123 (instantiate_virtual_regs): I is unsigned.
7124 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
7125 (promoted_input_arg): REGNO is unsigned.
7126 * function.h (struct function): x_max_parm_reg is now unsigned.
7127 * gcse.c (max_gcse_regno): Now unsigned.
7128 (struct null_pointer_info): min_reg and max_reg now unsigned.
7129 (lookup_set, next_set): REGNO arg now unsigned.
7130 (compute_hash_table): REGNO and I now unsigned.
7131 (handle_avail_expr): regnum_for_replacing now unsigned.
7132 (cprop_insn): REGNO now unsigned.
7133 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
7134 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
7135 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
7136 * hard-reg-set.h (reg_class_size): Now unsigned.
7137 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
7138 * jump.c (mark_modified_reg): I now unsigned; add cast.
7139 (rtx_equal_for_thread_p): Add cast.
7140 * loop.c (max_reg_before_loop): Now unsigned.
7141 (struct_movable): REGNO now unsigned.
7142 (try_copy_prop): REGNO arg unsigned.
7143 (regs_match_p): XN and YN now unsigned.
7144 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
7145 (strength_reduce): Likewise; NREGS also unsigned.
7146 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
7147 * loop.h (struct iv_class): REGNO now unsigned.
7148 (max_reg_before_loop, first_increment_giv, last_increment_giv):
7150 * machmode.h (mode_size, mode_unit_size): Now unsigned.
7151 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
7152 * optabs.c (expand_binop): I and NWORDS now unsigned.
7153 (expand_unop): I now unsigned.
7154 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
7155 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
7156 * real.c (significand_size): Now returns unsigned.
7157 * real.h (significand_size): Likewise.
7158 * regclass.c (reg_class_size): Now unsigned.
7159 (choose_hard_reg_mode): Both operands now unsigned.
7160 (record_reg_classes): REGNO and NR now unsigned.
7161 (reg_scan): NREGS now unsigned.
7162 (reg_scan_update): old_max_regno now unsigned.
7163 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
7164 * reload.c (find_valid_class): BEST_SIZE now unsigned.
7165 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
7166 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
7167 Likewise for variable R.
7168 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
7169 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
7170 (find_equiv_reg): Add casts.
7171 (regno_clobbered_p): Arg REGNO now unsigned.
7172 * reload.h (struct reload): NREGS now unsigned.
7173 (refers_to_regno_for_reload_p): Regno args are unsigned.
7174 (regno_clobbered_p): Likewise.
7175 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
7176 (compute_use_by_pseudos): REGNO now unsigned.
7177 (find_reg): I and J now unsigned, new variable K, and change loop
7178 variables accordingly; THIS_NREGS now unsigned.
7179 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
7180 (spill_hard_reg): REGNO arg now unsigned; add casts.
7181 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
7182 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
7183 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
7184 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
7185 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
7186 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
7187 (emit_reload_insns): REGNO now unsigned.
7188 (reload_cse_move2add): Add cast.
7189 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
7191 * resource.c (mark_referenced_resources, mark_set_resources): New
7192 variable R; REGNO and LAST_REGNO now unsigned.
7193 (mark_target_live_regs): J and REGNO now unsigned.
7194 * rtl.c (mode_size, mode_unit_size): Now unsigned.
7195 * rtl.h (union rtunion_def): New field rtuint.
7196 (XCUINT): New macro.
7197 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
7198 (operand_subword, operand_subword_force): Word number is unsigned.
7199 (choose_hard_reg_mode): Operands are unsigned.
7200 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
7201 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
7202 (regno_use_in, combine_instructions, remove_death): Likewise.
7203 (reg_scan, reg_scan_update): Likewise.
7204 (extended_count): Return is unsigned.
7205 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
7206 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
7207 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
7208 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
7209 (reg_reg_last_1): FIRS and LAST now unsigned.
7210 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
7211 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
7213 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
7214 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
7215 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
7216 (replace_regs): Arg NREGS now unsigned.
7217 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
7218 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
7219 (simplify_binary_operation): Likewise.
7220 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
7221 THIS_LAST now unsigned.
7222 (cselib_record_set): Add cast.
7223 * ssa.c (ssa_max_reg_num): Now unsigned.
7224 (rename_block): REGNO now unsigned.
7225 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
7227 (all_cases_count): Just return -1 not -2.
7228 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
7229 Rework tests to use trees whenever possible.
7230 Use host_integerp and tree_low_cst.
7231 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
7232 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
7233 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
7234 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
7235 (smallest_mode_for_size): Likewise.
7236 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
7237 KNOWN_ALIGN is now an alignment, so simplify code.
7238 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
7239 (start_record_layout): Renamed from new_record_layout_info.
7240 Update to new fields.
7241 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
7243 (place_union_field): Renamed from layout_union_field.
7244 Update to use new fields in rli.
7245 (place_field): Renamed from layout_field.
7246 Major rewrite to use new fields in rli; pass alignment to layout_decl.
7247 (finalize_record_size): Rework to use new fields in rli and handle
7249 (compute_record_mode): Rework to simplify and to use new DECL fields.
7250 (finalize_type_size): Make rounding more consistent.
7251 (finish_union_layout): Deleted.
7252 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
7253 (layout_type, case RECORD_TYPE): Call new function names.
7254 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
7255 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
7256 (get_best_mode): UNIT is now unsigned; remove casts.
7257 * tree.c (bit_position): Compute from new fields.
7258 (byte_position, int_byte_position): New functions.
7259 (print_type_hash_statistics): Cast to remove warning.
7260 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
7261 (build_index_type): Likewise; make subtype of sizetype.
7262 (build_index_2_type): Pass sizetype to build_range_type.
7263 (build_common_tree_nodes): Use size_int and bitsize_int to
7264 initialize nodes; add bitsize_{zero,one,unit}_node.
7265 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
7266 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
7267 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
7268 (DECL_FIELD_BITPOS): Deleted.
7269 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
7270 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
7271 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
7272 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
7273 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
7274 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
7275 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
7276 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
7277 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
7278 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
7279 (DECL_ALIGN): Adjust to new field in union.
7280 (DECL_OFFSET_ALIGN): New field.
7281 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
7282 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
7283 (union tree_decl): Add struct for both aligns.
7284 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
7285 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
7286 (struct record_layout_info): Rework fields to have offset
7287 alignment and byte and bit position.
7288 (start_record_layout, place_field): Renamed from old names.
7289 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
7290 (byte_position, int_byte_position): Likewise.
7291 (get_inner_reference): Change types of position and length.
7292 * unroll.c (unroll_loop): New variable R; use for some loops.
7293 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
7294 (calculate_giv_inc): Arg REGNO now unsigned.
7295 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
7296 * varasm.c (assemble_variable): Clean up handling of size using
7297 host_integerp and tree_low_cst.
7298 (decode_addr_const): Use byte, not bit, position.
7299 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
7300 use tree_low_cst and int_bit_position.
7301 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
7303 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
7305 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
7306 (reorder_block_def): New members eff_head and eff_end.
7307 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
7308 (verify_insn_chain): New function.
7309 (skip_insns_between_block): Add code to skip deleted insns.
7310 Check for note before using.
7311 (chain_reorder_blocks): Replace calls to skip_insns_between_block
7312 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
7313 Check for note before using.
7314 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
7315 (fixup_reorder_chain): Restructure, clean up, defect removal.
7316 (reorder_basic_blocks): Remove last_insn and references to it.
7317 Moved insn chain verification code into a new function (see above).
7318 Delete defective code that sets last insn.
7319 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
7322 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7324 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
7326 2000-03-24 Richard Henderson <rth@cygnus.com>
7328 * tree.c (lang_safe_for_unsave): Remove.
7329 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
7330 allowing for two levels of unsafeness. Remove lang hook.
7331 * tree.h: Update declarations.
7332 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
7333 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
7334 Always fail sibcalls when there are pending cleanups.
7336 2000-03-24 Geoff Keating <geoffk@cygnus.com>
7338 * flow.c (propagate_block): When we delete an ADDR_VEC,
7339 also delete the BARRIER following it if there is one.
7341 2000-03-24 Richard Henderson <rth@cygnus.com>
7343 * builtins.c (expand_builtin_bzero): Convert `length' argument
7346 2000-03-24 Jakub Jelinek <jakub@redhat.com>
7348 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
7349 comparison if regno's are equal.
7350 * calls.c (initialize_argument_informat): Add ecf_flags argument.
7351 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7352 (expand_call): Update caller.
7353 Avoid making a sibling call if argument size of the callee is larger
7354 than argument size of the caller.
7355 Call hard_function_value with outgoing set if in sibcall pass.
7356 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7358 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
7359 Change LEAF_REGISTERS from an array initializer to actual array
7360 identifier. Move static global variable into the function.
7361 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
7362 sequences for leaf functions.
7363 * global.c (global_alloc): Likewise.
7364 * tm.texi (LEAF_REGISTERS): Update documentation.
7366 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
7367 TARGET_FLAT leaf disabling hack.
7368 (LEAF_REGISTERS): Changed from an array initializer to actual array
7369 identifier to avoid duplication and remove the above hack.
7370 (FUNCTION_OK_FOR_SIBCALL): Define.
7371 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
7372 always like call attribute.
7373 (eligible_for_sibcall_delay): New attribute.
7374 (sibcall): New delay type.
7375 (sibcall, sibcall_value, sibcall_epilogue): New expands.
7376 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
7377 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
7378 * config/sparc/sparc.c (sparc_leaf_regs): New array.
7379 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
7381 (output_function_epilogue): Move part of the code into
7382 output_restore_regs.
7383 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
7385 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
7388 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
7389 until infrastructure is finished.
7391 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
7393 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
7394 (save_parm_insns): Not here.
7396 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7398 * builtins.c (expand_builtin_bzero): New function.
7399 (expand_builtin): Handle bzero.
7401 * builtins.def: Add BUILT_IN_BZERO.
7403 * c-common.c (c_common_nodes_and_builtins): Provide builtin
7404 prototype & function for bzero.
7406 2000-03-23 Michael Meissner <meissner@redhat.com>
7408 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
7409 change adding TARGET_FP to the TF floating point insns, except for
7410 trunctfsf2, which generates direct calls to truncdfsf2.
7412 2000-03-23 Geoff Keating <geoffk@cygnus.com>
7414 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
7415 try to protect against middle-end changes that break binary
7417 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
7419 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7421 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
7423 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7425 * calls.c (expand_call): If TARGET is passed by reference and
7426 is readonly, write a CLOBBER.
7428 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7430 * builtins.c (expand_builtin): Handle bcmp.
7432 * builtins.def: Add BUILT_IN_BCMP.
7434 * c-common.c (c_common_nodes_and_builtins): Provide builtin
7435 prototype & function for bcmp.
7437 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
7439 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
7440 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
7441 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
7443 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
7445 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
7446 alternative when using -fp64 -gp32.
7448 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
7450 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
7451 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
7452 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
7454 * frame.h (frame_state): Revert last change.
7455 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
7456 * libgcc2.c (throw_helper): Revert last change.
7458 2000-03-22 Richard Henderson <rth@cygnus.com>
7460 * stmt.c (expand_asm_operands): Don't promote the temporary.
7462 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7464 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
7465 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
7466 c_get_alias_set): Likewise.
7467 * c-decl.c (duplicate_decls): Likewise.
7468 * c-typeck.c (default_conversion,build_unary_op): Likewise.
7469 * calls.c (initialize_argument_information): Likewise.
7470 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
7472 * dwarfout.c (decl_class_context,output_type): Likewise.
7473 * expr.c (get_inner_reference): Likewise.
7474 * fold-const.c (simple_operand_p,fold): Likewise.
7475 * function.c (aggregate_value_p): Likewise.
7476 * stmt.c (expand_asm_operands): Likewise.
7477 * varasm.c (named_section): Likewise.
7479 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
7481 Implement dwarf2 exception handling for the ARM.
7482 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
7483 (DWARF_FRAME_RETURN_COLUMN): Define.
7484 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
7485 REG_FRAME_RELATED_EXPR note.
7486 (emit_sfm): Likewise.
7487 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
7488 * dwarf2out.c (reg_save): Handle saving a register to itself.
7489 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
7490 * except.c (eh_regs): Don't use the static chain reg if it's
7492 * frame.h (frame_state): Add cfa_saved field.
7493 * frame.c (execute_cfa_insn): Set it.
7494 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
7496 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
7498 (instantiate_virtual_regs): Adjust.
7500 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7501 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7502 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
7504 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
7505 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
7507 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7509 * builtins.def: New file.
7511 * Makefile.in (TREE_H): Depend on builtins.def.
7513 * builtins.c (built_in_names): Use builtins.def.
7515 * tree.h (built_in_function): Likewise.
7517 2000-03-22 Mark Mitchell <mark@codesourcery.com>
7519 * tree.c (size_in_bytes): Return size_zero_node, not
7522 2000-03-22 Geoff Keating <geoffk@cygnus.com>
7524 * config/fp-bit.c (pack_d): Correct the case when a denormal
7525 is rounded up and stops being denormal.
7527 2000-03-21 Richard Henderson <rth@cygnus.com>
7529 * config/alpha/alpha.c (function_arg): Check for void_type_node
7530 before using MUST_PASS_IN_STACK.
7532 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
7534 * regmove.c (combine_stack_adjustments_for_block): Check that
7535 the stack pointer is a valid memory address.
7537 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
7539 * calls.c: re-install Mar 16 emit_library_call merge.
7541 2000-03-21 Jakub Jelinek <jakub@redhat.com>
7543 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
7544 we cannot be sure that if reload_completed base register will
7545 be properly aligned.
7547 2000-03-21 Richard Henderson <rth@cygnus.com>
7549 * flow.c (delete_block): Fix typo last change.
7551 2000-03-21 Mark Mitchell <mark@codesourcery.com>
7553 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
7554 not COMPLETE_TYPE_P, to check the type of the expression.
7556 2000-03-21 Michael Meissner <meissner@redhat.com>
7558 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
7559 all floating point insns that just tested the macro
7560 TARGET_HAS_XFLOATING_LIBS.
7561 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
7562 used to only use the gprs.
7564 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
7566 * tree.h (COMPLETE_TYPE_P): New macro.
7567 (COMPLETE_OR_VOID_TYPE_P): New macro.
7568 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
7569 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
7570 * c-aux-info.c (gen_type): Use them.
7571 * c-common.c (c_expand_expr_stmt): Likewise.
7572 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
7573 grokdeclarator, grokparms, finish_struct, start_function,
7574 store_parm_decls, combine_parm_decls): Likewise.
7575 * c-parse.y (cast_expr): Likewise.
7576 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
7577 c_size_in_bytes, c_alignof, build_component_ref,
7578 build_indirect_ref, build_array_ref, convert_arguments,
7579 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
7580 * calls.c (initialize_argument_information): Likewise.
7581 * convert.c (convert_to_integer): Likewise.
7582 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
7583 * dwarfout.c (location_or_const_value_attribute,
7584 output_enumeration_type_die, output_structure_type_die,
7585 output_union_type_die, output_type): Likewise.
7586 * expr.c (safe_from_p, expand_expr): Likewise.
7587 * function.c (assign_parms): Likewise.
7588 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
7589 * tree.c (build_array_type, build_function_type,
7590 build_method_type, build_offset_type, build_complex_type): Likewise.
7591 * c-parse.c, c-parse.h: Regenerated.
7593 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7595 * config/c4x/rtems.h: Include config/rtems.h.
7597 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
7599 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
7600 decl is a FUNCTION_DECL
7602 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
7604 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
7605 function uses output registers. Don't save RP for leaf functions.
7606 Do save RP even if no epilogue.
7607 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
7608 (CALL_USED_REGISTERS): Unmark in registers.
7609 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
7612 2000-03-20 Geoff Keating <geoffk@cygnus.com>
7614 * config/rs6000/rs6000.md (bunordered): New expander.
7615 (bordered): New expander.
7616 (buneq): New expander.
7617 (bunge): New expander.
7618 (bungt): New expander.
7619 (bunle): New expander.
7620 (bunlt): New expander.
7621 (bltgt): New expander.
7623 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
7624 (ccr_bit_negated_p): New function.
7625 (print_operand): For %C, generate appropriate cror for UNEQ,
7626 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
7628 2000-03-20 Andreas Jaeger <aj@suse.de>
7630 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
7633 * tree.h (safe_for_unsave): Prototype.
7635 2000-03-20 Richard Henderson <rth@cygnus.com>
7637 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
7638 (combine_stack_adjustments_for_block): Don't allow sp references
7639 in the side of a set we're not fixing up.
7640 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
7641 after life_analysis.
7643 2000-03-20 Richard Henderson <rth@cygnus.com>
7645 * calls.c (expand_call): Don't bother generating tail call
7646 sequences if there are pending cleanups. Use
7647 expand_start_target_temps/expand_end_target_temps to elide
7648 cleanups created during sibcall expansion.
7650 2000-03-20 Geoff Keating <geoffk@cygnus.com>
7652 * configure.in: Set $IFS to a value if it doesn't already have one
7653 in the --enable-checking handling.
7654 * configure: Regenerate.
7656 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7658 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
7659 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
7662 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
7664 * jump.c (delete_noop_moves): Remove code attempting to
7665 combine stack adjustments.
7667 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7669 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
7670 * except.c (emit_cleanup_handler): Use them.
7671 (expand_end_all_catch): Likewise.
7672 * function.c (fixup_var_refs): Likewise.
7673 (expand_function_end): Clear catch_clauses_last.
7674 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
7675 * except.h (struct eh_status): New field x_catch_clauses_last.
7676 (catch_clauses_last): New define.
7678 * Makefile.in (tree.o): Depend on HASHTAB_H.
7679 * tree.c: Include hashtab.h.
7680 (struct type_hash): Remove next field.
7681 (TYPE_HASH_SIZE): Remove.
7682 (TYPE_HASH_INITIAL_SIZE): New define.
7683 (type_hash_table): Change type to htab_t.
7684 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
7685 mark_hash_entry): New functions.
7686 (init_obstacks): Allocate type hash.
7687 (type_hash_lookup): Use htab functions.
7688 (type_hash_add, mark_type_hash): Likewise.
7689 (dump_tree_statistics): Call print_type_hash_statistics.
7691 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7693 * rs6000/t-aix41: New file.
7695 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
7697 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
7699 * tm.texi (Driver): Fix typos and tweak entry for
7701 Move misplaced STRUCT_FORCE_BLK entry ...
7702 (Storage Layout): ... to here.
7703 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
7705 2000-03-19 Richard Henderson <rth@cygnus.com>
7707 * flow.c (delete_block): Delete the addr_vec along with the block.
7708 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
7711 * fold-const.c (extract_muldiv): Apply type check for defined
7712 overflow to multiply as well as divide.
7714 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
7716 2000-03-18 Mark Mitchell <mark@codesourcery.com>
7718 * emit-rtl.c (remove_unncessary_notes): Check that all
7719 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
7720 associated NOTE_BLOCK.
7721 * function.h (identify_blocks): Update comments.
7722 (reorder_blocks): Declare.
7723 * function.c (identify_blocks): Don't take paramters.
7724 (reorder_blocks): Don't take parameters.
7725 * loop.h (find_loop_tree_blocks): Remove.
7726 (unroll_block_trees): Likewise.
7727 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
7728 reorder_blocks instead of unroll_block_trees.h
7729 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
7730 * stmt.c (find_loop_tree_blocks): Remove.
7731 (unroll_block_trees): Likewise.
7732 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
7733 in whole-function mode.
7734 * tree.h (reorder_blocks): Remove declaration.
7736 * expr.c: Include intl.h.
7737 * Makefile.in (expr.o): Depend on intl.h.
7739 2000-03-18 Richard Henderson <rth@cygnus.com>
7741 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
7743 2000-03-18 Mark Mitchell <mark@codesourcery.com>
7745 * tree.h (tree_index): Remove enumerals for integer types.
7746 (integer_type_kind): New type.
7747 (integer_types): New variable.
7748 (char_type_node): Adjust.
7749 (signed_char_type_node): Likewise.
7750 (unsigned_char_type_node): Likewise.
7751 (short_integer_type_node): Likewise.
7752 (short_unsigned_type_node): Likewise.
7753 (integer_type_node): Likewise.
7754 (unsigned_type_node): Likewise.
7755 (long_integer_type_node): Likewise.
7756 (long_unsigned_type_node): Likewise.
7757 (long_long_integer_type_node): Likewise.
7758 (long_long_unsigned_type_node): Likewise.
7759 * tree.c (integer_types): New variable.
7760 (init_obstacks): Register it as a root.
7762 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
7764 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
7765 NEXT_INSN. Update last insn in chain.
7767 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
7769 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
7770 with TYPE_DECL_SUPPRESS_DEBUG set.
7772 2000-03-18 Richard Henderson <rth@cygnus.com>
7774 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
7776 2000-03-18 Richard Henderson <rth@cygnus.com>
7778 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
7779 care for HALF_PIC_P.
7780 (expander_call_insn_operand): Remove.
7781 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
7782 * i386.h (PREDICATE_CODES): Update.
7783 * i386.md (all call expanders): Remove predicates, remove special
7784 handling for half-pic.
7785 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
7786 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
7787 (sibcall_epilogue): New.
7789 2000-03-17 Richard Henderson <rth@cygnus.com>
7791 * rtlanal.c (single_set): Reject if the parallel has anything
7792 except SET or USE or CLOBBER.
7794 2000-03-17 Jeff Law <law@cygnus.com>
7795 Richard Henderson <rth@cygnus.com>
7797 * Makefile.in (OBJS): Add sibcall.o.
7799 * sibcall.c: New file.
7800 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
7801 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
7802 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
7803 Emit sibcall patterns when requested. Update all callers.
7804 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
7805 elimination seems feasable.
7806 * final.c (leaf_function_p): Sibling calls don't discount being
7808 * flow.c (HAVE_sibcall_epilogue): Provide default.
7809 (find_basic_blocks_1): Sibling calls don't throw.
7810 (make_edges): Make edge from sibling call to EXIT.
7811 (propagate_block): Don't remove sibcall_epilogue insns.
7812 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
7813 (sibcall_epilogue): New.
7814 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
7815 (identify_blocks_1): Likewise. Break out from ...
7816 (identify_blocks): ... here.
7817 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
7818 (reorder_blocks): ... here.
7819 (init_function_for_compilation): Zap prologue/epilogue as varrays.
7820 (record_insns): Extend a varray instead of mallocing new memory.
7821 (contains): Read a varray not array of ints.
7822 (sibcall_epilogue_contains): New.
7823 (thread_prologue_and_epilogue_insns): Emit and record
7824 sibcall_epilogue patterns.
7825 (init_function_once): Allocate prologue/epilogue varrays.
7826 * genflags.c (gen_insn): Treat sibcall patterns as calls.
7827 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
7829 (save_for_inline_nocopy): ... here.
7830 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
7832 (expand_inline_function): ... here.
7833 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
7834 (subst_constants): Handle 'n' formats.
7835 * jump.c (jump_optimize_minimal): New.
7836 (jump_optimize_1): New arg `minimal'; update callers. Elide most
7837 optimizations if it's set.
7838 * rtl.c (copy_rtx): Do copy jump & call for insns.
7839 * rtl.h (struct rtx_def): Document use of jump and call for insns.
7840 (SIBLING_CALL_P): New.
7841 (sibcall_use_t): New.
7842 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
7843 Invoke optimize_sibling_and_tail_recursive_calls.
7844 * tree.c (lang_safe_for_unsave): New.
7845 (safe_for_unsave): New.
7846 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
7848 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
7849 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
7850 (*sibcall_osf_1, *sibcall_value_osf_1): New.
7852 2000-03-17 Mark Mitchell <mark@codesourcery.com>
7854 * objc/objc-act.c (encode_method_prototype): Pass types, not
7855 PARM_DECLs, to int_size_in_bytes.
7857 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
7859 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
7861 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7862 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
7864 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7866 * Clean up usages of TREE_INT_CST_LOW.
7867 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
7868 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
7870 * c-tree.h (min_precision): Move declaration to here.
7871 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
7872 (build_unary_op, add_pending_init): Use bit_position.
7873 (pending_init_member, process_init_element): Likewise.
7874 (really_start_incremental_init, push_init_level, pop_init_level):
7875 Don't make copies of nodes or modify them in place, use consistent
7876 types when tracking positions, and use tree routines computations.
7877 (set_init_index, output_init_element): Likewise.
7878 (output_pending_init_elements, process_init_element): Likewise.
7879 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
7880 tree_low_cst and int_bit_position; also minor cleanup.
7881 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
7882 (print_cst_octal): Precision is unsigned.
7883 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
7884 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
7885 (simple_type_align_in_bits): Result is unsigned int.
7886 Use tree_int_low_cst and host_integerp.
7887 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
7888 (field_byte_offset): Result is HOST_WIDE_INT.
7889 Change types of internal variables so alignments are unsigned int,
7890 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
7891 Use host_integerp, tree_low_cst, and int_bit_position.
7892 (add_bit_offset_attribute): Likewise.
7893 (add_data_member_location_attribute): Use tree_cst_low.
7894 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
7895 (add_bit_size_attribute): Use tree_low_cst.
7896 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
7897 * dwarfout.c: Similar changes to dwarf2out.c.
7898 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
7899 * genoutput.c (n_occurences): Return -1 for null string.
7900 (strip_whitespace): Accept null string and make into function.
7901 (scan_operands): Reflect above changes.
7902 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
7903 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
7904 * ssa.c (rename_registers): Add missing cast of arg to bzero.
7905 * tree.c (int_size_in_bytes): Check for too big to represent.
7906 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
7907 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
7909 (min_precision): Delete from here.
7910 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
7911 and int_bit_position.
7912 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
7913 (encode_method_def): Likewise.
7914 (build_ivar_list_initializer): Use int_bit_position.
7915 (generate_shared_structures): Convert size.
7916 (encode_type, encode_complete_bitfield): Use integer_zerop.
7917 (encode_bitfield): Use tree_low_cst and int_bit_position.
7919 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7921 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
7923 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7925 * call.c (special_function_p): It is only malloc if it returns
7928 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7930 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
7931 (C33_FLAG, TARGET_C3X): Add macros.
7932 (TARGET_SWITCHES): Add -m33 option.
7933 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
7935 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7937 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
7938 (PARALLEL_PACK_FLAG): Delete.
7939 (TARGET_SWITCHES): Update.
7940 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
7942 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7944 * fold-const.c (fold): Fix a few cases when the returned result
7945 is not of the same type as the input.
7947 2000-03-16 Nick Clifton <nickc@cygnus.com>
7949 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
7952 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7954 * libgcc2.h: Move prototypes above macros with the same name.
7955 Wrap some function prototypes in the conditional which indicates
7956 whether they are supported, i.e. "BITS_PER_UNIT == 8".
7958 2000-03-16 Richard Henderson <rth@cygnus.com>
7960 * calls.c: Revert last two changes.
7962 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
7964 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
7965 has exponent 0 is a zero.
7967 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
7968 HASH may already be nonzero. Add code/mode into hash value
7969 immediately after repeat label.
7970 (cselib_lookup): Don't leave the hash table in an inconsistent
7971 state before a hash lookup operation.
7973 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
7975 * i386.md (all HI and QI mode non-move patterns): Conditionize
7976 by TARGET_[HQ]IMODE_MATH.
7977 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
7978 x86_promote_qi_regs): Declare.
7979 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
7980 TARGET_PROMOTE_QI_REGS): New macros.
7981 (PROMOTE_MODE): New macro.
7982 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
7983 x86_promote_qi_regs): New global variables.
7985 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
7987 * calls.c (emit_library_call_value_1): Break out from ...; handle
7988 VOIDmode function calls too.
7989 (emit_library_call_value): ... here.
7990 (emit_library_call): Implement by calling emit_library_call_value_1.
7992 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
7994 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
7995 Update arg_space_so_far on stack adjustments.
7996 (emit_library_call, emit_library_call_value): Likewise; take into
7997 account arg_space_so_far and pending_stack_adjust when calculcating
8000 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
8002 * flow.c: Move all basic block reordering code into its own file.
8003 (create_basic_block): Externalize.
8004 * bb-reorder.c: New file. Copy all basic block reordering code from
8005 flow.c to this file.
8006 (reorder_basic_blocks): Fix fencepost error in for-loop.
8007 (reorder_basic_blocks): Remove braces from single statement for-loops.
8008 * basic-block.h: Add declaration for create_basic_block.
8009 * Makefile.in: Add rules for bb-reorder.o.
8011 2000-03-16 Neil Booth <NeilB@earthling.net>
8013 * cppinit.c (handle_option): Implement #unassert directive
8014 as -A- command line option.
8015 (print_help): Update.
8016 * cpptexi.c: Update.
8018 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
8020 * md.texi (Standard Names): Document `jump'.
8022 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
8024 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
8027 2000-03-15 Geoff Keating <geoffk@cygnus.com>
8029 Merge changes from newppc-branch onto trunk.
8031 2000-03-15 Geoff Keating <geoffk@cygnus.com>
8033 * rs6000.c (toc_hash_table): Update for new hash table functions.
8034 (toc_hash_function): Likewise.
8035 (toc_hash_eq): Likewise.
8036 (toc_hash_mark_entry): Likewise.
8037 (toc_hash_mark_table): Likewise.
8038 (output_toc): Likewise.
8039 (rs6000_add_gc_roots): Likewise.
8041 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8043 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
8044 (AR_FLAGS_FOR_TARGET): here. New macro.
8046 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
8048 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
8049 fpmem_operand) Delete.
8051 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
8052 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
8053 (rs6000_save_machine_status, rs6000_restore_machine_status,
8054 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
8055 references to above variables.
8056 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
8057 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
8058 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
8059 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
8060 (XER_REGNO_P, XER_REGNO): New.
8061 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
8062 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
8063 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
8065 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
8066 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
8067 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
8069 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8071 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
8072 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
8073 * rs6000.h: from here.
8075 * rs6000-protos.h (rs6000_select_section): Provide prototype.
8076 (rs6000_select_rtx_section): Likewise.
8077 (rs6000_encode_section_info): Likewise.
8078 (sdata_section): Likewise.
8079 (sdata2_section): Likewise.
8080 (sbss_section): Likewise.
8081 * sysv4.h (rs6000_select_section): Delete prototype.
8082 (rs6000_select_rtx_section): Likewise.
8083 (rs6000_encode_section_info): Likewise.
8084 (sdata_section): Likewise.
8085 (sdata2_section): Likewise.
8086 (sbss_section): Likewise.
8087 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
8089 * sysv4.h: Delete various unnecessary #undef's and put a comment
8090 on the remaining ones.
8091 Change various comments according to coding standard.
8093 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
8095 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
8096 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
8097 (CR0_REGNO_P) Remove.
8098 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
8099 setup_incoming_varargs, mtcrf_operation, print_operand,
8100 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
8101 Use the above macros.
8103 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
8105 * config/rs6000/rs6000.md: Added a new alternative for each
8106 pattern that had a 'x' alternative but no 'y' alternative.
8107 Added a new split for each of the above patterns.
8109 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8111 * aix41.h (ASM_CPU_SPEC): Delete.
8112 (CPP_CPU_SPEC): Delete.
8114 * aix.h (RS6000_OUTPUT_BASENAME): Define.
8115 (ASM_OUTPUT_LABEL): Define.
8116 (ASM_GLOBALIZE_LABEL): Define.
8117 (STRIP_NAME_ENCODING): Define.
8118 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
8119 (STRIP_NAME_ENCODING): Don't define.
8120 (ASM_OUTPUT_LABEL): Don't define.
8121 (ASM_GLOBALIZE_LABEL): Don't define.
8122 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
8123 names, and ASM_OUTPUT_LABEL to output labels, rather than
8125 (ASM_OUTPUT_LABEL): Define.
8126 (ASM_OUTPUT_INT): Use assemble_name.
8127 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
8128 (STRIP_NAME_ENCODING): Don't undefine first.
8129 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
8131 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
8132 specified with 'asm' even with -fleading-underscore.
8133 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
8134 (output_epilog): Likewise.
8135 (output_toc): Likewise.
8136 * tramp.asm: Handle -fleading-underscore correctly.
8138 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
8140 (nonlocal_goto_receiver): Delete.
8141 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
8143 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
8144 (SET_ASM_OP): Define.
8145 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
8147 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
8150 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
8151 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
8153 * rs6000.h: Add 'u' to more constants.
8155 2000-02-18 David Edelsohn <edelsohn@gnu.org>
8157 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
8159 2000-02-15 David Edelsohn <edelsohn@gnu.org>
8161 * rs6000.c (reg_or_u_cint_operand): New function.
8162 (logical_operand): Handle 64-bit hosts.
8163 (logical_u_operand): New function.
8164 (non_logical_cint_operand): Handle 64-bit hosts.
8165 (non_logical_u_cint_operand): New function.
8166 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
8167 (PREDICATE_CODES): Define new functions.
8168 * rs6000-protos.h: Declare new functions.
8169 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
8170 (movdi_64): Bracket code intended for 64-bit hosts. Create
8171 CONST_DOUBLE for 32-bit values.
8172 (scc insns): Generate DImode compares.
8173 (mfcr insns): Create DImode versions.
8174 (sge matchers): New patterns.
8176 2000-02-15 Gabriel Paubert <paubert@iram.es>
8178 * rs6000.md: Correct instructions length attributes and
8179 constraints on unsigned compare instructions.
8180 (*ne0): Disable for PowerPC64.
8182 2000-02-11 Geoff Keating <geoffk@cygnus.com>
8184 * rs6000.c (output_function_profiler): Use .long for a 32-bit
8185 quantity, fix profile1.C test failure under -fPIC.
8187 * rs6000.c: Add 'u' to many constants to suppress warnings.
8188 (constant_pool_expr_1): Make static.
8189 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
8190 * rs6000.h: Add 'u' to many constants to suppress warnings.
8192 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
8193 for the start of the TOC, instead of LCTOC..0.
8194 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
8196 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
8197 (load_toc_aix_di): Use LCTOC..1.
8199 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
8200 * rs6000.c (rs6000_legitimize_address): New function from
8201 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
8202 symbols in the constant pool that really are TOC references.
8203 (print_operand_address): For ELF, write TOC offsets under
8204 -fPIC as subtractions in the insn.
8205 (output_toc): For ELF, define symbols in TOC as normal labels,
8207 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
8208 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
8209 (create_TOC_reference): Prototype only when RTX_CODE is defined.
8210 * rs6000.md (movsi): Only use create_TOC_reference on
8211 symbols in the constant pool that really are TOC references.
8213 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
8214 * rs6000.c (rs6000_reorg): Delete.
8215 * rs6000-protos.h (rs6000_reorg): Delete.
8217 2000-02-09 Geoff Keating <geoffk@cygnus.com>
8219 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
8221 * aix.h (SETUP_FRAME_ADDRESSES): Define.
8222 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
8223 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
8224 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
8225 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
8226 rs6000_aix_emit_builtin_unwind_init.
8227 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
8228 rs6000_emit_eh_toc_restore on AIX.
8229 (return_eh_si): Use r2.
8230 (return_eh_di): Use r2.
8232 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
8233 since we're breaking binary compatibility anyway.
8235 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
8237 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
8238 constant_pool_expr_p): Declare them.
8239 (constant_pool_expr_p): Declare it.
8240 * config/rs6000/rs6000.c (toc_label_name): Define.
8241 (rs6000_override_options): Set toc_label_name.
8242 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
8243 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
8244 uses_TOC): New functions.
8245 (print_operand): Delete old '*' case.
8246 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8247 and strip off rtl for TOC before calling output_addr_const.
8248 (rs6000_emit_load_toc_table): Use toc_label_name.
8249 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
8251 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
8252 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
8253 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
8254 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
8255 into explicit TOC_REGISTER offsets.
8256 (TOC_REGISTER): New macro.
8257 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
8258 TARGET_TOC to reference TOC_REGISTER.
8259 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
8260 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
8261 uses_TOC before emitting label references.
8263 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8265 * rs6000.md (stack_tie): Fix warning.
8267 * eabi-ctors.c: Use 'asm' names for the start/end variables,
8268 to handle -fleading-underscore.
8269 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
8270 (USER_LABEL_PREFIX): New macro.
8271 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
8272 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
8273 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
8274 call-linux can use the same multilibs.
8275 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
8276 and call-linux multilibs. Do multilib with -fleading-underscore.
8277 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
8278 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
8281 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
8282 have MASK_SOFT_FLOAT set.
8283 (CPP_FLOAT_DEFAULT_SPEC): New macro.
8284 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
8285 CPP_FLOAT_DEFAULT_SPEC.
8287 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
8288 * rs6000.md: Whitespace change.
8289 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
8290 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
8292 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8294 * rs6000.md (eh_epilogue): New expander.
8295 (eh_reg_restore): New expand/split/insn combination.
8296 (return_eh_si): New insn.
8297 (return_eh_di): New insn.
8299 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
8300 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
8301 * eabi-ctors.c (__do_global_ctors): Register this object's
8302 frame. Clean up. Call atexit() after the constructors.
8303 (__do_global_dtors): Deregister this object's frame. Clean up.
8304 Allow for recursive calls to exit().
8305 * rs6000.c (fixuplabelno): New variable.
8306 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
8307 TARGET_RELOCATABLE, it slows down exec() under linux.
8308 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
8310 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
8311 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
8312 (ASM_OUTPUT_DWARF_DELTA2): New macro.
8313 (ASM_OUTPUT_DWARF_DELTA4): New macro.
8314 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
8315 (ASM_OUTPUT_DWARF_ADDR): New macro.
8316 (ASM_OUTPUT_DWARF_DATA4): New macro.
8317 (ASM_OUTPUT_DWARF_DATA2): New macro.
8318 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
8319 (ASM_OUTPUT_DWARF_OFFSET): New macro.
8320 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
8322 2000-02-03 Geoff Keating <geoffk@cygnus.com>
8324 * rs6000.c (rs6000_sr_alias_set): New variable.
8325 (rs6000_override_options): Initialise rs6000_sr_alias_set.
8326 (rs6000_emit_stack_tie): New function.
8327 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
8328 in a way that dwarf2out can understand.
8329 (rs6000_frame_related): New function.
8330 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
8331 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
8332 Use rs6000_emit_stack_tie when needed.
8333 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
8334 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
8335 * rs6000.md (stack_tie): New insn.
8336 (return_internal_si): Allow return value to be in the count
8338 (return_internal_di): Likewise.
8340 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
8342 2000-02-03 Geoff Keating <geoffk@cygnus.com>
8344 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
8346 2000-01-31 Geoff Keating <geoffk@cygnus.com>
8348 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
8350 * rs6000.md (stmw): Use the right POWER opcode.
8353 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8355 * rs6000-protos.h: New file.
8357 * rs6000.c: Include tm_p.h. Fix compile time warnings.
8359 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
8362 * sysv4.h: Likewise.
8364 2000-01-28 Geoff Keating <geoffk@cygnus.com>
8366 * ../../configure.in: Delete powerpcle-*-winnt*
8367 and powerpcle-*-pe|powerpcle-*-cygwin*.
8368 * ../../configure: Regenerated.
8370 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
8371 (TARGET_WINDOWS_NT): Delete.
8373 (CALL_NT_DLLIMPORT): Delete.
8374 Delete NT-specific code.
8375 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
8378 * nt-ci.asm: Delete.
8379 * nt-cn.asm: Delete.
8380 * ntstack.asm: Delete.
8382 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8384 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
8385 (ASM_FILE_START): Likewise.
8386 (ASM_DECLARE_FUNCTION_NAME): Likewise.
8387 (ASM_OUTPUT_LABELREF): Likewise.
8388 (ASM_OUTPUT_SKIP): Likewise.
8389 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8390 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8391 (ASM_OUTPUT_CASE_LABEL): Likewise.
8392 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8393 (ASM_OUTPUT_ASCII): Likewise.
8395 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
8397 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
8398 reload_toc_labelno for non-prologue TOC reloads. Also, don't
8399 increment rs6000_pic_labelno here.
8400 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
8401 and increment rs6000_pic_labelno here.
8403 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
8405 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
8406 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
8407 allocation knows (reg) is dead before the insn.
8409 2000-01-21 Geoff Keating <geoffk@cygnus.com>
8411 * rs6000.md (movsi_to_cr): Correct typo in output template.
8413 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
8415 * rs6000.c (rs6000_pic_labelno): Always define.
8416 (rs6000_pic_func_labelno): Delete.
8417 (lmw_operation): Check for a zero base register,
8418 which doesn't mean what we want.
8419 (stmw_operation): New function.
8420 (print_operand): Define new 'l' modifier.
8421 (rs6000_stack_info): We must save all 64 bits of the registers
8422 if TARGET_POWERPC64.
8423 (rs6000_output_load_toc_table): Delete.
8424 (rs6000_emit_load_toc_table): New function.
8425 (rs6000_allocate_stack_space): Delete.
8426 (rs6000_emit_allocate_stack): New function.
8427 (rs6000_emit_prologue): New function.
8428 (output_prolog): Use rs6000_emit_prologue.
8429 (rs6000_emit_epilogue): Change a few variable names to be
8430 more accurate. Restore all 64 bits of the registers if
8431 TARGET_POWERPC64. Only restore the FP registers which were used
8432 if they are being saved/restored one-at-a-time.
8433 (output_mi_thunk): Delete inefficient code generation.
8434 (output_function_profiler): Don't use rs6000_output_load_toc_table.
8435 * rs6000.h: Declare rs6000_emit_load_toc_table,
8436 rs6000_allocate_stack_space, stmw_operation. Don't declare
8437 rs6000_output_load_toc_table.
8438 * rs6000.md (elf_high): Allow register 0, but discourage it
8440 (elf_low): Support loading into register 0.
8441 (load_toc_aix_si): New pattern.
8442 (load_toc_aix_di): New pattern.
8443 (load_toc_v4_pic_si): New pattern.
8444 (load_toc_v4_pic_di): New pattern.
8445 (load_toc_v4_PIC_1): New pattern.
8446 (load_toc_v4_PIC_1b): New pattern.
8447 (load_toc_v4_PIC_2): New pattern.
8448 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
8449 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
8450 (prologue): New expander.
8451 (movesi_from_cr): New pattern.
8452 (stmw): New pattern.
8453 (save_fpregs_si): New pattern.
8454 (save_fpregs_di): New pattern.
8456 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8458 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
8463 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8465 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
8467 (movsi_got_internal): Likewise.
8468 (movsi_got_internal+1): Likewise.
8469 (set_sp): 'unspec 7' does a SImode clobber.
8471 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8473 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
8474 allocate a stack temporary.
8475 (floatsidf2_internal): Likewise.
8476 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
8478 (floatunssidf2): Don't use the fpmem "register", just
8479 allocate a stack temporary.
8480 (floatunssidf2_internal): Likewise.
8481 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
8483 (floatsidf2_loadaddr): Delete.
8484 (floatsidf2_store1): Delete.
8485 (floatsidf2_store2): Delete.
8486 (floatsidf2_load): Delete.
8487 (fix_truncdfsi2): Don't use the fpmem "register", just
8488 allocate a stack temporary.
8489 (fix_truncdfsi2_internal_si): Delete.
8490 (fix_truncdfsi2_internal_di): Delete.
8491 (fix_truncdfsi2_internal): New insn.
8492 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
8493 (fix_truncdfsi2_store): Delete.
8494 (fix_truncdfsi2_load): Delete.
8495 (fctiwz): Produce gen_fctiwz.
8497 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
8499 * eabi.h (INVOKE__main): Define.
8500 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
8502 (rs6000_emit_prologue): Likewise.
8503 * rs6000.h (struct rs6000_stack): Don't keep track of whether
8504 this is the main program.
8506 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8508 * rs6000.c (rs6000_va_arg): Delete some unused variables.
8510 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8512 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
8513 goes after the argument.
8515 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8517 * rs6000.md: Document 'unspec' values used.
8518 (epilogue): New expander.
8519 (movesi_to_cr_one): New expander.
8520 (movesi_to_cr and following): New pattern.
8522 (return_internal_si): New pattern.
8523 (return_internal_di): New pattern.
8524 (return_and_restore_fpregs_si): New pattern.
8525 (return_and_restore_fpregs_di): New pattern.
8526 * rs6000.h: Declare new functions.
8527 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
8528 rather than rs6000_calls_p.
8529 (rs6000_makes_calls): Delete.
8530 (lmw_operation): New function.
8531 (mtcrf_operation): New function.
8532 (rs6000_emit_epilogue): New function.
8533 (output_epilog): Call rs6000_emit_epilogue and final if
8534 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
8536 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8538 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
8539 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
8540 * aix.h (SUBTARGET_SWITCHES): Document switches.
8541 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
8542 sched-prolog and sched-epilog the same. Document all the
8544 (TARGET_OPTIONS): No longer allow -mdebug-.
8546 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8548 * rs6000.h (ASM_FILE_END): Move to aix.h.
8549 (EXTRA_SECTIONS): Move to aix.h.
8550 (READONLY_DATA_SECTION): Move to aix.h.
8551 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
8552 (SELECT_SECTION): Move to aix.h.
8553 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
8554 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
8555 (LINK_REGISTER_REGNUM): New definition.
8556 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
8557 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
8559 * sysv4.h: Delete the code between the inclusion of rs6000.h
8561 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
8562 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
8563 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
8564 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
8565 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
8566 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
8567 (fix_truncdfsi2_internal_di): New pattern.
8568 (fix_truncdfsi2_store): The second arg here is Pmode too.
8569 (fix_truncdfsi2_load): The second arg here is Pmode too.
8570 (tablejumpdi): Now that switch tables hold only SImode values,
8571 gcc needs to know how to add them to the pc which is DImode.
8572 * rs6000.c (rs6000_stack_info): Use symbolic name for
8573 LINK_REGISTER_REGNUM.
8574 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
8575 (output_toc): Delete unused variables s1 and s2.
8576 (output_ascii): Use fputs not fprintf on a variable string.
8578 2000-01-07 David Edelsohn <edelsohn@gnu.org>
8580 * rs6000.c (processor_target_table): Add power3 as alias for 630.
8581 * aix43.h: Revert Aug 2 change.
8582 (HAS_INIT_SECTION): Define, not visible yet.
8583 (LD_INIT_SWITCH): Define, not visible yet.
8584 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
8586 2000-01-04 Joel Sherrill (joel@OARcorp.com>
8588 * config/rs6000/rtems.h: Include config/rtems.h.
8590 2000-01-04 David Edelsohn <edelsohn@gnu.org>
8592 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
8593 (SLOW_UNALIGNED_ACCESS): Define.
8594 (CASE_VECTOR_MODE): Always use 32-bit offsets.
8595 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
8596 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
8597 (toc_section): Likewise and .toc pseudo-op.
8598 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
8600 (TEXT_SECTION_ASM_OP): Likewise.
8601 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
8604 1999-12-17 Jakub Jelinek <jakub@redhat.com>
8606 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
8607 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
8610 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8612 * rs6000.h: Move more stuff from here...
8614 * sysv4.h: Cleanup accordingly.
8615 * netware.h: Likewise
8617 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8619 * rs6000.h: Continue cleanup.
8622 * netware.h: Likewise.
8624 * sysv4.h: Likewise.
8625 * win-nt.h: Likewise.
8627 * rs6000.h (TARGET_SWITCHES): Add descriptions.
8628 (TARGET_OPTIONS): Likewise.
8630 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
8631 (SUBTARGET_OPTIONS): Likewise.
8633 * rs6000.md: Fix compile time warnings.
8635 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8637 vxworks patches from the Cygnus tree originally by
8638 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
8639 <vmakarov@cygnus.com>.
8640 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
8641 (ENDFILE_SPEC): Likewise.
8642 (LIB_VXWORKS_SPEC): New macro.
8643 (STARTFILE_VXWORKS_SPEC): New macro.
8644 (ENDFILE_VXWORKS_SPEC): New macro.
8645 (LINK_START_VXWORKS_SPEC): New macro.
8646 (LINK_OS_VXWORKS_SPEC): New macro.
8647 (CPP_OS_VXWORKS_SPEC): New macro.
8648 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
8649 * vxppc.h: Rewrite to use proper configuration method.
8650 * vxppcle.h: New file.
8651 * ../../configure.in: Add powerpcle-wrs-vxworks*.
8652 * ../../configure: Rebuilt.
8654 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8656 Lots of changes to rs6000.h, sysv4.h, aix.h,
8657 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
8658 with the aim that rs6000.h is the first header
8659 included and the others override it.
8662 * x-aix41-gld: Remove.
8664 * x-aix41: Remove target-specific switches, and don't specify
8665 -Wl,-bbigtoc as we don't need it any more.
8666 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
8667 Use t-aix43 for AIX 4.3 and above.
8668 * ../../configure: Regenerated.
8670 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
8671 options, that don't do anything yet.
8672 (MASK_SCHED_PROLOG): New macro.
8673 (MASK_SCHED_EPILOG): New macro.
8674 (TARGET_SCHED_PROLOG): New macro.
8675 (TARGET_SCHED_EPILOG): New macro.
8677 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8679 * rs6000.c: Correct comment, the `minimal' TOCs are actually
8680 one per translation unit, not one per function.
8681 (output_toc): Also do duplicate constant elimination
8682 for per-translation-unit TOCs.
8684 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
8685 a comment explaining _exactly_ when this pattern gets used.
8686 (builtin_setjmp_receiver): New pattern for better clarity.
8687 (init_v4_pic): Move it into a section dealing with TOC registers.
8689 1999-12-30 Geoff Keating <geoffk@cygnus.com>
8691 * rs6000.c (toc_hash_table): New variable.
8692 (rs6000_hash_constant): New function.
8693 (toc_hash_function): New function.
8694 (toc_hash_eq): New function.
8695 (toc_hash_mark_entry): New function.
8696 (toc_hash_mark_table): New function.
8697 (output_toc): Don't output duplicate TOC entries in
8699 (rs6000_add_gc_roots): Add the hash table as a GC root.
8700 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
8701 where they clearly shouldn't be. This may need to be fixed
8702 later when there is a GNU ar for AIX.
8703 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
8704 Don't define BOOT_LDFLAGS as it is now not necessary.
8706 1999-12-29 Geoff Keating <geoffk@cygnus.com>
8708 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
8709 for va_list on AIX. Use unsigned_char_type_node rather than
8710 constructing our own version on svr4.
8712 1999-12-17 Geoff Keating <geoffk@cygnus.com>
8714 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
8715 since patently it's not.
8717 1999-12-08 Geoff Keating <geoffk@cygnus.com>
8719 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
8720 define_expand/define_insn pair, and handle restore of the
8721 SVR4 -fpic register.
8723 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
8725 * acconfig.h (HAVE_GAS_WEAK): New define.
8726 * configure.in (assembler weak support): Check for .weak support.
8727 * config.in, configure: Rebuilt.
8728 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
8729 HAVE_GAS_WEAK is defined.
8731 2000-03-15 Nick Clifton <nickc@cygnus.com>
8733 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
8736 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
8738 * cppfiles.c (open_include_file): New function.
8739 (find_include_file, cpp_read_file): Use it.
8741 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
8743 * cpphash.c (dump_hash_helper): Take the slot, not the element.
8745 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
8747 * flow.c (verify_flow_info): Check for unconditional return.
8749 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
8751 * config/ia64/ia64.md (restore_stack_nonlocal): New.
8752 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
8753 (__ia64_restore_stack_nonlocal): New.
8754 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
8756 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8758 * cpphash.c (collect_formal_parameters): Do not complain about
8759 parameter names that just start with `__VA_ARGS__'.
8761 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
8763 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
8764 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
8765 * i386.c (pentiumpro_cost): Set mul cost to 4.
8766 (x86_use_movx): Set for PPro.
8768 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
8770 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
8771 STACK_BOUNDARY for empty frames now.
8773 2000-03-14 Mark Mitchell <mark@codesourcery.com>
8775 * stor-layout.c (layout_union): Remove.
8776 (layout_union_field): New function, split out from layout_union.
8777 (finish_union_layout): Likewise.
8778 (layout_field): Handle unions by calling layout_union_field.
8779 (finish_record_layout): Handle unions.
8780 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
8781 QUAL_UNION_TYPE handling.
8783 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
8785 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
8786 end of basic block is jump_insn, not barrier; use create_basic_block
8787 instead of creating basic block by hand.
8789 2000-03-14 Jason Eckhardt <jle@cygnus.com>
8791 * flow.c (reorder_basic_blocks): Account for barriers when writing
8792 over NEXT_INSN (last_bb->end).
8793 (verify_flow_info): Add check for missing barriers.
8795 2000-03-14 Greg McGary <gkm@gnu.org>
8797 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
8798 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
8799 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
8800 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
8801 __unbounded, __unbounded__): New keywords.
8802 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
8803 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
8804 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
8806 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
8808 * cselib.h: New file.
8809 * alias.c: Include "cselib.h".
8810 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
8811 MEMs as two new arguments.
8812 (get_addr): New static function.
8813 (find_base_term): Handle VALUEs.
8814 (memrefs_conflict_p): Likewise.
8815 (true_dependence): Call get_addr on the addresses.
8816 Call fixed_scalar_and_varying_struct_p with addresses that have been
8817 passed through get_addr and canon_rtx.
8818 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
8819 with true_dependence.
8820 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
8821 * loop.c: Include "cselib.h".
8822 (load_mems): Process extended basic block that enters the loop with
8823 cselib. Use that information to change initialization of the shadow
8824 register so that a constant equivalence is seen by later passes.
8825 * reload1.c: Include "cselib.h".
8826 (reload_cse_invalidate_regno): Delete function.
8827 (reload_cse_mem_conflict_p): Likewise.
8828 (reload_cse_invalidate_mem): Likewise.
8829 (reload_cse_invalidate_rtx): Likewise.
8830 (reload_cse_regno_equal_p): Likewise.
8831 (reload_cse_check_clobber): Likewise.
8832 (reload_cse_record_set): Likewise.
8833 (reg_values): Delete static variable.
8834 (invalidate_regno_rtx): Likewise.
8835 (reload_cse_delete_noop_set): New static function.
8836 (reload_cse_simplify): New static function, broken out of
8838 (reload_cse_noop_set_p): Delete unused argument INSN.
8839 Just call rtx_equal_for_cselib_p on set source and destination.
8840 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
8841 reload_cse_delete_noop_set. Delete code to keep track of values; use
8842 cselib functions instead. Delete code to push/pop obstacks.
8843 (reload_cse_simplify_set): Use cselib to find equivalent values.
8844 Delete code to push/pop obstacks.
8845 (reload_cse_simplify_operands): Likewise.
8846 * rtl.def (VALUE): New rtx code.
8847 * rtl.h (union rtunion_def): New elt rt_cselib.
8848 (X0CSELIB, CSELIB_VAL_PTR): New macros.
8849 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
8850 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
8851 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
8852 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
8853 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
8854 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
8855 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
8856 cselib_record_set, cselib_record_sets): New static functions.
8857 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
8858 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
8859 references_value_p): New functions.
8860 (MAX_USELESS_VALUES, REG_VALUES): New macros.
8861 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
8862 n_useless_values, reg_values, callmem, cselib_obstack,
8863 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
8864 New static variables.
8865 * varray.h (union varray_data_tag): New elt te.
8866 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
8867 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
8870 2000-03-14 Nick Clifton <nickc@cygnus.com>
8872 * gcc.c (do_spec_1): Catch the case where %* is used in a
8873 substitution pattern, but it has not been initialised.
8874 Issue a meaningful error message if an unrecognised operator
8875 is encountered in a spec string.
8877 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
8879 * function.c (prepare_function_start): Correctly initialize
8880 cfun->stack_alignment_needed.
8882 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
8884 * cppfiles.c (find_include_file): Don't assume nshort is a
8887 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
8889 * configure.in (hppa configurations): Add pa32-regs.h to the
8890 list of tm files as appropriate.
8891 * configure: Rebuilt.
8892 * pa.c (compute_frame_size): Remove explicit knowledge about FP
8894 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
8895 (fmpyaddoperands, fmpysuboperands): Likewise.
8896 * pa.h: Remove various definitions which depend on knowing
8897 how registers are numbered.
8898 * pa32-regs.h: New file with PA32 register numbering specific
8901 2000-03-14 Richard Henderson <rth@cygnus.com>
8903 * regmove.c (combine_stack_adjustments): New.
8904 (stack_memref_p, single_set_for_csa): New.
8905 (free_csa_memlist, record_one_stack_memref): New.
8906 (try_apply_stack_adjustment): New.
8907 (combine_stack_adjustments_for_block): New.
8908 * rtl.h (combine_stack_adjustments): Declare.
8909 * toplev.c (rest_of_compilation): Call it.
8911 * i386.md: Revert 2000-01-16 change.
8913 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8915 * gccbug.in: Add web category, gcc specific classes.
8917 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
8919 * stor-layout.c (finalize_record_size): Fix typo.
8921 2000-03-14 Stan Shebs <shebs@apple.com>
8923 * c-typeck.c (c_alignof): Error on incomplete types.
8924 * extend.texi (Alignment): Document this.
8926 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
8928 * cppfiles.c: Include mkdeps.h.
8929 (find_include_file, read_include_file): Remove _cpp_ prefix
8930 from name, make static.
8931 (_cpp_execute_include): New function, broken out of
8934 * cpplib.c: Don't include mkdeps.h.
8935 (struct directive): Remove type field. Reorder entries. The
8936 function takes only one argument.
8937 (struct if_stack): Make type field an int.
8938 (directive_table): Rename to dtable. Generate it, the
8939 prototypes of the directive handlers, and the enum for the
8940 directive numbers, from a template macro.
8941 (do_ifndef, do_include_next, do_import): New functions.
8942 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
8943 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
8944 do_ident, do_assert, do_unassert, do_sccs): Take only one
8946 (do_sccs): Define always, but alter behavior based on
8948 (_cpp_handle_directive, consider_directive_while_skipping):
8949 Restructure for new directive table layout.
8951 (pass_thru_directive): Take a directive number, not a pointer
8952 to a struct directive.
8953 (parse_include): New function, broken out of do_include.
8954 (do_include, do_import, do_include_next): Use parse_include
8955 and _cpp_execute_include.
8956 (do_elif, do_else): Test for T_ELSE specifically when checking
8957 for #elif/#else after #else.
8958 (parse_ifdef): New function, broken out of do_ifdef.
8959 (validate_else): Expect a name arg without a leading #.
8960 (if_directive_name): Delete.
8961 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
8962 directive handlers with only one argument.
8964 * cpphash.h: Update prototypes.
8965 (enum node_type): Remove entries for directives.
8966 * Makefile.in: Update dependencies.
8968 * cpphash.c (dump_hash_helper): Only dump nodes of type
8969 T_MACRO. Emit a newline after each definition.
8971 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8973 * gccbug.in: New file.
8974 * configure.in (all_outputs): Add gccbug.
8975 * Makefile.in (install-common): Install gccbug.
8976 (GCCBUG_INSTALL_NAME): New variable.
8977 * configure: Rebuilt.
8979 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
8981 * function.c (put_var_into_stack): Use type_for_mode to calculate
8982 part_type. Use MEM_SET_IN_STRUCT_P.
8983 * expr.c (store_field): Handle CONCAT.
8984 (store_constructor): Use fields_length.
8985 * tree.c (fields_length): New fn.
8986 * tree.h: Declare it.
8988 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
8990 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
8991 (cpplex.o): New target.
8992 * po/POTFILES.in: Add cpplex.c.
8994 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
8995 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
8996 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
8997 skip_block_comment, skip_line_comment, skip_comment,
8998 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
8999 _cpp_parse_name, skip_string, parse_string,
9000 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
9001 _cpp_get_directive_token, find_position,
9002 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
9003 (maybe_macroexpand, _cpp_lex_token): New functions.
9005 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
9006 parse_goto_mark): Delete.
9007 (_cpp_handle_eof): New function.
9008 (_cpp_handle_directive): Rename from handle_directive.
9009 (_cpp_output_line_command): Rename from output_line_command.
9010 (do_if, do_elif): Call _cpp_parse_expr directly.
9011 * cppfiles.c (_cpp_read_include_file): Don't call
9012 init_input_buffer here.
9013 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
9014 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
9015 here; pop the token_buffer and skip the rest of the line here.
9016 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
9019 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
9021 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
9022 CPP_GOTO_MARK): New macros.
9023 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
9024 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
9025 _cpp_read_and_prescan, _cpp_init_input_buffer,
9026 _cpp_grow_token_buffer, _cpp_get_directive_token,
9027 _cpp_handle_directive, _cpp_handle_eof,
9028 _cpp_output_line_command): Prototype them here.
9029 * cpplib.h (enum cpp_token): Add CPP_MACRO.
9030 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
9031 quote_string, output_line_command): Remove.
9033 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
9035 * stmt.c (expand_end_case): RANGE may be signed, and when checking
9036 whether it is too large we must also verify that it isn't negative.
9038 2000-03-13 Jakub Jelinek <jakub@redhat.com>
9040 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
9041 (movsi_zero_liveg0): Remove.
9042 (movsf_insn_novis_liveg0): Remove.
9044 (negsi2_not_liveg0): Rename to negsi2.
9045 (one_cmplsi2): Remove.
9046 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
9047 (one_cmplsi2_liveg0): Remove.
9048 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
9049 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
9050 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
9051 (PREDICATE_CODES): Remove zero_operand.
9052 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
9053 TARGET_BROKEN_SAVERESTORE.
9054 (zero_operand): Remove.
9055 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
9056 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
9058 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9059 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
9060 TARGET_BROKEN_SAVERESTORE): Remove.
9061 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9063 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9065 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9068 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
9070 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
9072 * cpplib.c (do_pragma_implementation): Fix off-by-one error
9073 truncating a string. Don't assume tokens are nul terminated.
9074 Problem noted by Andreas Jaeger <aj@suse.de>
9076 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
9078 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
9079 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
9080 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
9082 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
9084 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
9085 STRUCTURE_SIZE_BOUNDARY.
9087 2000-03-13 Mark Mitchell <mark@codesourcery.com>
9089 * tree.h (record_layout_info_s): New structure.
9090 (record_layout_info): New type.
9091 (new_record_layout_info): New function.
9092 (layout_field): Likewise.
9093 (finish_record_layout): Likewise.
9094 * stor-layout.c (layout_record): Remove.
9095 (new_record_layout_info): New function.
9096 (layout_field): New function, broken out from layout_record.
9097 (finalize_record_size): Likewise.
9098 (compute_record_mode): Likewise.
9099 (finalize_type_size): New function, broken out from layout_type.
9100 (finish_record_layout): Likewise.
9101 (layout_type): Use them.
9103 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
9105 * cpphash.c: Don't include version.h.
9106 (special_symbol) [case T_VERSION]: Look for the string in
9107 hp->value.cpval; don't use version_string.
9108 * cppinit.c (initialize_builtins): Set hp->value.cpval for
9109 __VERSION__ to version_string.
9110 * Makefile.in (cpphash.o): Update deps.
9112 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
9114 Convert cpplib to use libiberty/hashtab.c.
9116 * cpplib.h (struct cpp_reader): Make hashtab and
9117 all_include_files of type 'struct htab *'. Delete HASHSIZE
9118 and ALL_INCLUDE_HASHSIZE macros.
9120 * cpphash.h: Update prototypes.
9121 (struct hashnode): Remove next, prev, and bucket_hdr members.
9122 Make length a size_t. Add hash member.
9123 (struct ihash): Remove next member. Add hash member. Make
9124 name a flexible array member.
9126 * cppfiles.c: Include hashtab.h.
9127 (include_hash): Delete.
9128 (IHASHSIZE): New macro.
9129 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
9130 (cpp_included): Do the hash lookup here.
9131 (_cpp_find_include_file): Rewrite.
9132 (cpp_read_file): Put the "fake" hash entry into the hash
9133 table. Honor the control_macro, if it turns out we've seen
9134 the file before. Don't push the buffer here.
9135 (_cpp_read_include_file): Push the buffer here.
9136 (OMODES): New macro. Use it whenever we call open(2).
9138 * cpphash.c: Include hashtab.h.
9139 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
9140 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
9141 _cpp_lookup_slot): New functions.
9142 (HASHSIZE): new macro.
9143 (hashf, _cpp_install, _cpp_delete_macro): Delete.
9144 (_cpp_lookup): Use hashtab.h routines.
9146 * cppinit.c: Include hashtab.h.
9147 (cpp_reader_init): Call _cpp_init_macro_hash and
9148 _cpp_init_include_hash. Don't allocate hashtab directly.
9149 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
9150 pfile->all_include_files.
9151 (initialize_builtins): Use _cpp_make_hashnode and
9152 htab_find_slot to add hash entries.
9153 (cpp_finish): Just call _cpp_dump_macro_hash.
9154 * cpplib.c: Include hashtab.h.
9155 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
9156 create hash entries.
9157 (do_pragma_poison, do_assert): Likewise.
9158 (do_include): Don't push the buffer here. Don't increment
9159 system_include_depth unless _cpp_read_include_file succeeds.
9160 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
9162 (do_pragma_implementation): Use alloca to create copy.
9164 * Makefile.in: Update dependencies.
9166 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9168 * cppinit.c (cl_directive_handler): More K&R fixing.
9170 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
9172 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
9174 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
9176 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9178 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
9179 Change from char[] to macros.
9181 2000-03-12 Neil Booth <NeilB@earthling.net>
9183 * cppinit.c (cpp_start_read): Update indirect function
9186 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
9188 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
9191 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9192 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
9194 2000-03-11 Neil Booth <NeilB@earthling.net>
9196 * cppinit.c (struct pending option): Replace undef with a
9197 pointer to a directive handling routine.
9198 (struct cpp_pending): Replace separate assert_ and define_
9199 lists with one directive_ list.
9200 (new_pending_define): Rename new_pending_directive. Extra
9201 argument is the directive's handling routine.
9202 (handle_option): Update to use new_pending_directive.
9204 2000-03-11 Neil Booth <NeilB@earthling.net>
9206 * cppfiles.c (file_cleanup, _cpp_find_include_file,
9207 remap_filename, _cpp_read_include_file, actual_directory,
9208 hack_vms_include_specification): Replace bcopy(), index() etc
9209 calls. Add casts to some allocations. Make some variables
9210 pointers to const [unsigned] char.
9211 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
9212 collect_formal_parameters): Similarly.
9213 * cppinit.c (struct pending_option, append_include_chain,
9214 cpp_options_init, cpp_reader_init, initialize_standard_includes,
9215 cpp_start_read, new_pending_define, handle_option): Similarly.
9216 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
9217 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
9218 do_pragma_implementation, detect_if_not_defined,
9219 do_ifdef, skip_if_group, cpp_get_token, parse_string,
9220 do_assert, do_unassert): Similarly.
9221 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
9222 function prototypes.
9223 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
9225 2000-03-10 Richard Henderson <rth@cygnus.com>
9227 * builtins.c (expand_builtin_strlen): Revert last change.
9228 Use emit_insn_before if we're at the beginning of a sequence.
9230 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
9232 * builtins.c (expand_builtin_strlen): Make sure that we have something
9233 at the beginning of the sequence.
9235 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
9238 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
9240 2000-03-10 Richard Henderson <rth@cygnus.com>
9242 * except.c (can_throw): Use INTVAL on a CONST_INT.
9243 (reachable_handlers): Likewise.
9244 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
9246 2000-03-10 Andreas Jaeger <aj@suse.de>
9248 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
9249 MD_STARTFILE_PREFIX since those are not needed on linux.
9250 (ASM_FILE_START): New, from mips/gnu.h.
9252 2000-03-09 Richard Henderson <rth@cygnus.com>
9253 Alex Samuel <samuel@codesourcery.com> and others
9255 * Makefile.in (ssa.o): New rule.
9257 (STAGESTUFF): Add *.ssa and *.ussa.
9258 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
9259 * rtl.def (PHI): New RTL expression.
9260 * rtl.h (clear_log_links): New declaration.
9261 (convert_to_ssa): Likewise.
9262 (convert_from_ssa): Likewise.
9263 * flow.c (split_edge): If the entry node falls through to the
9264 split edge's source block, split the entry edge.
9265 (clear_log_links): New function.
9266 * toplev.c (ssa_dump): New variable.
9267 (flag_ssa): Likewise.
9268 (f_options): Add "ssa".
9269 (compile_file): Create SSA dump files.
9270 (rest_of_compilation): Go to and from SSA if enabled.
9271 (decide_d_option): Handle -de for SSA dump files.
9274 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
9276 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
9279 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
9281 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
9283 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
9285 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
9286 (MD_STARTFILE_PREFIX_1): New macro.
9288 2000-03-09 Robert Lipe <robertl@sco.com>
9290 * config/ia64/ia64.c: Include system.h.
9292 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
9294 * except.c (nothrow_function_p): If -fno-exceptions, just return.
9295 (init_eh_nesting_info): Likewise.
9297 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
9298 (TREE_NOTHROW): Rename from TREE_RAISES.
9299 * toplev.c (rest_of_compilation): Set it.
9300 * print-tree.c (print_node): Adjust.
9301 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
9302 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
9303 * calls.c (emit_call_1): Add 'nothrow' parm. Add
9304 REG_EH_REGION note as appropriate.
9305 (libfunc_nothrow): New fn.
9306 (emit_library_call, emit_library_call_value): Use it.
9307 (expand_call): Check TREE_NOTHROW.
9309 * varasm.c (make_decl_rtl): Skip initial '*' when setting
9310 DECL_ASSEMBLER_NAME.
9312 2000-03-09 Andreas Jaeger <aj@suse.de>
9314 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
9315 (TARGET_MEM_FUNCTIONS): Define.
9317 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
9319 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
9321 * except.c (can_throw): See through a SEQUENCE.
9322 (nothrow_function_p): New fn.
9323 * except.h: Declare it.
9324 * function.c (current_function_nothrow): New var.
9325 (prepare_function_start): Initialize it.
9326 * output.h: Declare it.
9327 * toplev.c (rest_of_compilation): Set it.
9328 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
9330 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
9332 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
9333 match. (cpp_compare_defs): Count the nul separator when
9334 advancing over argument names.
9336 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
9338 * recog.c (preprocess_constraints): Matching constraints affect
9339 same alternative/different operand, not same operand/different
9342 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
9343 register and a constant specially.
9345 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9347 * libgcc2.h: New file.
9348 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
9350 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
9352 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
9353 * configure: Regenerate.
9356 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
9358 * Makefile.in (LIBCPP_DEPS): New macro.
9359 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
9361 * cpperror.c: Include cpphash.h.
9362 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
9364 (lex): Don't use CPP_WARN_UNDEF.
9365 (_cpp_parse_expr): Return an int, the truth value.
9366 * cppfiles.c: Include cpphash.h.
9367 (_cpp_merge_include_chains): Move to cppinit.c and make static.
9368 * cppinit.c (include_defaults_array): Disentangle.
9369 (cpp_cleanup): Don't free the if stack here.
9370 (cpp_finish): Pop off all buffers, not just one.
9371 * cpplib.c (eval_if_expr): Return int.
9372 (do_xifdef): Rename do_ifdef.
9373 (handle_directive): Don't use CPP_PREPROCESSED.
9374 (cpp_get_token): Don't use CPP_C89.
9375 * fix-header.c: Don't use CPP_OPTIONS.
9377 * cpplib.h: Move U_CHAR, enum node_type, struct
9378 file_name_list, struct ihash, is_idchar, is_idstart,
9379 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
9380 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
9381 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
9382 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
9383 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
9384 of _cpp_simplify_pathname, _cpp_find_include_file,
9385 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
9386 Move struct if_stack to cpplib.c. Move struct cpp_pending to
9388 Change all uses of U_CHAR to be unsigned char instead.
9389 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
9391 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
9393 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
9394 (dwarf2out_begin_prologue): Set it.
9395 (output_call_frame_info): Don't emit EH unwind info for leaves.
9397 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
9398 can occur outside of an EH region.
9399 * except.c: Correct comments about rethrow behavior.
9400 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
9402 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
9404 * flow.c (make_edges): Always call make_eh_edge for calls.
9406 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
9408 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
9409 (struct cpp_buffer): Remove fname and underflow fields.
9410 (struct cpp_reader): Remove get_token field.
9411 (struct include_hash): Rename to struct ihash. Add typedef to
9413 (struct if_stack): Remove fname field.
9414 (IF_STACK_FRAME): Rename to IF_STACK.
9416 * cpperror.c (print_containing_files): Trust that there are no
9417 macro buffers below the top file buffer.
9418 * cppfiles.c: Replace all references to 'struct include_hash'
9419 with 'IHASH'. Rename initialize_input_buffer to
9420 init_input_buffer. Don't set or reference cpp_buffer->fname,
9421 use buffer->ihash->name instead.
9422 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
9423 not CPP_NULL_BUFFER.
9424 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
9425 IF_STACK_FRAME, IHASH not struct include_hash.
9426 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
9427 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
9428 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
9429 references to cpp_buffer->fname (delete entirely, or use
9430 ->ihash->name instead) and IF_STACK->fname.
9431 (cpp_push_buffer): Don't set new->underflow.
9432 (do_include): Use cpp_file_buffer.
9434 * cpphash.c (collect_formal_parameters): Remove duplicate
9435 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
9436 used as a macro argument name. Don't append "..." to namebuf
9437 for varargs macros. After we're done scanning, go through
9438 namebuf and make it NUL separated, not comma separated.
9439 (_cpp_compare_defs): Remove register tag from variables.
9440 Expect defn->argnames to be NUL separated.
9441 (_cpp_dump_definition): Expect defn->argnames to be NUL
9442 separated and in forward order.
9443 * cpphash.h: Update documentation of argnames field.
9445 2000-03-08 Richard Henderson <rth@cygnus.com>
9447 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
9448 to fail. Don't pre-expand the source operand.
9450 * i386.md (strlensi): Initialize eoschar and align before use.
9452 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
9454 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
9455 CONSTRUCTOR element.
9457 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
9459 * mips.c (mips_expand_prologue): If the last
9460 named argument is the vararg marker "va_list", treat it as
9461 an unnamed argument.
9463 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
9465 * dbxout.c (dbxout_parms): When correcting for promoted
9466 big-endian parameters, use the mode of the DECL_RTL rather
9467 than UNITS_PER_WORD.
9469 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
9471 * c-common.h (make_fname_decl): Declare.
9472 * c-common.c (make_fname_decl): Define.
9473 (declare_hidden_char_array): Remove.
9474 (declare_function_name): Use make_fname_decl.
9475 * c-decl.c (c_make_fname_decl): New function.
9476 (init_decl_processing): Set make_fname_decl.
9478 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
9480 * cccp.c (handle_directive): Initialize backslash_newlines_p.
9482 2000-03-07 Philipp Thomas <pthomas@suse.de>
9484 * po/POTFILES.in: Remove cppalloc.c from file list.
9486 2000-03-07 Steve Chamberlain <sac@pobox.com>
9488 * pj.c (pj_expand_prologue): current_function->args_info is
9489 now current_function_args_info.
9491 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
9492 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
9493 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
9495 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9497 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
9498 output as hexadecimal rather than the default octal.
9500 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
9502 * cpphash.c (special_symbol): Fix thinko in previous commit.
9504 2000-03-07 Neil Booth <NeilB@earthling.net>
9506 * cppexp.c (struct operation, left_shift, right_shift,
9507 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
9508 "int"s to "unsigned int"s.
9509 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
9511 * cpplib.h: Update for above.
9512 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
9513 returned from allocations.
9515 * cppinit.c (opt_comp, parse_options): New functions.
9516 (handle_option): Use parse_option to parse a single command
9517 line option, that possibly takes an argument.
9518 (cpp_handle_options): Sort the array of command line options on
9519 first invocation (non-ASCII hosts only).
9520 (print_help): Update.
9522 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
9524 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
9525 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
9527 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
9529 * cppinit.c (cpp_cleanup): Free imp->nshort also.
9531 * cpperror.c (cpp_print_containing_files,
9532 cpp_print_file_and_line, v_cpp_message): Rename to
9533 print_containing_files, print_file_and_line, and v_message.
9534 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
9535 to _cpp_parse_expr, parse_escape, and lex.
9536 (parse_charconst): Remove broken multibyte support.
9537 * cppfiles.c (include_hash): Make static.
9538 (cpp_included): New function.
9539 (merge_include_chains, find_include_file, finclude,
9540 simplify_pathname): Rename to _cpp_merge_include_chains,
9541 _cpp_find_include_file, _cpp_read_include_file, and
9542 _cpp_simplify_pathname.
9543 * cpphash.c (cpp_lookup, free_definition, delete_macro,
9544 cpp_install, create_definition, macroexpand, compare_defs,
9545 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
9546 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
9547 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
9548 * cppinit.c (cpp_handle_option): Rename to handle_option, make
9550 * cpplib.c: Remove extern prototype of cpp_parse_expr.
9552 * cpphash.h: Update prototypes.
9553 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
9555 2000-03-07 Andrew Haley <aph@cygnus.com>
9557 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
9558 PTRDIFF_TYPE should be based solely on Pmode.
9561 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9563 * rtl.h (rtunion_def): Constify member `rtstr'.
9564 (emit_line_note_after, emit_line_note, emit_line_note_force,
9565 emit_note, decode_asm_operands): Constify.
9567 * cse.c (canon_hash): Likewise.
9569 * dbxout.c (dbxout_block): Likewise.
9571 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
9572 v_warning_for_asm): Likewise.
9574 * dwarfout.c (function_start_label): Likewise.
9576 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
9577 emit_line_note_force): Likewise.
9579 * final.c (last_filename, asm_insn_count, final_scan_insn,
9580 output_source_line): Likewise.
9582 * function.h (struct emit_status): Likewise.
9584 * gcse.c (hash_expr_1): Likewise.
9586 * genattr.c (gen_attr, main): Likewise.
9588 * genattrtab.c (struct function_unit, current_alternative_string,
9589 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
9590 attr_numeral, check_attr_test, check_attr_value,
9591 convert_set_attr_alternative, convert_set_attr,
9592 compute_alternative_mask, simplify_by_exploding, gen_attr,
9593 gen_unit): Likewise.
9595 * genflags.c (gen_insn): Likewise.
9597 * gengenrtl.c (type_from_format): Likewise.
9599 * genopinit.c (gen_insn): Likewise.
9601 * genoutput.c (n_occurrences, process_template, process_template):
9604 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9607 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9610 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
9611 ggc_set_mark, ggc_get_size): Likewise.
9613 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
9615 * optabs.c (init_one_libfunc): Likewise.
9617 * output.h (assemble_start_function): Likewise.
9619 * recog.c (decode_asm_operands): Likewise.
9621 * toplev.c (rest_of_compilation): Likewise.
9623 * tree.h (emit_line_note_after, emit_line_note,
9624 emit_line_note_force): Likewise.
9626 * varasm.c (asm_output_bss, asm_output_aligned_bss,
9627 asm_emit_uninitialised, assemble_start_function,
9628 assemble_variable, const_hash, compare_constant_1,
9629 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
9631 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
9633 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
9635 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
9637 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
9639 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
9640 arm_dllimport_name_p): Likewise.
9642 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
9645 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
9647 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9649 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
9650 arm_mark_dllexport, arm_mark_dllimport,
9651 arm_pe_encode_section_info): Likewise.
9653 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
9654 ASM_FINISH_DECLARE_OBJECT): Likewise.
9656 * arm/thumb.c (thumb_function_prologue): Likewise.
9658 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
9660 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9662 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
9664 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
9666 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
9668 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9670 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
9671 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
9673 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
9675 * i386/i386.c (asm_output_function_prefix): Likewise.
9677 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
9679 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9681 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
9683 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
9684 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
9685 ASM_OUTPUT_SECTION_NAME): Likewise.
9687 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
9689 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
9691 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
9693 * m32r/m32r.c (m32r_encode_section_info): Likewise.
9695 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9697 * mcore/mcore.c (mcore_encode_section_info): Likewise.
9699 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9701 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9703 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9705 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
9707 * mips/mips.md (movdi, movsi): Likewise.
9709 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9711 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9713 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9715 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
9716 ASM_OUTPUT_ASCII): Likewise.
9718 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
9719 output_mi_thunk, output_toc): Likewise.
9721 * rs6000/rs6000.md (movsi): Likewise.
9723 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
9725 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
9727 * v850/v850.c (print_operand, print_operand_address,
9728 v850_encode_data_area): Likewise.
9730 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
9732 * config/mips/mips.md (zero_extendsidi2): Always force operand
9733 one to memory for mips16.
9735 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9737 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
9738 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
9739 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
9740 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
9741 (min_precision): Result is unsigned.
9742 (add_double, neg_double, mul_double): Low word is unsigned.
9743 (lshift_double, rshift_double, lrotate_double): Likewise.
9744 (rrotate_double, div_and_round_double): Likewise.
9745 (tree_floor_log2, compare_tree_int): New functions.
9746 (preserve_rtl_expr_temps): New declaration.
9747 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
9748 (decl_attributes): Use tree_log2 to find alignment.
9749 Check for TREE_INT_CST_HIGH for format args.
9750 (min_precision): Now unsigned.
9751 Use tree_floor_log2.
9752 (truthvalue_conversion): Delete long-disabled code.
9753 * c-decl.c (finish_struct): Clean up tests on field width.
9754 (finish_function): Use compare_tree_int.
9755 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
9756 * c-typeck.c (comptypes): Use tree_int_cst_equal.
9757 (default_conversion, digest_init): Use compare_tree_int.
9758 (build_binary_op): Use integer_all_onesp and compare_tree_int.
9759 Fix type errors in forming masks.
9760 * calls.c (initialize_argument_information): Use compare_tree_int.
9761 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
9762 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
9763 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
9764 (store_field): Use compare_tree_int.
9765 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
9766 (expand_expr, case ARRAY_REF): Use compare_tree_int.
9767 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
9768 (do_store_flag): Use compare_tree_int.
9769 * fold-const.c (encode, decode): Low part is always unsigned.
9770 (force_fit_type, add_double, neg_double, mul_double): Likewise.
9771 (lshift_double, rshift_double, lrotate_double): Likewise.
9772 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
9773 (fold_convert): Use compare_tree_int.
9774 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
9775 (invert_truthvalue, case INTEGER_CST): Likewise.
9776 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
9777 * mkdeps.c (deps_dummy_targets): Make I unsigned.
9778 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
9779 (lshift_double, rshift_double, lrotate_double, rrotate_double):
9781 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
9782 (expand_end_case): Use compare_tree_int.
9783 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
9784 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
9785 (layout_decl): Likewise.
9786 (layout_record, layout_union): Make sizes unsigned.
9787 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
9788 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
9789 * tree.c (struct type_hash): hashcode is unsigned.
9790 (build_type_attribute_variant, type_hash_list): Likewise.
9791 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
9792 (attribute_hash_list, build_array_type, build_method_type): Likewise.
9793 (build_complex_type): Likewise.
9794 (real_value_from_int_cst): Remove unneeded casts.
9795 (integer_all_onesp): Add casts.
9796 (tree_floor_log2, compare_tree_int): New functions.
9797 (build_index_type): Use tree_int_cst_sgn.
9798 * varasm.c (assemble_variable): Use compare_tree_int.
9800 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
9802 * cpphash.c (collect_expansion): Also catch ## at start of macro.
9804 * varasm.c (make_decl_rtl): Don't add a number to members of
9806 (make_function_rtl): Likewise.
9808 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9810 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
9811 patch from 2000-01-28.
9813 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
9815 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
9816 filled with an insn from the jump target.
9818 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9820 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
9821 (c4x_external_ref): Likewise.
9822 * config/c4x/c4x.c (struct name_list): Likewise.
9824 1999-12-16 Ben Collins <bcollins@debian.org>
9826 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
9827 argument to genmultilib.
9828 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
9829 the contents into the multilib.h header.
9830 * gcc.c: Declare multilib_exclusions for the specs file.
9831 (set_multilib_dir): Use it.
9832 (print_multilib_info): Likewise.
9833 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
9834 to pass to genmultilib.
9836 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9838 * builtins.c (built_in_class_names, built_in_names): Constify a
9841 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
9843 (_mcleanup): Ensure value matches format specifier in sprintf.
9845 * cpphash.c (special_symbol): Don't needlessly cast away
9848 * cppinit.c (base_name): Delete unused prototype.
9850 * mkdeps.c (deps_init): Make definition K&R safe.
9852 * tree.h (built_in_class_names, built_in_names): Constify a
9855 2000-03-06 Jakub Jelinek <jakub@redhat.com>
9857 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
9858 floating point instructions for epilogue delay.
9860 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
9861 to gas if it supports .register pseudo.
9863 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
9864 LONG_DOUBLE_TYPE_SIZE if not defined.
9865 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
9866 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
9868 * gengenrtl.c: Likewise.
9869 * print-rtl.c: Likewise.
9871 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
9872 MASK_LONG_DOUBLE_128.
9873 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
9874 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
9875 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
9876 (SUBTARGET_SWITCHES): Define.
9877 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
9878 with -mlong-double-128.
9879 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
9880 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
9881 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
9882 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
9883 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
9884 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
9885 with -mlong-double-128.
9886 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
9887 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
9888 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
9889 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
9890 TARGET_LONG_DOUBLE_128): Define.
9891 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
9892 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
9893 long double on TARGET_ARCH64.
9895 2000-03-06 Mark Mitchell <mark@codesourcery.com>
9897 * function.c (free_temps_for_rtl_expr): Don't free slots
9898 that have been pushed into a higher level.
9901 2000-03-05 Mark Mitchell <mark@codesourcery.com>
9903 2000-03-05 Mark Mitchell <mark@codesourcery.com>
9905 * basic-block.h (ALLOCA_REG_SET): Remove.
9906 (INITIALIZE_REG_SET): New macro.
9907 * flow.c (update_life_info): Use it.
9908 (calculate_global_regs_live): Likewise.
9909 (propagate_block): Likewise.
9910 * global.c (build_insn_chain): Likewise.
9911 * haifa-sched.c (schedule_region): Likewise.
9913 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
9915 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
9916 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
9917 (DWARF_ARANGES_PAD_SIZE): New define.
9918 (output_aranges): Use it to pad the address range header.
9919 (DWARF_ROUND): Fix for non power of 2 rounding.
9921 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
9923 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
9925 2000-03-05 Mark Mitchell <mark@codesourcery.com>
9927 * tree.def (RTL_EXPR): Update documentation.
9928 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
9929 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
9930 * function.c (preserve_rtl_expr_temp): New function.
9931 (preserve_rtl_expr_temps): Likewise.
9932 (preserve_rtl_expr_result): Use it.
9935 2000-03-04 Mark Mitchell <mark@codesourcery.com>
9937 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
9939 * regmove.c (copy_src_to_dest) Do not create src->dest move
9940 for unchanging destination.
9942 2000-03-04 Mark Mitchell <mark@codesourcery.com>
9944 * function.h (struct sequence_stack): Remove rtl_expr.
9945 (struct emit_staus): Likewise.
9946 (seq_rtl_expr): Remove.
9947 * tree.h (free_temps_for_rtl_expr): Don't declare.
9948 (start_sequence_for_rtl_expr): Likewise.
9949 * rtl.h (preserve_rtl_expr_result): Likewise.
9950 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
9951 (start_sequence_for_rtl_expr): Remove.
9952 (push_topmost_sequence): Don't save sequence_rtl_expr.
9953 (pop_topmost_sequence): Remove comment about not restoring it.
9954 (end_sequence): Don't set seq_rtl_expr.
9955 (init_emit): Don't initialize it.
9956 (mark_sequence_stack): Don't mark it.
9957 (mark_emit_status): Likewise.
9958 * except.c (protect_with_terminate): Use
9959 start_sequence_for_rtl_expr, not start_sequence.
9960 * expr.c (expand_expr, case RTL_EXPR): Don't call
9961 preserve_rtl_expr_result or free_temps_for_rtl_expr.
9962 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
9963 (preserve_rtl_expr_result): Remove.
9964 (free_temps_for_rtl_expr): Likewise.
9965 (pop_temp_slots): Likewise.
9966 (mark_temp_slot): Don't mark the rtl_expr.
9967 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
9968 start_sequence_for_rtl_expr.
9970 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
9972 * mkdeps.c, mkdeps.h: New files.
9973 * po/POTFILES.in: Add them.
9974 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
9975 (cpplib.o, cppinit.o): Depend on mkdeps.h.
9976 (mkdeps.o): New target.
9978 * cppfiles.c: Delete deps_output.
9979 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
9980 OBJECT_SUFFIX, and base_name.
9981 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
9983 (initialize_dependency_output): Use deps_init,
9984 deps_add_target, deps_calc_target, and deps_add_dep. Remove
9985 all the unnecessary string bashing.
9986 (cpp_finish): Use deps_write. Remove an unnecessary nesting
9988 * cpplib.c (do_include): Use deps_add_dep.
9989 * cpplib.h (struct cpp_reader): Replace deps_buffer,
9990 deps_allocated_size, deps_size, deps_column members with
9991 single pointer to a struct deps. Delete prototype of
9994 * cppinit.c: Fix thinko in previous patch.
9996 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9998 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
9999 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
10000 (mode_for_size_tree): New function.
10001 (layout_decl, layout_type): Call it and clean up BLKmode checks.
10002 * tree.h (mode_for_size_tree): New declaration.
10004 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
10006 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
10008 * stmt.c (is_body_block): Move...
10009 * dwarfout.c, dwarf2out.c: ...from here.
10010 * tree.h: Declare it.
10011 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
10012 * final.c (final_start_function): Do call remove_unnecessary_notes
10015 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
10017 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
10019 * cpplib.h (_dollar_ok): New macro.
10020 (is_idchar, is_idstart): Use it.
10021 (IStable): Rename to _cpp_IStable. Declare it const if
10022 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
10023 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
10024 is_space): Update for renamed IStable.
10026 * cppinit.c: Delete all references to FAKE_CONST and CAT
10027 macros. Define init_IStable as empty macro if gcc >=2.7 or
10028 C99. Change TABLE() to ISTABLE and hardcode name of table.
10029 (cpp_start_read): Don't change the IStable based on
10032 * cpphash.c (unsafe_chars): Add pfile argument. All callers
10033 changed. Handle '$' for char1 correctly.
10034 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
10036 * cppexp.c (tokentab2): Make const.
10037 (cpp_lex): Make toktab const.
10038 * cppinit.c (include_defaults_array): Make const.
10039 (initialize_standard_includes): Make default_include const.
10041 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
10043 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
10044 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
10045 (gen_decl_die): Likewise.
10046 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
10047 (output_decl): Likewise.
10049 * varasm.c (make_function_rtl): If we change the name used in the
10050 rtl, update DECL_ASSEMBLER_NAME accordingly.
10051 (make_decl_rtl): Likewise.
10053 * toplev.c (rest_of_compilation): Tweak formatting.
10055 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
10056 remove_unnecessary_notes.
10057 (debug_ignore_block): New fn.
10058 * toplev.h: Declare it.
10059 * emit-rtl.c (remove_unncessary_notes): Call it.
10060 * dwarf2out.c (dwarf2out_ignore_block): New fn.
10061 * dwarf2out.h: Declare it.
10062 * final.c (final_start_function): Don't call remove_unnecessary_notes
10063 if we did insn scheduling.
10065 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
10067 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
10068 * cpplib.h: Delete SET_CPP_PEDANTIC.
10070 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10072 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
10073 result is a RECORD_TYPE.
10075 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
10077 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
10079 2000-03-03 Richard Henderson <rth@cygnus.com>
10081 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
10082 addition over compliments over shifts.
10084 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10086 * reload1.c (reload_combine_note_use): Handle return register USEs.
10087 REG case: Handle multi-hard-register hard regs.
10089 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10091 * md.texi: Document use of '*' in insn pattern name.
10093 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
10095 * calls.c (special_function_p): operator new may not be malloc-like.
10097 * gcse.c (dump_hash_table): Really fix error in last change.
10099 2000-03-02 Denis Chertykov <denisc@overta.ru>
10101 * avr.c (print_operand): Use print_operand_address instead of
10103 * avr/libgcc.S: Cleanup code.
10105 2000-03-02 Richard Henderson <rth@cygnus.com>
10107 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
10109 2000-03-02 Mark Mitchell <mark@codesourcery.com>
10111 * tree.h (TYPE_ALIGN_UNIT): New macro.
10113 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
10115 * i386.c: (constant_call_address_operand): Reject CONST_INT.
10117 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
10119 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
10121 (SET_CPP_PEDANTIC): New macro.
10122 * cpplib.c (do_include): Don't bother checking system_header_p.
10123 (do_warning, do_ident, do_assert, do_unassert): Likewise.
10124 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
10126 * function.h (struct expr_status): Add x_arg_space_so_far.
10127 (arg_space_so_far): New macro.
10128 * expr.c (init_expr): Initialize it.
10129 * calls.c (emit_call_1): Reset it.
10130 (compute_argument_block_size, expand_call): Use it.
10131 (expand_call, store_one_arg): Increment it.
10133 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10135 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
10138 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
10140 * cppfiles.c (cpp_read_file): New function.
10142 * cpphash.c (collect_expansion): Make sure to reset last_token
10143 to NORM when we hit a string. Handle trailing whitespace
10144 properly when the expansion is empty.
10145 (create_definition): Disable line commands while parsing the
10147 (dump_definition): If pfile->lineno == 0, output a line
10148 command ahead of the dump, and add a trailing newline.
10150 * cppinit.c (append_include_chain): Add fifth argument, which
10151 indicates whether or not system headers are C++ aware.
10152 (initialize_standard_includes): New function,
10153 broken out of read_and_prescan. Pass 'cxx_aware' value from
10154 the include_defaults_array on to append_include_chain.
10155 (dump_special_to_buffer): Const-ify char array.
10156 (builtin_array): Don't dump __BASE_FILE__.
10157 (cpp_start_read): Use cpp_read_file. Reorder code for
10158 clarity. Don't output line commands here for -D/-A/-U
10159 switches. Don't call deps_output for files included with
10160 -include or -imacros.
10162 * cpplib.c (do_define): Don't pay any attention to the second
10164 (cpp_expand_to_buffer): Disable line commands while scanning.
10165 (output_line_command): Work in the file buffer.
10166 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
10167 Fix formatting of comments. Prototype cpp_read_file.
10169 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10171 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
10172 reference the language-equivalent of sizetype.
10173 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
10174 * fold-const.c (size_binop, size_diffop): Put back checks.
10175 * gcse.c (dump_hash_table): Fix minor error in last change.
10176 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
10177 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
10180 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
10182 * calls.c (expand_call) Do not attempt to combine stack adjustments
10183 with inhibit_defer_pop set.
10185 2000-03-01 Mark Mitchell <mark@codesourcery.com>
10187 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
10188 the DECL_SIZE for a FIELD_DECL.
10190 2000-03-01 Bruce Korb <bkorb@gnu.org>
10192 * fixinc/inclhack.tpl: remove unused symlinks
10193 * fixinc/README: GCC Maintainer info
10194 * fixinc/inclhack.sh: regen
10195 * fixinc/fixincl.sh: regen
10197 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
10199 * cpphash.c (collect_expansion): Trim trailing white space
10200 from macro definitions, but don't go past the last insertion
10203 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
10205 * i386.md (mulqi3): New pattern.
10207 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
10209 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
10211 (struct cpp_reader): Add parsing_if_directive and
10212 parsing_define_directive flags.
10213 (struct cpp_options): Remove output_conditionals flag.
10214 (check_macro_name): Delete prototype.
10216 * cpphash.h (struct macrodef): Delete.
10217 (struct reflist): Separate from struct definition.
10218 (struct definition): Remove unused fields. Add column number.
10219 (create_definition): Returns a DEFINITION *. Takes a
10220 cpp_reader * and an int.
10222 * cpphash.c (SKIP_WHITE_SPACE): Delete.
10223 (PEEKC): Copy defn from cpplib.c.
10224 (rest_extension, REST_EXTENSION_LENGTH): Delete.
10226 (struct arglist): Simplify.
10227 (collect_expansion): Rewrite. Get tokens by calling
10228 cpp_get_token. Add more error checking.
10229 (collect_formal_parameters): New function, broken out of
10230 create_definition and reworked to use get_directive_token.
10231 (create_definition): All real work is now in collect_expansion
10232 and collect_formal_parameters. do_define handles finding the
10233 macro name. Return a DEFINITION, not a MACRODEF.
10234 (macroexpand): Replace bcopy with memcpy throughout. Replace
10235 character-at-a-time copy loop with memcpy and pointer increments.
10236 (compare-defs): d1->argnames / d2->argnames might be null.
10238 * cpplib.c (copy_rest_of_line): Delete function.
10239 (skip_rest_of_line): Do all the work ourselves.
10240 (skip_string): New function.
10241 (parse_string): Use skip_string.
10242 (get_macro_name): New function.
10243 (check_macro_name): Delete.
10244 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
10245 (cpp_skip_hspace): Use CPP_BUMP_LINE.
10246 (handle_directive): ICE if we're called on a macro buffer.
10247 (do_define): Determine macro name and type (funlike/objlike)
10248 here. Expunge all uses of MACRODEF.
10249 (cpp_push_buffer): Set line_base to NULL.
10250 (do_undef, read_line_number): Don't worry about getting a POP token.
10251 (eval_if_expression): Set/reset parsing_if_directive around
10252 cpp_parse_expr. Don't clear only_seen_white.
10253 (skip_if_group): Remove output_conditionals logic. Use
10255 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
10256 tokens under appropriate conditions.
10257 (cpp_unassert): Call do_unassert not do_assert. Oops.
10259 * cppexp.c (parse_defined): New function, break out of
10261 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
10262 ourselves, with cpp_defined.
10263 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
10265 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
10266 * gcc.dg/strpaste-2.c: New.
10268 2000-02-29 Mark Mitchell <mark@codesourcery.com>
10270 * fold-const.c (size_binop): Don't asert inputs are the same and
10271 have TYPE_IS_SIZETYPE set.
10272 (size_diffop): Likewise.
10274 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
10276 * dwarfout.c (output_block): Output abstract blocks even if they
10277 don't have TREE_ASM_WRITTEN set.
10279 * calls.c (emit_library_call): Check for null REG.
10281 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
10283 * c-decl.c (current_function_decl): Move to toplev.c.
10284 (init_decl_processing): Don't add current_function_decl as a ggc
10286 * dbxout.c (dbxout_symbol): Change return type to int.
10287 (dbxout_symbol_location, dbxout_syms): Likewise.
10288 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
10289 any locals. Use current_function_func_begin_label if set.
10290 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
10291 * dwarf2out.c (dwarf2out_begin_prologue): Set
10292 current_function_func_begin_label.
10293 * final.c (final_start_function): Reset it.
10294 * toplev.c (current_function_decl): Define it here.
10295 (current_function_func_begin_label): New variable.
10296 (main): Add both as ggc roots.
10297 * tree.h (current_function_func_begin_label): Declare.
10299 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10301 * gcse.c: Cleanups throughout: mostly white-space, but also
10302 some minor rearrangement of code.
10304 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
10306 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
10307 returns a PARALLEL. Use emit_group_load and use_group_regs
10309 (emit_library_call_value): Similarly.
10311 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
10312 * pa/quadlib.asm: Remove.
10313 * pa/quadlib.c: New file.
10315 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
10316 * configure: Rebuilt.
10318 2000-02-29 Philip Blundell <pb@futuretv.com>
10320 * config/arm/conix-elf.h: New file.
10321 * configure.in (arm*-*-conix*): New configuration.
10322 * configure: Regenerate.
10324 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
10326 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
10327 don't have TREE_ASM_WRITTEN set.
10329 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10331 * Eliminate DECL_FIELD_SIZE.
10332 * builtins.c (built_in_class_names, built_in_names): New variables.
10333 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
10334 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
10335 DECL_SIZE, not DECL_FIELD_SIZE.
10336 * print-tree.c (print_node): Remove code that prints extra blank
10337 lines in some cases.
10338 Properly handle inline and builtin function cases.
10339 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
10340 * tree.h (built_in_class_named, built_in_names): New declarations.
10341 (union tree_decl): Rename internal unions to u1 and u2 and change
10342 some of their components.
10343 Add new field built_in_class.
10344 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
10345 Reflect above changes.
10346 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
10347 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
10348 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
10349 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
10351 2000-02-28 Dmitri Makarov <dim@windriver.com>
10353 * extend.texi: Document ARM's support for long/short calls.
10355 * invoke.texi: Document ARM's -mlong-calls command line switch.
10357 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
10358 (arm_encode_call_attribute): Add prototype.
10359 (arm_set_default_type_attribute): Add prototype.
10360 (arm_strip_name_encoding): Add prototype.
10362 * config/arm/arm.c (arm_init_cumulative_args): replace
10363 initialisation og 'long_calls' field with initialisation of
10364 'call_cookie' field.
10365 (enum arm_pragma_enum): New enum.
10366 (arm_pragma_long_calls): New static variable.
10367 (arm_process_pragma): Also process "#pragma long_calls_off".
10368 (arm_valid_type_attribute_p): Accept short_call attribute.
10369 (arm_comp_type_attributes): Check long/short call attributes.
10370 (arm_encode_call_attribute): New function: Encode long_call
10371 or short_call attribute in function name.
10372 (arm_set_default_type_attributes): New function: Assign
10373 default attributes to newly defined type.
10374 (current_file_function_operand): New function: Return true if
10375 the symbol is a function which has already been compiled.
10376 (arm_is_longcall_p): New function: Return true if the
10377 indicated function should be called via a long call.
10378 (arm_get_strip_length): New function. Returns number of
10379 prefix characters to be stripped from a function's name.
10380 (arm_strip_name_encoding): New function. Strip prefix characters
10381 from a function's name.
10383 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
10384 with 'call_cookie'.
10385 (SHORT_CALL_FAG_CHAR): Define.
10386 (LONG_CALL_FAG_CHAR): Define.
10387 (ENCODED_SHORT_CALL_ATTR_P): Define.
10388 (ENCODED_LONG_CALL_ATTR_P): Define.
10389 (ARM_NAME_ENCODING_LENGTHS): Define.
10390 (STRIP_NAME_ENCODING): Define.
10391 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
10392 (ARM_ENCODE_CALL_TYPE): Define.
10393 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
10394 (ARM_DECLARE_FUNCTION_SIZE): Define.
10395 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
10397 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
10398 if a long call is needed.
10399 (call_value): Ditto.
10400 (call_symbol): Ditto.
10402 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
10403 ARM_DECLARE_FUNCTION_SIZE.
10405 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
10406 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
10407 (ARM_STRIP_NAME_ENCODING): Undefine.
10408 (STRIP_NAME_ENCODING): Undefine.
10409 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
10410 (ASM_DECLARE_FUNCTION_NAME): Ditto.
10411 (ASM_OUTPUT_COMMON): Ditto.
10412 (ASM_DECLARE_OBJECT_NAME): Ditto.
10414 * config/arm/pe.c (arm_dllexport_name_p): Check for
10416 (arm_dllimport_name_p): Ditto.
10417 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
10418 (arm_mark_dllimport): Ditto.
10420 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10422 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
10424 2000-02-28 Mark Mitchell <mark@codesourcery.com>
10426 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
10428 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
10430 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
10431 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
10432 NO_BUILTIN_WCHAR_TYPE is not defined.
10433 (CPP_WCHAR_TYPE): Delete.
10434 * cccp.c (main): Don't change wchar_type if cplusplus.
10435 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
10437 2000-02-28 Nick Clifton <nickc@cygnus.com>
10439 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
10441 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
10443 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
10444 (ASM_WEAKEN_LABEL): Define.
10446 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
10448 * expr.c (store_constructor): Do not emit USE.
10449 * rtl.h (stupid_life_analysis): Remove.
10451 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10453 * function.c (number_blocks): Reset next_block_index based on
10454 what debugging format is used, not what is defined.
10456 * lcm.c: Minor reformatting throughout.
10457 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
10459 * toplev.c (rest_of_compilation): Account for time in
10460 optimize_mode_switching.
10462 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
10463 if only marking labels.
10465 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
10467 * calls.c (expand_call): Attempt to combine stack adjustments with
10468 pending stack adjustments.
10470 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10472 * loop.c (reg_in_basic_block_p): Don't abort when falling through
10473 to the end of the function.
10475 2000-02-27 Mark Mitchell <mark@codesourcery.com>
10477 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
10479 * final.c (next_block_index): Remove.
10480 (max_block_depth): Likewise.
10481 (pending_blocks): Likewise.
10482 (init_final): Don't initialize them.
10483 (final_start_function): Don't set next_block_index. Set up
10485 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
10486 * function.h (number_blocks): New function.
10487 * function.c (get_block_vector): New function.
10488 (identify_blocks): Use it.
10489 (reorder_blocks): Set NOTE_BLOCK.
10490 (number_blocks): New function.
10491 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
10492 * tree.h (BLOCK_NUMBER): New macro.
10493 (tree_block): Add block_num field.
10494 * dbxout.c (next_block_number): Remove.
10495 (dbxout_init): Don't set it.
10496 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
10497 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
10499 * toplev.c (rest_of_compilation): Always call
10500 find_loop_tree_blocks. Fix indentation.
10501 * dwarf2out.c (next_block_number): Remove.
10502 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10503 to determine block numbers.
10504 (gen_inlined_subroutine_die): Likewise.
10505 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
10506 (decls_for_scope): Don't increment next_block_number.
10507 * dwarfout.c (next_block_number): Remove.
10508 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10509 to determine block numbers.
10510 (output_inlined_subroutine_die): Likewise.
10511 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
10512 (output_decls_for_scope): Don't increment next_block_number.
10513 * sdbout.c (next_block_number): Remove.
10514 (sdbout_block): Use BLOCK_NUMBER.
10515 (sdbout_begin_block): Simplify.
10516 * xcoffout.c (next_block_number): Remove.
10517 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
10518 (xcoffout_begin_block): Don't set next_block_number.
10519 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
10522 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10524 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
10525 (expand_builtin_strcpy): Pass correct type to size_binop.
10526 (expand_builtin_strcmp): Likewise.
10527 Clean up conditional structure.
10528 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
10529 (complete_array_type): Don't use size_binop for MAXINDEX.
10530 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
10531 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
10532 (c_alignof): Use size_one_node.
10533 (build_unary_op): Pass arg of proper type to size_binop.
10534 (really_start_incremental_init, push_init_level): Use sizetype for
10535 constructor{,_bit,_unfilled}_index.
10536 (pop_init_label, output_init_element): Likewise.
10537 (output_pending_init_elements, process_init_element): Likewise.
10538 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
10539 * expr.c (store_expr): Use size_int.
10540 (store_constructor): Use proper types for size_binop args.
10541 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
10542 (expand_expr_unaligned): Likewise.
10543 (string_contant): Return object of sizetype.
10544 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
10545 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
10546 (ARGS_SIZE_TREE): Pass proper types to size_binop.
10547 * fold-const.c (int_const_binop): Refine when size_int is called.
10548 (fold_convert): Likewise.
10549 (size_int_wide): Rework to take KIND as arg, only take low order
10550 bits, handle new sizetype_tab datatype, and chain entries in
10552 (size_int_type_wide): New function.
10553 (size_binop): Validate types of arguments.
10554 (ssize_binop): Deleted.
10555 (size_diffop): New function.
10556 (extract_muldiv): Only fold division into multiplication for sizetypes.
10557 * function.c (assign_parms): Use size_diffop and make sure
10558 VAR field is of ssizetype; also pass proper type to size_binop.
10559 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
10560 (round_down): Deleted from here.
10561 * store-layout.c (sizetype_tab): Now an array.
10562 (sizetype_set, early_root_list): New variables.
10563 (variable_size): Use size_one_node.
10564 (round_up): Pass proper type to size_binop.
10565 (round_down): Moved to here and corrected as above.
10566 (layout_record): Pass proper arg types to size_binop.
10567 (layout_type): Likewise.
10568 If sizetype_set is zero, record the type just laid out.
10569 (make_unsigned_type): Don't call set_sizetype;
10570 (make_signed_type): Likewise; also, call fixup_signed_type.
10571 (initialize_sizetypes): New function.
10572 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
10573 set name of bitsizetype to "bit_size_type".
10574 Fix up type of sizes of all types made before call.
10575 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
10576 * tree.c (fix_sizetype): Deleted.
10577 (build_common_tree_nodes): Call initialize_sizetypes.
10578 (build_common_tree_nodes_2): Don't call fix_sizetype.
10579 * tree.h (TYPE_IS_SIZETYPE): New macro.
10580 (initialize_sizetype): New declaration.
10581 (enum size_type_kind): New type.
10582 (struct sizetype_tab): Deleted.
10583 (sizetype_tab): Now array; adjust sizetype macros.
10584 (size_diffop, size_int_type_wide): New functions.
10585 (size_int_wide): Change number of args and type; access macros changed.
10586 (ssize_int, sbitsize_int): New macros.
10587 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
10588 (ROUND_TYPE_SIZE_UNIT): New macro.
10590 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
10592 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
10594 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10596 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
10597 Mark as possibly unused.
10599 * cse.c (cse_insn): Delete dead code involving tablejump.
10600 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
10602 * Makefile.in (libcpp.a): Start by deleting it.
10604 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10606 * cpplib.h (enum file_change_code): Added rename_file.
10607 * cpplib.c (do_line): If a filename is given, set file_change to
10609 (output_line_command): If file_change is rename_file, always
10610 output a # directive with the file name.
10612 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
10614 2000-02-26 Mark Mitchell <mark@codesourcery.com>
10616 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
10617 when copying a PARM_DECL or RESULT_DECL.
10619 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10621 * fix-header.c (recognized_function): Also fix prototypes for
10622 functions taking "void".
10624 2000-02-26 Geoff Keating <geoffk@cygnus.com>
10626 * reload1.c (do_output_reload): Check reg_reloaded_valid before
10627 looking at reg_reloaded_contents.
10629 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
10631 * Makefile.in (STMP_FIXINC): New toggle.
10632 (LIBGCC2_DEPS): Delete all references.
10633 (stmp-headers): Delete target. All references either deleted
10634 or changed to stmp-int-headers.
10635 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
10636 (LIBCPP_OBJS): Take out cppalloc.o.
10637 (cppalloc.o): Delete target.
10638 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
10639 (gen-protos, fix-header): Link with libiberty.a.
10640 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
10643 * configure.in: Remove refs to strerror.
10644 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
10645 * system.h: Take out strerror stanza.
10647 * cpperror.c (my_strerror): Delete function.
10648 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
10649 * cppmain.c (main): Call xmalloc_set_program_name first thing.
10650 * cppalloc.c: Delete file.
10651 * gen-protos.c: Don't provide xrealloc.
10653 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
10654 xstrerror throughout.
10656 2000-02-26 Bruce Korb <bkorb@gnu.org>
10658 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
10659 match for DOS headers, too.
10660 * fixinc/inclhack.sh,fixincl.x: Regenerate.
10662 2000-02-26 Geoff Keating <geoffk@cygnus.com>
10664 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
10665 is right for most ELF targets.
10666 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
10667 Let the default file use %U properly.
10668 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
10671 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
10674 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10676 * toplev.c (documented_lang_options): Correct spelling error.
10677 (decode_d_option, decode_f_option, main): Likewise.
10679 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
10681 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
10682 to tell assembler it is permitted to expand large constants.
10684 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
10686 * protoize.c: (AUX_INFO_SUFFIX): New macro.
10687 (aux_info_suffix): Use.
10688 (SAVE_SUFFIX): New macro.
10689 (save_suffix): Use.
10690 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
10691 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
10692 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
10694 * invoke.texi (Running Protoize): Update documentation.
10696 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
10698 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
10700 2000-02-25 John Wehle (john@feith.com)
10702 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
10704 2000-02-25 Anthony Green <green@cygnus.com>
10706 * toplev.c (rest_of_compilation): Rebuild jump labels if
10707 combine_instructions has created a new direct jump.
10708 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
10710 (combine_instructions): Call try_combine with new argument.
10711 Return non-null value when new direct jump instruction is created.
10712 * rtl.h: combine_instructions returns an int.
10714 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
10716 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
10717 jump when changing a computed jump into a jump to a known
10720 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
10722 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
10723 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
10725 * i386.md (define_expand "clrstrsi"): Fix typo.
10727 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
10729 * rtl.texi: Fix typo.
10731 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10733 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
10734 UNITS_PER_WORD. Change caller initial_elimination_offset.
10735 (rounded_frame_size): Take into account that argument pushed has
10736 changed. Fix TARGET_ALIGN_DOUBLE problem.
10738 2000-02-25 Geoff Keating <geoffk@cygnus.com>
10740 * haifa-sched.c (schedule_block): Explain the real reason
10741 we delete REG_SAVE_NOTEs on the first insn of a block.
10742 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
10744 2000-02-24 Mark Mitchell <mark@codesourcery.com>
10746 * input.h (push_srcloc): New function.
10747 (pop_srcloc): Likewise.
10748 * toplev.c (push_srcloc): Define it.
10749 (pop_srcloc): Likewise.
10751 2000-02-24 Richard Henderson <rth@cygnus.com>
10753 * flow.c (life_analysis): When collecting reg info, clear
10756 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10758 Fix bug exposed by reload.c no longer rounding the frame
10759 size to BIGGEST_ALIGNMENT:
10760 * sh.c (rounded_frame_size): New function.
10761 (sh_expand_prologue, sh_expand_epilogue): Use it.
10762 (initial_elimination_offset): Likewise.
10764 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10766 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
10767 * sh-protos.h (sh_need_epilogue): Declare.
10768 * sh.c (sh_need_epilogue_known): New static variable.
10769 (sh_need_epilogue): New function.
10770 (function_epilogue): Clear need_epilogue_known.
10771 * sh.md (return): Split into expander / insn pattern.
10772 Make the expander conditional on ! sh_need_epilogue ().
10774 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
10776 * machmode.h (get_mode_alignment): Declare.
10777 (GET_MODE_ALIGNMENT): Call it.
10778 * stor-layout.c (get_mode_alignment): New function. Make
10779 sure alignment is always power of 2.
10781 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10783 * i386.h: Remove useless definition of "I386" and misleading
10786 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10788 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
10789 under which TREE_PERMANENT will be set.
10790 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
10791 build1): Use TREE_SET_PERMANENT.
10792 * print-tree.c (print_node): Don't report value of
10793 TREE_PERMANENT if ggc_p is true.
10795 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
10796 decide whether to give a type a new alias set.
10797 * objc/objc-act.c (build_objc_string_object): Never copy the string.
10798 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
10799 of value of 'obstack'.
10802 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10804 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
10806 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10808 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
10809 * cpplib.c (cpp_get_token): Produce them.
10810 * cppexp.c (cpp_lex): Handle them.
10812 2000-02-23 Nick Clifton <nickc@cygnus.com>
10814 * config/arm/arm.c (arm_comp_type_attributes): Simply and
10815 comment tests on type attributes.
10817 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10819 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
10820 conform to documentation.
10821 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
10822 to check for special cases.
10823 * sh-protos.h (sh_loop_align): Declare.
10824 * sh.c (sh_loop_align): Define.
10826 2000-02-22 Andrew Haley <aph@cygnus.com>
10828 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
10829 (SIZE_TYPE): Is 32 bits when using -mgp32.
10830 (PTRDIFF_TYPE): Ditto.
10832 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10834 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
10836 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10838 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
10839 BIGGEST_FIELD_ALIGNMENT a constant.
10841 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
10843 * dwarf2out.c (output_line_info): Put the marker for the end of
10844 the line number info at the actual end.
10845 (gen_struct_or_union_type_die): Use decl_function_context
10846 to check for local classes.
10847 * dwarfout.c (output_type): Likewise.
10849 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
10851 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
10852 for arguments with a mode, but no type.
10853 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
10854 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
10855 * pa/long_double.h: New file.
10856 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
10857 both have 128bit wide long doubles.
10858 * configure: Rebuilt.
10860 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10862 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
10864 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
10865 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
10866 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
10868 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
10870 * integrate.c (compare_blocks, find_block): Likewise.
10872 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
10874 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
10876 * stmt.c (stmt_status, set_file_and_line_for_stmt,
10877 expand_asm_operands): Likewise.
10879 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
10881 * predict.c (estimate_probability): Added the pointer heuristic to
10882 the collection of static branch predictors.
10884 2000-02-21 Catherine Moore <clm@cygnus.com>
10886 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
10887 * invoke.texi (-mfix7000): Document.
10889 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
10891 * diagnostic.c (init_output_buffer): Make it possible to output at
10892 least 32 characters if we're given a too long prefix.
10894 2000-02-20 Mark Mitchell <mark@codesourcery.com>
10896 * varasm.c (initializer_constant_valid_p): Call
10897 lang_expand_constant to simplify the constant.
10899 2000-02-20 Bruce Korb <bkorb@gnu.org>
10901 * fixinc/inclhack.def(stdio_va_list):
10902 typedef needs to be disabled.
10903 * fixinc/inclhack.sh: regen
10904 * fixinc/fixincl.x: regen
10906 2000-02-20 Geoff Keating <geoffk@cygnus.com>
10908 * print-rtl.c (print_rtx): Don't print addresses when
10909 flag_dump_unnumbered.
10911 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10913 * sparc.c (sparc_output_scratch_registers): Mark parameter with
10915 (sparc_va_arg, sparc_flat_output_function_prologue,
10916 sparc_flat_output_function_epilogue): Cast value to unsigned in
10918 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
10920 * sparc.md: Add default case in switch.
10922 2000-02-19 Richard Henderson <rth@cygnus.com>
10924 * c-typeck.c (add_pending_init): Don't abort for multiple
10925 fields at the same offset.
10926 (pending_init_member): Test the correct member.
10928 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10930 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
10932 (start_catch_handler) : Same.
10934 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
10936 * Makefile.in: Have flow.o depend on $(EXPR_H)
10938 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10940 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
10941 * c-decl.c (duplicate_decls, finish_enum): Likewise.
10942 (finish_decl): Remove -Wlarger-than code from here.
10943 * flags.h (id_clash_len): Now int.
10944 (larger_than_size): Now HOST_WIDE_INT.
10945 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
10946 Clean up checking to see if in table.
10947 (make_bit_field_ref): Remove extra parm to bitsize_int.
10948 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
10949 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
10950 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
10951 and for computing size of decl.
10952 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
10953 Move -Wlarger-than code to here.
10954 (layout_record): Remove extra arg to bitsize_int.
10955 Set TYPE_BINFO_SIZE_UNIT.
10956 (layout_union): Remove extra arg to bitsize_int.
10957 Use proper type for size of QUAL_UNION.
10958 (layout_type): Remove extra arg to bitsize_int.
10959 * toplev.c (id_clash_len): Now int.
10960 (larger_than_size): Now HOST_WIDE_INT.
10961 (decode_W_option): Clean up id-clash and larger-than- cases.
10962 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
10963 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
10964 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
10965 (struct tree_decl): New field size_unit.
10966 (size_int_wide): No HIGH operand; NUMBER is now signed.
10967 (size_int_2): Deleted.
10968 (size_int, bitsize_int): Don't use it and rework args.
10969 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
10971 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
10973 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
10975 2000-02-18 Geoff Keating <geoffk@cygnus.com>
10977 * invoke.texi (Warning Options): Add an explanation of why
10978 you might want the -Wfloat-equal flag.
10980 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10982 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
10983 * cppinit.c (new_pending_define): Add cast to avoid warning.
10984 * expmed.c (extract_bit_field): Likewise.
10985 * flow.c (enum reorder_skip_type): New type.
10986 (skip_insns_between_blcok): New it.
10987 Rework to avoid warning about possibly undefined variable.
10988 * function.c (assign_parms): Make thisparm_boundary unsigned.
10989 * genrecog.c (write_switch): Cast XWINT result to int.
10990 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
10991 * mips-tfile.c (init_file): Make two versions of FDR intializer:
10992 one for MIPS and one for Alpha.
10993 (get_tag, copy_object): Add casts to avoid warnings.
10994 * optabs.c (init_one_libfunc): Cast NAME to (char *).
10995 * reload.c (find_reloads): Make TYPE enum reload_type.
10996 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
10997 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
10998 * varasm.c (compare_constant_1): Add cast to avoid warning.
10999 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
11001 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
11002 Cast switch operand of size to int.
11003 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
11004 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
11007 2000-02-18 Nick Clifton <nickc@cygnus.com>
11009 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
11010 anything for an alignment of zero.
11012 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
11013 anything for an alignment of zero.
11015 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
11017 * gcc.texi (Bug Reporting): Refer to bugs.html.
11018 (Bug Lists): Likewise.
11019 * system.h (GCCBUGURL): New preprocessor define.
11020 * rtl.c (fancy_abort): Use it.
11021 * gcc.c (main): Likewise.
11023 2000-02-18 Richard Henderson <rth@cygnus.com>
11025 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
11026 (life_analysis_1): Subsume into ...
11027 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
11028 Use update_life_info for the relaxation.
11029 (update_life_info): Update REG_BASIC_BLOCK for registers live on
11030 entry and regs_live_at_setjmp.
11031 (set_noop_p): Simplify.
11032 (notice_stack_pointer_modification_1): Renamed from s/_1//.
11033 (record_volatile_insns): Split into ...
11034 (delete_noop_moves): ... here,
11035 (notice_stack_pointer_modification): ... here,
11036 (insn_dead_p): ... and here.
11037 (propagate_block): Don't query INSN_VOLATILE.
11038 (mark_used_regs): Mind !PROP_REG_INFO.
11039 * toplev.c (rest_of_compilation): Call mark_constant_function here,
11040 not in life_analysis.
11042 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
11044 * loop.c (canonicalize_condition): New function,
11045 broken out of get_condition.
11046 (get_condition): Use it.
11047 * expr.h (canonicalize_condition): Prototype it.
11049 * tree.h (tree_int_cst_msb): Declare.
11050 * tree.c (tree_int_cst_msb): New function.
11052 2000-02-17 Mark Mitchell <mark@codesourcery.com>
11054 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
11057 * invoke.texi (-fmessage-length=n): Document.
11059 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
11061 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
11063 2000-02-17 Mark Mitchell <mark@codesourcery.com>
11065 * function.c (thread_prologue_and_epilogue_insns): Put a line note
11066 after the prologue.
11068 2000-02-17 Nick Clifton <nickc@cygnus.com>
11070 * config/arm/thumb.c: Replace includes of system headers with
11071 #include "system.h".
11073 2000-02-16 Richard Henderson <rth@cygnus.com>
11075 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
11076 Add crtbeginS.o and crtendS.o.
11077 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
11078 (ENDFILE_SPEC): Use crtendS.o.
11079 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
11081 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
11082 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
11083 shared and present.
11084 (__dso_handle): New variable.
11085 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
11086 bias to __CTOR_END__.
11088 2000-02-16 Richard Henderson <rth@cygnus.com>
11090 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
11092 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
11094 * longlong.h (__clz_tab): Declare as static to match definition.
11096 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
11098 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
11099 (XREF_FILE_NAME): Define.
11101 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
11102 (EH_FRAME_SECTION_ASM_OP): Define.
11103 (IDENT_ASM_OP): Define.
11104 (TEXT_SECTION_ASM_OP): Define.
11105 (CPP_SPEC): Define.
11106 (CTORS_SECTION_ASM_OP): Define.
11107 (CTOR_SECTION_FUNCTION): Use it.
11108 (DTORS_SECTION_ASM_OP): Define.
11109 (DTOR_SECTION_FUNCTION): Use it.
11111 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
11113 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
11116 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
11117 debug_bb_n): New functions.
11118 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
11119 * basic-block.h: Prototype new functions.
11121 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
11123 * configure.in: Add support for avr target.
11124 * configure: Rebuilt.
11126 * invoke.texi: Add AVR invocation docs.
11127 * install.texi: Add information about AVR.
11128 * md.texi: Add AVR constraint letters description.
11129 * extend.texi: Add description for AVR specific attributes.
11131 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
11133 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
11135 2000-02-16 Nick Clifton <nickc@cygnus.com>
11137 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
11138 (make_insn_raw): Move RTL check here.
11140 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11142 * version.c: Include gansidecl.h and version.h.
11144 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
11146 * configure.in (gcc_version): When setting, narrow search to
11147 lines containing `version_string'.
11149 * Makefile.in (mainversion): Likewise.
11150 (GCC_H): New variable.
11151 (gcc.h): Delete target.
11152 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
11153 (version.o): Depend on version.h.
11154 (dbxout.o): Don't depend on gcc.h.
11156 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
11157 Michael Meissner <meissner@cygnus.com>
11159 * md.texi (Simple Constraints): Add item about whitespace.
11160 * genoutput.c (strip_whitespace): New.
11161 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
11162 strip_whitespace for constraints.
11163 Test pointer using NULL, not 0.
11165 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11167 * cpplib.c (do_line): Pedwarn for #line > 32767.
11169 * c-lex.c (readescape): Warn about '\x', but do not reject it.
11171 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
11173 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
11174 to default cpp spec.
11175 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
11176 * cpp.texi: Document __GNUC_PATCHLEVEL__.
11179 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
11182 2000-02-15 Denis Chertykov <denisc@overta.ru>
11184 * configure.in: Add support for avr target.
11186 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11188 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
11189 (sh_addr_diff_vec_mode): Don't declare.
11190 * sh.c (sh_addr_diff_vec_mode): Delete.
11192 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11194 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
11196 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11198 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
11199 (smulsi3_highpart_i): Name.
11200 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
11201 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
11202 (smulsi3_highpart, umulsi3_highpart): Likewise.
11204 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
11205 correctly independent of endianness.
11206 (mulsidi3, umulsidi3): Now define_insn. Hide details that
11207 confuse the optimizers.
11208 (mulsidi3+1, umulsidi3+1): New define_split.
11210 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
11212 * config/sh/sh.md: Guard insn splits against illegal registers.
11213 * config/sh/sh.h: Correct comment about macros.
11215 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11216 Andrew MacLeod <amacleod@cygnus.com>
11218 * Makefile.in (lcm.o): Depend on insn-attr.h.
11219 * basic-block.h (optimize_mode_switching): Declare.
11220 * lcm.c (tm_p.h, insn-attr.h): #include.
11221 (seginfo, bb_info): New structs.
11222 (antic, transp, comp, delete, insert) : New file-scope static variables.
11223 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
11224 (reg_becomes_live, optimize_mode_switching): Likewise.
11225 * tm.texi: Add description of mode switching macros.
11226 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
11228 * sh-protos.h (remove_dead_before_cse): Remove prototype.
11229 (fldi_ok, fpscr_set_from_mem): New prototypes.
11230 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
11231 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
11232 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
11233 (sh_flag_remove_dead_before_cse): Remove declaration.
11234 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
11235 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
11236 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11237 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
11238 (barrier_align): Allow for JUMP_INSNS containing a parallel.
11239 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
11240 (fldi_ok): New function.
11241 (get_fpscr_rtx): Add fpscr_rtx as GC root.
11242 (emit_sf_insn): Only generate fpu switches when optimize < 1.
11243 (emit_df_insn): Likewise.
11244 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
11245 (sh_flag_remove_dead_before_cse): Delete.
11246 (get_free_reg, fpscr_set_from_mem): New functions.
11247 * sh.md (movdf, movsf): Remove no_new_pseudos code.
11248 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
11250 2000-02-15 Loren Rittle <ljrittle@acm.org>
11252 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
11254 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11256 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
11257 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
11259 * cccp.c: Include version.h and/or don't declare `version_string'.
11260 * collect2.c: Likewise.
11261 * alpha.c: Likewise.
11262 * arm/aof.h: Likewise.
11263 * arm/coff.h: Likewise.
11264 * arm/elf.h: Likewise.
11265 * arm/pe.h: Likewise.
11266 * arm/tcoff.h: Likewise.
11267 * arm/telf.h: Likewise.
11268 * arm/tpe.h: Likewise.
11269 * arm/vxarm.h: Likewise.
11270 * convex/convex.c: Likewise.
11271 * i386/dgux.c: Likewise.
11272 * i386/sun386.h: Likewise.
11273 * m88k/m88k.c: Likewise.
11274 * mcore/mcore-pe.h: Likewise.
11275 * mips/mips.h: Likewise.
11276 * romp/romp.h: Likewise.
11277 * sh/sh.c: Likewise.
11278 * cpphash.c: Likewise.
11279 * cppinit.c: Likewise.
11280 * dwarf2out.c: Likewise.
11281 * dwarfout.c: Likewise.
11284 * mips-tfile.c: Likewise.
11285 * protoize.c: Likewise.
11286 * toplev.c: Likewise.
11287 * tree.h: Likewise.
11289 * version.c (version_string): Constify a char*.
11291 * version.h: New file.
11293 2000-02-14 Nick Clifton <nickc@cygnus.com>
11295 * configure.in: Add mcore-elf and mcore-pe targets.
11296 * configure: Regenerate.
11298 * NEWS: Add note that MCore port has been contributed.
11300 * invoke.texi: Document command line switches for MCore port.
11301 * install.texi: Add MCore to list of supported targets.
11303 2000-02-14 Geoff Keating <geoffk@cygnus.com>
11305 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
11306 then we will need to import the frame handling functions.
11307 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
11308 to import the frames themselves.
11310 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
11311 Jason Eckhardt <jle@cygnus.com>
11313 * basic_block.h: Added prototype for reorder_basic_blocks.
11314 * toplev.c: Changes to add -freorder-blocks and graph dump after
11315 block reordering is done.
11316 * flow.c (reorder_block_def): New structure for use during block
11318 (REORDER_BLOCK_*): New macros to access members of above structure.
11319 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
11320 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
11321 functions for block reordering.
11323 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
11325 * gcc.texi (Passes): Fix typo.
11326 * md.texi (Standard Names): Ditto.
11327 * tm.texi (Storage Layout): Ditto.
11329 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
11331 * cpplib.c (do_define): Only free the old definition if it
11334 2000-02-13 Neil Booth <NeilB@earthling.net>
11336 * cppfiles.c (read_and_prescan): When emitting deferred
11337 newlines, test speccase[] again instead of checking each
11338 possible whitespace character in turn. When we encounter \r,
11339 look behind for \n first, then ahead.
11341 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
11343 * cse.c (cse_altered): New internal flag.
11344 (cse_insn): Set it if we changed an insn.
11345 (cse_main): Clear cse_altered before each basic block.
11346 Only garbage collect if cse_altered is true afterward.
11348 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11350 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
11352 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
11354 * combine.c (simplify_comparison): Fix typo.
11356 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
11358 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
11361 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11363 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
11364 previously inserted node instead of root node. Caller changed.
11366 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11368 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
11370 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11372 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
11373 __dereg_frame_dtor): Add prototype argument.
11375 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
11377 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
11379 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
11381 * gthr-vxworks.h (__gthread_once): Likewise.
11383 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
11385 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
11387 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
11388 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
11389 stack pointer in functions w/o saved registers, output LEAVE more often
11390 on TARGET_USE_LEAVE machines.
11392 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
11394 * config/arm/arm.c (arm_init_cumulative_args); New function:
11395 Initlaise the CUMULATIE_ARGS strcuture for a function
11397 (arm_function_arg): New function: Determine where to place a
11398 function's argument. Also handles deciding the function's
11400 (current_file_function_operand): New function: Return true if
11401 the symbol is a function which has already been compiled.
11402 (arm_is_long_call_p): New function: Return true if the
11403 indicated function should be called via a long call.
11404 (arm_valid_type_attribute_p): New function: Return true if the
11405 attribute is a valid, arm specific, attribute.
11406 (arm_comp_type_attribute): New function: Return true if the
11407 two types have compatable, arm specific, attributes.
11409 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
11411 (FUNCTION_ARG): Redefine to call arm_function_arg.
11412 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
11414 (INIT_CUMULATIVE_ARGS): Redefine to call
11415 arm_init_cumulative_args.
11416 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
11418 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
11420 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
11422 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
11423 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
11424 (COMP_TYPE_ATTRIBUTES): Define.
11426 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
11427 if a long call is needed.
11428 (call_value): Call arm_is_long_call_p to decide if a long call
11430 (call_symbol): Call arm_is_long_call_p to decide if a long call
11433 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
11435 2000-02-11 Denis Chertykov <denisc@overta.ru>
11437 * README.AVR: New file with information about the avr ports.
11438 * config/avr: New directory with avr port files.
11440 2000-02-11 Andreas Jaeger <aj@suse.de>
11442 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
11444 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
11446 * cpphash.c: Fix formatting, update commentary.
11447 (dump_definition): Take three separate arguments instead of a
11448 MACRODEF structure argument.
11449 * cpphash.h: Update prototype of dump_definition.
11450 * cppinit.c (cpp_finish): Update call of dump_definition.
11452 * cpplib.c (do_define): Always create new hash entry with
11453 T_MACRO type. Remove redundant check for redefinition of
11454 poisoned identifier. Update call of dump_definition.
11455 (do_undef): Don't call check_macro_name. Rename sym_length to
11457 (do_error, do_warning): Don't use copy_rest_of_line or
11459 (do_warning): Don't use pedwarn for the actual warning,
11460 only the notice about its not being in the standard. (Fixes
11461 bug with #warning in system headers.)
11462 (do_ident): Stricter argument checking - accept only a single
11463 string after #ident. Also, macro-expand the line.
11464 (do_xifdef): Use cpp_defined. De-obfuscate.
11466 (do_pragma): Split out specific pragma handling to separate
11467 functions. Use get_directive_token. Update commentary. Do
11468 not pass on #pragma once or #pragma poison to the front end.
11469 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
11470 do_pragma_default): New.
11472 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
11474 * jump.c (jump_optimize_1): The first operand in a relational
11475 can be a CONST_INT.
11476 * optabs.c (emit_conditional_move): Handle relationals which
11477 have a known true/false result.
11479 2000-02-11 Geoff Keating <geoffk@cygnus.com>
11481 * function.c (thread_prologue_and_epilogue_insns): Don't insert
11482 a RETURN insn into a block which already ends with a jump.
11484 2000-02-11 Geoff Keating <geoffk@cygnus.com>
11486 * haifa-sched.c (BUF_LEN): Increase a lot.
11488 2000-02-11 Nick Clifton <nickc@cygnus.com>
11490 * configure.in: Add tm_p_file specification for thumb targets.
11491 * configure: Regenerate.
11493 * config/arm/thumb-protos.h: New file: Prototypes for exported
11494 functions defined in thumb.c.
11496 2000-02-11 Robert Lipe <robertl@sco.com>
11498 * Makefile.in (bootstrap-lean): Remove additional files.
11499 (bootstrap2-lean): Likewise.
11500 (VOL_FILES): List of files for above.
11502 2000-02-11 Nathan Sidwell <nathan@acm.org>
11504 * cpphash.c (special_symbol): Remove spurious argument to
11507 2000-02-11 Joel Sherrill (joel@OARcorp.com>
11509 * configure.in: (i*86-*-rtems*): Swapped elf and coff
11511 * configure: Rebuilt.
11513 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
11515 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
11517 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
11519 * pa.c, pa.h: Remove trigraph sequences within comments.
11521 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
11523 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
11525 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
11527 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
11529 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11531 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
11533 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11535 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
11536 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
11537 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
11538 (ASM_FILE_END): Use c4x_file_end.
11539 * config/c4x/c4x.c (c4x_global_label): New function.
11540 (c4x_external_ref, c4x_file_end): Likewise.
11542 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
11543 (c4x_external_ref, c4x_end_file): Likewise.
11545 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
11547 * cppexp.c: Don't include cpphash.h.
11548 (parse_charconst, cpp_lex): Use cpp_defined.
11549 (cpp_lex): Use get_directive_token throughout. Remove
11550 unnecessary cases from switch. Move assertion-handling code
11551 down to OTHER case.
11552 (cpp_parse_expr): If we see '+' or '-', check the context to
11553 determine if they are unary or binary operators. Streamline
11554 the jumps a bit. Do not call skip_rest_of_line.
11556 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
11557 static. Export get_directive_token. Update commentary.
11558 (cpp_defined): New function.
11559 (do_define): Remove reference to T_PCSTRING. Call
11560 free_definition to release memory for old definition, when
11561 redefining a macro.
11562 (eval_if_expression): Set only_seen_white to 0 before calling
11563 cpp_parse_expr. Call skip_rest_of_line after it returns.
11564 (cpp_read_check_assertion): Don't preserve a pointer into the
11565 token buffer across a call to cpp_get_token.
11567 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
11568 * cppfiles.c (redundant_include_p): Use cpp_defined.
11569 * cpphash.c (free_definition): New function.
11570 (delete_macro): Use it. Update commentary.
11571 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
11573 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
11574 from enum node_type. Prototype cpp_defined and get_directive_token.
11575 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
11577 * fix-header.c (check_macro_names): Use cpp_defined.
11578 (read_scan_file): Set inhibit_warnings and inhibit_errors in
11579 the options structure.
11581 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11583 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
11585 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
11587 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
11588 rather than die->die_tag.
11590 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11592 * combine.c (make_extraction, force_to_mode): Avoid warning on
11593 mixed-signedness conditionals.
11594 (make_field_assignment, nonzero_bits): Likewise.
11595 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
11596 (store_split_bit_field, extract_split_bit_field): Likewise.
11597 (extract_fixed_bit_field, store_bit_field,
11598 * expr.c: Change alignment to be unsigned everywhere.
11599 (move_by_pieces, store_constructor_field, store_constructor):
11600 Alignment parm is unsigned.
11601 (emit_block_move, emit_group_load, emit_group_store): Likewise.
11602 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11603 (do_compare_rtx_and_jump): Likewise.
11604 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
11605 Compare align with GET_MODE_ALIGNMENT.
11606 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
11607 (get_inner_reference): Likewise.
11608 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
11609 (expand_assignment): Local vars for alignment now unsigned.
11610 (store_constructor, store_field, expand_expr, do_jump): Likewise.
11611 (do_compare_and_jump): Likewise.
11612 (store_field): Call new function expr_align.
11613 * expr.h (emit_block_move, emit_group_load, emit_group_store):
11614 Alignment arg now unsigned.
11615 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11616 (do_compare_rtx_and_jump, store_bit_field): Likewise.
11617 (extract_bit_field): Likewise.
11618 * fold-const.c (add_double): Add cast to eliminate signedness warning.
11619 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
11620 (get_best_mode): Alignment arg is unsigned.
11621 * rtl.h (move_by_pieces): Likewise.
11622 * store-layout.c (maximum_field_alignment, set_alignment):
11624 (layout_decl): Alignment arg is now unsigned.
11625 Remove unneeded casts.
11626 (layout_record, layout_union, layout_type): Remove unneeded casts.
11627 Local alignment variables now unsigned.
11628 (get_best_mode): Alignment arg now unsigned.
11629 * tree.c (expr_align): New function.
11630 * tree.h (expr_align): Likewise.
11631 (maximum_field_alignment, set_alignment): Now unsigned.
11632 (get_inner_reference): Alignment argument is now pointer to unsigned.
11633 * varasm.c (assemble_variable): Add cast to eliminate warning.
11635 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
11637 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
11638 then store directly into op0.
11640 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
11641 the CALL_INSN, and emit the note immediately after it.
11643 2000-02-10 Nick Clifton <nickc@cygnus.com>
11645 * config/arm/thumb.md (epilogue): Include a (return) in the
11646 generated insn, and emit it using emit_jump_insn not
11649 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
11651 * function.c (assign_temp): Change zero-sized arrays to size 1.
11652 * integrate.c (expand_inline_function): Do not update
11653 stack_alignment_needed
11654 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
11655 add some sanity checking, remove optimization for function with
11658 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11660 * flow.c (mark_regs_live_at_end): Delete unused variables.
11662 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
11664 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
11665 in macro FRAME_GROWS_DOWNWARD.
11667 * stmt.c (expand_end_bindings): Delete unused variable.
11669 * unroll.c (iteration_info): Mark parameter `loop' with
11672 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11674 * fixinc/server.c (load_data): Return NULL if the marker line is
11676 (run_shell): If load_data returns NULL, retry the command once, in
11679 * configure: Rebuilt.
11681 2000-02-09 Bruce Korb <bkorb@gnu.org>
11683 * gcc/fixincludes: ** DELETED **
11684 * gcc/fixcpp: ** DELETED **
11685 * gcc/fixinc-nt.sed: ** DELETED **
11686 * gcc/just-fixinc: ** DELETED **
11687 * gcc/Makefile.in: Removed out-dated commentary
11688 * gcc/configure.in: Removed fast-fixincludes disablement.
11689 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
11691 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
11692 * function.c (thread_prologue_and_epilogue_insns): Uncomment
11695 2000-02-09 Richard Henderson <rth@cygnus.com>
11697 * jump.c (delete_insn): Don't delete user labels at -O0.
11699 2000-02-09 Robert Lipe <robertl@sco.com>
11701 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
11702 Don't link with HOST_LIBS.
11704 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11706 * configure.in: Correct --help text for --with-dwarf2.
11707 Put tm-dwarf2.h after other tm files, if it's requested.
11708 * configure: Regenerate.
11709 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
11712 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11714 * cpplib.h: Provide HASHNODE typedef and forward decl of
11715 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
11716 DEFINITION, struct hashnode, struct macrodef, struct
11717 definition, scan_decls prototype, default defn of
11718 INCLUDE_LEN_FUDGE moved elsewhere.
11720 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
11721 definition, and struct hashnode moved here. Remove the unused
11722 'predefined' field from struct definition. Replace the 'args'
11723 union with its sole member. All users updated (cpphash.c).
11724 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
11725 multiple include guard.
11727 * cpphash.c (hashf): Make static; use better algorithm; drop
11728 HASHSIZE parameter; return an unsigned int.
11729 (cpp_lookup): Drop HASH parameter. PFILE parameter is
11730 used. Calculate HASHSIZE modulus here.
11731 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
11733 (create_definition): Drop PREDEFINITION parameter.
11734 * cpplib.c (do_define): Don't calculate a hash value here.
11735 Don't pass (keyword == NULL) to create_definition.
11737 * scan.h: Prototype scan_decls here.
11738 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
11739 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
11740 callers of cpp_lookup and cpp_install updated.
11742 * cpphash.c (macarg): Hoist all the flag diddling out of the
11744 (macroexpand): ... and out of the loop that calls macarg.
11745 Skip over the initial paren before macro arguments with
11746 cpp_get_non_space_token; point may be some distance before
11747 that paren. Abort if it's not there.
11749 * cpplib.c (parse_clear_mark): Delete function.
11750 (parse_set_mark, parse_goto_mark): Make static.
11751 (ACTIVE_MARK_P): New macro.
11752 (skip_block_comment, skip_line_comment): Do not bump the line
11753 if ACTIVE_MARK_P is true.
11754 (cpp_pop_buffer): The buffer to be popped may not have an
11756 (cpp_get_token): When looking for the initial paren before
11757 macro arguments, only set a mark in a file buffer, Always
11758 return to that mark before proceeding to call macroexpand or
11759 return a NAME token.
11761 * cpplib.h: Remove prototypes of parse_set_mark,
11762 parse_clear_mark, parse_goto_mark.
11763 (struct cpp_options): Rename 'put_out_comments' to
11764 'discard_comments' and invert its sense.
11765 * cppinit.c, cpphash.c, cpplib.c: All users of
11766 put_out_comments changed to use discard_comments, with
11769 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
11771 * function.c (thread_prologue_and_epilogue_insns): Don't delete
11772 the edge from a block that both jumps and falls through to the
11775 2000-02-09 Scott Bambrough <scottb@netwinder.org>
11777 * config/arm/arm.md (movsi): In PIC mode, make sure that a
11778 constant source address is legitimate.
11780 2000-02-09 Philip Blundell <pb@futuretv.com>
11782 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
11785 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
11787 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
11789 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11791 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
11792 ends with a newline and a NUL. Don't be so clever manipulating
11795 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
11797 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
11798 not to BIGGEST_ALIGNMENT.
11800 2000-02-08 Geoff Keating <geoffk@cygnus.com>
11802 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
11803 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
11804 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
11805 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
11806 * frame.c (execute_cfa_insn): Handle
11807 DW_CFA_GNU_negative_offset_extended.
11809 2000-02-08 Richard Henderson <rth@cygnus.com>
11811 * flow.c (tidy_fallthru_edges): Split out from ...
11812 (delete_unreachable_blocks): ... here.
11813 (find_basic_blocks): Use it.
11815 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11817 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
11819 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
11821 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
11822 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
11823 (fix-header.o): Don't depend on cpphash.h.
11825 * scan.c (hashstr): New function.
11826 * scan.h: Prototype it.
11827 * fix-header.c: Don't include cpphash.h. Use hashstr.
11828 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
11829 hashstr. Report hash table statistics. Add private
11830 definition of xrealloc.
11832 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11834 * i386.h (TARGET_SWITCHES): Fix typo in option name.
11836 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
11838 * function.c (thread_prologue_and_epilogue_insns): Don't replace
11839 jumps with returns unless they are jumps to the fallthru block.
11841 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
11843 * i386.md (addqi3_cc): Fix contraints.
11845 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
11847 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
11849 2000-02-07 Mark Mitchell <mark@codesourcery.com>
11851 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
11852 carriage return after a macro name.
11854 2000-02-07 Fred Fish <fnf@be.com>
11856 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
11857 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
11859 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
11861 * cppfiles.c (deps_output): Count spacers in deps_column.
11863 2000-02-07 Neil Booth <NeilB@earthling.net>
11865 * cppinit.c (initialize_dependency_output): If there is no
11866 suffix, don't try to look for known suffixes. Use strrchr.
11867 (cpp_start_read): Remove duplicate initialization.
11869 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
11871 * calls.c (compute_argument_block_size): New argument
11872 preferred_stack_boundary.
11873 (expand_call): update cfun->preferred_stack_boundary, update call of
11874 compute_argument_block_size
11875 (emit_library_call): Increate cfun->preferred_stack_boundary
11876 to PREFERRED_STACK_BOUNDARY
11877 (emit_library_call_value): Likewise.
11878 * explow.c (allocate_dynamic_stack_spave): Likewise.
11879 * function.c (prepare_function_start): Set
11880 cfun->preferred_stack_boundary
11881 * function.h (struct function): Add preferred_stack_boundary field.
11882 * integrate.c (expand_inline_function): Update
11883 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
11884 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
11885 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
11887 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
11889 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
11890 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
11891 cpp_pedwarn, cpp_pedwarn_with_line,
11892 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
11893 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
11894 v_cpp_error_with_line, v_cpp_warning_with_line,
11895 cpp_message_from_errno, cpp_perror_with_name): Delete.
11897 * cpperror.c (cpp_print_containing_files): Take starting
11898 buffer as argument.
11899 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
11900 (v_cpp_message): Now called directly by all entry points.
11902 (cpp_pfatal_with_name, cpp_message): Delete.
11903 (cpp_notice_from_errno, cpp_ice): New functions.
11904 (cpp_notice): Is now for reporting error conditions, just
11905 without an associated file.
11906 (cpp_error, cpp_error_with_line): Don't do anything if
11907 opts->inhibit_errors is on.
11908 (cpp_pedwarn_with_file_and_line): Take column argument also.
11910 * cpplib.h: Update prototypes of exported functions.
11911 (struct cpp_options): Add inhibit_errors.
11913 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
11914 non-error messages. Include intl.h.
11916 * cppinit.c, cppmain.c: Likewise. Also, use
11917 cpp_notice_from_errno instead of cpp_perror_with_name or
11918 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
11920 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
11921 report internal errors.
11923 * cpplib.c (do_define): Switch bcopy to memcpy.
11924 Give cpp_pedwarn_with_file_and_line a dummy column argument.
11926 * cpplib.c (copy_rest_of_line): Revert previous change: don't
11927 bail out early if we hit a line comment.
11929 2000-02-06 Richard Henderson <rth@cygnus.com>
11931 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
11932 * basic-block.h: Declare them.
11933 * emit-rtl.h (active_insn_p): New.
11934 (next_active_insn, prev_active_insn): Use it.
11935 * rtl.h: Declare it.
11936 * function.c (emit_return_into_block): New.
11937 (thread_prologue_and_epilogue_insns): Insert return insns instead
11938 of epilogues when possible.
11939 * jump.c (jump_optimize_1): Remove code to insert a return insn
11940 on the fallthru to the exit block.
11942 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
11943 and for non-empty stack frames.
11944 * i386.md (return): Expand to return-pop as needed.
11946 2000-02-06 Richard Henderson <rth@cygnus.com>
11948 * simplify-rtx.c (simplify_relational_operation): Canonicalize
11949 constant to op1 for testing.
11951 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11953 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
11954 (fixuns_truncqfqi2): Use it.
11956 2000-02-06 Richard Henderson <rth@cygnus.com>
11958 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
11959 as a TYPE_LEA insn.
11961 * i386.md (widening and peepholes): Mask the constant instead of
11964 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
11966 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
11967 input pointer before possibly branching off to the backslash
11969 * cpphash.c (macroexpand): Correctly delete \r escapes when
11970 stringifying parameters.
11971 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
11972 if we can; bail out early if we hit a line comment.
11973 (handle_directive): Treat '# 123' in an .S file just like
11974 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
11975 Return 1 for '# not_a_directive'.
11976 (get_directive_token): Pop macro buffers here, so that
11977 cpp_get_token can't sneakily move past a newline.
11979 (cpp_get_token): goto randomchar if handle_directive returns 0.
11981 * cppalloc.c: Update copyright.
11982 * cpplib.c: Merge all the static function prototypes into one
11984 * cpplib.h: Remove #if 0 block.
11986 * cpperror.c: Remove #ifdef EMACS block.
11987 * cppmain.c: Likewise.
11988 * cpphash.c: Remove #if 0 blocks.
11989 * cppinit.c: Remove #if 0 blocks, and the -lint option.
11990 * cpplib.c: Remove #if 0 blocks and code referencing
11991 pcp_inside_if or for_lint. Remove duplicate error message.
11992 Fix error messages for #else after #else or #elif. Reformat.
11993 Remove archaic TODO list.
11994 * cpplib.h: Remove pcp_inside_if and for_lint flags.
11996 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
11998 * i386/osf1elf.h: Add missing backslash to multiline string.
12000 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12002 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
12004 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12006 * Makefile.in (c-common.o): Depend on $(EXPR_H).
12008 * c-common.c: Include expr.h.
12010 * c-pragma.c (mark_align_stack): Add prototype.
12012 * caller-save.c (add_stored_regs): Likewise.
12014 * combine.c (record_promoted_value): Likewise.
12016 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
12019 * cppinit.c (new_pending_define): Likewise.
12021 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
12023 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
12024 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
12025 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
12026 class_scope_p): Likewise.
12028 * dwarf2out.h (dwarf2out_set_demangle_name_func,
12029 dwarf2out_add_library_unit_info): Likewise.
12031 * ggc.h (ggc_page_print_statistics): Likewise.
12033 * haifa-sched.c (propagate_deps): Likewise.
12035 * reg-stack.c (next_flags_user, record_label_references): Likewise.
12037 * rtl.h (set_stack_check_libfunc): Likewise.
12039 * toplev.h (set_fatal_function): Likewise.
12041 * toplev.c (set_fatal_function): Delete prototype.
12043 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
12045 2000-02-05 Geoff Keating <geoffk@cygnus.com>
12047 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
12048 (FUNC_END): Likewise.
12050 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12052 * caller-save.c: Include tm_p.h.
12054 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12056 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
12058 2000-02-04 Neil Booth <NeilB@earthling.net>
12060 * cccp.c (main): Check 'dir' for a NULL pointer before passing
12063 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
12065 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
12066 * genflags.c: Use the max_operand_1 logic from genemit.c to
12067 calculate how many arguments gen_insn prototypes have. Remove
12068 NO_MD_PROTOTYPES ifdefs from the generated file.
12069 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
12070 file. Cast gen_insn initializers to insn_gen_fn.
12071 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
12072 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
12074 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12076 * fixinc/Makefile.in (HDR): Add machname.h.
12079 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12081 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
12082 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
12083 (c4x_cpu_version): Ditto.
12084 * config/c4x/c4x-protos.h: ... here.
12086 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
12088 * dwarf2out.c (add_abstract_origin_attribute): Don't call
12089 gen_abstract_function on our context if we're a nested function.
12091 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12093 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
12094 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
12096 2000-02-04 Bruce Korb <bkorb@gnu.org>
12098 * fixinc/genfixes(machname.h):
12099 Move the functionality from gen-machine.h into this file.
12100 UNdef MN_NAME_PAT if there are no names to change.
12101 Also, be a little kinder when AutoGen is not present.
12103 * fixinc/Makefile.in(machname.h):
12104 Change the generation rule to use genfixes.
12106 * fixinc/fixfixes.c(machine_name):
12107 machine_name_fix's functionality now dependent upon whether
12108 MN_NAME_PAT is defined.
12110 * fixinc/fixtests.c(machine_name):
12113 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
12116 * fixinc/fixlib.h(mn_get_regexps):
12119 * fixinc/gen-machine.h: DELETED
12121 2000-02-04 Jan Hubicka <jh@suse.cz>
12122 Richard Henderson <rth@cygnus.com>
12124 * i386.c (SAVE_REGS_FIRST): Remove.
12125 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
12126 (ix86_compute_frame_size): Likewise.
12127 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
12128 (ix86_emit_restore_regs): Remove.
12129 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
12130 when a frame pointer is in use.
12131 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
12132 instead of pop to restore a register when profitable; emit leave
12134 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
12135 as a TYPE_LEA insn.
12136 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
12137 * i386.md (prologue_allocate_stack): Remove.
12138 (epilogue_deallocate_stack): Remove.
12139 (pro_epilogue_adjust_stack): New.
12141 2000-02-04 Richard Henderson <rth@cygnus.com>
12143 * function.c (diddle_return_value): Rework to use a callback function.
12144 Use current_function_return_rtx if it's been set up.
12145 (do_clobber_return_reg, clobber_return_register): New.
12146 (do_use_return_reg, use_return_register): New.
12147 (expand_function_end): Use them.
12148 * stmt.c (expand_null_return): Likewise.
12149 * function.h: Declare them.
12150 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
12151 (mark_reg): Change arguments as appropriate for callback.
12152 * integrate.c (expand_inline_function): Revert 19 Jan change.
12154 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
12156 * tm.texi (Values in Registers): Fix typo: "fo" "for".
12157 (Misc): Say the scheduler, not the Haifa scheduler.
12159 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
12161 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
12162 when in_mem is set. Update all callers.
12164 2000-02-04 Richard Henderson <rth@cygnus.com>
12166 * i386/openbsd.h (INT_ASM_OP): Define.
12168 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
12170 * tm.texi: Fix various typos.
12172 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
12174 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
12175 (MD_STARTFILE_PREFIX_1): New macro.
12177 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
12179 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
12180 destination when needed.
12181 (strmovsi, strsetsi): New expander.
12182 (strmovsi_1, strsetsi_1): New pattern.
12183 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
12184 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
12185 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
12186 * invoke.texi (align-stringops, inline-all-stringops): Document.
12188 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
12190 * i386/netbsd.h (INT_ASM_OP): Define.
12192 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
12194 * cpplib.h (cpp_reader): Add new flag, no_directives.
12195 * cpphash.c (macarg): Set it.
12196 * cpplib.c (handle_directive): If no_directives is on and we
12197 find a directive, issue an error and discard the line.
12199 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
12201 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
12202 FP constants. Add ! TARGET_FPU check for FP constants.
12204 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
12206 * flow.c (find_basic_blocks): Don't kill label_value_list
12208 (cleanup_cfg): Kill it here.
12210 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12212 * expr.c (store_field): Ensure ALIGN is no stricter than the
12215 2000-02-02 Richard Henderson <rth@cygnus.com>
12217 * jump.c (delete_insn): Partially revert 19 Jan change;
12218 don't convert unused code labels to notes at -O0.
12220 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12222 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
12223 split_all_insns to recreate REG_LABEL notes for flow2 pass.
12225 2000-02-01 Richard Henderson <rth@cygnus.com>
12227 * i386.c (general_no_elim_operand): New.
12228 (nonmemory_no_elim_operand): New.
12229 (ix86_expand_move): Copy eliminable operands before a push.
12230 * i386-protos.h: Declare new functions.
12231 * i386.h (CAN_ELIMINATE): Simplify.
12232 (PREDICATE_CODES): Update.
12233 * i386.md (push insns): Don't allow eliminable register operands.
12235 2000-02-01 Richard Henderson <rth@cygnus.com>
12237 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
12238 replace BLKmode with DECL_RTL's mode.
12240 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
12242 * frame.c (find_fde): Convert for loop to do-while so compiler
12243 sees it's always executed at least once.
12244 * libgcc2.c (BBINBUFSIZE): Kill.
12245 (__bb_init_prg): Use fgets.
12246 (__bb_exit_trace_func): Don't paste strings.
12247 * unroll.c (unroll_loop): Initialize unroll_type, not
12248 unroll_number, and tweak logic to match.
12250 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
12252 (ix86_flags_dependant): Likewise. Disentangle control flow.
12253 (ix86_sched_reorder): Break guts out to
12254 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
12255 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
12258 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
12259 use string concatenation. Don't save and restore esi.
12261 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
12262 (machname.h): Remove script to separate file. Use two-step
12263 sequence so target is not created if script fails.
12264 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
12265 identifiers are defined.
12266 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
12267 an empty string, machine_name doesn't need to do anything at
12269 (is_cxx_header): Add more cases to regexp.
12270 * fixinc/fixlib.h: Update prototype.
12271 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
12273 * fixinc/fixincl.c: Define NO_BOGOSITY.
12275 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
12276 (hp_sysfile): Add missing comma.
12277 (math_exception): Put the wrapper ifdefs at the beginning and
12278 the end of the file.
12279 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
12281 2000-02-01 Richard Henderson <rth@cygnus.com>
12283 * sparc.c (fp_zero_operand): Turn into a normal predicate.
12284 Use CONST0_RTX. Update all callers.
12285 * sparc.h, sparc-protos.h: Update accordingly.
12286 * sparc.md (fp mov insns): Use fp_zero_operand directly
12289 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
12291 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
12294 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12296 * Makefile.in (specs.ready): New target.
12297 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
12299 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12301 * fixinc.irix: Use unique filenames for writing into /tmp,
12302 * fixinc.ptx: Likewise.
12303 * fixinc.sco: Likewise.
12304 * fixinc.svr4: Likewise.
12305 * fixinc.winnt: Likewise.
12307 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12309 * tsystem.h: New file.
12311 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
12312 s-crtS): Depend on tsystem.h.
12314 * crtstuff.c: Include tsystem.h.
12315 * frame.c: Likewise.
12316 * libgcc2.c: Likewise.
12318 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
12320 * builtins.c (expand_builtin_memset): Expand for variable sized
12323 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
12325 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
12328 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
12330 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
12332 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
12334 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
12336 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
12337 case 3->2 combining (combining with splitting) in which 2 is CC0
12338 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
12339 checked at the begining of the function with the aid of calling
12340 function 'can_combine_p'.
12342 2000-01-31 Dave Brolley <brolley@redhat.com>
12344 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
12346 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
12348 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
12351 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12353 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
12355 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
12358 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
12360 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
12361 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
12362 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
12363 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
12364 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
12365 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
12366 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
12367 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
12368 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
12369 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
12371 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
12372 Add %(cpp_cpu) to CPP_SPEC.
12374 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
12375 Add %(cc1_cpu) to CC1_SPEC.
12377 2000-01-28 Ulrich Drepper <drepper@redhat.com>
12379 * c-decl.c (c_decode_option): Accept optional numeric argument to
12380 -Wformat and set warn_format.
12381 * c-common.c: Don't emit warning about non-constant printf format
12382 string unless warn_format > 1.
12384 2000-01-30 Richard Henderson <rth@cygnus.com>
12386 * alpha.md (return_internal): Allow after reload only.
12388 2000-01-30 Richard Henderson <rth@cygnus.com>
12390 * i386.c (ix86_compute_frame_size): Omit padding1 if the
12391 local frame size is zero.
12393 2000-01-30 Richard Henderson <rth@cygnus.com>
12395 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
12396 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
12397 * alpha.md (return): Turn into an expander.
12398 (return_internal): Don't use $26.
12399 (epilogue): Emit the return insn.
12401 2000-01-30 Richard Henderson <rth@cygnus.com>
12403 * alpha.md (negtf2, abstf2): Fix word order thinko.
12404 (extendsftf2): New.
12405 (trunctfsf2): Avoid intermediate rounding errors.
12407 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
12409 * cppfiles.c (find_position): Drop 'colp' argument, return the
12411 (read_and_prescan): Adjust to match. Don't ever manipulate
12412 line or line_base except via find_position.
12414 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
12416 * c-parse.in: Apply Ulrich's changes from c-parse.y.
12417 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
12420 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
12422 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
12423 just print "<command line>". If 'filename' is null or an
12424 empty string, print "<stdin>" for the filename.
12425 * cpplib.c (do_define): Don't print the 'location of the
12426 previous definition' message if we're still parsing the
12428 (cpp_pedwarn_with_file_and_line): Always call
12429 cpp_file_line_for_message.
12431 2000-01-29 Mark Mitchell <mark@codesourcery.com>
12433 * flow.c (mark_regs_live_at_end): Fix typo.
12435 2000-01-28 Ulrich Drepper <drepper@redhat.com>
12437 * c-common.c: Adjust variable names, comments, help strings to c99.
12438 * c-lex.c: Likewise.
12439 * c-parse.y: Likewise.
12440 * c-tree.h: Likewise.
12441 * cccp.c: Likewise.
12442 * cpplib.h: Likewise.
12443 * c-decl.c: Likewise. Recognize options with names "*99" as well.
12444 * cppinit.c: Likewise.
12446 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12448 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
12449 * c4x.c: Define the optab rtx values.
12450 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
12451 (c4x_emit_libcall): Use new optab rtx values.
12452 (c4x_emit_libcall3): Likewise.
12453 (c4x_emit_libcall_mulhi): Likewise.
12454 * c4x-protos.h: Add prototypes for optab rtx values and change
12455 prototypes for above c4x_emit_libcall functions.
12457 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12459 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
12461 (c4x_function_prologue): Use regnames intead of float_reg_names when
12463 (c4x_function_epilogue): Likewise.
12464 (c4x_print_operand): Likewise.
12465 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
12466 * c4x.md (set_high): Disable for TARGET_TI.
12468 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12470 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
12471 of framepointer + constant to ADDR_REGS class.
12472 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
12473 * c4x.c (std_or_reg_operand): New function.
12474 * c4x-protos.h (std_or_reg_operand): Prototype it.
12476 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12478 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
12479 object names as libgcc2.c.
12480 * libgcc.S: Use newly defined names.
12482 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
12483 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
12485 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
12486 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
12487 (FLOW_LOOP_LAST_BLOCK): Likewise.
12489 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12491 * basic-block.h (struct loop): New fields 'first' and 'last'.
12492 * flow.c (flow_loops_find): Compute loop->first and loop->last.
12493 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
12494 and loop->last to check for NOTE_INSN_LOOP_END.
12496 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
12498 * predict.c (estimate_probability): Use the new FIRST and LAST fields
12499 of the loop descriptor rather than HEADER and LATCH. Also added
12500 missing break statements as well making some coding style modifications
12501 as suggested by Michael Hayes.
12503 2000-01-28 Richard Henderson <rth@cygnus.com>
12505 * flow.c (find_basic_blocks): Remove do_cleanup argument.
12506 Break out that code ...
12507 (cleanup_cfg): ... here.
12508 (commit_one_edge_insertion): Detect a return instruction being
12509 emitted to an edge. Emit a barrier following; clear fallthru.
12510 (commit_edge_insertions): Verify CFG consistency.
12511 * function.c (expand_function_start): Kill unused variable.
12512 (expand_function_end): Likewise.
12513 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
12514 to insert the epilogue.
12516 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
12517 (delete_null_pointer_checks): Likewise.
12518 * output.h: Likewise.
12519 * reg-stack.c (reg_to_stack): Likewise.
12520 * toplev.c (rest_of_compilation): Likewise. Run
12521 thread_prologue_and_epilogue_insns after rebuilding the CFG.
12523 2000-01-28 Richard Henderson <rth@cygnus.com>
12525 * Makefile.in (flow.o): Revert 24 Jan change.
12526 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
12527 FUNCTION_VALUE result to DECL_RESULT's mode.
12529 * haifa-sched.c (schedule_insns): Don't recompute reg info
12532 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
12534 * configure.in: Make --enable-cpplib the default.
12535 * configure: Regenerate.
12536 * gcc.dg/990119-1.c: No longer expected to fail.
12538 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
12540 * jump.c (jump_optimize_1): Delete an optimization that is also done
12541 by merge_blocks in flow.
12543 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12545 * diagnostic.c (build_message_string, output_printf,
12546 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
12547 (build_location_prefix): Fix non-literal format string.
12549 2000-01-27 Richard Henderson <rth@cygnus.com>
12551 * alpha.md (trunctfsf2): New.
12553 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
12555 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
12557 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
12559 * cppinit.c (cpp_handle_option): Recognize C++ comments under
12561 * cpplib.c (skip_block_comment, skip_line_comment): Split code
12563 (skip_comment) ... here. Permit C++ comments in system
12564 headers always. Warn about C++ comments in user code under
12565 -std=gnu89 -pedantic.
12566 (copy_comment): Use skip_comment.
12567 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
12569 (consider_directive_while_skipping, do_else, do_endif): Call
12570 validate_else unconditionally.
12571 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
12572 text after the conditional in a system header.
12573 * cpplib.h (struct cpp_buffer): Add flag
12574 warned_cplusplus_comments.
12576 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
12578 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
12579 Use unshare_all_rtl_1.
12580 (unshare_all_rtl_again): New function.
12581 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
12583 * function.c (purge_addressof_1): Use unshare_all_rtl_again
12584 rather than resetting the 'used' flags ourself.
12586 * toplev.c (rest_of_compilation): Add current_function_decl
12587 to the unshare_all_rtl call.
12588 * tree.h: Prototype unshare_all_rtl.
12589 * rtl.h: Prototype unshare_all_rtl_again here.
12591 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
12593 * genoutput.c (output_prologue): Include ggc.h in generated
12595 * Makefile.in (insn-output.o): Depends on ggc.h.
12597 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
12598 Hans-Peter Nilsson <hp@bitrange.com>
12600 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
12601 Remove redundant include of xm-ns32k.h.
12602 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
12603 Remove redundant include of xm-ns32k.h.
12604 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
12605 Remove redundant include of xm-ns32k.h.
12606 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
12608 * ns32k/ns32k.h: Update comment on multiply-add instructions.
12609 (TARGET_SWITCHES): Add documentation strings.
12610 (DWARF_FRAME_REGNUM): Override default definition.
12611 (REG_CLASS_CONTENTS): Add comments.
12612 (SUBSET_P): Format to reduce line length.
12613 (SMALL_REGISTER_CLASSES): Make a run time option.
12614 (GO_IF_NONINDEXED_ADDRESS): Reformat.
12615 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
12616 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
12617 (regclass_map): fix typo in comment.
12618 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
12619 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
12620 (trace, reg_or_mem_operand): Delete, unused function.
12621 (calc_address_cost): Small offsets are cheaper than large ones.
12622 (expand_block_move): Generate more efficient code when bytes is a
12623 known at compile time.
12624 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
12625 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
12626 instead of reg_or_mem_operand.
12628 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
12629 not general_operand. Similarly use "=rm" or stricter, not "=g".
12630 For input operands, use stricter constraints than "g" if not
12631 general_operand. Similarly use stricter predicate than
12632 "general_operand" when stricter constraints than "g" are present,
12633 except for matching constraints.
12634 (movstrsi): Use "memory_operand" for operands 0 and 1.
12635 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
12636 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
12637 not reg_or_mem_operand.
12638 (udivmoddisi4): Ditto.
12639 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
12640 Use nonimmediate_operand for operand 3, not register_operand.
12641 (udivmoddiqi4_internal): Use register_operand for operand 1, not
12642 reg_or_mem_operand.
12644 2000-01-27 Fred Fish <fnf@be.com>
12646 * gthr-posix.h: Fix typo; compatibily -> compatibility.
12647 * gthr-single.h: Likewise.
12648 * gthr-solaris.h: Likewise.
12649 * gthr-vxworks.h: Likewise.
12650 * gthr-win32.h: Likewise.
12651 * gthr.h: Likewise.
12653 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
12655 * cppinit.c: Add " (cpplib)" to end of string printed by
12658 2000-01-27 Richard Henderson <rth@cygnus.com>
12660 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
12661 testing for a signed comparison.
12662 (alpha_emit_floatuns): New.
12663 * alpha-protos.h: Declare it.
12664 * alpha.md (floatunsdisf2, floatunsdidf2): New.
12665 (extendsfdf2): Tidy.
12667 2000-01-27 Jakub Jelinek <jakub@redhat.com>
12669 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
12670 no -g option specifying debugging format, default to -gstabs+.
12672 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12674 * calls.c (special_function_p): New argument fork_or_exec.
12675 (expand_call): When profile_arc_flag is set and the function
12676 is in the fork_or_exec group, call __bb_fork_func first.
12677 * libgcc2.c, _bb module (__bb_fork_func): New function.
12678 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
12680 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
12681 * tree.h (special_function_p): Update prototype.
12683 2000-01-26 Richard Henderson <rth@cygnus.com>
12685 * alpha.c (alpha_split_tfmode_pair): New.
12686 * alpha-protos.h: Declare it.
12687 * alpha.md (abstf2, negtf2): New.
12688 (movtf insn): Add input G constraint.
12689 (movtf splitter): Use alpha_split_tfmode_pair.
12691 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12693 * i386/cygwin.h: PROTO -> PARAMS.
12695 2000-01-26 Jakub Jelinek <jakub@redhat.com>
12697 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
12698 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
12699 using _Qp_cmp/_Q_cmp and testing the return value.
12700 (print_operand): Call reverse_condition_maybe_unordered if
12701 we are handling CCFPmode or CCFPEmode.
12702 Handle ORDERED, UN* and LTGT comparisons.
12703 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
12704 if not TARGET_HARD_QUAD.
12705 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
12706 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
12707 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
12708 Adjust gen_b* calls so that they reflect return comparison of
12709 sparc_emit_float_lib_cmp.
12711 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12713 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
12714 incoming operands array is large enough for one more operand.
12715 (alpha_emit_xfloating_arith): Likewise.
12717 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12719 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
12720 file with one line and no trailing newline.
12721 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
12722 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
12723 checking if the match is on the line.
12724 * fixinc/gnu-regex.c: Provide regerror not __regerror.
12726 2000-01-25 Richard Henderson <rth@cygnus.com>
12728 * sparc.c (output_cbranch): Fix accidental squashing of the
12729 fp branch pre-delay nop.
12731 2000-01-25 Richard Henderson <rth@cygnus.com>
12733 * tree.def (UNNE_EXPR): Remove.
12734 * c-typeck.c (build_binary_op): Don't handle it.
12735 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
12737 * rtl.def (UNNE): Remove.
12739 * jump.c (reverse_condition): Update accordingly.
12740 (swap_condition): Likewise.
12741 (comparison_dominates_p): Handle unordered comparisons.
12742 (reverse_condition_maybe_unordered): New.
12743 * rtl.h (reverse_condition_maybe_unordered): Declare.
12745 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
12746 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
12747 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
12748 * sparc.md (bltgt): New.
12750 2000-01-25 Nick Clifton <nickc@redhat.com>
12752 * emit-rtl.c (emit_insn): Only check machine class insns for
12753 improper emission of a RETURN.
12755 2000-01-25 Richard Henderson <rth@cygnus.com>
12757 * Makefile.in (flow.o): Depend on $(EXPR_H).
12758 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
12759 duplicate the structure of diddle_return_value for keeping regs live.
12761 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12763 * loop.c (current_loop_info): Delete.
12764 (consec_sets_invariant_p): Add loop argument, update callers.
12765 (get_condition_for_loop): Likewise.
12766 (count_nonfixed_reads, update_giv_derive): Likewise.
12767 (simplify_giv_expr, general_induction_var): Likewise.
12768 (consec_sets_giv, recombine_givs): Likewise.
12769 (move_movables): Delete loop_start and loop_end arguments,
12770 add loop argument, and update callers.
12771 (find_mem_givs, check_final_value): Likewise.
12772 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
12773 (loop_invariant_p): Rename from invariant_p, add loop argument, and
12775 (basic_induction_var): Add loop argument, delete loop_level argument,
12776 and update callers.
12777 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
12778 add loop argument, and update callers.
12779 (find_splittable_regs, find_splittable_givs): Likewise.
12780 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
12781 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
12782 (biv_total_increment): Delete loop_start and loop_end arguments;
12784 (precondition_loop_p): Delete loop_start and loop_info arguments;
12786 * loop.h (get_condition_for_loop): Add loop argument.
12787 (biv_total_increment): Delete loop_start and loop_end arguments.
12788 (precondition_loop_p): Delete loop_start and loop_info arguments;
12790 (final_biv_value): Delete loop_start and loop_end arguments;
12792 (final_giv_value, back_branch_in_range_p): Likewise.
12794 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
12796 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
12798 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
12800 * Makefile.in (c-gperf.h) : Change the "See" pointer to
12801 point to the new "generated_files" doc.
12803 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
12805 * config/fp-bit.c (_unord_f2): Fix typo.
12807 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12809 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
12810 c-typeck.c, objc/objc-act.c: Remove all references to obstack
12811 functions obsoleted by GC, such as push_obstacks_nochange,
12812 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
12813 and code which existed only to decide whether or not to call
12814 them. Remove now-unused NESTED argument from start_function;
12815 all callers changed. Do not change behavior based on ggc_p.
12816 The use of the ixp_obstack in c-iterate.c and the util_obstack
12817 in objc/objc-act.c remain; these are not obsoleted by garbage
12819 * c-tree.h: Update prototype for start_function.
12821 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
12823 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
12825 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
12828 2000-01-25 Richard Henderson <rth@cygnus.com>
12830 * sparc-protos.h (select_cc_mode): Declare.
12831 * sparc.c (select_cc_mode): New. Handle unordered compares.
12832 (output_cbranch): Always reverse via code change. Handle
12833 unordered compares. Factor tests and string updates.
12834 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
12835 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
12836 * sparc.md (bunordered, bordered): New.
12837 (bungt, bunlt, buneq, bunge, bunle): New.
12839 2000-01-25 Richard Henderson <rth@cygnus.com>
12841 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
12842 * ggc-common.c (ggc_add_rtx_varray_root): New.
12843 (ggc_mark_rtx_varray): New.
12844 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
12845 functions down below ggc_mark_foo.
12846 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
12848 2000-01-25 Richard Henderson <rth@cygnus.com>
12850 * alpha.c (secondary_reload_class): Don't allocate a secondary
12851 for integral mode memories into FLOAT_REGS. Rearrange the more
12852 complicated memory expression inward.
12854 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12856 * inclhack.def: Fixes to play nicer with FreeBSD, and
12857 corrections to comments.
12858 (cxx_unready): Add select expression.
12859 (irix_sockaddr): Add bypass expression.
12860 (machine_ansi_h_va_list): New fix.
12861 (stdio_va_list): No need to edit _BSD_VA_LIST_.
12862 Split out addition of "#include <stdarg.h>" to...
12863 (stdio_stdarg_h): ... here.
12864 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
12865 to stdlib.h also. Do not munge _BSD_SIZE_T_.
12866 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
12868 (ultrix_ifdef): Tighten up select expression.
12870 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
12871 re_ct and max_mach to avoid use of shell. Make printed names
12872 match names in inclhack.def. Use static copyright date.
12873 Don't count c_test and test expressions as requiring regex_t
12874 slots. Add some commentary.
12875 * inclhack.tpl: Do not include the 'This script contains N
12876 fixup scripts' line if PROGRAM is defined. Use static
12879 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
12881 * dwarf2out.c: include "varray.h", not dyn-string.h.
12882 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
12883 (addr_const_to_string, addr_to_string): Lose.
12884 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
12885 (struct dw_val_struct): val_addr is now an rtx.
12886 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
12887 (used_rtx_varray): New varray.
12888 (dwarf2out_init): Initialize it.
12889 (save_rtx): New fn.
12890 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
12892 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
12893 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
12894 * Makefile.in (dwarf2out.o): Update dependencies.
12896 2000-01-24 Richard Henderson <rth@cygnus.com>
12898 * i386.c (i386_dwarf_output_addr_const): New.
12899 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
12901 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
12903 * dwarfout.c (output_mem_loc_descriptor): Likewise.
12904 * i386.c (i386_simplify_dwarf_addr): New.
12905 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
12907 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
12909 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
12910 TYPE_STUB_DECL is NULL.
12912 2000-01-24 Richard Henderson <rth@cygnus.com>
12914 * builtins.c (expand_tree_builtin): Move ...
12915 * c-common.c (expand_tree_builtin): ... here.
12917 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12919 * loop.h (LOOP_INFO): New accessor macro.
12920 * basic-block.h (struct loop): Rename field `info' to `aux'.
12921 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
12922 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
12923 * unroll.c (loop_iterations, unroll_loop): Likewise.
12925 2000-01-24 Christopher Faylor <cgf@cygnus.com>
12927 * config/i386/t-cygwin: Accomodate new winsup directory layout
12928 when searching for include files.
12930 2000-01-24 Richard Henderson <rth@cygnus.com>
12932 * rtl.def: Add unordered fp comparisions.
12933 * tree.def: Likewise.
12934 * tree.h: Add ISO C 9x unordered fp comparision builtins.
12936 * builtins.c (expand_tree_builtin): New function.
12937 * c-typeck.c (build_function_call): Use it.
12938 (build_binary_op): Support unordered compares.
12939 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
12941 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
12942 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
12943 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
12944 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
12945 * jump.c (reverse_condition): Don't abort for UNLE etc, but
12947 (swap_condition): Handle unordered compares.
12948 (thread_jumps): Check can_reverse before reversing.
12949 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
12952 * optabs.c (can_compare_p): New argument CODE. Verify branch or
12953 setcc is present before acking for cmp_optab. Update all callers.
12954 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
12955 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
12956 * expr.c (expand_expr): Likewise. Support unordered compares.
12957 (do_jump, do_store_flag): Likewise.
12958 * expr.h (enum libfunc_index): Add unordered compares.
12960 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
12961 (DPBIT_FUNCS): Add _unord_df.
12962 * config/fp-bit.c (_unord_f2): New.
12963 * fp-test.c (main): Try unordered compare builtins.
12965 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
12966 * alpha.c (alpha_comparison_operator): Check mode properly.
12967 (alpha_swapped_comparison_operator): Likewise.
12968 (signed_comparison_operator): Likewise.
12969 (alpha_fp_comparison_operator): New.
12970 (alpha_emit_conditional_branch): Handle unordered compares.
12971 * alpha.h (PREDICATE_CODES): Update.
12972 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
12973 (bunordered, bordered): New.
12975 2000-01-24 Richard Henderson <rth@cygnus.com>
12977 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
12978 * alpha.md (movtf): New expander, insn, and splitter.
12980 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
12982 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
12985 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
12987 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
12988 (FIXED_REGISTERS, CALL_USED_REGISTERS,
12989 REG_ALLOC_ORDER): Add frame pointer
12990 (FRAME_POINTER_REGNUM): Set to 20
12991 (HARD_FRAME_POINTER_REGNUM): New macro.
12992 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
12993 to HARD_FRAME_POINTER.
12994 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
12995 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
12996 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
12997 (HI_REGISTER_NAMES): Add "frame".
12998 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
12999 (debug_reg): Handle FRAME_POINTER_REGNUM.
13000 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
13001 GENERAL_REGS and INDEX_REGS.
13002 * i386.c (SAVED_REGS_FIRST): new macro.
13003 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
13004 (ix86_decompose_address, memory_address_length): Likewise.
13005 (regclass_map): Add frame pointer.
13006 (call_insn_operand): Handle frame_pointer_rtx.
13007 (reg_no_sp_operand): Likewise.
13008 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
13009 (print_operand, legitimize_pic_address): Fix formating.
13010 (ix86_compute_frame_size): Make static, update prototype, new
13011 parameters padding1, padding2, use ix86_nsaved_regs, use
13012 stack_alignment_needed.
13013 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
13014 to HARD_FRAME_POINTER_REGNUM conversions.
13015 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
13016 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
13017 (print_reg): Abort on FRAME_POINTER_REGNUM
13019 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
13021 * i386.h (PREDICATE_CODES): Add aligned_operand.
13022 * i386.c (aligned_operand): New function.
13023 (ix86_aligned_p): Kill.
13024 * i386.md (movhi_1): Emit mov for aligned operands.
13025 (promoting peep2s): Use aligned_operand.
13027 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
13029 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
13030 expression to allow underscores in macro names.
13031 (fix_char_macro_defines): Increment scanning pointer.
13033 2000-01-23 Richard Henderson <rth@cygnus.com>
13035 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
13036 * alpha/osf5.h: New file.
13037 * configure.in (alpha-*-osf5): Add it to tm_file.
13039 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
13041 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
13042 (alpha_emit_xfloating_cvt, function_arg): Declare.
13043 * alpha.c (alpha_emit_conditional_branch): Call
13044 alpha_emit_xfloating_compare for TFmode compares.
13045 (alpha_lookup_xfloating_lib_func): New.
13046 (alpha_compute_xfloating_mode_arg): New.
13047 (alpha_emit_xfloating_libcall): New.
13048 (alpha_emit_xfloating_arith): New.
13049 (alpha_emit_xfloating_compare): New.
13050 (alpha_emit_xfloating_cvt): New.
13051 (print_operand): Add default abort case.
13052 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
13053 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
13054 (BIGGEST_ALIGNMENT): Increase to 128 bits.
13055 (RETURN_IN_MEMORY): True for TF/TCmode.
13056 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
13057 (FUNCTION_ARG): Move to function_arg.
13058 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
13059 (ASM_OUTPUT_LONG_DOUBLE): New.
13060 (ASM_OUTPUT_DOUBLE): Always output bits.
13061 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
13062 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
13063 (extenddftf2, trunctfdf2): New.
13065 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13067 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
13068 * config/sparc/sol2.h: ... here.
13070 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13072 * basic-block.h (struct loops): New field `levels'.
13073 * flow.c (flow_loops_level_compute): Traverse all outer loops.
13074 (flow_loop_level_compute): Initialise level to 1.
13075 (flow_loops_find): Set loops->levels.
13076 (flow_loops_dump): Print loops->levels.
13078 2000-01-23 Richard Henderson <rth@cygnus.com>
13080 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
13081 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
13083 2000-01-23 Richard Henderson <rth@cygnus.com>
13085 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
13086 * i386.h (DBX_REGISTER_NUMBER): Use them.
13087 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
13088 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
13089 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
13090 * i386/sequent.h: Kill incorrect comment.
13092 2000-01-23 Mark Mitchell <mark@codesourcery.com>
13094 * ggc-page.c (struct page_entry): Make `context_depth' an
13096 (struct globals): Likewise.
13098 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
13100 * loop.c (check_dbra_loop): When checking a loop for
13101 reversability, check the source of any stores to ensure
13102 they don't depend on an initial value.
13104 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13106 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
13108 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
13110 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
13111 'pz_scan' into scope of entire function. Only affects
13112 compiles with -DDEBUG.
13114 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
13116 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
13117 section naming to that prior to 2000-01-07 patch.
13118 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
13119 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
13120 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
13121 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
13122 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
13124 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
13126 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
13129 2000-01-21 Jim Wilson <wilson@cygnus.com>
13131 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
13132 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
13134 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
13136 * cpphash.c (change_newlines): Delete function.
13137 (struct argdata): Delete 'newlines' and 'use_count' fields.
13138 (macroexpand): Remove code referencing those fields.
13140 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13142 * loop.c (loops_info): New variable.
13143 (loop_optimize): Allocate loops->array and free it on exit.
13144 Allocate memory for loops_info and assign to each loop,
13146 (find_and_verify_loops): Do not allocate loops->array.
13148 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
13150 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
13152 2000-01-21 Jakub Jelinek <jakub@redhat.com>
13154 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
13155 pseudos if expanded after first flow.
13156 (movdi_pic_label_ref): Likewise.
13158 2000-01-20 Richard Henderson <rth@cygnus.com>
13160 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
13162 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
13164 * Makefile.in (fixinc.sh): Depend on specs.
13165 * fixinc/Makefile.in: Add rule to create machname.h.
13166 (fixlib.o): Depend on machname.h.
13167 * fixinc/fixtests.c (machine_name): New test.
13168 * fixinc/fixfixes.c (machine_name): New fix.
13169 * fixinc/fixlib.c (mn_get_regexps): New helper function for
13170 the machine_name test and fix.
13171 * fixinc/fixlib.h: Prototype it.
13172 * fixinc/inclhack.def (machine_name): Use the C test and fix.
13173 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
13175 * gcc.c (do_spec_1) [case P]: Take care not to create
13176 identifiers with three leading or trailing underscores.
13178 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
13179 (fixincl): Don't specify libraries twice on link line.
13180 (gnu-regex.o): Remove special rule.
13181 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
13182 defined by config.h. Do not define _REGEX_RE_COMP.
13183 (regcomp): Allocate and initialize a fastmap.
13184 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
13186 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
13188 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
13190 2000-01-19 Richard Henderson <rth@cygnus.com>
13192 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
13193 arguments with BB. Update all callers. Tidy line wrapping.
13195 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
13197 * emit-rtl.c (try_split): Return last_insn if we split the
13200 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
13202 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
13203 (ix86_initial_elimination_offset): Declare.
13204 * i386.c (ix86_nsaved_regs): Break out from ...
13205 (ix86_can_use_return_insn_p): ... here.
13206 (ix86_emit_save_regs): Break out from ...
13207 (ix86_expand_prologue): ... here.
13208 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
13210 (ix86_expand_epilogue): ... here.
13211 (ix86_compute_frame_size): Make static, add prototype.
13212 (ix86_initial_elimination_offset): Break out from ...
13213 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
13215 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13217 * recog.h (OUT_FCN): Delete.
13219 * vax.md: Call `get_insn_template' instead of OUT_FCN.
13221 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13223 * cppalloc.c: PROTO -> PARAMS.
13224 * cpperror.c: Likewise.
13225 * cppfiles.c: Likewise.
13226 * cpplib.c: Likewise.
13227 * cpplib.h: Likewise.
13229 * config/arm/arm-protos.h: PROTO -> PARAMS.
13230 * config/arm/arm.c: Likewise.
13231 * config/c4x/c4x.c: Likewise.
13232 * config/fr30/fr30-protos.h: Likewise.
13233 * config/nextstep.c: Likewise.
13234 * config/pa/pa.c: Likewise.
13235 * config/pj/pj.c: Likewise.
13236 * config/rs6000/rs6000.c: Likewise.
13237 * config/v850/v850-protos.h: Likewise.
13238 * config/v850/v850.c: Likewise.
13240 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13242 * i370-protos.h: New file.
13244 * i370.c: Include tm_p.h. Fix compile time warnings.
13246 * i370.h: Move prototypes to i370-protos.h. Fix compile time
13249 * i370.md: Likewise.
13251 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13253 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
13254 (target_isinf, target_isnan, eisnan): Mark parameter with
13256 (eiisinf): Wrap in INFINITY.
13257 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
13258 (ibmtoe): Remove unused variable `rndsav'.
13260 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13262 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
13263 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
13265 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
13267 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
13268 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
13269 (fix_char_macro_defines, fix_char_macro_uses): New functions.
13271 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
13272 Recognize Emacs mode markers also.
13273 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
13274 C++ comments in C++ headers. Call is_cxx_header only if
13277 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
13278 bypass for ncurses.
13279 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
13280 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
13281 ... these, which use the new C fixes.
13282 (math_exception): Escape literal '+' in bypass expression.
13284 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
13287 2000-01-19 Geoff Keating <geoffk@cygnus.com>
13289 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
13292 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13294 * loop.c (loop_optimize): Allocate loop_info structure for each loop
13295 prior to calling scan_loop.
13297 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13299 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
13300 (split_branches, calc_live_regs): Likewise.
13302 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13304 * sh.md (fpu_single, fp_mode): New attributes.
13306 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13308 * loop.c (current_loop_info): Renamed from loop_info_data
13309 and changed to a pointer.
13310 (loop_optimize): Allocate loop_info structure for each loop
13311 and initialise to zero.
13312 (scan_loop): Set current_loop_info.
13314 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
13317 2000-01-19 Richard Henderson <rth@cygnus.com>
13319 * stupid.c: Die die die.
13320 * Makefile.in (OBJS): Remove stupid.o.
13321 (stupid.o): Likewise.
13323 * except.c (emit_eh_context): Don't emit USEs for stupid.
13324 * explow.c (probe_stack_range): Likewise.
13325 * flags.h (obey_regdecls): Remove.
13326 * flow.c (find_basic_blocks): Don't run try_merge_blocks
13327 when not optimizing.
13328 (life_analysis): Limit data collection when not optimizing.
13329 (mark_regs_live_at_end): Always mark the return value registers.
13330 (mark_used_regs): Remove dummy RETURN case.
13331 (print_rtl_with_bb): Don't consult obey_regdecls.
13332 * function.c (use_variable, use_variable_after): Remove.
13333 (assign_parms): Consult optimize not obey_regdecls.
13334 (expand_function_start): Don't emit USEs for stupid.
13335 (expand_function_end): Likewise.
13336 * global.c (build_insn_chain): Export.
13337 * integrate.c (expand_inline_function): Kill return-value USE
13339 * jump.c (jump_optimize_1): Do simple jump optimizations and
13340 dead code elimination.
13341 (calculate_can_reach_end): Remove check_deleted argument.
13342 (delete_insn): Patch out insns even when not optimizing.
13343 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
13344 * rtl.h (use_variable, use_variable_after): Remove declarations.
13345 (build_insn_chain): Declare.
13346 * stmt.c (expand_value_return): Don't emit USEs for stupid.
13347 (expand_end_bindings): Likewise.
13348 (expand_decl): Likewise. Consult optimize not obey_regdecls.
13349 * toplev.c (obey_regdecls): Remove.
13350 (rest_of_compilation): Don't set it. Kill stupid in favour of
13351 flow1, local-alloc, and reload.
13352 (main): Don't set obey_regdecls.
13354 * config/nextstep.c (handle_pragma): Likewise.
13356 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
13358 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
13360 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13362 * alpha-protos.h: PROTO -> PARAMS.
13363 * alpha.c: Likewise.
13365 * h8300.c: Likewise.
13366 * i386-protos.h: Likewise.
13367 * i386.c: Likewise.
13368 * m32r-protos.h: Likewise.
13369 * m32r.c: Likewise.
13370 * mips.c: Likewise.
13371 * mips.md: Likewise.
13372 * gmon-sol2.c: Likewise.
13373 * sparc.c: Likewise.
13375 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13377 * ns32k-protos.h: New file.
13379 * ns32k.c: Fix compile time warnings.
13381 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
13384 * ns32k.md: Likewise.
13386 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13388 * vax-protos.h: New file.
13390 * vax.c: Fix compile time warnings.
13392 * vax.h: Move prototypes to vax-protos.h. Fix compile time
13395 * vax.md: Likewise.
13397 * vaxv.md: Likewise.
13399 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13401 * romp-protos.h: New file.
13403 * romp.c: Fix compile time warnings.
13405 * romp.h: Move prototypes to romp-protos.h. Fix compile time
13408 * romp.md: Likewise.
13410 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13412 * we32k-protos.h: New file.
13414 * we32k.c: Fix compile time warnings.
13416 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
13419 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13421 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
13423 * except.c (eh_regs): Likewise.
13425 * final.c (output_operand): Likewise.
13427 * fold-const.c (target_isinf, target_isnan): Likewise.
13429 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
13431 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
13432 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
13434 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
13435 when optimize_size.
13436 (clrstrsi): Rewrite.
13437 (strsethi, strsetqi): New expanders.
13438 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
13439 (cmpstrsi): Emit compare insn before cmpstrsi_1
13440 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
13441 (strlensi_1): Likewise.
13442 (cmpstrsi_1): Likewise; do not output compare.
13443 (strlen expander): Do not unroll when optimizing for size.
13444 (*subsi3_carry): Rename to subsi3_carry
13445 (addqi3_cc): New pattern.
13446 * i386.h (processor_costs): Add move_ratio field.
13447 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
13448 * i386.c (*_cost): Set move_ratio.
13449 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
13450 (x86_expand_strlensi_1): Rewrite the main loop.
13452 2000-01-17 Richard Henderson <rth@cygnus.com>
13454 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
13455 * cse.c (find_comparison_args, fold_rtx): Likewise.
13456 * integrate.c (subst_constants): Likewise.
13457 * loop.c (get_condition): Likewise.
13459 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
13461 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
13463 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
13465 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
13466 (RESTORE_WARN_FLAGS): Unpack it.
13467 Change semantic type of extension to ttype.
13468 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
13469 * c-parse.y, c-parse.c, objc/objc-parse.y,
13470 objc/objc-parse.c: Regenerate.
13472 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
13474 * fixinc/fixlib.c: Add copyright notice.
13475 (compile_re): New function.
13476 * fixinc/fixlib.h: Prototype compile_re.
13478 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
13479 Use compile_re to compile regular expressions.
13481 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
13482 where the pattern matched.
13484 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
13486 (ultrix_ansi_compat): Likewise.
13487 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
13489 (interactv_add2, interactv_add3): Delete.
13490 (x11_sprintf): Don't use filename glob.
13491 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
13494 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13496 * print-rtl.c: PROTO -> PARAMS.
13497 * real.c: Likewise.
13498 * reg-stack.c: Likewise.
13499 * resource.c: Likewise.
13500 * sdbout.h: Likewise.
13501 * simplify-rtx.c: Likewise.
13502 * stor-layout.c: Likewise.
13503 * stupid.c: Likewise.
13504 * xcoffout.c: Likewise.
13505 * xcoffout.h: Likewise.
13507 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13509 * toplev.c: PROTO -> PARAMS.
13510 * toplev.h: Likewise.
13511 * tree.c: Likewise.
13512 * tree.h: Likewise.
13513 * unroll.c: Likewise.
13514 * varasm.c: Likewise.
13515 * varray.c: Likewise.
13516 * varray.h: Likewise.
13518 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13520 * reload.c: PROTO -> PARAMS.
13521 * reload.h: Likewise.
13522 * reload1.c: Likewise.
13523 * reorg.c: Likewise.
13524 * resource.h: Likewise.
13527 * rtlanal.c: Likewise.
13528 * sbitmap.h: Likewise.
13529 * sdbout.c: Likewise.
13530 * stack.h: Likewise.
13531 * stmt.c: Likewise.
13532 * system.h: Likewise.
13534 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13536 * machmode.h: PROTO -> PARAMS.
13537 * mbchar.h: Likewise.
13538 * mips-tdump.c: Likewise.
13539 * mips-tfile.c: Likewise.
13540 * optabs.c: Likewise.
13541 * output.h: Likewise.
13542 * prefix.c: Likewise.
13543 * profile.c: Likewise.
13544 * protoize.c: Likewise.
13545 * real.h: Likewise.
13546 * recog.c: Likewise.
13547 * recog.h: Likewise.
13548 * regclass.c: Likewise.
13549 * regmove.c: Likewise.
13550 * regs.h: Likewise.
13552 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13554 * ggc-common.c: PROTO -> PARAMS.
13555 * ggc-page.c: Likewise.
13556 * ggc-simple.c: Likewise.
13558 * global.c: Likewise.
13559 * graph.c: Likewise.
13560 * gthr-win32.h: Likewise.
13561 * haifa-sched.c: Likewise.
13562 * halfpic.h: Likewise.
13563 * integrate.c: Likewise.
13564 * integrate.h: Likewise.
13565 * jump.c: Likewise.
13567 * local-alloc.c: Likewise.
13568 * loop.c: Likewise.
13569 * loop.h: Likewise.
13571 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13573 * genattr.c: PROTO -> PARAMS.
13574 * genattrtab.c: Likewise.
13575 * gencheck.c: Likewise.
13576 * gencodes.c: Likewise.
13577 * genconfig.c: Likewise.
13578 * genemit.c: Likewise.
13579 * genextract.c: Likewise.
13580 * genflags.c: Likewise.
13581 * gengenrtl.c: Likewise.
13582 * genopinit.c: Likewise.
13583 * genoutput.c: Likewise.
13584 * genpeep.c: Likewise.
13585 * genrecog.c: Likewise.
13587 2000-01-16 Mark Mitchell <mark@codesourcery.com>
13589 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
13591 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13593 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
13594 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
13595 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
13596 * configure, config.in: Rebuilt.
13598 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
13600 * config/i386/i386.md: Add peephole to merge successive stack
13603 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
13605 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
13606 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
13607 when walking backwards to find all the parameter loads when
13608 the basic block ends in a call.
13610 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13612 * loop.c (this_loop_info): Delete.
13613 (uid_loop): Add in place of uid_loop_num. All uses updated.
13614 (loop_number_exit_count): Delete and replace with entry in loop
13615 structure. All uses updated.
13616 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13617 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13618 (loop_outer_loop): Likewise.
13619 (loop_invalid, loop_number_exit_labels): Likewise.
13620 (loop_used_count_register): Delete and replace with entry in
13621 loop_info structure.
13622 (find_and_verify_loops): Add loops argument.
13623 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
13624 loop_end, etc. arguments with loop structure pointer. All callers
13626 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
13627 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
13628 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
13629 (insert_bct): Likewise.
13630 (basic_induction_var): New argument level.
13631 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
13632 vtop, and cont. Add used_count_register.
13633 (uid_loop): Delete declaration.
13634 (loop_number_exit_count): Likewise.
13635 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13636 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13637 (loop_outer_loop, loop_used_count_register): Likewise.
13638 (loop_invalid, loop_number_exit_labels): Likewise.
13639 (unroll_loop): Replace loop_start and loop_end arguments
13640 with loop structure pointer.
13641 (loop_precondition_p, loop_iterations): Likewise.
13642 Include basic-block.h.
13643 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
13644 with loop structure pointer.
13645 (loop_precondition_p, loop_iterations): Likewise.
13646 * basic-block.h (struct loop): New entries vtop, cont,
13647 cont_dominator, start, end, top, scan_start, exit_labels,
13649 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
13651 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13653 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
13655 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
13657 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
13659 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13661 * pdp11-protos.h: New file.
13663 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
13666 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
13669 * pdp11.md: Likewise.
13671 * 2bsd.h: Likewise.
13673 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13675 * mn10300-protos.h: New file.
13677 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
13680 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
13683 * mn10300.md: Likewise.
13685 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13687 * mn10200-protos.h: New file.
13689 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
13692 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
13695 * mn10200.md: Likewise.
13697 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13699 * h8300-protos.h: New file.
13701 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
13704 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
13707 * h8300.md: Likewise.
13709 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13711 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
13712 (asm_emit_uninitialised): Likewise.
13714 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
13716 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
13717 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
13719 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13721 * config/mips/mips.c (override_options): Don't turn on extra
13722 alignment for mips16.
13724 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13726 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
13727 eabi, and make sure queued POSTINCREMENT rtl is emitted at
13730 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13732 * builtins.c (PAD_VARARGS_DOWN): Define.
13733 (std_expand_builtin_va_arg): Use the above macro.
13734 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
13735 * tm.texi (Register Arguments): Document the above macro.
13737 2000-01-14 Nick Clifton <nickc@cygnus.com>
13739 * emit-rtl.c (emit_insn): If checking is enabled, make sure
13740 that this function has not been used to emit a jump
13743 * jump.c (return_jump_1): Cope with being passed a null rtx.
13745 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13747 * eh-common.h: PROTO -> PARAMS.
13748 * emit-rtl.c: Likewise.
13749 * errors.c: Likewise.
13750 * errors.h: Likewise.
13751 * except.c: Likewise.
13752 * except.h: Likewise.
13753 * explow.c: Likewise.
13754 * expmed.c: Likewise.
13755 * expr.c: Likewise.
13756 * expr.h: Likewise.
13757 * final.c: Likewise.
13758 * fix-header.c: Likewise.
13759 * flow.c: Likewise.
13760 * fold-const.c: Likewise.
13761 * function.c: Likewise.
13762 * function.h: Likewise.
13764 * gcov-io.h: Likewise.
13765 * gcov.c: Likewise.
13766 * gcse.c: Likewise.
13768 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13770 * sh-protos.h: New file.
13772 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
13773 Add static prototypes. Fix compile time warnings.
13775 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
13779 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13781 * arc-protos.h: New file.
13783 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
13786 * arc.h: Move prototypes to arc-protos.h. Fix compile time
13789 * arc.md: Likewise.
13791 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13793 * dsp16xx-protos.h: New file.
13795 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
13798 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
13801 * dsp16xx.md: Likewise.
13803 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13805 * convex-protos.h: New file.
13807 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
13810 * convex.h: Move prototypes to convex-protos.h. Fix compile time
13813 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13815 * elxsi-protos.h: New file.
13817 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
13820 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
13823 * elxsi.md: Likewise.
13825 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13827 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
13828 case for moving from HI/LO/HI_LO_REG. This makes the behavior
13829 match the comment for MIPS16.
13831 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
13833 * flow.c (split_edge): Do not call set_block_for_insn if we
13834 do not have a basic_block_for_insn structure.
13836 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
13837 and destination functions are 32bit aligned within the trampoline.
13838 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
13839 (TRAMPOLINE_ALIGNMENT): Define.
13841 * cse.c (cse_insn): When changing (set (pc) (reg)) to
13842 (set (pc) (label_ref)), verify the change creates a valid insn.
13844 * fr30.c (call_operand): Tighten and rework to match rules for
13845 call RTL expressions.
13846 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
13847 * fr30.md (call patterns): Improve constraints.
13849 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
13851 * fr30.c (fr30_expand_epilogue): Revert last change.
13852 Use emit_jump_insn for the return insn.
13854 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
13855 Stan Cox <scox@cygnus.com>
13857 * predict.c: New file. Preliminary infrastructure work for static
13858 branch prediction and basic block reordering.
13859 * basic-block.h: Add prototype for estimate_probability.
13860 * Makefile.in: Add rules for predict.o.
13862 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
13864 * fixincludes (va_list): Use __not_va_list__ for the dummy.
13865 * fixinc/*: Likewise.
13867 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13869 * cccp.c: PROTO -> PARAMS.
13870 * cexp.y: Likewise.
13871 * collect2.c: Likewise.
13872 * combine.c: Likewise.
13873 * convert.h: Likewise.
13875 * dbxout.c: Likewise.
13876 * dbxout.h: Likewise.
13877 * diagnostic.c: Likewise.
13878 * doprint.c: Likewise.
13879 * dwarf2out.c: Likewise.
13880 * dwarf2out.h: Likewise.
13881 * dwarfout.c: Likewise.
13882 * dwarfout.h: Likewise.
13883 * dyn-string.h: Likewise.
13885 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13887 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
13888 macro conditionals guarding use.
13890 * dwarf2out.c: Include "tm_p.h".
13892 * function.c (locate_and_pad_parm): Mark parameter with
13894 (expand_function_end): Likewise for variable `context'.
13896 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
13898 2000-01-13 Nick Clifton <nickc@cygnus.com>
13900 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
13901 register to prevent compile time warnings.
13903 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
13905 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
13906 to avoid -Wtraditional warning.
13908 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13910 * 1750a-protos.h: New file.
13912 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
13915 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
13918 * 1750a.md: Likewise.
13920 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13922 * a29k-protos.h: New file.
13924 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
13927 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
13930 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13932 * clipper-protos.h: New file.
13934 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
13937 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
13940 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13942 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
13944 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
13946 * configure.in (--enable-new-gxx-abi): New option.
13947 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
13948 * Makefile.in (GXX_ABI_FLAG): New variable.
13949 * configure: Regenerate.
13951 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13953 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
13954 * tm.texi (FORCE_STRUCT_BLK): Document.
13955 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
13957 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
13959 * config/ns32k/ns32k.md: Revert Jan 9 change.
13961 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
13962 to a mode-test, if the predicate is address_operand.
13964 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
13966 * combine.c (if_then_else_cond): Be careful about what kinds
13967 of RTL expressions are passed to operand_subword.
13969 * flow.c (split_edge): If we have to insert a new jump, make
13970 sure to associate it with a basic block.
13972 * flow.c (commit_one_edge_insertion): A block with one successor
13973 can end in a JUMP_INSN that is not a simplejump.
13975 2000-01-12 Robert Lipe <robertl@sco.com>
13977 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
13978 (BUILD_VA_LIST_TYPE): Define.
13979 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
13982 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
13984 * cccp.c (do_pragma): Add cast to (char *).
13986 2000-01-12 Richard Henderson <rth@cygnus.com>
13987 Fred Fish <fnf@be.com>
13988 Jason Merrill <jason@cygnus.com>
13990 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
13991 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
13992 * i386/beos-elf.h, i386/beos-pe.h: New files.
13994 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
13995 * cross-make (SYSTEM_HEADER_DIR): Define using
13996 CROSS_SYSTEM_HEADER_DIR.
13998 * gcc.c (LIBRARY_PATH_ENV): Provide default.
13999 (process_command): Use it.
14000 (main): Likewise. Kill trailing = from env vars.
14001 (build_search_list): Put it back.
14002 * collect2.c (main): Use LIBRARY_PATH_ENV.
14004 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
14005 * toplev.c: Use NEED_DECLARATION_ENVIRON.
14007 * tm.texi (Frame Layout): Document SMALL_STACK.
14008 * c-common.c (c_common_nodes_and_builtins): Check it.
14010 * system.h: Undef alloca after including glibc's <stdlib.h>,
14011 if USE_C_ALLOCA is defined.
14013 * gcc.c (set_input): New fn.
14014 (main): After all input files are compiled, reset the input file
14017 * aclocal.m4 (rindex, index): If already defined, don't attempt
14020 * ginclude/varargs.h: (__va_list__): Define ifndef.
14021 * ginclude/stdarg.h: Likewise.
14023 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
14024 instead of unsigned char.
14026 * hash.h (true, false, boolean): Undef before enum.
14028 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
14029 proper type of "HOST_WIDE_INT *", rather than their natural type of
14030 "unsigned HOST_WIDE_INT *".
14032 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14034 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
14036 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
14038 * regclass.c (choose_hard_reg_mode): Likewise.
14040 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
14042 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
14044 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14046 * c-common.c: PROTO -> PARAMS.
14047 * c-common.h: Likewise.
14048 * c-decl.c: Likewise.
14049 * c-iterate.c: Likewise.
14050 * c-lang.c: Likewise.
14051 * c-lex.c: Likewise.
14052 * c-lex.h: Likewise.
14053 * c-parse.in: Likewise.
14054 * c-pragma.c: Likewise.
14055 * c-pragma.h: Likewise.
14056 * c-tree.h: Likewise.
14057 * c-typeck.c: Likewise.
14058 * objc/objc-act.c: Likewise.
14059 * objc/objc-act.h: Likewise.
14061 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14063 * m88k-protos.h: New file.
14065 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
14068 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
14070 * m88k.md: Likewise.
14072 * tekXD88.h: Likewise.
14074 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14076 * m68k-protos.h: New file.
14078 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
14081 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
14083 * mot3300.h: Likewise.
14085 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
14087 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
14089 (extract_bitlist): Declare bitlen.
14091 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
14093 * cccp.c: Accept and ignore -lang-fortran.
14095 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
14096 qualifiers don't match at any level of pointerness.
14098 2000-01-12 Robert Lipe <robertl@sco.com>
14100 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
14102 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
14104 * reload1.c (reload_reg_unavailable): New static variable.
14105 (reload_reg_free_p): Test it.
14106 (reload_reg_free_for_value_p): Test it instead of
14108 (choose_reload_regs_init): Compute it.
14110 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
14112 * reorg.c (fill_slots_from_thread): Check modified_in_p
14115 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
14117 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
14118 these nodes even if INTERNALS is not set.
14120 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
14122 * gcse.c (delete_null_pointer_checks_1): Cope when
14123 get_condition cannot determine the condition.
14125 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
14127 * toplev.h (set_message_length): Declare.
14129 * diagnostic.c (obstack_chunk_alloc): Define macro.
14130 (obstack_chunk_free): Likewise.
14131 (struct output_buffer): New data structure.
14132 (vmessage): Remove.
14133 (output_maximum_width): New variable.
14134 (doing_line_wrapping, set_message_length, init_output_buffer,
14135 get_output_prefix, output_space_left, emit_output_prefix,
14136 output_newline, output_append, output_puts, dump_output,
14137 vbuild_message_string, build_message_string, build_location_prefix,
14138 voutput_notice, output_printf, line_wrapper_printf,
14139 vline_wrapper_message_with_location): New functions. Implement
14140 automatic line wrapping.
14141 (v_message_with_decl): Make it handle automatic line wrapping.
14142 (v_error_with_file_and_line): Likewise.
14143 (v_warning_with_file_and_line): Likewise.
14144 (announce_function): Likewise.
14145 (default_print_error_function): Likewise.
14147 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
14149 * cpplib.h (struct cpp_options): Change lang_asm to char.
14151 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
14152 done in cpp_handle_option now.
14153 (initialize_builtins): Take out special case code used only by
14155 (cpp_handle_option): Turn off trigraphs and trigraph warnings
14156 if -traditional. Recognize -lang-fortran and set
14157 lang_fortran, also turn off cplusplus_comments.
14158 (print_help): Document -lang-fortran.
14159 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
14160 lang_asm. Ignore all directives other than `# 123 "file"' if
14162 (cpp_get_token): If -traditional, don't recognize directives
14163 unless the # is in column 1.
14164 (parse_string): If lang_fortran or lang_asm, silently
14165 terminate strings ('' or "") at end of line.
14166 Remove unnecessary braces.
14168 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14169 Richard Henderson <rth@cygnus.com>
14171 * resource.c (mark_referenced_resources): Mark a set strict_low_part
14173 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
14174 strict_low_part when possible.
14176 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14178 * alias.c: PROTO -> PARAMS.
14179 * basic-block.h: Likewise.
14180 * bitmap.c: Likewise.
14181 * bitmap.h: Likewise.
14182 * builtins.c: Likewise.
14183 * c-aux-info.c: Likewise.
14184 * caller-save.c: Likewise.
14185 * calls.c: Likewise.
14187 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14189 * Makefile.in (toplev.o): Depend on regs.h.
14191 * output.h (tdesc_section): Prototype.
14193 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
14195 * sdbout.c: Include "tm_p.h".
14197 * toplev.c: Include "regs.h".
14199 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
14201 * unroll.c (unroll_loop): Add EH support.
14203 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14205 * pa-protos.h: New file.
14207 * pa.c: Include recog.h and tm_p.h.
14208 (compute_zdepwi_operands, compute_movstrsi_length,
14209 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
14210 find_addr_reg, import_milli): Add static prototypes.
14211 (pa_cpu_string, pa_arch_string): Constify a char*.
14212 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
14213 (read_only_operand): Add argument `mode'.
14214 (singlemove_string, output_move_double, output_fp_move_double,
14215 output_block_move, output_and, output_ior, output_ascii,
14216 remove_useless_addtr_insns, milli_names, output_mul_insn,
14217 output_div_insn, output_mod_insn, output_arg_descriptor,
14218 output_cbranch, output_bb, output_bvb, output_dbra, ,
14219 output_millicode_call, output_call, hppa_encode_label,
14220 output_parallel_movb, output_parallel_addb): Constify a char*.
14221 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
14222 (output_parallel_addb): Remove extra arg to `constrain_operands'
14224 * pa.h: Move all prototypes to pa-protos.h.
14225 (pa_cpu_string, pa_arch_string): Constify a char*.
14226 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
14228 * pa.md: Call `function_label_operand' with mode argument.
14229 Likewise for `read_only_operand'.
14230 Fix nesting of parens in call to `symbolic_operand'.
14232 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14234 * i860-protos.h: New file.
14236 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
14239 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
14241 * i860.md: Likewise.
14243 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
14245 * i386.md (movstrsi expander): Rewrite.
14246 (movstrsi_1 insn): Deleted.
14247 (strmovhi, strmovqi expander): New expanders.
14248 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
14249 * i386.c (x86_single_stringop): New global variable.
14250 * i386.h (x86_single_stringop): Declare.
14251 (TARGET_SINGLE_STRINGOP): New macro.
14253 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
14255 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
14256 integer vararg POSTINCREMENT before the destination of the jump
14257 for the hard fp case.
14258 (function_arg_pass_by_reference): Pass a copy of CUM to
14261 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
14262 for CONSTANT_ADDRESS_P above while loop for subreg.
14264 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
14266 * flow.c (propagate_block): When a prologue/epilogue insn
14267 is marked dead, unconditionally clear libcall_is_dead and
14268 insn_is_dead, and only dump rtl if warnings aren't being
14271 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
14273 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
14274 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
14275 (FIXED_REGISTERS): Set dirflag as fixed.
14276 (CALL_USED_REGISTERS): Set dirflag as used.
14277 (REG_ALLOC_ORDER): Set dirflag as last one.
14278 (DIRFLAG_REG): New macro.
14279 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
14280 (HI_REGISTER_NAMES): Add dirflag.
14281 (DEBUF_PRINT_REG): Handle dirflag.
14282 * i386.md (type attribute): New cld and str types.
14283 (length_opcode attribute): Set cld and str to 1.
14284 (memory attribute): Set str to unknown - it is not clear from the
14286 (pent_np function unit): Prefixed string operations takes 12 cycles
14287 minimally; cld takes 2 cycles.
14288 (ppro_uops attribute): Str is "many" and cld is "few".
14289 (ppro_p0 unit): Handle cld here.
14290 (k6_alux unit): Handle cld and str types.
14291 (k6_load unit): It is ocupied by str opcodes.
14292 (k6_store unit): It is ocupied by str opcodes.
14293 (athlon_decode): Str is vector decoded.
14294 (athlon_ieu): Handle str and cld.
14295 (cld pattern): New.
14296 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
14297 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
14298 cmpstrsi_nz_1 insn): Do not output cld instruction
14300 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
14302 * gcc.texi (G++ and GCC): Add Java and Chill.
14303 (Bug Critera): Don't list languages.
14305 * gcc.texi (Incompatibilities): No longer claim most C compilers
14308 * gcc.texi (G++ and GCC): Update other front-ends list.
14310 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
14312 * i386.c (ix86_expand_setcc): Fix typo.
14313 (ix86_expand_movcc): Similarly.
14315 * Band-aid until haifa's bitset implementation is nuked.
14316 * haifa-sched.c (extract_bitlst): New parameter for size of the
14317 bitset in bits. All callers changed. Avoid looking at undefined
14318 bits in the bitset.
14319 (edgeset_bitsize): New variable.
14320 (schedule_region): Initialize edgeset_bitsize.
14322 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14324 * Makefile.in (optabs.o): Depend on real.h
14325 (resource.o): Depend on insn-attr.h
14327 * builtins.c (result_vector): Wrap prototype in macro conditions
14328 governing definition and use.
14330 * c-common.c: Include tm_p.h.
14332 * c-lex.c: Likewise.
14334 * elfos.h: Constify a char*.
14336 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
14337 (get_attr_length, shorten_branches, profile_after_prologue): Mark
14338 parameter with ATTRIBUTE_UNUSED.
14340 * fold-const.c (exact_real_inverse): Wrap variable `i' in
14343 * haifa-sched.c (schedule_insns): Mark parameter with
14346 * optabs.c: Include real.h.
14348 * real.h (ereal_atof): Add prototype arguments.
14350 * resource.c: Include insn-attr.h.
14352 * sdbout.c (sdbout_queue_anonymous_type,
14353 sdbout_dequeue_anonymous_types): Wrap in macro
14354 SDB_ALLOW_FORWARD_REFERENCES.
14355 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
14358 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
14360 * stupid.c: Include tm_p.h.
14362 * tree.c (real_value_from_int_cst): Mark parameter with
14365 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14367 * i960-protos.h: New file.
14369 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
14372 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
14374 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14376 * combine.c (expand_field_assignment): Do not discard SUBREGs
14377 while computing nonzero_bits.
14379 2000-01-09 Nick Clifton <nickc@cygnus.com>
14381 * config/arm/arm.c: Fix compile time warnings about signed vs
14382 unsigned constants.
14383 * config/arm/arm.h: Fix compile time warnings about signed vs
14384 unsigned constants.
14386 2000-01-09 Philip Blundell <philb@gnu.org>
14388 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
14389 than `ldm' with only one register.
14390 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
14393 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
14396 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
14398 * config/ns32k/ns32k.md (load or push effective address): Operand 1
14401 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14403 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
14404 assignment used as truth value.
14406 * function.c (assign_temp): Mark parameter `dont_promote' with
14407 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
14408 PROMOTE_FOR_CALL_ONLY.
14410 * genrecog.c (write_subroutine): Mark variable `operands' with
14413 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
14416 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
14417 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
14419 * toplev.c (note_deferral_of_defined_inline_function): Likewise
14422 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14424 * config/c4x.h: Tidy up comments.
14425 * config/c4x.c: Likewise.
14427 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
14429 * fold-const.c (lshift_double, rshift_double): Handle
14430 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
14432 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14434 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
14435 in prepare_function_start().
14437 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
14439 * config/v850/v850.c (expand_epilogue): Interrupt functions no
14440 longer allocate extra stack for function calls.
14442 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14444 * config/c4x/c4x.md (*subqf3_set): Fix typo.
14446 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14448 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
14450 2000-01-07 David Edelsohn <edelsohn@gnu.org>
14452 * rs6000.c (processor_target_table): Add power3 as alias for 630.
14453 * aix43.h: Revert Aug 2 change.
14454 (HAS_INIT_SECTION): Define, not visible yet.
14455 (LD_INIT_SWITCH): Define, not visible yet.
14456 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
14458 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
14460 * collect2.c (main): Expand ld2 size further.
14461 (export_object_lst): Cast assignment to avoid warning.
14462 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
14463 (scan_prog_file, COFF): Do not collect initialization or
14464 finalization functions generated for entire shared object if
14465 init/fini support present.
14467 2000-01-07 Nick Clifton <nickc@cygnus.com>
14469 * config/elfos.h: Tidy up formatting of marcos. Make sure
14470 that .section directives are always prefixed by a tab.
14472 * config/svr4.h: Add #include "elfos.h" and remove duplicate
14475 2000-01-07 Matt Austern <austern@sgi.com>
14477 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
14480 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
14482 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
14484 (crtbegin.o, s-crtS): Likewise.
14486 2000-01-06 Richard Henderson <rth@cygnus.com>
14488 * alpha.md (adddi_2+1): Limit offset such that it will be
14489 loadable with a single ldah+lda pair.
14490 (adddi_2+2): Explicitly fail split if we can't make it work.
14492 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
14494 * protoize.c: Conditionally include unistd.h.
14495 (IS_SAME_PATH_CHAR): New macro.
14496 (IS_SAME_PATH): New macro.
14497 (CPLUS_FILE_SUFFIX): New macro.
14498 (cplus_suffix): New static variable.
14499 (is_abspath): New static function.
14500 (in_system_include_dir): Handle DOS style pathnames.
14501 (file_could_be_converted): Likewise.
14502 (file_normally_convertible): Likewise.
14503 (directory_specified_p): Likewise.
14504 (file_excluded_p): Likewise.
14505 (abspath): Likewise.
14506 (shortpath): Likewise.
14507 (referenced_file_is_newer): Likewise.
14508 (save_def_or_dec): Likewise.
14509 (do_processing): Likewise.
14511 (edit_file): Likewise. Use rename instead of link.
14512 (rename_c_file): Likewise. Don't rename syscalls file.
14513 (munge_compile_params): Define null device for DOS based systems.
14514 (process_aux_info_file): Use binary mode if appliable.
14515 (edit_file): Likewise.
14516 * invoke.texi (Running Protoize): Document C++ suffixes used.
14518 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
14519 IS_DIR_SEPARATOR macros.
14520 * collect2.c: Likewise.
14521 * cppinit.c: Likewise.
14522 * dwarf2out.c: Likewise.
14524 * gcov.c: Likewise.
14525 * prefix.c: Likewise.
14527 * toplev.c: Likewise.
14528 * system.h: And move to here.
14530 * prefix.c (update_path): Fix typo in variable name.
14532 2000-01-06 Richard Henderson <rth@cygnus.com>
14534 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
14535 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
14536 (count_reg_sets_1, count_reg_references): Likewise.
14537 (flow_loops_level_compute): Start counting actual loop depth at 1.
14538 (flow_loops_find): Likewise.
14539 * local-alloc.c (update_equiv_regs): Likewise.
14540 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
14542 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
14544 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
14545 FIRST_PSEUDO_REGISTER
14546 * dwarf2out.c: Don't include frame.h
14547 * dwarfout.c: Likewise
14548 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
14551 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
14553 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
14556 * i386.c (movsf splitter): Fix typo in my last checkin.
14558 2000-01-05 Nick Clifton <nickc@cygnus.com>
14560 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
14561 own definition of this macro.
14562 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
14563 flag_data_sections or UNIQUE_SECTION_P are true.
14565 * tm.texi (UNIQUE_SECTION): Document that it can be called for
14566 unitialised data decls.
14568 * config/i386/winnt.c (i386_pe_unique_section): Cope with
14569 being called for uninitialised data.
14571 * config/i386/interix.c (i386_pe_unique_section): Cope with
14572 being called for uninitialised data.
14574 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
14575 for uninitialised data.
14577 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
14578 for uninitialised data.
14580 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
14581 for uninitialised data.
14583 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
14584 (UNIQUE_SECTION_P): Always generate a unique section if
14585 flag_data_sections is true.
14586 (UNIQUE_SECTION): Also generate unique sections for
14587 uninitialised data.
14588 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
14589 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
14592 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14594 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
14597 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14599 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
14600 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
14601 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
14602 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
14603 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
14605 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
14607 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
14609 * c-decl.c (finish_enum): Simplify code to determine minimum and
14610 maximum values of the enum, and calculate the type. Remove check
14611 for FUNCTION_DECLs in the values list, which cannot happen. Replace
14612 the DECL_INITIAL of each enumeration constant with a copy converted
14613 to the enumeration type. When updating variant types, don't bother
14614 updating the type itself.
14616 * c-typeck.c (build_binary_op): Simplify conditional expressions
14617 when weeding out spurious signed-unsigned warnings. Add new
14618 spurious warning category: if the unsigned quantity is an enum
14619 and its maximum value fits in signed_type(result_type). Update
14621 (build_conditional_expr): Warn here if one alternative is signed
14622 and the other is unsigned.
14624 2000-01-05 Nick Clifton <nickc@cygnus.com>
14626 * config/fr30/fr30.h: Remove extraneous comments.
14628 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
14630 * reload1.c (choose_reload_regs): When disabling a reload, also
14631 set reload_spill_index to -1.
14633 2000-01-04 Joel Sherrill (joel@OARcorp.com>
14635 * configure.in (m68*-*-rtemscoff*): New target, formal name for
14637 (m68*-*-rtemself*): New target.
14638 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
14639 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
14640 (sparc*-*-rtemself*): New target.
14641 (sparc*-*-rtems*): Now elf not a.out.
14642 * config/i386/rtems.h: Include config/rtems.h.
14643 * config/i386/rtemself.h: Include config/rtems.h.
14644 * config/i960/rtems.h: Include config/rtems.h.
14645 * config/m68k/rtems.h: Include config/rtems.h.
14646 * config/m68k/rtemself.h: Include config/rtems.h.
14647 * config/mips/rtems64.h: Include config/rtems.h.
14648 * config/pa/rtems.h: Include config/rtems.h.
14649 * config/rs6000/rtems.h: Include config/rtems.h.
14650 * config/sh/rtems.h: Include config/rtems.h.
14651 * config/sh/rtemself.h: Include config/rtems.h.
14652 * config/sparc/rtems.h: Include config/rtems.h.
14653 * config/sparc/rtemself.h: Include config/rtems.h
14655 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
14657 * final.c (shorten_branches): Correctly compute length of
14658 asms without operands.
14660 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
14662 * configure.in: Add pj target.
14663 * configure: Regenerate.
14664 * config/pj: New directory.
14665 * config/pj/lib1funcs.S: New file.
14666 * config/pj/linux.h: New file.
14667 * config/pj/pj.c: New file.
14668 * config/pj/pj.md: New file.
14669 * config/pj/pjl.h: New file.
14670 * config/pj/t-pj: New file.
14671 * config/pj/xm-pj.h: New file
14673 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
14675 * toplev.c (rest_of_compilation): Run shorten-branches before
14678 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14680 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
14681 macros so that they're consistent with their names.
14682 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14683 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14685 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14687 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
14688 modified inadvertently.
14690 2000-01-04 Joel Sherrill <joel@OARcorp.com>
14692 * configure.in (v850*-*-rtems*): New target.
14693 * configure: Regenerate.
14694 * config/v850/rtems.h: New file.
14696 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
14698 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
14699 (__gthread_key_create): Likewise.
14700 (__gthread_key_dtor): Likewise.
14701 (__gthread_once): Fix logic.
14702 (__gthread_key_delete): Cast away constness.
14704 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
14705 * invoke.texi: Document.
14706 * i386/mingw32.h (CPP_SPEC): Use.
14707 (LIBGCC_SPEC): Likewise.
14708 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
14710 2000-01-04 David Edelsohn <edelsohn@gnu.org>
14712 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
14713 (HANDLE_PRAGMA_PACK): Undefine.
14714 (SLOW_UNALIGNED_ACCESS): Define.
14716 2000-01-04 David Edelsohn <edelsohn@gnu.org>
14718 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14719 to default definition.
14720 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
14721 (store_fixed_bit_field): Call macro with word_mode and alignment.
14722 (extract_bit_field): Call macro with relevant mode and alignment.
14723 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14724 to default definition.
14725 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
14727 (move_by_pieces_ninsns): Likewise.
14728 (clear_by_pieces): Likewise.
14729 (emit_push_insn): Likewise.
14730 (store_field): Call macro with relevant mode and alignment.
14731 (expand_expr): Likewise.
14732 (expand_expr_unaligned): Likewise.
14734 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
14735 (SLOW_UNALIGNED_ACCESS): Define.
14736 (CASE_VECTOR_MODE): Always use 32-bit offsets.
14737 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
14738 (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
14739 (toc_section): Likewise and .toc pseudo-op.
14740 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
14742 (TEXT_SECTION_ASM_OP): Likewise.
14743 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
14746 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
14747 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
14748 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
14749 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
14750 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
14752 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
14754 * regclass.c: Revert my Jan 4 change to loop cost computation.
14756 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14758 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
14761 2000-01-04 Stan Cox <scox@cygnus.com>
14763 * haifa-sched.c (build_control_flow): Change unreachable simple
14764 loop test to check if current block has only one predecessor.
14765 (find_rgns): Initialize degree. Use dest as degree index, not src.
14767 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14769 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
14771 * calls.c (expand_call): Likewise for
14772 `old_stack_arg_under_construction'.
14774 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
14776 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
14779 * gcc.c (execute): Likewise for `ut' and `st'.
14781 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
14783 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
14785 * jump.c (jump_optimize_1): Likewise for `temp2'.
14787 * local-alloc.c (block_alloc): Likewise for `r1'.
14789 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
14791 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
14792 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
14794 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
14797 * reload.c (find_reloads): Likewise for `goal_alternative_number'
14798 and `goal_earlyclobber'.
14800 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
14802 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
14804 * stupid.c (stupid_life_analysis): Likewise for `chain'.
14806 * unroll.c (copy_loop_body): Likewise for `copy'.
14808 * varasm.c (output_constructor): Likewise for `byte'.
14810 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14812 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
14813 all FP constants for constant->reg moves.
14814 (ix86_split_to_parts): Try to convert memory address into immediate
14815 when available in the constant pool.
14816 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
14818 (LEGITIMATE_CONSTANT_P): Return 1.
14819 * i386.md (pushsf): New splitter to convert constant pool memory
14820 reference to immediate.
14821 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
14824 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
14826 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
14827 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
14828 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
14829 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
14830 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
14832 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
14834 * ginclude/stdbool.h: Support compilation as C++.
14836 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14838 * fold-const.c (make_range): Don't try to reverse an unbounded range.
14840 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
14842 * regclass.c (regclass): Properly compute loop_cost. Adjust
14845 * regclass.c: Fix minor whitespace problems.
14847 2000-01-03 Anthony Green <green@cygnus.com>
14849 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
14850 Restore the pic register if required.
14852 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
14854 * c-common.c (format_char_info): Update comment.
14855 (check_format_info): Recognize 'z' modifier in the same way 'Z'
14856 was recognized. Emit warning for formats new in ISO C99 only
14857 if flag_isoc9x is not set.
14859 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
14861 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
14863 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14865 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
14866 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
14867 (make_compound_operation): Choose cheaper alternative between
14868 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
14870 * regclass.c (op_costs): Remove global variable.
14871 (record_reg_classes): New parameter "op_costs" and "reg_pref".
14872 (record_operand_costs): Break out from ...
14873 (scan_one_insn): ... here.
14874 (dump_regclass): Make dumps nicer.
14875 (regclass): Dump preferrences choosed and changes done during passes.
14877 2000-01-03 Jakub Jelinek <jakub@redhat.com>
14879 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
14881 2000-01-03 Jakub Jelinek <jakub@redhat.com>
14883 * config/sparc/sparc.c (gen_df_reg): New function.
14884 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
14885 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
14886 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
14887 movtf_cc_reg_sp64+1): Use it.
14889 2000-01-02 Mark Mitchell <mark@codesourcery.com>
14891 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
14892 copied LABEL_DECLs.
14894 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
14896 * config/i386/i386.c (ix86_expand_unary_operator): Function
14897 definition made void.
14898 (ix86_expand_binary_operator): Update outdated preceding comment.
14899 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
14902 * config/i386/i386.c (override_options): Fix option-name typo.
14904 2000-01-02 Mark Mitchell <mark@codesourcery.com>
14906 * system.h (CEIL): Define.
14907 * builtins.c (CEIL): Remove.
14908 * expmed.c (CEIL): Likewise.
14909 * expr.c (CEIL): Likewise.
14910 * stor-layout.c (CEIL): Likewise.
14912 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14914 * expr.c (store_constructor_field): Fix typo introduced with last
14917 2000-01-01 Mark Mitchell <mark@codesourcery.com>
14919 * tree.h (BINFO_N_BASETYPES): New macro.
14921 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
14923 * expmed.c (emit_store_flag): Prevent losing a pending stack
14924 adjust the same way we prevent losing queued increments.
14926 Fri Dec 31 19:10:31 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14928 * function.c (update_temp_slot_address): Handle case where sum of
14929 temporary address plus offset in register is a valid address.
14931 1999-12-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14933 * genrecog.c (change_state) Corrected typo.
14935 1999-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14937 * system.h (bcopy, bcmp, bzero, index, rindex, atof, atol, free,
14938 getcwd, getenv, getwd, sbrk, strstr, malloc, calloc, realloc,
14939 strerror, getrlimit, setrlimit, abort): Add prototype arguments.
14941 1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
14943 * i386.c (ix86_expand_fp_compare): In non-sahf non-TARGET_IEEE
14944 case, expand GT comparisons correctly. Fix a comment before this
14947 1999-12-30 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
14949 * dwarfout.c: Include "frame.h"
14950 * dwarf2out.c: Likewise.
14951 * Makefile.in (dwarfout.o): Depend on frame.h
14952 (dwarf2out.o): Likewise.
14954 1999-12-29 "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
14956 Restore i386 binary compatibility in Dwarf EH info.
14957 * config/i386/i386.h (DWARF_FRAME_REGISTERS): Define as 17, the old
14958 value of FIRST_PSEUDO_REGISTER.
14959 * frame.h (DWARF_FRAME_REGISTERS): Default to FIRST_PSEUDO_REGISTER.
14960 (struct frame_state): Use DWARF_FRAME_REGISTERS.
14961 * dwarfout.c (output_reg_number): Ditto.
14962 * dwarf2out.c (reg_number, expand_builtin_init_dwarf_reg_sizes): Ditto.
14963 (DWARF_FRAME_RETURN_COLUMN): Default to DWARF_FRAME_REGISTERS.
14965 1999-12-29 Bruce Korb <autogen@linuxbox.com>
14967 * fixinc/fixincl.c(wait_for_pid): sometimes a WSTOPSIG of zero is OK
14968 * fixinc/fixincl.tpl(<hack>TEST_CT): Just do the existence test once
14969 (<hack>_RE_CT): not needed
14970 * fixinc/fixlib.c(is_cxx_header): moved from fixtests.c
14971 rewritten to scan the file text once only
14972 "template<..." test added
14973 * fixinc/fixlib.h(apply_fix_p_t): moved from fixtests.c
14974 (is_cxx_header): declaration added
14975 * fixinc/fixtests.c(is_cxx_header): removed
14976 (apply_fix_p_t): removed
14977 (double_slash_test): is_cxx_header is only called once now
14978 * fixinc/hackshell.tpl: indexing the fixes is now done under DEBUG
14979 * fixinc/inclhack.def(FIXINC_DEBUG): added for testing DEBUG state
14980 within the templates.
14981 The borken spelling of "broken" was fixed.
14982 * fixinc/inclhack.tpl: The $VERBOSE level is used on various messages
14983 The default level depends on FIXINC_DEBUG.
14985 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14987 * crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.
14988 Otherwise provide a declaration for atexit.
14989 (init_dummy): Make sure dummy call to atexit is nevertheless
14990 called with correct number of args.
14992 * frame.c: Update comments referring to other files.
14994 * libgcc2.c: Likewise.
14996 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14998 * cse.c (free_element, get_element): Remove unused prototypes.
15000 * fold-const.c (extract_muldiv): Initialize variables `op0' and
15003 * jump.c (invert_exp): Add explicit braces to avoid ambiguous
15006 Wed Dec 29 12:44:54 1999 Donald Lindsay <dlindsay@cygnus.com>
15008 * configure.in,configure: case arm for mn10200-*-* now sets
15009 float_format=i32 so that float.h will correctly claim "double"
15010 to be 32 bits. Ran autoconf to generate configure from .in file.
15012 Wed Dec 29 10:53:21 1999 Jeffrey A Law (law@cygnus.com)
15014 * pa.md (conditional zero): If op1 is a register, force it into
15015 the same register as op0.
15017 1999-12-28 Mark Mitchell <mark@codesourcery.com>
15019 * tree.h (BINFO_BASETYPES): Improve documentation.
15021 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15023 * configure.in (--enable-checking): Use a more portable `for'
15026 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15028 * configure.in (AC_DECL_SYS_SIGLIST, xm-siglist.h,
15029 arm/xm-netbsd.h, NO_SYS_SIGLIST): Don't use.
15031 * xm-siglist.h, arm/xm-netbsd.h, mips/xm-news.h, mips/xm-sysv4.h:
15034 * gcc.texi (NO_SYS_SIGLIST, sys_siglist, SYS_SIGLIST_DECLARED):
15035 Delete descriptions.
15037 * i386/osf1elf.h, i386/xm-cygwin.h, i386/xm-mingw32.h, m68k/3b1.h,
15038 m68k/a-ux.h, m68k/dpx2.h, m68k/plexus.h, m68k/xm-hp320.h,
15039 m88k/xm-m88k.h, mips/x-sni-svr4, pa/xm-pa.h, pa/xm-pahpux.h,
15040 pa/xm-papro.h, we32k/xm-we32k.h, winnt/xm-winnt.h, xm-interix.h,
15041 xm-svr4.h: Remove all instances of sys_siglist handling.
15043 1999-12-27 Jakub Jelinek <jakub@redhat.com>
15045 * config/sparc/sparc.md (cmp_zero_qi,
15046 cmp_zero_extendqisi2_andcc_set, cmp_zero_qi_sp64,
15047 cmp_zero_extendqidi2_andcc_set): New patterns.
15049 1999-12-28 Manfred Hollstein <mhollstein@cygnus.com>
15051 * m68k/t-mot3300-gald (CROSS_LIBGCC1): Define to libgcc1-asm.a.
15052 (LIB1ASMSRC, LIB1ASMFUNCS, LIB2FUNCS_EXTRA): Define.
15053 (fpgnulib.c, xfgnulib.c): Add rules.
15054 * m68k/t-mot3300-gas: Likewise.
15056 1999-12-27 Ian Lance Taylor <ian@zembu.com>
15058 * configure.in: Avoid [[ by using test and changequote. Add
15059 changequote required by 1999-12-14 change.
15060 * configure: Rebuild.
15062 1999-12-27 Clinton Popetz <cpopetz@cygnus.com>
15064 * config/mips/mips.h: Fix typo from 12/17/99 libgcc2 fix.
15066 1999-12-27 Christophe Jaillet <jaillet.christophe@caramail.com>
15068 * alias.c (nonlocal_reference_p): Add else for disjoint ifs.
15069 * flow.c (find_use_as_address): Likewise.
15070 * function.c (fixup_var_refs_1): Likewise.
15071 (walk_fixup_memory_subreg, fixup_stack_1): Likewise.
15072 * jump.c (invert_exp, redirect_exp): Likewise.
15073 * loop.c (replace_call_address): Likewise.
15074 (count_nonfixed_reads): Likewise.
15075 * rtlanal.c (modified_between_p): Likewise.
15076 (modified_in_p, volatile_insn_p, volatile_refs_p): Likewise.
15077 (side_effects_p, replace_regs, jmp_uses_reg_or_mem): Likewise.
15078 * unroll.c (remap_split_bivs): Likewise.
15080 1999-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15082 * diagnostic.c (v_message_with_decl): Use .* format specifier
15083 instead of building the format specifier width manually.
15085 * system.h (strsignal): Don't check HAVE_STRSIGNAL when
15086 determining whether to provide a prototype. Remove the
15087 sys_siglist clause in the conditional.
15089 1999-12-23 Martin v. Löwis <loewis@informatik.hu-berlin.de>
15091 * fold-const.c (operand_equal_p): Use memcmp to compare string
15093 Suggested by D. J. Bernstein
15095 1999-12-17 Jakub Jelinek <jakub@redhat.com>
15097 * config/h8300/h8300.h (TARGET_H8300H, TARGET_H8300S): Make sure
15098 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
15100 * config/mips/mips.h (TARGET_64BIT): Likewise.
15101 * config/rs6000/rs6000.h (TARGET_POWERPC64): Likewise.
15102 * libgcc2.c: Use {,U}{HW,W,DW}type and DWunion everywhere instead
15103 of {SI,DI}type and DIunion. Define these types to QI/HI modes on
15104 dsps. Give routines proper names if SI/DI modes are not used.
15105 * longlong.h: Use DWunion instead of DIunion.
15107 1999-12-26 Zack Weinberg <zack@wolery.cumb.org>
15109 * acconfig.h: New ENABLE flags: TREE_CHECKING, RTL_CHECKING,
15110 GC_CHECKING, GC_ALWAYS_COLLECT.
15111 * configure.in: Allow --enable-checking with an argument
15112 listing check modes to enable.
15113 * config.in, configure: Rebuilt.
15114 * ggc-page.c, ggc-simple.c: Define GGC_POISON (and
15115 GGC_ALWAYS_VERIFY for ggc-simple.c) only if
15116 ENABLE_GC_CHECKING. Define GGC_ALWAYS_COLLECT only if
15117 ENABLE_GC_ALWAYS_COLLECT.
15118 * rtl.h, rtl.c: Change ENABLE_CHECKING to ENABLE_RTL_CHECKING
15120 * tree.h, tree.c: Change ENABLE_CHECKING to
15121 ENABLE_TREE_CHECKING throughout.
15123 Sun Dec 26 07:48:20 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15125 * fold-const.c (fold_truthop): Properly check for FP RHS.
15127 1999-12-24 Mark Mitchell <mark@codesourcery.com>
15129 * toplev.h (note_deferall_of_defined_inline_function): Declare.
15130 * toplev.c (note_deferral_of_defined_inline_function): New
15131 function, split out from ...
15132 (rest_of_compilation): ... here. Use it.
15134 Fri Dec 24 12:34:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15136 * expr.c (store_constructor): Don't call clear_storage if size is
15139 1999-12-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15141 * Makefile.in (toplev.o): Depend on loop.h.
15143 * dwarfout.c: Include tm_p.h.
15145 * emit-rtl.c (restore_emit_status): Mark parameter with
15148 * final.c (final_scan_insn): Likewise.
15150 * flow.c (flow_nodes_print, flow_exits_print, flow_loops_cfg_dump,
15151 flow_loop_nested_p, flow_loop_exits_find, flow_loop_nodes_find,
15152 flow_depth_first_order_compute, flow_loop_pre_header_find,
15153 flow_loop_tree_node_add, flow_loops_tree_build,
15154 flow_loop_level_compute, flow_loops_level_compute,
15155 flow_loop_outside_edge_p): Add prototypes.
15156 (recompute_reg_usage): Mark parameters with ATTRIBUTE_UNUSED.
15158 * ggc-callbacks.c (lang_mark_tree, lang_mark_false_label_stack):
15159 Mark with ATTRIBUTE_NORETURN.
15161 * hash.c (hash_newfunc): Mark parameter with ATTRIBUTE_UNUSED.
15163 * local-alloc.c (no_conflict_p): Likewise.
15165 * loop.c (insert_bct): Hide definitions of variables with hidden
15167 (note_reg_stored): Mark parameter with ATTRIBUTE_UNUSED.
15169 * regclass.c (memory_move_secondary_cost): Mark variable `mem'
15170 with ATTRIBUTE_UNUSED.
15171 (record_reg_classes): Mark parameter with ATTRIBUTE_UNUSED.
15172 (reg_scan): Likewise.
15174 * reload.c (find_reloads): Remove unused variables `changed'.
15176 * reload1.c (reload_reg_class_lower): Don't unnecessarily cast
15178 (allocate_reload_reg): Mark parameter with ATTRIBUTE_UNUSED.
15179 Remove unused variable `insn'.
15181 * toplev.c: Include loop.h.
15182 (report_file_and_line): Remove unnecessary prototype.
15184 * tree.c (build_block): Mark parameter with ATTRIBUTE_UNUSED.
15186 * unroll.c (biv_total_increment): Likewise.
15188 Thu Dec 23 23:15:22 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15190 * reload1.c (emit_input_reload_insns): Restore old behaviour
15191 wrt. 'special' reloads.
15193 1999-12-23 Zack Weinberg <zack@wolery.cumb.org>
15195 * Makefile.in (ggc-simple.c, ggc-page.c): Don't depend on
15196 hash.h. (cse.c): Don't depend on hashtab.h.
15198 * cse.c: Don't include hashtab.h.
15199 (hash_cse_reg_info, cse_reg_info_equal_p): Delete prototypes
15201 * ggc-simple.c: Don't include hash.h.
15203 1999-12-22 Jason Merrill <jason@casey.cygnus.com>
15205 * dwarf2out.c (add_abstract_origin_attribute): Call
15206 gen_abstract_function on our function context.
15208 Thu Dec 23 03:57:10 1999 Hans-Peter Nilsson <hp@bitrange.com>
15210 * Makefile.in (INTEGRATE_H): Fix typo: INTEGRATE_H, not INTREGRATE_H.
15212 1999-12-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15214 * config/c4x/c4x.c (c4x_address_cost): Add statement to default
15217 1999-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15219 * config/c4x/c4x.md (*addqi3_noclobber_reload): Change operand 0
15220 constraints to "a!r".
15222 1999-12-21 Mark Mitchell <mark@codesourcery.com>
15224 * Makefile.in (calls.o): Depend on function.h.
15225 (alias.o): Likewise.
15227 1999-12-21 Bernd Schmidt <bernds@cygnus.co.uk>
15229 * reload1.c (emit_reload_insns): Break out code and variables into...
15230 (input_reload_insns, other_input_address_reload_insns,
15231 other_input_reload_insns, input_address_reload_insns,
15232 inpaddr_address_reload_insns, output_reload_insns,
15233 output_address_reload_insns, outaddr_address_reload_insns,
15234 operand_reload_insns, other_operand_reload_insns,
15235 other_output_reload_insns): ... new static variables, and...
15236 (emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
15237 do_output_reload): ... new functions.
15239 Tue Dec 21 07:06:36 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15241 * pa.h (FUNCTION_ARG_BOUNDARY): Never return 0.
15243 1999-12-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15245 * md.texi: Add c4x constraints documentation.
15247 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
15249 * config/i386/dgux.c (struct option): Rename to
15250 lang_independent_option.
15251 (struct m_options): Add description field.
15252 (output_options): Rename option type, add sep declaration, output
15253 ix86_cpu_string and ix86_arch_string only if set.
15254 (output_file_start): Rename option type.
15256 Mon Dec 20 23:15:36 1999 Mike Stump <mrs@wrs.com>
15258 * Makefile.in (crtbegin.o, crtend.o, s-crtS): Depend on
15260 (libgcc2.a): Similarly.
15262 Mon Dec 20 23:06:47 1999 David Edelsohn <edelsohn@gnu.org>
15264 * longlong.h (_ARCH_PPC): Only protect add_ssaaaa and sub_ddmmss
15265 with W_TYPE_SIZE == 32. Do not fall through to POWER architecture
15266 for umul_ppmm and smul_ppmm if !_ARCH_PPC and !_ARCH_POWER.
15268 Mon Dec 20 23:02:03 1999 Jeffrey A Law (law@cygnus.com)
15270 * fold-const.c (real_hex_to_f): Remove unused "isldouble" variable.
15271 Remove redundant initialization of "frexpon" and "expon".
15273 Mon Dec 20 15:00:04 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15275 * tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.
15277 * expr.c (store_constructor): New argument SIZE; pass to clear_storage.
15278 (store_constructor_field, expand_expr): Pass new arg.
15280 1999-12-20 Mark Mitchell <mark@codesourcery.com>
15282 * Makefile.in (explow.o): Depend on function.h.
15284 * stor-layout.c (set_sizetype): Fix typo.
15286 1999-12-20 Bernd Schmidt <bernds@cygnus.co.uk>
15288 * function.c (cfun): Renamed from current_function. All users
15290 * function.h (cfun): Rename declaration as well.
15292 * reload.h (struct insn_chain): Change live_throughout and dead_or_set
15293 to be of type regset_head, not regset. All users changed by adding
15295 * reload1.c (new_insn_chain): Don't allocate regsets, just clear them.
15297 1999-12-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15299 * config/c4x/rtems.h: New file.
15301 1999-12-19 Bernd Schmidt <bernds@cygnus.co.uk>
15303 * reload1.c (spill_failure): Take class of failed reload as argument
15304 and print it. Caller changed.
15306 Sun Dec 19 07:50:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15308 * rs6000.h (SUBTARGET_DEFAULT): New macro.
15309 (TARGET_SWITCHES): Allow subtargets to default switches.
15310 * rs6000/vxppc.h (SUBTARGET_DEFAULT): New macro.
15312 1999-12-18 Mark Mitchell <mark@codesourcery.com>
15314 * crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
15317 Sat Dec 18 20:42:43 1999 Richard Henderson <rth@cygnus.com>
15319 * cccp.c (main): Define __STDC_VERSION__ as necessary.
15320 * cppinit.c (cpp_handle_option): Likewise.
15322 * ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to
15323 determine when to define.
15325 Sat Dec 18 20:34:00 1999 Richard Henderson <rth@cygnus.com>
15327 * alpha.c (alpha_emit_conditional_move): If TARGET_FIX, handle
15328 cmove with mismatched test and data modes.
15330 Sat Dec 18 20:30:15 1999 Richard Henderson <rth@cygnus.com>
15332 * c-typeck.c (c_expand_start_case): Don't warn for long switch
15335 Sat Dec 18 16:28:43 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15337 * alias.c: Minor reformatting.
15338 * flow.c: Likewise.
15339 * regs.h: Likewise.
15340 * stor-layout.c: Likewise.
15341 * fold-const.c: Likewise.
15342 (OVERFLOW_SUM_SIGN): Renamed from overflow_sum_sign.
15343 (struct cb_args, const_binop_1, const_binop): Pass type of arg,
15345 (size_int_wide): Cache nodes even if garbage collecting.
15346 (twoval_comparison_p): Reenable SAVE_EXPR case if operand
15347 of SAVE_EXPR has no side effects.
15348 * cse.c: Move a comment.
15349 * tree.c: Minor reformatting.
15350 (int_size_in_bytes): Return -1 if constant overflows.
15352 Sat Dec 18 18:30:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15354 * unroll.c (copy_loop_body): Don't treat a REG like a PLUS.
15356 1999-12-18 10:42 -0800 Zack Weinberg <zack@wolery.cumb.org>
15358 * objc/objc-parse.c: Regenerate. This file must be rebuilt
15359 after any change to c-parse.in, even if objc-parse.y didn't
15362 1999-12-18 David S. Miller <davem@redhat.com>
15364 * toplev.c (rest_of_compilation): Restore BLOCK tree
15365 reconstruction and branch shortening changes lost in
15366 December 18th change.
15368 Sat Dec 18 05:29:29 1999 Scott Bambrough <scottb@netwinder.org>
15370 * config/arm/linux-elf.h: Change all instances of
15371 ARM_FLAG_SHORT_BYTES to ARM_FLAG_MMU_TRAPS.
15372 * config/arm/uclinux-elf.h: Likewise.
15374 1999-12-18 Gabriel Dos Reis <gdr@codesourcery.com>
15376 * toplev.c (notice, vmessage, v_message_with_file_and_line,
15377 v_message_with_decl, file_and_line_for_asm,
15378 v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
15379 verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
15380 v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
15381 v_pedwarn_with_file_and_line, vsorry, vnotice, count_error,
15382 pfatal_with_name, fatal_io_error, need_error_newline,
15383 last_error_function, last_error_tick, announce_function,
15384 default_print_error_function, print_error_function,
15385 report_error_function, fnotice, error_with_file_and_line,
15386 error_with_decl, error_for_asm, error, set_fatal_function, fatal,
15387 _fatal_insn, _fatal_insn_not_found, warning_with_file_and_line,
15388 warning_with_decl, warning_for_asm, warning, pedwarn,
15389 pedwarn_with_decl, pedwarn_with_file_and_line, sorry): Move to
15391 (compile_file): Use fnotice instead of notice. Adjust call.
15393 * diagnostic.c: New file.
15395 * Makefile.in (OBJS): Include diagnostic.o
15396 (diagnostic.o): Define dependence.
15398 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15400 * config/c4x/c4x.h (ASM_OUTPUT_XXX): Wrap in do-while(0).
15403 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15405 * config/c4x/c4x.md (rpts_top, rptb_top): Add clobbers for rs and re.
15407 1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
15409 * fixtests.c (is_cxx_header): New fn, split out of
15411 (else_endif_label): Allow "#endif // comment" in C++ headers,
15412 as determined by is_cxx_header.
15413 * fixfixes.c (else_endif_label_fix): Update comment.
15414 * fixincl.c: Don't output VERB_PROGRESS lines if stdout is not
15416 * genfixes: Correct double thinko in commandline parsing.
15417 * hackshell.tpl: Generate correct sh syntax for bypass
15420 * inclhack.def (all): Whenever an inserted preprocessor
15421 conditional is split over multiple lines, use double
15422 backslashes in this file so the fixed header will be readable.
15424 (AAB_fd_zero_glibc_1_0): Rename to AAB_fd_zero_asm_posix_types_h
15425 and add bypass entry for correct version of this header.
15426 (AAB_fd_zero_glibc_1_x): Rename to AAB_fd_zero_gnu_types_h.
15427 (AAB_fd_zero_glibc_2_0): Rename to AAB_fd_zero_selectbits_h.
15429 (hpux8_bogus_inlines): New fix, split from...
15430 (ultrix_atof_param) ... here.
15431 (math_expression): Add bypass entry keyed to glibc comment
15432 indicating the problem has been dealt with; disable
15433 unnecessary sed operations; update commentary.
15434 (math_gcc_ifndefs): Rename to math_huge_val_from_dbl_max,
15435 add select and bypass entries, simplify shell operation.
15436 (math_huge_val_ifndef): Split from math_gcc_ifndefs.
15438 (ip_missing_semi, rs6000_param, tinfo_cplusplus,
15439 ultrix_atof_param): Add select entry.
15440 (stdio_va_list, sunos_mather_decl): Add bypass entry.
15441 (systypes_for_aix, sysv86_string, tinfo_cplusplus): Put the
15442 comments with the fixes they describe.
15444 * c-parse.in (string action): Do not warn about ANSI string
15445 concatenation in system headers. Affects C parser only.
15446 * c-parse.y, c-parse.c, c-parse.h: Rebuild.
15448 1999-12-16 Jakub Jelinek <jakub@redhat.com>
15450 * config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
15451 compiling libgcc2 the macro depends always on arch cpp defines.
15453 Fri Dec 17 10:34:16 1999 Richard Earnshaw <rearnsha@arm.com>
15455 * loop.c (insert_loop_mem): Don't record MEMs from inside
15458 Fri Dec 17 12:08:11 MET 1999 Jan Hubicka <hubicka@freesoftr.cz>
15460 * regclass.c (regclass): Do not use flowgraph when not optimizing.
15462 * gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV
15463 notes too, create one when replacement failed, attempt to simplify
15465 (cprop_insn): Propagate even to registers mentioned only in REG_EQUAL
15466 or REG_EQUIV notes.
15468 1999-12-16 Mark Mitchell <mark@codesourcery.com>
15470 * crtstuff.c (__dso_handle): Declare.
15471 (__cxa_finalize): Likewise.
15472 (do_global_dtors_aux): Call __cxa_finalize if __dso_handle is
15475 * invoke.texi: Document -fuse-cxa-atexit.
15477 * tree.h (ptr_type_node): Document.
15478 (const_ptr_type_node): Likewise.
15480 Fri Dec 17 01:32:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15482 * regmove.c (optimize_reg_copy_1): Ignore LOOP notes.
15483 (optimize_reg_copy_2): Likewise.
15484 (optimize_reg_copy_3): Likewise.
15485 (fixup_match_2): Likewise.
15486 (regmove_optimize): Likewise.
15487 (fixup_match_1): Liekwise.
15489 * i386.md (HI to SImode promoting splitters): Rewrite.
15490 (pushsf mem peep2): New.
15491 (testhi to andhi peep2): Remove.
15492 * i386.h (x86_promote_QImode): New.
15493 (TARGET_PROMOTE_QImode): New.
15494 (PREDICATE_CODES): Add promotable_binary_operator.
15495 * i386.c (x86_promote_QImode0: New.
15496 (promotable_binary_operator): New.
15497 * i386-protos.h (promotable_binary_operator): New.
15499 * i386.md (test?i_1): Use "nonmemory_operand" predicate, simplify
15501 (one_cmpl?i*): Pass "NOT" to unary_operator_ok.
15503 1999-12-16 Mark Mitchell <mark@codesourcery.com>
15505 * Makefile.in (INTREGRATE_H): Rename to INTEGRATE_H.
15506 * function.c (insert_block_after_note): Remove.
15507 (retrofit_block): Likewise.
15508 (identify_blocks): Fix indentation.
15509 (reorder_blocks): Don't NULL out NOTE_SOURCE_FILE for a
15510 NOTE_INSN_BLOCK_BEG or NOTE_INSN_BLOCK_END.
15511 * function.h (insert_block_after_note): Remove prototype.
15512 (retrofit_block): Likewise.
15513 * integrate.c (expand_inline_function): Don't call
15514 find_loop_tree_blocks. Use expand_start_bindings_and_block, not
15515 just expand_start_bindings. Use the block_map to remap old
15516 NOTE_BLOCKs to new ones.
15517 (integrate_decl_tree): Keep track of remapped blocks.
15518 * integrate.h (struct inline_remap): Add block_map.
15519 * stmt.c (expand_fixup): Don't try to retrofit_blocks. Just set
15520 NOTE_BLOCK on the notes.
15521 (expand_start_bindings): Rename to ...
15522 (expand_start_bindings_and_block): Add parameter. Set NOTE_BLOCK.
15523 (expand_end_bindings): Set NOTE_BLOCK.
15524 * toplev.c (rest_of_compilation): In function-at-a-time-mode,
15525 reconstruct the BLOCK tree.
15526 * tree.h (expand_start_bindings): Macroize. Call ...
15527 (expand_start_bindings_and_block): New function.
15529 1999-12-16 Jakub Jelinek <jakub@redhat.com>
15531 * config/sparc/sparc.c (print_operand): Cast fprintf arguments
15532 to match the format.
15534 1999-12-16 David S. Miller <davem@redhat.com>
15536 * expr.c (emit_move_insn_1): Only emit clobbers if one of
15537 the outputs is a SUBREG.
15538 * rtlanal.c (reg_overlap_mentioned_p): Revert December 15th
15541 * config/sparc/sparc.c (epilogue_renumber): Add default case
15544 Thu Dec 16 11:33:57 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15546 * toplev.c (rest_of_compilation): Run branch shortening after
15549 * regclass.c (loop_depth): Remove
15550 (scan_one_insn): Do not handle LOOP_NOTE insns.
15551 (regclass): Go through basic blocks and set loop_cost
15553 Thu Dec 16 02:56:25 1999 Zack Weinberg <zack@bitmover.com>
15555 * tree.h (DECL_FROM_INLINE): Check DECL_ABSTRACT_ORIGIN too.
15557 Thu Dec 16 10:43:35 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15559 * i386.md (movqi): Use "nonimmediate_operand" for output operand.
15560 (movstrictqi, movdi, movsf, movdf, movxf): Likewise.
15561 (adddi, addqi, addhi, subdi, subqi, subhi, ffs): Likewise.
15563 Thu Dec 16 02:41:26 1999 Richard Henderson (rth@cygnus.com)
15565 * loop.c (insert_loop_mem): Ignore memory clobbers.
15567 * combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0)
15570 Thu Dec 16 02:26:11 1999 Jeffrey A Law (law@cygnus.com)
15572 * profile.c: Remove redundant #include "output.h".
15574 * h8300.md (HImode preinc peephole): Fix typo.
15576 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
15578 * function.c (retrofit_block): Abort if we don't find a suitable insn.
15579 (insert_block_after_note): Abort if we don't have a previous block.
15580 Remove FN parameter.
15581 * function.h: Adjust.
15583 1999-12-15 Mark Mitchell <mark@codesourcery.com>
15585 * builtins.c (expand_builtin_mathfn): Make sure not to expand the
15586 argument more than once.
15588 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
15590 * stmt.c (expand_decl): Expand upper bound of a dynamic array.
15592 1999-12-15 Jakub Jelinek <jakub@redhat.com>
15594 * expr.c (emit_group_load): Use dst mode if src is VOIDmode.
15596 Wed Dec 15 16:11:55 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15598 * function.c (PREFERRED_STACK_BOUDNARY): Provide default value.
15599 (assign_stack_local_1): Limit alignment to PREFERRED_STACK_BOUNDARY,
15600 update stack_alignment_needed.
15601 (prepare_function_start): Initialize stack_alignment_needed
15602 * function.h (struct function): Add field stack_alignment_needed.
15604 Wed Dec 15 14:55:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15606 * caller-save.c (insert_one_insn): Returns struct insn_chain *.
15607 Handle live_throughout / dead_or_set instead of live_before /
15609 (save_call_clobbered_regs): Get register livenessinformation from
15610 chain->live_throughout.
15611 (add_stored_regs): New function.
15612 (insert_restore, insert_save): Add restored / saved registers to
15614 * global.c (reg_dies): New parameter chain.
15615 (reg_becomes_live): Third parameter is regs_set now.
15616 Changed all callers.
15617 (reg_dies): New parameter chain. Changed all callers.
15618 (build_insn_chain): Set live_throughout instead of
15619 live_before / live_after.
15620 * reload.h (struct insn_chain): Replace members live_before /
15621 live_after with live_throughout / dead_or_set.
15622 * reload1.c (new_insn_chain): Handle live_throughout / dead_or_set
15623 instead of live_before / live_after.
15624 (maybe_fix_stack_asms, find_reload_regs, finish_spills): Likewise.
15625 (order_regs_for_reload, find_reg, finish_spills): Likewise.
15626 (choose_reload_regs_init): Likewise.
15627 * stupid.c (current_chain, find_clobbered_regs): Delete.
15628 (stupid_life_analysis): Set chain->live_throughout chain->dead_or_set
15629 instead of chain->live_before / chain->live_after.
15630 (mark_hard_ref): New function.
15631 (stupid_mark_refs): Call mark_hard_ref. Clear chain->live_throughout.
15633 1999-12-15 David S. Miller <davem@redhat.com>
15635 * rtlanal.c (reg_overlap_mentioned_p): Handle CONCAT.
15637 Wed Dec 15 15:05:30 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15639 * flow.c (calculate_loop_depth): Make global, remove prototype,
15640 rewrite to use new loop infrastructure.
15641 (find_basic_block): Remove calculate_loop_depth call.
15642 * toplev.c (rest_of_compilation): Call find_basic_block.
15643 * output.h (calculate_loop_depth): Declare.
15645 * flow.c (dump_flow_info): Dump loop_depth.
15646 (flow_loops_nodes_find): Increase loop_depth for basic block in the
15648 (flow_loops_find): Initialize the loop_depth for each basic block.
15650 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
15652 * tree.c (decl_function_context): Handle virtual functions.
15654 * tlink.c (scan_linker_output): Don't look in demangled name when
15655 looking for linker output keywords.
15657 * dwarfout.c (output_type): We can defer namespace-scope classes.
15659 Wed Dec 15 01:23:29 1999 Jeffrey A Law (law@cygnus.com)
15661 * regclass.c (record_reg_classes): Update comment for merging
15662 register class preferences in reg->reg copies. Tighten conditions
15663 for merging register class preferences in reg->reg copies.
15665 Wed Dec 15 02:19:32 1999 David Edelsohn <edelsohn@gnu.org>
15667 * rs6000.md (tablejumpdi): Generate DImode LABEL_REF.
15669 1999-12-14 Geoff Keating <geoffk@cygnus.com>
15671 * config/m68k/m68020-elf.h (ENDFILE_SPEC): Delete.
15672 (INIT_SECTION_ASM_OP): Delete.
15673 (FINI_SECTION_ASM_OP): Delete.
15674 (STARTFILE_SPEC): Define to hold just crtbegin.o.
15676 1999-12-14 Jason Merrill <jason@casey.cygnus.com>
15678 * dwarf2out.c (add_abstract_origin_attribute): Do call abort if
15679 the abstract origin wasn't emitted.
15681 * dwarf2out.c (class_scope_p): New fn.
15682 (gen_subprogram_die): Use it.
15683 (gen_variable_die): Use it. Tweak logic.
15684 (gen_struct_or_union_type_die): Check context_die to determine
15685 if we're function-local.
15686 (dwarf2out_decl): Check DECL_BUILT_IN, not DECL_FUNCTION_CODE.
15688 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
15690 * loop.c (check_dbra_loop): Can't reverse a biv that has
15691 maybe_multiple set.
15693 1999-12-14 Nick Clifton <nickc@cygnus.com>
15695 * config/arm/arm.c: Add support for -mcpu=arm720 command line
15698 Tue Dec 14 18:13:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15700 * loop.c (strength_reduce): Fix sign of giv lifetime calculation
15701 for givs made from biv increments.
15703 Tue Dec 14 08:11:27 1999 Richard Henderson <rth@cygnus.com>
15705 * configure.in (alpha-osf, alpha-linux): Handle ev6[78].
15706 * alpha.c (override_options): Recognize -mcpu=ev67.
15707 * alpha.h (CPP_CPU_EV67_SPEC): New.
15708 (CPP_CPU_DEFAULT_SPEC): Examine TARGET_CPU_DEFAULT to use it.
15709 (EXTRA_SPECS): Update.
15711 Tue Dec 14 08:04:28 1999 Richard Henderson <rth@cygnus.com>
15713 * cppp.c (main): Set trigraphs and __STRICT_ANSI__ as
15714 appropriate for -lang-c89 and -std=*.
15715 * cppinit.c (cpp_handle_option): Likewise.
15716 (new_pending_define): New, split out from cpp_handle_option.
15717 * gcc.c (default_compilers): Don't define __STRICT_ANSI__
15718 or enable trigraphs for -ansi/-std=*.
15720 * ginclude/stdarg.h (__va_copy): New.
15721 (va_copy): Don't define for C89.
15723 Tue Dec 14 08:37:27 CST 1999 Clinton Popetz <cpopetz@cygnus.com>
15725 * config/arm/arm.md (mulsidi3adddi, umulsidi3adddi): New patterns
15726 for long long multiply-accumulate.
15728 Tue Dec 14 13:51:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15730 * regclass.c (scan_one_insn): Set loop_cost to 1 when
15731 optimizing for size.
15733 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
15735 * reload1.c (reload): Can't avoid select_reload_regs/finish_spills
15736 if something changed. Back out that part of yesterday's changes.
15738 * loop.c (loop_max_reg): New static variable.
15739 (loop_optimize): Initialize it. Eliminate one unnecessary call to
15741 (scan_loop): Call reg_scan_update whenever we may have added new
15742 registers, and update loop_max_reg.
15744 Tue Dec 14 12:07:29 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15746 * regclass.c (record_reg_classes): Do not do the copying preferrencing
15747 when source does not die.
15749 * regclass.c (record_reg_classes): Handle INOUT operands propertly.
15751 1999-12-14 Jakub Jelinek <jakub@redhat.com>
15753 * config/sparc/linux64.h (TARGET_LIVE_G0,
15754 TARGET_BROKEN_SAVERESTORE): Don't support weird SPARC
15756 * config/sparc/linux.h (TARGET_LIVE_G0,
15757 TARGET_BROKEN_SAVERESTORE): Likewise.
15758 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
15759 TARGET_BROKEN_SAVERESTORE): Likewise.
15761 * config/sparc/sparc.h (SPARC_DEFAULT_CMODEL): Default to CM_32.
15762 (CONDITIONAL_REGISTER_USAGE): For block profiling fix %g4 on sparc64,
15764 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Use %g4 instead of %g2
15765 as sparc64 block profiling register.
15766 * config/sparc/sparc.c (sparc_override_options): Allow block
15767 profiling with -m32.
15768 (sparc_block_profiler): Use %g4 instead of %g2 as sparc64 block
15769 profiling register.
15770 * config/sparc/linux64.h (MACHINE_STATE_*): Only provide these
15771 macros on TARGET_ARCH32. sparc.h has macros good enough for sparc64.
15772 * config/sparc/sol2.h (MACHINE_STATE_*): Likewise.
15774 * config/sparc/xm-sp64.h: Avoid using __sparc_v9__ when testing
15776 * config/sparc/sparc.h: Likewise.
15777 * config/sparc/xm-sysv4-64.h: Likewise.
15778 * config/float-sparc.h: Likewise.
15779 * glimits.h: Likewise.
15780 * longlong.h: Likewise.
15782 * config/sparc/linux64.h (DEFAULT_VTABLE_THUNKS): Define to 1.
15783 (ASM_IDENTIFY_GCC): Remove.
15785 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
15787 * combine.c (combine_simplify_rtx): Don't make shared rtl.
15788 (simplify_logical): Likewise.
15790 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
15792 * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin.
15793 * cppfiles.c (INO_T_EQ): Likewise.
15795 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
15797 * i386/crtdll.h (STARTFILE_SPEC): Add -pg profiling support.
15798 * i386/mingw32.h (LIB_SPEC): Likewise.
15799 (STARTFILE_SPEC): Likewise.
15800 * i386/uwin.h (LIB_SPEC): Likewise.
15801 (STARTFILE_SPEC): Likewise.
15803 * i386/mingw32.h (SUBTARGET_PROLOGUE): Override Cygwin definition.
15804 * i386/uwin.h (SUBTARGET_PROLOGUE): Likewise.
15806 Mon Dec 13 20:25:29 1999 Jeffrey A Law (law@cygnus.com)
15808 * combine.c (combine_simplify_rtx): Fix order of checks for
15809 (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
15811 1999-12-13 Clinton Popetz <cpopetz@cygnus.com>
15813 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi) Backed out
15814 12/10/99 change, reapplied to merged-arm-thumb-backend-branch.
15816 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
15818 * hard-reg-set.h (inv_reg_alloc_order): Declare if REG_ALLOC_ORDER is
15820 * regclass.c (inv_reg_alloc_order): New array.
15821 (regclass_init): If REG_ALLOC_ORDER is defined, initialize it.
15823 * reload.h (struct insn_chain): Delete fields group_size, group_mode,
15824 counted_for_groups, counted_for_nongroups. Add fields rld and
15826 * reload.c (push_secondary_reload): Don't set nongroup field of
15828 (push_reload): Likewise.
15829 (find_reloads): Delete code to compute nongroup fields.
15830 * reload1.c (reload_insn_firstobj): New static variable.
15831 (pseudos_counted, spilled_pseudos): Now of type regset_head. All
15833 (calculate_needs, find_tworeg_group, find_group, possible_group_p,
15834 count_possible_groups, modes_equiv_for_class_p, new_spill_reg,
15835 dump_needs, maybe_mark_pseudo_spilled, hard_reg_use_compare): Delete
15837 (count_pseudo, select_reload_regs, copy_reloads, find_reg): New
15839 (struct hard_reg_n_uses): Deleted.
15840 (potential_reload_regs): Deleted.
15841 (init_reload): Initialize spilled_pseudos and pseudos_counted.
15842 (reload): Don't try to allocate reload registers if we already know
15843 we have to make another pass. Call select_reload_regs. Free memory
15844 starting with reload_firstobj when starting another pass.
15845 Don't allocate spilled_pseudos.
15846 (calculate_needs_all_insns): Call copy_reloads for an insn that
15847 needs reloads; don't call calculate_needs.
15848 (spill_cost): New static array.
15849 (used_spill_regs_local): New static variable.
15850 (order_regs_for_reload): Rewrite to lose hard_reg_n_uses and the code
15851 to compute potential_reload_regs.
15852 (find_reload_regs): Completely rewritten to use find_reg.
15853 (allocate_reload_reg): Don't test counted_for_groups or
15854 counted_for_nongroups. Lose NOERROR arg and code to give an error;
15855 all cllers changed.
15856 (choose_reload_regs): Add fallback code that uses the existing
15857 register allocation from find_reload_regs.
15859 Mon Dec 13 00:54:14 1999 Philippe De Muyter <phdm@macqel.be>
15861 * flow.c (create_edge_list): Cast xmalloc return value.
15863 Mon Dec 13 00:47:58 1999 Jeffrey A Law (law@cygnus.com)
15865 * doprnt.c: Remove incorrect comment closure.
15867 * cse.c: Fix a few minor whitespace goofs.
15869 1999-12-13 Don Bowman <don@pixstream.com>
15871 * mips/vxworks.h: Fix problem with comment termination.
15872 (EXTRA_SECTIONS): Add in_sbss.
15873 (EXTRA_SECTION_FUNCTIONS): Corresponding changes.
15875 1999-12-12 David S. Miller <davem@redhat.com>
15877 * cse.c (struct cse_reg_info): Add hash_next member,
15878 reorder rest of struct for better packing on 64-bit
15880 (cse_reg_info_tree): Kill.
15881 (REGHASH_SHIFT, REGHASH_SIZE, REGHASH_MASK, reg_hash,
15882 REGHASH_FN): New custom pow2 hash mechanism.
15884 (HASH_SHIFT, HASH_SIZE, HASH_MASK, HASH, table): Rework to
15885 use a pow2 hash table.
15886 (get_cse_reg_info): Rework to use new REGHASH.
15887 (new_basic_block): Likewise, use HASH_SIZE, and inline
15889 (remove_from_table): Rework to use HASH_SIZE/HASH_MASK,
15890 and inline free_element call.
15891 (lookup_as_function, insert, flush_hash_table, invalidate,
15892 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
15893 invalidate_for_call, use_related_value, find_comparison_args,
15894 fold_rtx, equiv_constant, cse_insn, invalidate_memory): Likewise.
15895 (hash_cse_reg_info, cse_reg_info_equal_p, free_element,
15896 get_element): Kill.
15898 Sun Dec 12 21:31:44 1999 Jeffrey A Law (law@cygnus.com)
15900 * cse.c (cse_basic_block): Free qty_table consistently.
15902 1999-12-12 David S. Miller <davem@redhat.com>
15903 Jakub Jelinek <jakub@redhat.com>
15905 * config/sparc/sparc.md (movtf reg/reg split): Don't generate
15906 SUBREGs by hand, gen the appropriate hard reg directly.
15907 (movtf reg/mem split): Likewise and alter_subreg on destination
15909 (movtf mem/reg split): Similarly.
15910 (movdf_cc_sp64): Rename from hidden pattern.
15911 (movtf_cc_hq_sp64): Renamed from movtf_cc_sp64.
15912 (movtf_cc_sp64, following split): New pattern and splitter.
15913 (movdf_cc_reg_sp64): Rename from hidden pattern.
15914 (movtf_cc_reg_hq_sp64): Renamed from movtf_cc_reg_sp64, require
15916 (movtf_cc_reg_sp64, following split): New pattern and splitter.
15918 1999-12-12 Stephen L Moshier <moshier@mediaone.net>
15920 * loop.c (load_mems): Don't hoist written floating point mem
15923 1999-12-12 Mark Mitchell <mark@codesourcery.com>
15925 * except.h (struct eh_queue): Add `next' pointer.
15926 (struct eh_status): Make x_ehqueue a pointer.
15927 (push_ehqueue): Declare.
15928 (pop_ehqueue): Likewise.
15929 * except.c (expand_eh_region_end): Adjust now that ehqueue is a
15931 (expand_fixup_region_end): Likewise.
15932 (expand_leftover_cleanups): Likewise.
15933 (push_ehqueue): Define.
15934 (pop_ehqueue): Likewise.
15935 (emit_cleanup_handler): Use push_ehqueue and pop_ehqueue rather
15936 than doing it inline.
15937 (expand_start_all_catch): Adjust now that ehqueue is a
15939 (mark_eh_queue): Mark all level of the queue.
15940 (mark_eh_status): Adjust now that ehqueue is a
15942 (init_eh_for_function): Allocate ehqueue.
15943 (free_eh_status): Free it.
15944 * stmt.c (expand_cleanups): Save the ehqueue around the cleanup
15945 expansion for a fixup.
15947 1999-12-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15949 * gthr-single.h (__gthread_active_p): Add prototype arguments.
15951 * libgcc2.c (__udivmoddi4): Remove unnecessary decls.
15952 (__dummy, __builtin_saveregs, __bb_exit_trace_func, __bb_init_prg,
15953 __bb_trace_func, __bb_trace_func_ret, __bb_trace_ret,
15954 function_ptr, getpagesize, __enable_execute_stack,
15955 __enable_execute_stack, __clear_insn_cache,
15956 __enable_execute_stack, __do_global_dtors, __do_global_ctors,
15957 _cleanup, _exit, __default_terminate, __terminate_func,
15958 __terminate, __empty, __throw, new_eh_context,
15959 eh_context_initialize, eh_context_static, eh_context_specific,
15960 get_eh_context, __get_eh_context, __get_eh_info,
15961 init_reg_size_table, eh_threads_initialize,
15962 __get_dynamic_handler_chain, __sjthrow, __sjpopnthrow,
15963 __unwinding_cleanup, throw_helper, __throw, __rethrow,
15964 __pure_virtual): Add prototype arguments.
15965 (__bb_exit_func): Cast a sizeof to long when comparing against one.
15966 Cast a signed value to unsigned long when comparing against one.
15967 (new_eh_context): Wrap in _GTHREADS macro.
15968 (__sjthrow, __sjpopnthrow): Initialize variable `cleanup' at
15970 (in_reg_window): Mark parameters with __attribute__ ((__unused__)).
15971 (throw_helper): Initialize variables `handler_p' and `pc_p'.
15973 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15975 * combine.c (record_promoted_value): Remove unused variable
15978 * emit-rtl.c (renumber_insns): Likewise for `old_max_uid'.
15980 * global.c (record_conflicts): Likewise for `j'.
15982 * genoutput.c (output_insn_data): Don't unnecessarily cast away
15985 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15987 * i386-protos.h (output_387_binary_op, output_fix_trunc,
15988 output_fp_compare): Constify a char*.
15990 * i386.c (ix86_split_to_parts, ix86_safe_length_prefix): Add
15992 (override_options, ix86_comp_type_attributes, print_operand,
15993 output_387_binary_op, output_fix_trunc, output_fp_compare):
15995 (ix86_sched_reorder): Mark parameter `clock_var' with
15998 * i386.h (DEBUG_PRINT_REG): Constify a char*.
16000 Fri Dec 10 16:12:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
16002 * tree.def (EXPR_WITH_FILE_LOCATION): Temporarily add a third
16003 operand, for use in the Java front-end.
16005 1999-12-10 Ben Collins <bcollins@debian.org>
16007 * configure.in: Fix typo for "-64" in 64bit as check.
16008 * configure: Rebuilt.
16010 1999-12-10 Jakub Jelinek <jakub@redhat.com>
16012 * longlong.h (__sparc_v9__): Use %rDIGIT instead of %DIGIT where
16015 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16017 * c-parse.in (string): With -Wtraditional, warn if ANSI string
16018 concatenation is utilized.
16020 * invoke.texi (-Wtraditional): Document it.
16022 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16024 * flow.c (flow_loops_dump): Avoid ANSI string concatenation.
16025 Cast a ptrdiff_t to long and pass it to printf with %ld.
16027 1999-12-10 Geoff Keating <geoffk@cygnus.com>
16029 * config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no
16030 68881, we have no 68881 registers at all.
16031 (HARD_REGNO_MODE_OK): It is always OK to put a MODE_FLOAT
16032 value in a 68881 register if it is available.
16034 1999-12-10 Clinton Popetz <cpopetz@cygnus.com>
16036 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi): New patterns
16037 for long long multiply-accumulate.
16039 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
16041 * loop.c (insert_loop_mem): Undo last change.
16043 1999-12-10 David S. Miller <davem@redhat.com>
16045 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p, fp_high_losum_p):
16047 * config/sparc/sparc-protos.h: Add them.
16048 * config/sparc/sparc.h: Add them to PREDICATE_CODES.
16049 (EXTRA_CONSTRAINT_BASE): New macro, handling Q, R, and S
16050 constraints which use those helpers.
16051 (EXTRA_CONSTRAINT): Use this new macro.
16052 * md.texi: Update sparc target constraints documentation.
16053 * config/sparc/sparc.md (clear_sf, clear_sfp, movsf_const_intreg,
16054 movsf_const_high, movsf_const_lo, movsf_insn): Delete.
16055 (movsf_insn_novis_liveg0, movsf_insn_novis_noliveg0,
16056 movsf_insn_vis, movsf_lo_sum, movsf_high): New patterns.
16057 (movsf high/lo_sum split): Rework for new patterns.
16058 (movsf expander): Allow storing fp_zero to memory if ! live_g0.
16060 1999-12-09 Gavin Romig-Koch <gavin@cetus.cygnus.com>
16062 * c-common.c (c_common_nodes_and_builtins):
16063 Create __builtin_ptrdiff_t and __builtin_size_t.
16065 Thu Dec 9 18:05:48 1999 Jeffrey A Law (law@cygnus.com)
16067 * pa/elf.h (MAX_OFILE_ALIGNMENT): Define.
16069 Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16071 * regclass.c (globalize_reg): Re-instate test that allows
16072 fixed registers to be declared as a variable even after functions
16075 Fri Dec 10 00:52:13 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16077 * i386.md (cpu attribute): Add "athlon".
16078 (athlon_decode): New attribute.
16079 (Athlon scheduling units definitions): New.
16080 (fcmp and shld patterns): Set athlon_decode to "vector".
16081 * i386.c (athlon_cost): New.
16083 (x86_use_leave, x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
16084 x86_use_sahf): Set for Athlon.
16085 (x86_use_fiop): Unset for Athlon.
16086 (override_options): Define Athlon alignments and "athlon" name.
16087 (x86_adjust_cost): Penalize AGI and delayed latencies for Athlon.
16088 * i386.h (TARGET_ATHLON): New.
16089 (enum processor_type): Add PROCESSOR_ATHLON.
16090 (TARGET_CPU_DEFAULT_SPEC): Set to "-D__tune_athlon__"
16092 (TARGET_CPP_CPU_SPECS): Set -D__tune_athlon__ for Athlon.
16094 1999-12-09 Andreas Jaeger <aj@suse.de>
16096 * loop.c (record_biv): Declare parameter as int.
16098 * config/i386/i386-protos.h: Declare long_memory_operand.
16100 1999-12-09 Mark Mitchell <mark@codesourcery.com>
16102 * tree.c (copy_node): Do zero the TREE_CHAIN, even for an
16103 EXPR_WITH_FILE_LOCATION.
16105 Thu Dec 9 11:36:24 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16107 * i386.md (neg??, abs?f, one_cmpl?i): Use nonimmediate_operand
16110 * flow.c (recompute_reg_usage): Use basic block info to get loop_depth.
16112 * combine.c (try_combine, distribute_notes): Remove REG_N_REFS
16115 1999-12-09 Jakub Jelinek <jakub@redhat.com>
16117 * config/sparc/linux64.h (TARGET_DEFAULT): Make -mapp-regs
16118 default on linux64 again.
16119 * config/sparc/t-linux64: Add mno-app-regs and non-medlow code
16120 models for multilibing.
16121 * genmultilib: Accept | as alternative separator within a set in
16124 * config/sparc/sparc.h (PROMOTE_FOR_CALL_ONLY): Define.
16126 * calls.c (precompute_arguments): Make sure initial_value contains
16127 value pseudo which CSE expects.
16128 * cse.c (struct set): New entry orig_src.
16129 (cse_insn): Set it early on entry, use it for libcall EQUIV note
16132 Wed Dec 8 22:24:15 1999 Richard Henderson <rth@cygnus.com>
16134 * flow.c (count_basic_blocks): Don't add (use (const_int 0)) insns.
16136 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
16138 * loop.c (insert_loop_mem): Don't hoist volatile mems out of loops.
16140 1999-12-08 Jakub Jelinek <jakub@redhat.com>
16142 * config/sparc/sparc.c (ultra_cmove_results_ready_p,
16143 ultra_fpmode_conflict_exists, ultra_flush_pipeline): Typo fix.
16145 * config/sparc/sparc.h (SPARC_SETHI_P): Don't look at topmost 32 bits
16148 * longlong.h: Merge in changes from glibc.
16149 Also don't clobber %g2 register in 32bit SPARC assembly, so that
16150 -mno-app-regs libgcc can be compiled.
16151 * libgcc2.c: Add defines so that the updated longlong.h
16152 can be used in libgcc2.a. Also, make sure on most architectures
16153 (at least on all which have optimized code in longlong.h defined
16154 for) {SI,W}_TYPE_SIZE is suitable for preprocessor tests.
16156 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16158 * config/sparc/sol2-64.h: Same as sol2-sld-64.h, except that
16159 `-m EMULATION' is added to non-default LINK_ARCH_SPECs.
16160 * configure.in: Use sol2-64.h instead of sol2-sld-64.h if linker
16162 * configure: Rebuilt.
16164 Wed Dec 8 03:45:40 1999 Richard Henderson <rth@cygnus.com>
16166 * alpha.c (secondary_reload_class): For !BWX, sub-simode
16167 outputs require a register.
16169 1999-12-08 Brendan Kehoe <brendan@cygnus.com>
16171 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS): Add _sf_to_usi
16172 _df_to_usi. Required by some targets, so US_SOFTWARE_GOFAST calls to
16173 functions like dptoul will be resolved.
16174 (libgcc2.a): Make sure that the object files from DPBIT are named
16175 differently (prefix `_dp') from those that would be coming from
16178 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Jakub Jelinek <jakub@redhat.com>
16180 * configure.in: When target is sparc* and tm_file contains 64,
16181 test for 64bit support in assembler. If not supported, remove
16182 sparc/t-sol2-64 from target-dependent Makefile fragments.
16183 (AS_SPARC64_FLAG): Define to the assembler flag for 64bit.
16184 (HAVE_AS_OFFSETABLE_LO10): Rework test to use these flags.
16185 (HAVE_AS_REGISTER_PSEUDO_OP): Use config.cache.
16186 * acconfig.h (AS_SPARC64_FLAG): Added.
16187 * configure, config.in: Rebuilt.
16188 * config/sparc/sol2-sld-64.h: Same as sol2.h, if without 64bit
16189 support. Use AS_SPARC64_FLAG.
16191 1999-12-07 Jakub Jelinek <jakub@redhat.com>
16193 * config/sparc/sparc.c (hard_32bit_mode_classes): Mark registers
16194 suitable for holding OFmode values so that gcc works with complex
16196 (hard_64bit_mode_classes): Likewise.
16198 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): Fix pattern
16199 so that it is actually matched.
16200 (sethi_di_medlow): Likewise.
16202 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Consider TFmode 0.0L
16203 as legitimate constant if -mvis.
16204 * config/sparc/sparc.md (movtf): Likewise.
16205 (clear_sf): Use const_double_operand.
16206 (clear_sfp, clear_dfp, clear_tf, clear_tfp): New patterns.
16208 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): New function.
16209 * config/sparc/sparc-protos.h (sparc_emit_float_lib_cmp): Prototype.
16210 * config/sparc/sparc.h (*_LIBCALL): Only use for _Q_*
16211 routines, _Qp_* cannot be handled like that now.
16212 (INIT_TARGET_OPTABS): Likewise.
16213 * config/sparc/sparc.md (cmptf): Accept soft float ARCH64.
16214 (seq, sne, sgt, sge, slt, sle, beq, bne, bgt, bge, blt, ble): Call
16215 sparc_emit_float_lib_cmp if ARCH64 and soft float.
16216 (extendsftf2, extenddftf2, trunctfsf2, trunctfdf2, floatsitf2,
16217 floatditf2, fix_trunctfsi2, fix_trunctfdi2, addtf3, subtf3, multf3,
16218 divtf3, sqrttf3): New expanders.
16219 (extendsftf2_hq, extenddftf2_hq, trunctfsf2_hq, trunctfdf2_hq,
16220 floatsitf2_hq, floatditf2_hq, fix_trunctfsi2_hq, fix_trunctfdi2_hq,
16221 addtf3_hq, subtf3_hq, multf3_hq, divtf3_hq, sqrttf3_hq): Rename from
16224 * configure.in (sparc64-*-linux*): Use posix threads if enabled.
16225 * configure: Rebuilt.
16226 * config/sparc/linux64.h: Default to -mcpu=ultrasparc if no
16227 -mcpu is given and we're doing 64bit compiles.
16229 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
16231 * loop.h (struct induction): Add multi_insn_incr.
16232 * loop.c (basic_induction_var): New multi_insn_incr argument.
16233 Set it if we search back through previous insns for the biv.
16234 (record_biv): New multi_insn_incr argument; fill in struct induction.
16235 (strength_reduce): Discard an iv with multiple bivs, any of
16236 which require multiple insns to increment.
16238 1999-12-07 Martin v. Löwis <loewis@informatik.hu-berlin.de>
16240 * invoke.texi (C Dialect Options): Remove -flang-c9x, add -std
16243 1999-12-06 David S. Miller <davem@redhat.com>
16245 * combine.c (check_promoted_subreg): Do not conditionalize this upon
16246 PROMOTE_FUNCTION_RETURN.
16248 Mon Dec 6 15:12:14 1999 Jim Wilson <wilson@cygnus.com>
16250 * regmove.c (optimize_reg_copy_1): If no REG_DEAD note, check for
16251 and handle REG_UNUSED note on insn.
16253 * combine.c (force_to_mode, case LSHIFTRT): New local inner_mask. Set
16254 inner_mask instead of mask.
16256 1999-12-06 Brendan Kehoe <brendan@cygnus.com>
16258 * dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be
16259 zero if there was an error.
16261 1999-12-06 Jakub Jelinek <jakub@redhat.com>
16263 * config/sparc/sparc.md (return_losum_di): Fix typo in asm
16266 * longlong.h: Fix clobbers in SPARC asm statements.
16268 * config/sparc/sparc.c (input_operand): Allow HImode and QImode
16269 valid sethi operations when TARGET_ARCH64.
16271 * calls.c (save_fixed_argument_area): If save_mode is BLKmode,
16272 always use move_by_pieces to avoid infinite recursion.
16273 (restore_fixed_argument_area): Likewise.
16275 * combine.c (check_promoted_subreg, record_promoted_value): New
16277 (combine_instructions): Use them to retain nonzero and sign bit
16278 information after SUBREGs are eliminated by optimizations in
16279 this pass if PROMOTE_FUNCTION_RETURN.
16281 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Document
16282 .register declaration. Don't use variables with __ prefixes.
16284 Mon Dec 6 12:24:52 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16286 * fold-const.c (optimize_bit_field_compare): Only use one mode
16287 for both RHS and LHS in non-constant case.
16289 1999-12-06 Nathan Sidwell <nathan@acm.org>
16291 * frame.c (start_fde_sort): Only allocate erratic array, if
16292 linear one was allocated. Return allocated flag.
16293 (fde_insert): Only insert, if there's a valid array.
16294 (fde_end_sort): Split, sort and merge if linear and erratic
16295 arrays exist, else just sort linear one.
16296 (search_fdes): New function. Linear search through original fde
16298 (frame_init): Permit multiple initializations. Cope with
16300 (find_fde): Fallback on linear search, if failed to sort array.
16301 (__deregister_frame_info): Only free sorted array, if we
16304 1999-12-06 Jakub Jelinek <jakub@redhat.com>
16306 * config/sparc/sparc.h (MUST_PASS_IN_STACK): New macro.
16308 1999-12-05 Jakub Jelinek <jakub@redhat.com>
16310 * config/sparc/sparc.c (sparc64_initialize_trampoline): Use gen_flushdi.
16312 1999-12-05 Mark Mitchell <mark@codesourcery.com>
16314 * tree.h (special_function_p): Declare.
16315 * calls.c (special_function_p): Make it global. Don't take `name'
16316 as a parameter. Fix typo in 1999-11-28 change.
16317 (expand_cal): Adjust.
16319 1999-12-04 Mark Mitchell <mark@codesourcery.com>
16321 * tree.def (EXPR_WITH_FILE_LOCATION): Fix comment formatting.
16322 * tree.h (EXPR_WFL_FILENAME): Define in terms of
16323 EXPR_WFL_FILENAME_NODE.
16324 (EXPR_WFL_FILENAME_NODE): Use the second operand slot rather than
16326 * print-tree.c (print_note): Print TREE_PRIVATE and
16329 * dwarf2out.c (add_abstract_origin_attribute): Don't abort when
16330 the original die cannot be found.
16332 * varray.h (varray_head_tag): Add elements_used.
16333 (VARRAY_PUSH): New macro.
16334 (VARRAY_POP): Likewise.
16335 (VARRAY_TOP): Likewise.
16336 Add variants of VARRAY_PUSH and VARRAY_POP for all varray element
16338 * varray.c (varray_init): Initialize elements_used.
16339 * Makefile.in (BASIC_BLOCK_H): Add varray.h.
16340 (INTEGRATE_H): New variable.
16341 (integrate.o): Depend on INTEGRATE_H.
16342 (unroll.o): Likewise.
16344 * function.h (insert_block_after_note): Declare.
16345 * function.c (insert_block_after_note): Split out from ...
16346 (retrofit_block): ... here.
16348 * stmt.c (expand_fixup): Fix typo in comment.
16350 Sat Dec 4 14:13:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16352 * regmove.c (copy_src_to_dest): Remove loop_depth parameter.
16353 (optimize_reg_copy_1): Remove REG_N_REFS updating code.
16354 (optimize_reg_copy_2, copy_src_to_dest, fixup_match_2): Likewise.
16355 (regmove_optimize, fixup_match_1): Likewise.
16357 1999-12-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16359 * flow.c (flow_loops_dump): Add missing argument when calling
16360 flow_loop_nested_p.
16362 1999-12-04 Geoffrey Keating <geoffk@cygnus.com>
16363 Greg McGary <gkm@gnu.org>
16365 * c-common.c (enum attrs): Add A_NO_LIMIT_STACK.
16366 (init_attributes): Add A_NO_LIMIT_STACK.
16367 (decl_attributes): Handle A_NO_LIMIT_STACK.
16368 * c-decl.c (duplicate_decls): Handle DECL_NO_LIMIT_STACK.
16369 * explow.c (allocate_dynamic_stack_space) [!HAVE_allocate_stack]:
16370 Handle stack bounds checking.
16371 * flags.h (flag_stack_check): Use the word 'probe' rather than
16372 'check', because the flag doesn't actually cause any checking to
16374 * function.c (expand_function_start): Set
16375 current_function_limit_stack.
16376 * function.h (struct function): Add limit_stack.
16377 (current_function_limit_stack): Define.
16378 * invoke.texi (Code Gen Options): Document new options.
16379 * rtl.h: Declare stack_limit_rtx.
16380 * toplev.c (stack_limit_rtx): New variable.
16381 (decode_f_option): Handle new options -fstack-limit-register=REG,
16382 -fstack-limit-symbol=IDENT, -fno-stack-limit.
16383 (main): Add stack_limit_rtx as GC root.
16384 * tree.h (DECL_NO_LIMIT_STACK): New macro.
16385 (struct tree_decl): New member no_limit_stack.
16387 * config/rs6000/rs6000.c (rs6000_allocate_stack_space): Handle
16389 * config/rs6000/rs6000.md (allocate_stack): Handle stack_limit_rtx.
16390 (conditional_trap+1): Get new mnemonic correct.
16391 (conditional_trap+2): New pattern for DImode traps.
16393 * config/m68k/m68k.c (output_function_prologue): Handle
16395 * config/m68k/m68k.md (trap): New insn.
16396 (conditional_trap): New insn.
16397 * md.texi (Standard Names): Document `trap' and
16398 `conditional_trap'.
16399 * optabs.c (gen_cond_trap): Use start_sequence()/end_sequence()
16400 so a cc0 setter doesn't get emitted at some random place in the
16403 * config/i960/i960.md (trap): New insn.
16404 (conditional_trap): New expander.
16405 (conditional_trap+1, conditional_trap+2): New insns for signed
16406 and unsigned cases.
16407 * config/i960/i960.c (i960_function_prologue): Use
16408 STARTING_FRAME_OFFSET. Handle stack_limit_rtx.
16410 Thu Dec 2 21:22:45 1999 Greg McGary <gkm@gnu.org>
16411 Geoffrey Keating <geoffk@cygnus.com>
16413 * flags.h (warn_padded, warn_packed): Add global var decls.
16414 * toplev.c (warn_padded, warn_packed): Add global var defns.
16415 (W_options): Add warnings `-Wpacked' and `-Wpadded'.
16416 * stor-layout.c (layout_record): Add local variable `type'
16417 to hold often-used TREE_TYPE (field). Add local variable
16418 `unpacked_align' to hold alignment that would be in force
16419 if no `packed' attribute were present. Warn if `packed' attribute
16420 is unnecessary, or even harmful. Warn when gcc inserts padding
16421 to satisfy alignment requirements of members. Use NULL_TREE
16422 when checking whether var_size is set.
16423 * invoke.texi: Document new flags.
16425 1999-12-03 Nathan Sidwell <nathan@acm.org>
16427 * frame.c (fde_split): Reimplement to avoid variable sized array.
16429 Thu Dec 2 18:59:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16431 * combine.c (try_combine): Before fixing up LOG_LINKS for the
16432 i3_subst_into_i2 case, check that GET_CODE (PATTERN (i2)) == PARALLEL.
16434 1999-12-02 Gavin Romig-Koch <gavin@cygnus.com>
16436 * invoke.texi: Document the mips option -mno-crt0
16438 1999-12-02 Mike Karr <mkarr@mathworks.com>
16440 * cccp.c (argdata): Added free_ptr member.
16441 (macroexpand): Initialize free_ptr of each argument. When an
16442 argument's buffers are freed, if the argument's free_ptr corresponds
16443 to a buffer on the input stack, then return the free_ptr to that stack
16444 frame, otherwise, free it.
16445 (macarg): If an argument begins and ends on the same input stack level,
16446 then transfer the free_ptr of that buffer to the argument in case
16447 the stack is popped during the processing of a subsequent argument.
16449 1999-12-02 Bernd Schmidt <bernds@cygnus.co.uk>
16451 * loop.c (note_reg_stored): New function.
16452 (struct note_reg_stored_arg): New structure.
16453 (try_copy_prop): Change to be more conservative; only replace within
16454 one extended basic block and stop replacing if a store to the
16455 replacement reg is seen.
16457 1999-12-02 Nick Clifton <nickc@cygnus.com>
16459 * config/fp-bit.c: Initialise all fields of the NAN
16462 * c-lex.c (check_newline): Pass pragma_getc and pragma_ungetc
16465 Wed Dec 1 18:16:38 1999 Jan Hubicka <hubicka@freesoft.cz>
16467 * i386.md (extend?f?f2): Force the input into a register, not
16470 1999-12-01 Jakub Jelinek <jakub@redhat.com>
16472 * config/sparc/sparc.md (movsf_const_intreg): Add constraints for
16474 (movdf_const_intreg_sp32): Likewise. Prefer the memory load
16475 alternative because setting up 64bit constant is usually costly,
16476 especially when reload is in progress or completed.
16477 (movdf_const_intreg_sp64): Likewise.
16478 (movdf_const_intreg split): Fix building up constants when
16479 HOST_BITS_PER_WIDE_INT is 64 yet long is 32bit.
16481 Wed Dec 1 16:51:22 1999 Jeffrey A Law (law@cygnus.com)
16483 * combine.c (if_then_else_cond): Use const_true_rtx instead of
16484 const1_rtx for return values in EQ/NE comparison against (const_int 0)
16487 * mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers.
16488 (asm_file_start): Emit .am33 into assembly file when compiling for
16490 (print_operand_address): Handle POST_INC addresses.
16491 (can_use_return_insn, initial_offset): Check AM33 registers too.
16492 (expand_prologue): Check & save AM33 registers too.
16493 (expand_epilogue): Similarly.
16494 (secondary_reload_class): Handle AM33 specific secondary reloads.
16495 (output_tst): Emit efficient code for the AM33 too.
16496 * mn10300.h (CPP_SPEC, TARGET_AM33): Define.
16497 (TARGET_SWITCHES): Add -mam33 switch.
16498 (FIRST_PSEUDO_REGISTER): Handle new AM33 registers.
16499 (FIXED_REGISTERS, CALL_USED_REGISTERS): Likewise.
16500 (REG_ALLOC_ORDER, CONDITIONAL_REGISTER_USAGE): Likewise.
16501 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P): Likewise.
16502 (enum reg_class, REG_CLASS_NAMES): Likewise.
16503 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Likewise.
16504 (INDEX_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
16505 (REGNO_OK_FOR_INDEX_P, PREFERRED_RELOAD_CLASS): Likewise.
16506 (PREFERRED_OUTPUT_RELOAD_CLASS, LIMIT_RELOAD_CLASS): Likewise.
16507 (REGISTER_MOVE_COST, REGISTER_NAMES): Likewise.
16508 (HAVE_POST_INCREMENT): Define.
16509 (GO_IF_LEGITIMATE_ADDRESS): Allow POST_INC addresses for the AM33.
16510 (GO_IF_MODE_DEPENDENT_ADDRESS): POST_INC is a mode dependent address.
16511 * mn10300.md (movqi, movhi, addsi, subsi): Add AM33 variants.
16512 (mulsi, andsi, iorsi, xorsi, notsi): Likewise.
16513 (ashiftsi, lshiftrtsi, ashiftrtsi): Likewise.
16514 (zero_extend to SI from QI/HI): Likewise.
16515 (sign_extend to SI from QI/HI): Likewise.
16516 (mulsidi3, umulsidi3): New patterns for the AM33.
16517 (tstsi with zero extension from QI/HI): Add AM33 variants.
16518 (movsi, movsf, movdi, movdf): Generate efficient code for the AM33 too.
16519 (return_internal_regs, store_movm): Handle new AM33 registers.
16520 * t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Define.
16521 (LIBGCC, INSTALL_LIBGCC): Likewise.
16522 * invoke.texi: Document new flags.
16524 Fri Nov 26 10:59:12 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
16526 * i386.md (addsi3_cc): Add "binary_operator_ok" to the condition.
16527 (addsi3_carry): Likewise.
16528 (sbbsi3_cc): Add "binary_operator_ok" to the condition.
16529 (sbbsi3_carry): Likewise.
16530 (mulsi3): Rewrite to expander, ensure that only one operand is memory.
16531 (mulhi3): Likewise.
16532 (test?i_1): Ensure that only one operand is memory.
16533 (conditional move patterns): likewise.
16534 (shift and rotate patterns): Rewrite to expander, add
16535 "binary_operator_ok" to the condition.
16537 * i386.md (QImode patterns): Remove '*' before the 'r' constraints.
16538 * i386.h (procesor_costs): Add movzbl_load field.
16539 (HARD_REGNO_MODE_OK): Accept QImode on non PARTIAL_REGISTER_STALL in
16540 non-Q registers, accept DImode registers anywhere.
16542 (MEMORY_MOVE_COST): Calculate QImode moves correctly.
16543 * i386.c (*_cost): Set value for movxbl_load field.
16545 * (addsi): New add to lea splitter.
16546 (ashlsi): Likewise.
16547 (lea to add/shift peep2): New.
16549 1999-12-01 Mark Salter <msalter@cygnus.com>
16551 * config/mips/elf.h (STARTFILE_SPEC): Add no-crt0.
16552 * config/mips/elf64.h (STARTFILE_SPEC): Add no-crt0.
16553 * config/mips/mips.h (TARGET_SWITCHES): Add no-crt0.
16555 Tue Nov 30 15:20:52 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16557 * i386.c (ix86_expand_move): Never add clobbers to move patterns.
16558 * i386.md (movsi_xor): New.
16560 (movsi_1, movhi_1, movqi_1): Remove.
16561 (movsi_2): Rename to movsi_1.
16562 (movhi_2): Rename to movhi_1.
16563 (movqi_2): Rename to movqi_1.
16564 (movdi_1): Remove; remove splitter.
16565 (movdi_2): Rename to movdi_1.
16566 (divmodsi4 splitter): Do not emit clobbers for move patterns.
16567 (long move peep2): Do not create QI or HI mode mov0s
16568 (mov -1,reg -> or peep2s): Enable again, rewrite to single peephole.
16570 * i386.md (zero_extend?i?i2): Rewrite to expanders; new patterns,
16573 * i386.md (neg?f2_if): Split "r" and "f" to separate alternatives.
16574 (abs?f2_if): Likewise.
16576 1999-11-30 Alex Samuel <samuel@codesourcery.com>
16578 * ggc.h (ggc_test_and_set_mark): New macro.
16579 (ggc_mark_rtx): Use ggc_test_and_set_mark.
16580 (ggc_mark_tree): Likewise.
16581 (ggc_mark_rtvec): Likewise.
16582 * ggc-common.c (ggc_mark_rtx_children): Reduce recursion.
16584 1999-11-30 Jason Merrill <jason@casey.cygnus.com>
16586 * dwarf2out.c (scope_die_for): Only handle types. Only search for
16588 (decl_scope_table): Just an array of trees now.
16589 (push_decl_scope): Simplify.
16590 (dwarf2out_init): Adjust.
16591 (local_scope_p): New fn.
16592 (gen_inlined_enumeration_type_die): Don't call scope_die_for.
16593 (gen_inlined_union_type_die, gen_inlined_structure_type_die): Likewise.
16594 (gen_typedef_die): Likewise.
16595 (gen_lexical_block_die): Don't call push/pop_decl_scope.
16596 (gen_inlined_subroutine_die): Likewise.
16597 (gen_abstract_function): Set current_function_decl temporarily.
16598 (gen_subprogram_die): Don't check DECL_ABSTRACT to set declaration.
16599 Handle block extern declarations. Don't call push/pop_decl_scope.
16600 (gen_decl_die): Fix logic for block externs.
16602 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16604 * calls.c (special_function_p): Remove `realloc' and add `strdup'
16605 to the list of functions which have attribute malloc by default.
16607 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16609 * c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
16610 integer constant does not match the traditional type, limit the
16611 warnings to cases where the base of the type is ten.
16613 * invoke.texi (-Wtraditional): Document it.
16615 Tue Nov 30 15:18:35 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16617 * combine.c (try_combine): Only pass SET or CLOBBER to SET_DEST
16618 * rs6000.md: Only access a CONST_INT with INTVAL
16620 Tue Nov 30 14:21:00 1999 Richard Henderson <rth@cygnus.com>
16622 * lcm.c (compute_laterin): Cast bb->aux to size_t not int.
16623 (compute_nearerout): Likewise.
16624 * ggc-page.c (ggc_page_print_statistics): Explicitly cast
16625 size_t to unsigned long for formatting.
16627 1999-11-30 Jakub Jelinek <jakub@redhat.com>
16629 * config/sparc/sparc.h (FIXED_REGISTERS, CONDITIONAL_REGISTER_USAGE):
16630 Allow the user to override call-used/fixed state of %g2-5
16631 registers from the command line (with the exception of %g4 for
16633 (REG_LEAF_ALLOC_ORDER): Move %g1 and %g4-7 registers to front, so that
16634 there is a higher chance of having a leaf function.
16635 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Provide separate macros
16636 for ARCH64 which has %ccr register.
16637 * config/sparc/sparc.md (return_losum_si, return_losum_di): New
16639 * config/sparc/sparc.c (eligible_for_epilogue_delay): For the return
16640 insn accept into delay slot any insn which does not use %[ol]
16641 registers. Accept some LO_SUM and shift left by 1 for the normal
16643 (output_function_epilogue): Likewise.
16644 (epilogue_renumber): Added argument which inhibits any renumbering
16645 and just tests if the rtx does not use any %[ol] registers.
16646 (output_return): Reflect above change.
16648 1999-11-30 Jakub Jelinek <jakub@redhat.com>
16650 * config/sparc/sparc.c (sparc_va_arg): Fix sparc64 va_arg
16651 aggregate passing for sizes <= 16 bytes.
16653 1999-11-30 Bernd Schmidt <bernds@cygnus.co.uk>
16655 * cse.c (FIXED_REGNO_P): Delete tests for OVERLAPPING_REGNO_P.
16656 * global.c (global_alloc): Delete [OVERLAPPING_REGNO_P] code.
16657 * reload.c (find_dummy_reload): Likewise.
16658 (find_equiv_reg): Likewise; also for INSN_CLOBBERS_REGNO_P.
16659 * reload1.c (reload_as_needed): Likewise.
16660 * stupid.c (stupid_find_reg): Likewise.
16661 * tm.texi (Obsolete Register Macros): Delete section.
16662 * gmicro.h: Remove all traces of the two macros.
16663 * i386.h: Likewise.
16664 * m88k.h: Likewise.
16665 * mips.h: Likewise.
16667 1999-11-30 Brendan Kehoe <brendan@cygnus.com>
16669 * sparc.h (MASK_FASTER_STRUCTS, TARGET_FASTER_STRUCTS): Define.
16670 (TARGET_SWITCHES): Add -mfaster-structs/-mno-faster-structs flags.
16671 (ROUND_TYPE_ALIGN): Use better value if -mfaster-structs.
16672 * sparc.md (sparclite86x_branch, sparclite86x_shift): New function
16673 units for the sparclite86x chip.
16674 (flush): Revert October 14th change; add SImode specifically.
16675 (flushdi): Copy of flush, but DImode, to avoid genrecog warnings.
16676 * invoke.texi: Document it.
16678 Tue Nov 30 14:58:14 1999 Nick Clifton <nickc@cygnus.com>
16680 * config/mn10200/mn10200.h (PREDICATE_CODES): Add
16681 psimode_truncation_operand.
16683 * config/mn10200/mn10200.c (psimode_truncation_operand): New
16684 function. Return true if the operand is either a MEM valid
16685 for a PSImode address or not a MEM at all.
16687 * config/mn10200/mn10200.md (truncsipsi2): Use
16688 psimode_truncation_operand.
16690 1999-11-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16692 * flow.c (flow_nodes_print, flow_loops_cfg_dump): New functions.
16693 (flow_loop_nested_p, flow_loops_dump, flow_loops_free): Likewise.
16694 (flow_loop_exits_find, flow_loop_nodes_find): Likewise.
16695 (flow_depth_first_order_compute, flow_loop_pre_header_find): Likewise.
16696 (flow_loop_tree_node_add, flow_loops_tree_build): Likewise.
16697 (flow_loop_level_compute, low_loops_level_compute): Likewise.
16698 (flow_loops_find, flow_loop_outside_edge_p): Likewise.
16699 * basic-block.h: Protect from multiple inclusion.
16700 (flow_loops_find, flow_loops_free, flow_loop_dump): Add protoypes.
16701 (struct loops, struct loop): Define structures.
16702 * sbitmap.c (sbitmap_a_subset_b_p): New function.
16703 * sbitmap.h: Protect from multiple inclusion.
16704 (sbitmap_a_subset_b_p): Add prototype.
16705 * Makefile.in (LOOP_H): New macro.
16706 (stmt.o, integrate.o, loop.o, unroll.o): Replace loop.h with LOOP_H.
16708 Tue Nov 30 01:34:47 1999 Philippe De Muyter <phdm@macqel.be>
16710 * cppinit.c (CAT): The argument list of this macro may not contain
16713 1999-11-29 David S. Miller <davem@redhat.com>
16715 Move quantity tables and register equivalence chains into
16716 per-qty and per-register structure arrays respectively.
16717 * cse.c (qty_first_reg, qty_last_reg, qty_mode, qty_const,
16718 qty_const_insn, qty_comparison_code, qty_comparison_const,
16719 qty_comparison_qty): Delete, replace with...
16720 (qty_table): this structure table.
16721 (reg_next_eqv, reg_prev_eqv): Delete, replace with...
16722 (reg_eqv_table): this structure table.
16723 (make_new_qty): Add argument MODE. Caller updated.
16724 Update to use qty_table and reg_eqv_table.
16725 (make_regs_eqv, delete_reg_equiv, insert_regs,
16726 insert, exp_equiv_p, cse_rtx_varies_p, canon_reg,
16727 fold_rtx, equiv_constant, record_jump_cond, cse_insn,
16728 cse_process_notes, cse_main, cse_basic_block): Likewise.
16730 Mon Nov 29 16:56:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16732 * fold-const.c (extract_muldiv, case {MIN,MAX}_EXPR): Reverse
16733 operation if C is negative.
16734 (extract_muldiv, case SAVE_EXPR): Supresss if arg has side effects.
16735 (extract_muldiv, case {PLUS,MINUS}_EXPR): Don't apply distributive
16736 law for some divisions if constant is negative and change other
16737 divisions to the opposite rounding.
16739 * expr.c (store_constructor_field): If bit position is not multiple
16740 of alignment of TARGET's mode, use BLKmode.
16742 * expr.c (expand_expr_unaligned): Add more code from full case
16743 that is needed when OP0 is in a register.
16745 Mon Nov 29 18:09:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16747 * dwarfout.c (field_byte_offset): Size can be zero if there was
16750 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
16752 * fold-const.c (split_tree): Delete unused vars ORIG_IN and TYPE.
16753 (associate_trees): Delete unused var TEM.
16754 (extract_muldiv): Delete unused var CANCEL_P.
16756 * fold-const.c [TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT]
16757 (target_isinf, target_isnan, target_negative): Add return types to
16758 function definitions.
16760 1999-11-29 Bruce Korb <autogen@linuxbox.com>
16762 * fixinc/fixincl.c(process): don't skip GLIBC files any more.
16763 * fixinc/hackshell.tpl: ditto
16764 * fixinc/fixtests.c(double_slash_test): more C++ header testing
16765 * fixinc/inclhack.def(AAB_fd_zero_glibc*): corrected spelling of mach
16767 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
16769 * reload.c (push_reload): When looking for a register to put into
16770 reg_rtx, make sure all hard regs in a multi-reg register are in the
16771 right class and nonfixed.
16773 * haifa-sched.c (reg_last_uses, reg_last_sets, reg_last_clobbers,
16774 pending_read_insns, pending_write_insns, pending_read_mems,
16775 pending_write_mems, pending_list_length, last_pending_memory_flush,
16776 last_function_call, sched_before_next_call): Move static variables
16778 (bb_ prefixed versions): Replace with single array bb_deps.
16779 (struct deps): New structure.
16780 (add_insn_mem_dependence, flush_pending_lists, sched_analyze_1,
16781 sched_analyze_2, sched_analyze_insn, sched_analyze): Accept new
16782 argument of type "struct deps *"; use that instead of global
16783 variables. All callers changed.
16784 (init_rgn_data_dependencies): Delete function.
16785 (init_rtx_vector): Delete function.
16786 (init_deps): New function.
16788 (free_pending_lists): Simplify, we always use the bb_deps array even
16789 if only one basic block.
16790 (compute_block_backward_dependences): Likewise.
16791 (schedule_region): Likewise.
16793 (propagate_deps): New function, broken out of
16794 compute_block_backward_dependences.
16795 (compute_block_backward_dependences): Use it.
16797 * alpha.md: Delete useless patterns that tried to work around
16798 register elimination problems.
16800 * unroll.c (loop_iterations): Don't abort if iteration variable
16803 From Joern Rennecke:
16804 * reload1.c (reloads_conflict): Reverse test comparing operand
16805 numbers when testing for conflict between output/outaddr reloads.
16807 1999-11-29 David S. Miller <davem@redhat.com>
16809 * config/sparc/sparc.c (init_cumulative_args): Fix type of third
16811 * config/sparc/sparc-protos.h: Update proto, move into RTX_CODE.
16813 1999-11-28 Robert Lipe <robertl@cygnus.com>
16815 * i386/sco5.h (FINI_SECTION_ASM_OP_COFF): Move destructor fn
16816 table from .fini into .dtor.
16818 1999-11-28 Anthony Green <green@cygnus.com>
16820 * tree.h (struct tree_decl): Add malloc_flag.
16821 (DECL_IS_MALLOC): Define.
16822 * c-common.c (attrs): Add A_MALLOC attribute.
16823 (init_attributes): Add this attribute to the table.
16824 (decl_attributes): Handle malloc attribute.
16825 * calls.c (special_function_p): Check for the malloc attribute.
16826 * extend.texi (Function Attributes): Document malloc attribute.
16828 Sun Nov 28 13:21:00 1999 Jeffrey A Law (law@cygnus.com)
16830 * pa.md (reload shift-add patterns): Remove.
16832 1999-11-28 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16834 * reorg.c (dbr_schedule) Print more statistics. Corrected
16835 problem when printing info when 3 delay slots are filled.
16837 1999-11-28 Jakub Jelinek <jakub@redhat.com>
16839 * combine.c (setup_incoming_promotions): Pass an outgoing
16840 regno to FUNCTION_ARG_REGNO_P which it expects.
16842 1999-11-28 Andreas Jaeger <aj@suse.de>
16844 * mips/linux.h (CPP_PREDEFINES): Undefine before redefining.
16846 Sun Nov 28 00:48:15 1999 Philippe De Muyter <phdm@macqel.be>
16848 * cccp.c (do_include): Avoid initialization of automatic variable.
16850 * integrate.c (mark_stores): Function definition made void, to match
16851 previous declaration.
16852 * regclass.c (dump_regclass): Ditto.
16853 * Makefile.in (WARN_CFLAGS): Macro augmented by `-Wtraditional'.
16855 Sat Nov 27 08:38:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16857 * expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is
16858 known to be multiple of divisor.
16860 * expr.c (store_constructor): Don't clobber TARGET if CLEARED.
16862 * combine.c (try_combine): Add code to try to merge a set of a
16863 two-word pseudo to a constant with a setting of one of those words
16866 * fold-const.c (negate_expr, associate_trees, extract_muldiv): New.
16867 (split_tree): Completely rework to make more general.
16868 (make_range, fold): Call negate_expr.
16869 (fold, case NEGATE_EXPR): Simplify -(a-b) is -ffast-math.
16870 (fold, associate): Call new split_tree and associate_trees.
16871 (fold, case MULT_EXPR, case *_{DIV,MOD}_EXPR): Call extract_muldiv.
16873 1999-11-26 Bernd Schmidt <bernds@cygnus.co.uk>
16875 * loop.c (try_copy_prop): Avoid GNU C extension.
16877 1999-11-25 Mark Mitchell <mark@codesourcery.com>
16879 * except.c (init_eh_for_function): Still zero eh_return_context,
16880 eh_return_stack_adjust, and eh_return_handler.
16882 * except.h (eh_status): Adjust documentation for x_protect_list.
16883 (begin_protect_partials): New function.
16884 * except.c (enqueue_eh_entry): Fix formatting.
16885 (get_first_handler): Add consistency check.
16886 (add_partial_entry): Adjust usage of protect_list.
16887 (emit_cleanup_handler): Save and restore ehqueue.
16888 (expand_start_all_catch): Add comment.
16889 (begin_protect_partials): New function.
16890 (end_protect_partials): Adjust usage of protect_list.
16891 (init_eh_for_function): Use xcalloc.
16893 1999-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16895 * c-common.c (check_format_info): Don't call a variadic function
16896 with a non-literal format string.
16898 * c-decl.c (grokdeclarator, start_struct, finish_struct): Likewise.
16900 * c-typeck.c (build_component_ref, build_unary_op, lvalue_or_else,
16901 pedantic_lvalue_warning, error_init, pedwarn_init, warning_init):
16904 * cccp.c (check_macro_name, do_xifdef, vwarning_with_line):
16907 * collect2.c (collect_wait): Likewise.
16909 * dbxout.c (dbxout_type): Likewise.
16911 * gcc.c (do_spec_1): Likewise.
16913 * genemit.c (gen_insn, gen_expand): Likewise.
16915 * genrecog.c (write_switch, write_subroutine): Likewise.
16917 * mips-tfile.c (catch_signal, botch): Likewise.
16919 * print-rtl.c (print_rtx): Likewise.
16921 * toplev.c (default_print_error_function, report_error_function,
16922 _fatal_insn): Likewise.
16924 1999-11-25 Mark Mitchell <mark@codesourcery.com>
16926 * tree.c (unsave_expr_now): Handle NULL_TREE as input.
16928 Wed Nov 24 17:08:09 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16930 * reg-stack.c (subst_stack_regs_pat): Swap operands in commutative
16931 operations when needed.
16932 * i386.md (fop_?f_comm): New.
16933 (fop_?f_1): Do not accept commutative operands.
16935 1999-11-25 Andreas Jaeger <aj@suse.de>
16937 * config/mips/mips.md (casesi_internal): Add missing brace.
16939 1999-11-25 Jason Merrill <jason@casey.cygnus.com>
16941 * dwarf2out.c (pend_type, output_pending_types_for_scope): Lose.
16942 (splice_child_die): Handle moving a child DIE from the declaration
16943 DIE of a class to its specification.
16944 (gen_struct_or_union_type_die): Use 'complete' consistently.
16945 (gen_decl_die): Generate the virtual context DIE first.
16946 Use decl_ultimate_origin instead of DECL_ABSTRACT_ORIGIN.
16948 1999-11-24 Gavin Romig-Koch <gavin@cygnus.com>
16950 * config/mips/mips.md (call_value_multiple_interanal1): New.
16952 1999-11-24 Jason Merrill <jason@casey.cygnus.com>
16954 * dwarf2out.c (free_AT, free_die): New fns.
16955 (remove_children): Call them.
16956 (output_line_info): Disable removal of duplicate notes.
16958 Generate minimal debug info for types with TYPE_DECL_SUPPRESS_INFO set.
16959 * dwarf2out.c (gen_struct_or_union_type_die): TYPE_DECL_SUPPRESS_INFO
16960 means pretend the type isn't defined.
16961 Don't defer emitting types.
16962 (gen_type_die_for_member): New fn.
16963 (gen_decl_die): Call it.
16964 (splice_child_die): New fn.
16965 (gen_member_die): Call it rather than generate duplicate dies.
16967 Defer emitting information for the abstract instance of an inline
16968 until we either inline it or emit an out-of-line copy.
16969 * dwarf2out.c (decl_ultimate_origin): Ignore DECL_ABSTRACT_ORIGIN
16970 from output_inline_function if DECL_ABSTRACT is also set.
16971 (block_ultimate_origin): Likewise.
16972 (gen_abstract_function): New fn.
16973 (gen_decl_die, gen_inlined_subroutine_die): Call it.
16974 (gen_subprogram_die): An abstract instance is not a declaration
16975 just because it doesn't match current_function_decl. Don't abort
16976 because DECL_DEFER_OUTPUT isn't set. Do abort if a declaration
16977 has an abstract origin.
16978 * toplev.c (rest_of_compilation): Don't emit dwarf2 info for the
16979 abstract instance here.
16981 Wed Nov 24 18:39:18 1999 Andrew Haley <aph@cygnus.com>
16983 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case
16984 where we need to reload fpul from a system register.
16986 1999-11-24 Andreas Jaeger <aj@suse.de>
16988 * config/mips/linux.h (CPP_PREDEFINES): Added.
16989 (LINK_SPEC): Remove -Y since this is only needed on sparc.
16991 1999-11-24 Andreas Jaeger <aj@suse.de>
16993 * config/mips/linux.h (TARGET_VERSION): Added.
16994 (HANDLE_SYSV_PRAGMA): Added.
16995 (DEFAULT_VTABLE_THUNKS): Added.
16997 Wed Nov 24 14:12:15 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16999 * local-alloc.c (qty): New structure and static variable.
17000 (qty_phys_reg): Remove, all references changed to qty.
17001 (qty_n_refs): Likewise.
17002 (qty_min_class): Likewise.
17003 (qty_birth): Likewise.
17004 (qty_death): Likewise.
17005 (qty_size): Likewise.
17006 (qty_mode): Likewise.
17007 (qty_n_calls_crossed): Likewise.
17008 (qty_alternate_class): Likewise.
17009 (qty_changes_size): Likewise.
17010 (qty_first_reg): Likewise.
17011 (alloc_qty): Rename variable QTY to QTYNO.
17012 (finf_free_reg): Likewise.
17013 (local_alloc): Allocate qty, do not allocate the removed variables.
17015 Wed Nov 24 17:26:05 1999 Geoffrey Keating <geoffk@cygnus.com>
17017 * config/mips/mips.h (ASM_SPEC): Don't pass -G to the assembler
17018 when -membedded-pic is passed.
17020 * config/mips/mips.md (casesi): Handle 64-bit case too.
17021 (casesi_internal_di): New insn.
17023 * config/mips/mips.c (embedded_pic_offset): Always make the
17024 embedded-pic subtractions relative to the name of the current
17025 function by use of the magic string "..CURRENT_FUNCTION".
17026 * config/mips/mips.h (ASM_OUTPUT_LABELREF): Make the magic happen.
17028 1999-11-24 Geoffrey Keating <geoffk@cygnus.com>
17030 * config/mips/mips.md (div_trap_normal): Don't ask for the REGNO
17031 of (const_int 0), when what we really care about is
17032 whether it's a zero constant anyway.
17033 (div_trap_mips16): Likewise.
17035 1999-11-23 Mark Mitchell <mark@codesourcery.com>
17037 * loop.c (loop_optimize): Always find_loop_tree_blocks and
17038 unroll_block_trees when generating debuggable code.
17040 * tree.h (unsave_expr_1): New function.
17041 (lang_unsave): New variable.
17042 (get_callee_fndecl): New function.
17043 * tree.c (unsave_expr_now_r): New function.
17044 (lang_unsave): Define.
17045 (unsave_expr_1): Likewise.
17046 (unsave_expr_now_r): Split out from unsave_expr_now.
17047 (unsave_expr_now): Call lang_unsave if it is non-NULL. Otherwise,
17048 call unsave_expr_now_r.
17049 (get_callee_fndecl): Define.
17051 * Makefile.in (gencheck): Don't depend on lang_tree_files.
17052 (gencheck.o): Do depend on lang_tree_files.
17054 * integrate.h (copy_decl_for_inlining): New declaration.
17055 * integrate.c (copy_and_set_decl_abstract_origin): Remove.
17056 (copy_decl_for_inlining): New function.
17057 (integrate_parm_decls): Use it.
17058 (integrate_decl_tree): Likewise.
17060 1999-11-23 Gavin Romig-Koch <gavin@cygnus.com>
17062 * config/mips/mips.h (ISA_HAS_FP4,ISA_HAS_CONDMOVE,ISA_HAS_8CC): Split
17063 the second two from the first.
17064 (CONDITIONAL_REGISTER_USAGE): Use ISA_HAS_8CC rather than ISA_HAS_FP4.
17065 * config/mips/mips.md (movcc,reload_incc,reload_outcc,
17066 conditional move): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
17068 * config/mips/mips.c (mips_move_1word,gen_conditional_branch,
17069 override_options): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
17072 Tue Nov 23 11:15:04 1999 Jeffrey A Law (law@cygnus.com)
17074 * pa.md (call_internal_symref, call_value_internal_symref): No mode
17075 needed on the address operand.
17076 * pa.c (call_operand_address): Check for the correct mode.
17078 1999-11-23 Bernd Schmidt <bernds@cygnus.co.uk>
17080 * loop.c: Include "basic-block.h".
17081 (try_copy_prop, replace_loop_reg): New functions.
17082 (load_mems): Detect registers that just hold copies of the hoisted
17083 mem, and call try_copy_prop to eliminate them.
17084 * Makefile.in (loop.o): Update dependencies.
17086 Tue Nov 23 01:03:29 1999 Hans-Peter Nilsson <hp@axis.com>
17088 * Makefile.in (gencheck.o): Depend on gencheck.h.
17089 (insn-emit.o): Depend on flags.h, hard-reg-set.h and resource.h.
17090 (insn-peep.o): Depend on except.h and function.h.
17091 (insn-attrtab.o): Depend on RECOG_H.
17092 (insn-output.o): Depend on toplev.h and flags.h.
17093 (gengenrtl.o): Depend on real.h.
17094 (gen-protos.o): Depend on cpplib.h and cpphash.h.
17095 Unify all dependencies to be on RECOG_H rather than recog.h.
17097 Tue Nov 23 00:57:10 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17099 From Casper H.S. Dik on comp.unix.solaris, 23 Oct 1998:
17100 * configure.in: Try building a bi-arch 32/64-bit compiler on
17101 sparc-*-solaris2.7 and higher.
17102 * configure: Rebuild.
17104 Mon Nov 22 23:09:44 1999 David O'Brien <obrien@FreeBSD.org>
17106 * config/freebsd.h: New, FreeBSD architecture independent file.
17107 * config/i386/freebsd-elf.h: removed FreeBSD architecturally
17108 independent pieces.
17109 * config/i386/freebsd.h: include i386/perform.h via tm.h rather than
17110 directly by i386/freebsd.h.
17111 * configure.in (*-*-freebsdelf): Include new FreeBSD architecturally
17112 independent configuration file.
17113 (*-*-freebsdelf): Include i386/perform.h via tm.h rather than
17114 directly by i386/freebsd.h.
17115 * configure: Rebuilt.
17117 * xm-i386.h: Define `__i386__' if not defined, rather than `i386'
17118 which is in the user's namespace.
17119 * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
17120 `i386' which is not in our namespace.
17122 Mon Nov 22 22:58:01 1999 "R. Kelley Cook" <KelleyCook@attglobal.net>
17124 * invoke.texi (ARM Options): Add in -mno-alignment-traps
17126 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
17128 * dwarf2out.c (die_struct): Remove die_attr_last and die_child_last.
17129 (add_dwarf_attr, add_child_die): Just push onto the front.
17130 (reverse_die_lists): New fn.
17131 (add_sibling_attributes): Use it.
17132 (push_decl_scope): Reorganize.
17133 (add_name_and_src_coords_attributes): Don't set file and line for
17134 an artificial decl.
17135 (gen_subprogram_die): An artificial function doesn't need to match
17137 (gen_compile_unit_die): Return the generated die. Only add
17138 AT_comp_dir if the filename is relative.
17139 (remove_AT): Simplify loop. Also free string values.
17140 (output_die): A DIE ref can't be null.
17141 (output_value_format, value_format): Take a dw_attr_ref.
17142 (dwarf_last_decl, is_extern_subr_die, sibling_offset): Remove.
17143 (AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
17144 AT_addr, AT_lbl): New fns.
17145 (various): Use them.
17146 (various): Constify.
17148 Mon Nov 22 23:53:50 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17150 * combine.c (combine_simplify_rtx): When handling a SUBREG,
17151 take SUBREG_WORD into account.
17152 (if_then_else_cond): Likewise.
17154 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
17156 * gmon.c, i386/gmon-sol2.c, sparc/gmon-sol2.c: Remove advertising
17157 clause from BSD license, pursuant with
17159 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
17161 1999-11-22 Bernd Schmidt <bernds@cygnus.co.uk>
17163 * loop.c (load_mems): Reformat slightly.
17164 * basic-block.h (regset_head): New typedef.
17165 (INIT_REG_SET): New macro.
17167 1999-11-22 Bruce Korb <autogen@linuxbox.com
17169 * fixinc/mkfisinc.sh(i?86-*-linux): disable script, run fixincl exe
17170 (mips-dec-bsd*): non-functional code
17171 (alpha*-*-linux-gnu*): redundant, duplicated by "*-*-linux-gnu*"
17173 * fixinc/inclhack.def(AAB_fd_zero_glibc_*):
17174 added three replacement fixes
17175 (no_double_slash): removed comments that are not (any longer) pertinent
17176 (bad_lval): this fix currently runs against many files.
17177 The comment seems to indicate that we should select for files
17178 containing 'pragma extern_prefix'.
17180 * fixinc/fixinc.x86-linux-gnu: deleted
17181 * fixinc/inclhack.sh: regen
17182 * fixinc/fixincl.x: regen
17183 * fixinc/fixincl.sh: regen
17185 Fri Nov 12 14:08:40 1999 Andrew Haley <aph@cygnus.com>
17187 * emit-rtl.c (gen_sequence): Only return the pattern of an insn if
17188 its code is INSN and it has no notes.
17190 1999-11-22 Andrew Haley <aph@cygnus.com>
17192 * varasm.c (function_defined): Remove.
17193 (make_function_rtl): Don't set function_defined.
17194 (make_decl_rtl): Remove global register warning.
17195 * regclass.c (no_global_reg_vars): New variable.
17196 (globalize_reg): Warn if function has already been defined.
17197 (regclass_init): Set no_global_reg_vars.
17199 Mon Nov 22 14:42:22 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
17201 * regclass.c (reg_pref): New structure and static variable
17202 (prefclass): Delete.
17203 (altclass): Delete.
17204 (all uses of prefclass and altclass): Use reg_pref instead.
17206 1999-11-21 Nick Clifton <nickc@cygnus.com>
17208 * invoke.texi (ARM Options): Replace -mshort-load-bytes with
17210 (arm.h): Replace -mshort-load-bytes with -malignment-traps.
17211 (arm.c): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
17212 (arm.md): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
17214 Sun Nov 21 17:11:13 1999 Geoffrey Keating <geoffk@cygnus.com>
17216 * varasm.c (output_constructor): Solve problem with long long
17217 bitfields, even on BYTES_BIG_ENDIAN machines (testcase 991118-1).
17219 Fri Nov 19 05:48:45 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
17221 * global.c (allocno): New structure and static variable.
17222 (allocno_reg): Remove, all references replaced by allocno.
17223 (allocno_size): Likewise.
17224 (hard_reg_conflicts): Likewise.
17225 (hard_reg_preferences): Likewise.
17226 (hard_reg_copy_preferences): Likewise.
17227 (hard_reg_full_preferences): Likewise.
17228 (regs_someone_prefers): Likewise.
17229 (allocno_calls_crossed): Likewise.
17230 (allocno_n_refs): Likewise.
17231 (allocno_live_length): Likewise.
17232 (find_reg): Rename ALLOCNO to NUM.
17234 * regclass.c (may_move_in_cost): Rename from may_move_cost, all
17235 references updated.
17236 (may_move_out_cost): New variable.
17237 (init_reg_sets_1): Initialize may_move_out_cost.
17238 (record_reg_classes): Use may_move_out_cost.
17240 * regclass.c (dump_regclass): New function.
17241 (regclass): New parameter DUMP, call DUMP_REGCLASS.
17242 * toplev.c (rest_of_compilation): Open lreg dump file before regclass,
17243 pass rtl_dump_file to regclass.
17244 * rtl.h (regclass): Update prototype.
17246 Fri Nov 19 06:32:19 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
17248 * i386.md (neg, not and abs patterns): Revmap to use
17249 ix86_expand_unary_operator and ix86_unary_operator_ok.
17250 (add?f and sub?f expanders): Force operand 1 to register.
17251 * i386.c (ix86_expand_unary_operator): Rewrite.
17252 (ix86_unary_operator_ok): Ensure that memory operands
17254 (ix86_binary_operator_ok): Do not allow operand 1 to
17255 come into memory and operand 0 not.
17256 (ix86_expand_binary_operator): Ensure that
17257 src1 is not non-matching memory.
17259 * i386.md (negs?2): Rewrite to expanders, new patterns and splitters
17260 to support integer registers and memory.
17261 (abss?2_integer): Likewise.
17263 * i386.h (enum reg_class): Add FLOAT_INT_REGS.
17264 (REG_CLASS_NAMES): Likewise.
17265 (REG_CLASS_CONTENTS): Define FLOAT_INT_REGS as union of FLOAT_REGS
17267 * i386.md (pushsf): Do not preferre FLOAT_REGS over GENERAL_REGS.
17268 (movsf): Likewise; unify 4th and 5th alternative.
17269 (pushdf): Likewise.
17270 (movdf_1): Likewise; rename to movdf_integer.
17271 (pushxf): Likewise; rename to pushxf_integer; fix output template;
17272 remove redundant splitter.
17273 (movxf_1): Likewise; rename to movxf_integer; fix splitter's condition.
17274 (movdf_nointeger): New.
17275 (movxf_nointeger): New.
17276 (pushxf_nointeger): New.
17278 * i386.md (extend?f?f): Split to expander and pattern, refuse two
17279 memory operands in patterns.
17280 (fop*): Refuse two memory operands.
17282 * i386.md (ashrsi3_31): Allow cltd when optimizing for size even
17283 on !TARGET_USE_CLTD CPUs.
17285 Fri Nov 19 10:41:15 GMT 1999 Nathan Sidwell <nathan@acm.org>
17287 * extend.texi: Document C++ restricted pointers and references.
17289 1999-11-19 Bernd Schmidt <bernds@cygnus.co.uk>
17291 * cse.c (addr_affects_sp): No longer conditional on AUTO_INC_DEC.
17292 (invalidate_skipped_set): Call it unconditionally.
17293 (cse_set_around_loop): Likewise.
17295 Thu Nov 18 17:29:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
17297 * rtl.texi (mem): Add documentation for alias-set argument
17300 Fri Nov 18 13:39:22 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
17302 * i386.h (struct_processor_costs): New fields int_load, int_store,
17303 fp_move, fp_load and fp_store
17304 (REGISTER_MOVE_COST): Fix comment, calculate exactly the cost of
17306 (MEMORY_MOVE_COST): New macro.
17307 * i386.c (386_cost): Define new fields.
17308 (i486_cost): Likewise.
17309 (pentium_cost): Likewise.
17310 (pentiumpro_cost): Likewise.
17311 (k6_cost): Likewise.
17313 Fri Nov 19 11:11:55 1999 Greg McGary <gkm@gnu.org>
17314 Geoffrey Keating <geoffk@cygnus.com>
17316 * config/m68k/m68kelf.h: Suppress '/* within comment' warning.
17318 * config/m68k/m68k.h (MASK_PCREL): Don't use same value as
17321 * config/m68k/m68k.h (MASK_NO_STRICT_ALIGNMENT): New macro.
17322 (TARGET_STRICT_ALIGNMENT): New macro.
17323 (TARGET_SWITCHES): Add "strict-align" and "no-strict-align".
17324 (STRICT_ALIGNMENT): Depend on TARGET_STRICT_ALIGNMENT.
17325 * invoke.texi (M680x0 Options): Document -mstrict-align.
17327 Thu Nov 18 11:10:03 1999 Jan Hubicka <hubicka@freesoft.cz>
17328 Richard Henderson <rth@cygnus.com>
17330 * i386-protos.h (split_xf, ix86_split_movdi): Remove.
17331 (ix86_split_long_move): Declare.
17332 * i386.c (split_xf, ix86_split_movdi): Remove.
17333 (ix86_split_to_parts, ix86_split_long_move): New.
17334 * i386.md (dimode move splitters): Use ix86_split_long_move.
17335 (dfmode move splitters): Likewise.
17336 (xfmode move splitters): Likewise.
17337 (movsf_1): Allow F->r.
17338 (movdf_1, movxf_1): Allow F->ro.
17340 1999-11-17 Mark Mitchell <mark@codesourcery.com>
17342 * except.h (struct eh_entry): Add goto_entry_p.
17343 (eh_region_from_symbol): Remove prototype.
17344 * except.c (find_func_region_from_symbol): New function.
17345 (emit_cleanup_handler): Likewise.
17346 (eh_region_from_symbol): Make it static.
17347 (add_new_handler): Verify the argument.
17348 (find_func_region): Update comment.
17349 (expand_eh_region_end): Expand handlers here, rater than waiting
17350 until expand_leftover_cleanups or start_all_catch.
17351 (expand_leftover_cleanups): Don't expand here.
17352 (expand_start_all_catch): Or here.
17353 (expand_rethrow): Check the return value from find_func_region.
17354 * function.c (expand_function_end): Emit the catch_clauses.
17356 1999-11-18 Gavin Romig-Koch <gavin@cygnus.com>
17358 * integrate.c (expand_inline_function): Add necessary check for NULL.
17360 1999-11-18 Nick Clifton <nickc@cygnus.com>
17362 * toplev.c (main): Correctly detect an unrecognised option.
17364 * cppinit.c (cpp_handle_option): Do not claim to have consumed
17365 a -f option if it has not been recognised.
17367 Thu Nov 18 00:59:11 1999 Michael Gschwind <mikeg@alagoas.watson.ibm.com>
17369 * basic-block.h (update_life_extent): Remove trailing comma on
17370 enumeration type list.
17372 1999-11-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17374 * varasm.c (output_constructor) Solved problem with long long
17375 bitfields. Corrected calculating this_time and shift. Also
17376 corrected calculating mask when BITS_PER_UNIT == 32 (c4x).
17378 Wed Nov 17 23:46:14 1999 Jeffrey A Law (law@cygnus.com)
17380 * flow.c (split_edge): Take looping structure into account when
17381 determining where to put the new block note.
17383 Wed Nov 17 20:42:43 1999 Jeff Holcomb <jeffh@cygnus.com>
17385 * Makefile.in (ggc-none.o): Provide host specific version if
17388 Wed Nov 17 16:51:23 1999 Richard Henderson <rth@cygnus.com>
17390 * cse.c (delete_trivially_dead_insns): Identify no-op insns
17391 containing subregs too.
17393 Wed Nov 17 17:39:48 MST 1999 Diego Novillo <dnovillo@cygnus.com>
17395 * invoke.texi: Add documentation for -muninit-const-in-rodata.
17396 * config/mips/mips.h (MASK_UNINIT_CONST_IN_RODATA): Define.
17397 (TARGET_UNINIT_CONST_IN_RODATA): Define.
17398 (text_section): Add switches -munint-const-in-rodata and
17399 -mno-uninit-const-in-rodata.
17400 (ASM_OUTPUT_COMMON): Remove.
17401 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define. Check if uninitialized
17402 const objects should be placed in read-only data. Otherwise declare
17405 Wed Nov 17 16:38:32 1999 Richard Henderson <rth@cygnus.com>
17407 * jump.c (jump_optimize_1): Revert last change.
17409 Wed Nov 17 15:18:30 1999 Richard Henderson <rth@cygnus.com>
17411 * jump.c (jump_optimize_1): Don't try to duplicate the loop exit
17412 test if optimizing for size.
17414 1999-11-17 Mark Mitchell <mark@codesourcery.com>
17416 * Makefile.in (toplev.o): Depend on except.h.
17417 (dwarf2out.o,loop.o,flow.o,haifa-sched.o): Likewise.
17419 Mon Nov 15 22:45:39 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
17421 * i386.md (divmodsi4): Rewrite to expander.
17422 (*divmodsi4_nocltd): New.
17423 (*divmodsi4_cltd): New.
17424 (divmodsi4 splitter): Handle the case when input comes in edx.
17425 (udivmodhi4): Do not use constraints in exander.
17426 (ashrsi3_31): Conditionize by TARGET_USE_CLTD.
17428 1999-11-17 Jason Merrill <jason@yorick.cygnus.com>
17430 * dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1
17431 for the common case.
17433 1999-11-16 Jakub Jelinek <jakub@redhat.com>
17435 * explow.c (hard_function_value): Add outgoing argument.
17436 * expr.h (hard_function_value): Declare it.
17437 * calls.c (expand_call, emit_library_call_value): Update callers.
17438 * function.c (aggregate_value_p): Ditto.
17439 (diddle_return_value): Must look at the outgoing registers
17440 on archs with register windows.
17442 Mon Nov 15 20:46:45 1999 Richard Henderson <rth@cygnus.com>
17444 * alpha.c (alpha_build_va_list): Use make_lang_type and
17445 initialize TYPE_NAME for the va_list record.
17447 * flow.c (calculate_global_regs_live): Zero bb->aux to begin.
17449 * ggc-common.c (ggc_print_statistics): Cast size_t to unsigned long
17451 * ggc.h (struct ggc_statistics): Rearrange elements for better
17452 packing on 64-bit hosts.
17453 * lcm.c (compute_laterin): Store a size_t not an int in bb->aux.
17454 (compute_nearerout): Likewise.
17456 Tue Nov 16 14:37:52 1999 Geoffrey Keating <geoffk@cygnus.com>
17458 * config/rs6000/rs6000.c (first_reg_to_save): Save
17459 PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.
17461 1999-11-15 Jason Merrill <jason@casey.cygnus.com>
17463 * dwarf2out.c (scope_die_for): Don't rely on the decl_scope_table
17464 notion of nesting to find the DIE for a type or function.
17465 DIEs can go in limbo even if we got a context_die.
17466 (push_decl_scope): Our context doesn't need to be in decl_scope_table.
17467 (gen_struct_or_union_type_die): Don't use TREE_PERMANENT to test
17469 (gen_decl_die): Ignore NAMESPACE_DECLs for now.
17470 (gen_type_die): Writing out the context doesn't cause member class
17471 template instantiations to be written out as well.
17473 Mon Nov 15 15:33:18 1999 Richard Henderson <rth@cygnus.com>
17475 * rs6000.h (ASM_OUTPUT_DEF): New.
17476 Based on proposed addition from David Edelsohn.
17478 1999-11-15 Robert Lipe <RobertLipe@usa.net>
17479 Bruce Korb <autogen@linuxbox.com>
17481 * fixinc/inclhack.def
17482 (AAB_svr4_replace_byteorder): added. Takes advantage of GCC features
17483 (unixware7_byteorder_fix): added. Removes conflicts for new defs
17485 (svr5_mach_defines): added. Like svr4_mach_defines, with new syntax
17486 (svr4_endian): enabled with SVR5
17487 (svr4_mkdev): simplified syntax and enabled with SVR5
17489 Sun Nov 14 18:49:37 1999 David O'Brien <obrien@FreeBSD.org>
17491 * configure.in: Handle libgcc2 threads support on FreeBSD platforms.
17492 * configure: Rebuilt.
17493 * config/t-freebsd-thread: New file.
17495 Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com)
17497 * i386.c (ix86_decompose_address): Verify the base is a REG
17498 before trying to examine its register number.
17500 * basic-block.h: Remove all #defines and prototypes related to
17502 (free_bb_mem, compute_preds_succs): Remove prototype.
17503 * rtl.h (free_bb_mem): Remove prototype.
17504 * flow.c (alloc_int_list_node); Remove function.
17505 (add_inst_list_node, free_int_list, add_pred_succ): Likewise.
17506 (compute_preds_succs, free_bb_mem): Likewise.
17507 * gcse.c (gcse_main): Do not call free_bb_mem anymore.
17508 * toplev.c (rest_of_compilation): Likewise.
17509 * haifa-sched.c (build_control_flow): Use flow generated edge
17510 list to build the haifa specific edge list.
17511 (find_rgns): Use new CFG data structures instead of pred/succ lists.
17512 (schedule_insns): Do not build pred/succ lists anymore. Instead
17513 build the edge table.
17515 * basic-block.h (dump_bb_data): Remove declaration.
17516 * flow.c (dump_bb_data): Remove function.
17517 * sbitmap.c (sbitmap_intersect_of_predsucc): Delete function.
17518 (sbitmap_union_of_predsucc): Likewise.
17520 * gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
17521 argument. All callers changed.
17522 (delete_null_pointer_checks_1): No longer need to compute the
17525 * gcse.c (pre_expr_reaches_here_p): Kill CHECK_PRE_COM argument.
17526 All callers changed.
17527 (pre_expr_reaches_here_p_work): Likewise.
17528 (pre_edge_insert): No longer call pre_expr_reaches_here_p.
17529 * lcm.c (compute_laterin): Fix initialization of LATER.
17530 (compute_nearerout): Similarly for NEARER.
17532 Sun Nov 14 12:41:57 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17534 * cse.c (set_nonvarying_address_components): Delete unused function.
17535 (refers_to_p): Likewise.
17537 Fri Nov 12 20:53:22 1999 Jeffrey A Law (law@cygnus.com)
17539 * function.c (diddle_return_value): Set REG_FUNCTION_VALUE_P as
17542 Sat Nov 13 16:20:09 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17544 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Wrap macro
17545 definition in do while (0).
17547 Fri Nov 12 16:26:25 1999 Jim Wilson <wilson@cygnus.com>
17549 * stmt.c (pushcase, pushcase_range): Partially revert Oct 28 change.
17551 Fri Nov 12 12:43:49 1999 Richard Henderson <rth@cygnus.com>
17553 * unroll.c (unroll_loop): Make temp an unsigned HOST_WIDE_INT.
17555 Fri Nov 12 15:14:19 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
17557 * i960.h (CAN_DEBUG_WITHOUT_FP): Don't define it.
17558 (FRAME_POINTER_REQUIRED): Don't worry about nonlocal goto.
17559 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
17560 (INITIAL_FRAME_POINTER_OFFSET): Remove it.
17562 * i960.c (i960_function_prologue): Don't allocate space for g8-g11
17563 saved on the stack. Output more accurate stack frame statistics
17564 into assembler file.
17566 1999-11-12 11:47 -0800 Zack Weinberg <zack@bitmover.com>
17568 * genextract.c (record_insn_name): New function.
17569 (get_insn_name): No longer a stub.
17570 (main): Call record_insn_name for each insn. After each label
17571 written, print the insn name in a comment.
17573 Fri Nov 12 13:45:02 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17575 * output.h (const_section, init_section, fini_section): Add
17578 * alpha/elf.h (const_section): Delete declaration.
17580 * svr4.h (const_section): Likewise.
17582 Fri Nov 12 08:54:22 1999 Mark Mitchell <mark@codesourcery.com>
17584 * tree.h (SAVE_EXPR_PERSISTENT_P): New macro.
17585 * tree.c (array_type_nelts): Don't handle SAVE_EXPRs specially.
17586 (unsave_expr_now): Don't unsave SAVE_EXPR_PERSISTENT_P
17588 * stor-layout.c (variable_size): Set SAVE_EXPR_PERSISTENT_P on
17589 variable-sized array bounds.
17591 Fri Nov 12 08:04:45 1999 Catherine Moore <clm@cygnus.com>
17593 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Use
17596 Fri Nov 12 13:31:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17598 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Treat QImode
17599 addresses the same way GO_IF_LEGITIMATE_INDEX does.
17601 Fri Nov 12 12:36:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17603 * cse.c (hash_arg_in_struct): Delete.
17604 (struct table_elt): Delete elt in_struct.
17605 (struct set): Delete elt src_in_struct.
17606 (merge_equiv_classes): Don't set either hash_arg_in_struct or
17607 the corresponding in_struct elts.
17608 (canon_hash): Likewise.
17609 (safe_hash): Likewise.
17610 (find_best_addr): Likewise.
17611 (record_jump_cond): Likewise.
17612 (cse_insn): Likewise.
17614 Thu Nov 11 19:45:24 1999 Jim Wilson <wilson@cygnus.com>
17616 * loop.c (invariant_p, case MEM): Put MEM_VOLATILE_P check back.
17618 * dbxout.c (dbxout_type, case INTEGER_TYPE): Handle too large
17621 Thu Nov 11 18:54:24 1999 Jeffrey A Law (law@cygnus.com)
17623 * function.c (diddle_return_value): Put back check that the DECL_RTL
17624 for the function is a register.
17626 * function.c (diddle_return_value): Use hard_function_value to
17627 get an rtx suitable for use in the USE/CLOBBER insn.
17629 * global.c (global_conflicts): Update comments.
17630 (record_conflicts): No need to record conflicts between pseudos here.
17632 1999-11-11 Bruce Korb <autogen@linuxbox.com>
17634 * fixinc/fixincl.c: Added verbose levels for status messages
17636 Thu Nov 11 13:23:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17638 * jump.c (jump_optimize_1): Avoid passing an rtx that is not an
17639 operand as argument to expand_and or expand_binop.
17641 Thu Nov 11 02:21:16 1999 Rodney Brown <RodneyBrown@pmsc.com>
17643 * xcoffout.c (xcoffout_source_file): Change ggc_add_root to
17644 gcc_add_string_root.
17646 Wed Nov 10 21:24:19 1999 Jason Eckhardt <jle@cygnus.com>
17648 * config/pa/pa.h (MASK_RETURN_ADDR): Change 0xfffffffc to -4.
17650 Wed Nov 10 15:56:16 1999 Jeffrey A Law (law@cygnus.com)
17652 * flow.c (compute_flow_dominators): Initially put all blocks on
17654 * lcm.c (compute_antinout_edge, compute_available): Similarly.
17655 * gcse.c (compute_cprop_avinout): Remove.
17656 (compute_cprop_data): Use compute_available.
17657 (delete_null_pointer_checks_1): Use compute_available.
17659 * basic-block.h (compute_available): Returns a void now.
17660 * gcse.c (one_classic_gcse_pass): Do not expect compute_available
17661 to return a value anymore.
17662 * lcm.c (compute_available, compute_antinout_edge): Revamp to use
17663 worklists. Fix boundary cases. Compute maximal solutions.
17664 (compute_laterin, compute_nearerout): Similarly.
17666 * dwarf2out.c (add_AT_location_description): Allow
17667 (mem (plus (pseudo) (...)) too.
17669 Wed Nov 10 10:52:42 1999 Tom Tromey <tromey@cygnus.com>
17671 * gcc.c (do_spec_1): Support text between `%u' and `%O'.
17673 Wed Nov 10 12:43:21 1999 Philippe De Muyter <phdm@macqel.be>
17674 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17676 * cppinit.c: Test `GCC_VERSION', not `HAVE_GCC_VERSION'.
17678 * gansidecl.h: Likewise.
17684 * toplev.h: Likewise.
17686 * tree.c: Likewise.
17688 * tree.h: Likewise.
17690 * varray.c: Likewise.
17692 * varray.h: Likewise.
17694 Wed Nov 10 10:57:22 1999 Clinton Popetz <cpopetz@cygnus.com>
17696 * gcov.c (struct arcdata): Add hits and total, remove prob.
17697 (output_branch_counts): New.
17698 (process_args): Set output_branch_counts if -c.
17699 (calculate_branch_probs): Store hits and total instead of
17701 (output_data): Emit counts if output_branch_counts is true.
17702 * gcov.texi (Invoking Gcov): Document -c switch..
17704 Wed Nov 10 01:10:41 1999 Philippe De Muyter <phdm@macqel.be>
17706 * genoutput.c (output_insn_data): Cast `INSN_OUTPUT_FORMAT_MULTI' and
17707 `INSN_OUTPUT_FORMAT_FUNCTION' to `PTR'-type.
17709 Wed Nov 10 00:51:41 1999 Hans-Peter Nilsson <hp@axis.se>
17711 * invoke.texi (C Dialect Options): Add missing builtins from
17712 c-common.c to list.
17713 * extend.texi (Other Builtins): Copy to this list.
17715 Wed Nov 10 04:58:09 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17717 * Makefile.in (recog.o): Use BASIC_BLOCK_H macro.
17718 (print-rtl.o, $(HOST_PREFIX_1)print-rtl.o): Likewise. Remove
17719 redundant bitmap.h.
17721 Wed Nov 10 00:02:53 1999 Jeffrey A Law (law@cygnus.com)
17723 * flow.c (compute_flow_dominators): No longer treat basic block 0
17724 or (n_basic_blocks - 1) specially. Clear the AUX field before
17725 starting computation of doms/pdoms. Fix initial state for pdoms.
17727 Wed Nov 10 03:58:08 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17729 * Makefile.in ($(HOST_PREFIX_1)rtl.o): Update dependencies to
17730 match rtl.o's: added ggc.h and toplev.h
17731 ($(HOST_PREFIX_1)print-rtl.o): Likewise: added system.h.
17732 ($(HOST_PREFIX_1)rtlanal.o): Likewise: added system.h.
17733 ($(HOST_PREFIX_1)obstack.o): Likewise: added $(CONFIG_H).
17735 Tue Nov 9 10:30:08 1999 Tom Tromey <tromey@cygnus.com>
17737 * config/i386/xm-djgpp.h (HAVE_DOS_BASED_FILE_SYSTEM): Renamed
17738 from HAVE_DOS_BASED_FILESYSTEM.
17739 * gcc.c (find_a_file): Use HAVE_DOS_BASED_FILE_SYSTEM, not
17740 HAVE_DOS_BASED_FILESYSTEM.
17742 (split_directories): Only special-case DOS file names if
17743 HAVE_DOS_BASED_FILE_SYSTEM is defined. Use IS_DIR_SEPARATOR
17744 instead of explicit tests. Conditionalize on !VMS.
17745 (make_relative_prefix): Use IS_DIR_SEPARATOR instead of explicit
17746 tests. Conditionalize on !VMS.
17747 (process_command): Only use make_relative_prefix if !VMS.
17748 (free_split_directories): Conditionalize on !VMS.
17749 (DIR_UP): Conditionalize on !VMS.
17751 Wed Jun 9 16:57:11 1999 Mumit Khan <khan@xraylith.wisc.edu>
17753 * gcc.c (STANDARD_BINDIR_PREFIX): Provide default.
17755 Fri Feb 5 14:22:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
17757 * gcc.c (make_relative_prefix): Handle the HAVE_EXECUTABLE_SUFFIX
17760 Mon Nov 8 14:16:57 1999 Michael Meissner <meissner@cygnus.com>
17762 * invoke.texi (Environment Variables): Document relative path
17764 * gcc.c (DIR_UP): If not defined, define as "..".
17765 (standard_bindir_prefix): New static, holds target location to
17767 (split_directories): New function to split a filename into
17768 component directories.
17769 (free_split_directories): New function, release memory allocated
17770 by split_directories.
17771 (make_relative_prefix): New function, make a relative pathname if
17772 the compiler is not in the expected location.
17773 (process_command): If GCC_EXEC_PREFIX was not specified, see if we
17774 can figure out an appropriate prefix from argv[0].
17775 * Makefile.in (DRIVER_DEFINES): Use unlibsubdir in definition of
17776 STANDARD_STARTFILE_PREFIX and TOOLDIR_BASE_PREFIX. Define
17777 STANDARD_BINDIR_PREFIX.
17779 Wed Nov 10 11:47:54 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17781 * config/c4x/c4x-protos.h: New file. Prototypes for functions defined
17783 * config/c4x/c4x.h: Moved prototypes to c4x.h.
17784 * config/c4x/c4x.c (c4x_preferred_reload_class, c4x_limit_reload_class,
17785 c4x_secondary_memory_needed) Delete.
17786 (fp_zero_operand): Add mode argument.
17788 Thu Nov 4 15:52:35 1999 Andrew Haley <aph@cygnus.com>
17790 * reload1.c (reload_reg_free_for_value_p): Don't use a register
17791 that is in reload_reg_used.
17793 Tue Nov 9 16:43:00 1999 Nick Clifton <nickc@cygnus.com>
17795 * config/arm/arm-protos.h: New file: Prototypes for functions
17796 defined in arm.c and pe.c.
17797 * config/arm/arm.h: Fix compile time warnings.
17798 * config/arm/arm.c: Fix compile time warnings.
17799 * config/arm/pe.h: Fix compile time warnings.
17800 * config/arm/aout.h: Fix compile time warnings.
17802 Tue Nov 9 14:55:44 1999 Nick Clifton <nickc@cygnus.com>
17804 * config/m32r/m32r-protos.h: New file: Prototypes for functions
17807 * config/m32r/m32r.h: Move prototypes to m32r-protos.h
17808 Add support for subtargets.
17809 Add prototypes for new predicates.
17810 Add scheduling macros.
17812 * config/m32r/m32r.c: Fix compile time warnings.
17813 (int8_operand): New predicate function.
17814 (reg_or_cmp_int16_operand): New predicate function.
17815 (extend_operand): New predicate function.
17816 (m32r_adjust_code): New scheduling function.
17817 (m32r_adjust_priorty): New scheduling function.
17818 (m32r_sched_init): New scheduling function.
17819 (m32r_sched_reorder): New scheduling function.
17820 (m32r_sched_variable_issue): New scheduling function.
17821 (direct_return): New codegen function.
17822 (m32r_not_same_reg): New rtl testsing function.
17824 * config/m32r/m32r.md: Fix compile time warnings.
17825 Add support for pre decrement and post increment memory
17827 Add S<cc> patterns.
17830 Mon Nov 8 22:20:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17832 * global.c (EXECUTE_IF_CONFLICT): Don't define.
17833 (prune_preferences): Use EXECUTE_IF_SET_IN_ALLOCNO_SET instead.
17834 (find_reg): Likewise.
17836 Mon Nov 8 13:16:46 1999 Jason Eckhardt <jle@cygnus.com>
17838 * config/pa/pa.md (fmpynfadd,{sgl,dbl} insns): Use %fr0 rather than 0
17839 to avoid assembler errors.
17841 Mon Nov 8 15:38:41 1999 Nick Clifton <nickc@cygnus.com>
17843 * config/v850/v850-protos.h: New file: Prototypes for functions
17845 * config/v850/v850.h: Move prototypes to v850-protos.h
17846 * config/v850/v850.c: Move prototypes to v850-protos.h
17847 * config/v850/v850.md: Fix compile time warnings.
17849 * config/fr30/fr30-protos.h: New file: Prototypes for functions
17851 * config/fr30/fr30.h: Move prototypes to fr30-protos.h
17852 * config/fr30/fr30.c: Fix compile time warnings.
17853 * config/fr30/fr30.md: Fix compile time warnings.
17855 Mon Nov 8 07:25:37 1999 Mark Mitchell <mark@codesourcery.com>
17857 * tree.h (get_containing_scope): Declare it.
17858 * tree.c (get_containing_scope): New fucntion.
17859 (decl_function_context): Use it.
17860 * toplev.c (rest_of_compilation): Use get_containing_scope.
17862 aMon Nov 8 03:03:07 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17864 * Makefile.in (rtl.o): Depend on toplev.h.
17866 Sun Nov 7 20:55:14 1999 Mark Mitchell <mark@codesourcery.com>
17868 * cse.c (delete_trivially_dead_insns): Replace alloca with
17870 * except.c (update_rethrow_references): Likewise.
17871 (init_eh_nesting_info): Likewise.
17872 * function.c (identify_blocks): Likewise.
17873 * gcse.c (dump_hash_table): Likewise.
17874 * graph.c (print_rtl_graph_with_bb): Likewise.
17875 * loop.c (combine_movables): Likewise.
17876 (move_movables): Likewise.
17877 (count_loop_regs_set): Likewise.
17878 (strength_reduce): Likewise.
17879 * profile.c (compute_branch_probabilities): New function, split
17881 (branch_prob): Here. Replace alloca with xmalloc/xcalloc.
17882 * regclass.c (regclass): Likewise.
17883 * regmove.c (regmove_optimize): Likewise.
17884 * toplev.c (compile_file): Likewise.
17885 (main): Don't mess with the stack rlimit.
17887 Sun Nov 7 19:41:17 1999 Catherine Moore <clm@cygnus.com>
17889 * config/elfos.h (ASM_DECLARE_FUNCTION_NAME): Conditionally define.
17890 (ASM_DECLARE_FUNCTION_SIZE): Conditionally define.
17892 Sun Nov 7 10:23:28 1999 Mark P. Mitchell <mark@codesourcery.com>
17894 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns.
17896 Sun Nov 7 02:58:48 1999 Jeffrey A Law (law@cygnus.com)
17898 * global.c (EXECUTE_IF_CONFLICT): Undo Robert's change.
17899 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Put curleys around CODE in
17902 Sat Nov 6 23:48:30 1999 Robert Lipe (robertlipe@usa.net)
17904 * global.c (EXECUTE_IF_CONFLICT): Correct quoting typo.
17906 Sat Nov 6 17:34:39 1999 Jeffrey A Law (law@cygnus.com)
17908 * gcse.c (post_dominators): Kill.
17909 (alloc_code_hoist_mem, free_code_hoist_mem); Kill post_dominators.
17910 (compute_code_hoist_data): Use compute_flow_dominators. Do not
17911 pass in a pdom array since we do not need pdoms.
17912 * haifa-sched.c (schedule_insns): Similarly.
17913 * flow.c (compute_dominators): Remove dead function.
17914 (compute_flow_dominators): Do not compute doms or pdoms if the
17915 caller does not request them. Split up loop to build doms and
17916 pdoms. Use a worklist to compute doms and pdoms.
17917 * basic-block.h (compute_dominators): Remove prototype.
17919 Sat Nov 6 11:38:39 1999 Richard Henderson <rth@cygnus.com>
17921 * haifa-sched.c (struct haifa_insn_data, h_i_d): New.
17922 (insn_luid, insn_priority, insn_costs, insn_units): Remove.
17923 (insn_reg_weight, insn_depend, insn_dep_count): Remove.
17924 (insn_blockage, insn_ref_count, line_note, insn_tick): Remove.
17925 (cant_move, fed_by_spec_load, is_load_insn): Remove.
17926 (schedule_region): Remove unused variable.
17927 (schedule_insns): Allocate h_i_d, and not all the separate arrays.
17929 Sat Nov 6 10:00:34 1999 Mark Mitchell <mark@codesourcery.com>
17931 * local-alloc.c (local_alloc): Use xmalloc/xcalloc, not alloca.
17932 (update_equiv_regs): Likewise.
17933 (block_alloc): Likewise.
17934 * reg-stack.c (reg_to_stack): Likewise.
17935 (convert_regs_2): Likewise.
17936 * reload1.c (reload_as_needed): Likewise.
17938 Sat Nov 6 09:57:59 1999 Mark Mitchell <mark@codesourcery.com>
17940 * Makefile.in (dbxout.o): Depend on ggc.h.
17941 (dwarf2out.o): Likewise.
17942 (xcoffout.o): Likewise.
17943 * dbxout.c: Include ggc.h.
17944 (dbxout_init): Register lastfile as a root.
17945 * dwarf2out.c: Include ggc.h.
17946 (dwarf2out_line): Register lastfile as a root.
17947 * xcoffout.c: Include ggc.h.
17948 (xcoffout_source_line): Register xcoff_lastfile as a root.
17950 Sat Nov 6 09:52:09 1999 Richard Henderson <rth@cygnus.com>
17952 * i386.md (movdf_1, movxf_1): Earlyclobber general regs destination.
17954 Sat Nov 6 07:48:59 1999 Catherine Moore <clm@cygnus.com>
17956 * config/svr4.h (ASM_DECLARE_FUNCTION): Check if already
17958 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
17960 Fri Nov 5 18:33:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17962 * global.c (EXECUTE_IF_SET_IN_ALLOCNO_SET): New macro.
17963 (EXECUTE_IF_CONFLICT): Likewise.
17964 (ALLOCNO_LIVE_P): Avoid signed division.
17965 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Likewise.
17966 (prune_preferences, find_reg): Use EXECUTE_IF_CONFLICT.
17967 (record_one_conflict): Use EXECUTE_IF_SET_IN_ALLOCNO_SET.
17969 Fri Nov 5 12:04:02 1999 Richard Henderson <rth@cygnus.com>
17971 * haifa-sched.c (schedule_block): Don't crash if there's no
17972 next insn for an interblock movement.
17973 (add_branch_dependences): Don't allow clobber insns to move either.
17975 Fri Nov 5 10:18:11 1999 Richard Henderson <rth@cygnus.com>
17977 * i386.c (split_xf): New.
17978 * i386-protos.h: Declare it.
17979 * i386.md (movxf_1): Add general regs alternatives.
17980 (movxf_1+1): New splitter for same.
17982 Fri Nov 5 12:05:52 1999 Nick Clifton <nickc@cygnus.com>
17984 * function.c (purge_addressof_1): Add missing return values.
17986 Fri Nov 5 10:07:25 1999 Nick Clifton <nickc@cygnus.com>
17988 * function.c (is_addressof): New function. Returns true if
17989 the given piece of RTL is an ADDRESSOF.
17990 (purge_addressof_1): Make boolean. Return false if the
17991 ADDRESSOFs could not be purged.
17992 (purge_addressof): If ADDRESSOFs could not be purged from the
17993 notes attached to an insn, remove the offending note(s),
17994 unless they are attached to a libcall.
17996 1999-11-05 Andreas Jaeger <aj@suse.de>
17998 * genoutput.c (null_operand =): Initialize all fields.
18000 * errors.h: Add extern to prototypes.
18002 Fri Nov 5 01:44:09 1999 Jeffrey A Law (law@cygnus.com)
18004 * configure.in (m68k-next-nextstep4): Handle Openstep 4.2.
18005 * configure: Rebuilt.
18007 Fri Nov 5 01:24:37 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
18009 * global.c (CONFLICTP, SET_CONFLICT): Avoid signed division.
18010 (mirror_conflicts): New function.
18011 (global_alloc): Call it.
18012 (expand_preferences): Remove redundant CONFLICTP test.
18013 (find_reg, dump_conflicts): Likewise.
18014 (prune_preferences): Process conflicts one word at a time.
18016 Fri Nov 5 01:05:21 1999 Richard Henderson <rth@cygnus.com>
18018 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_BITMAP
18019 instead of an explicit loop.
18021 Thu Nov 4 23:07:14 1999 Jim Wilson <wilson@cygnus.com>
18023 * cse.c (cse_insn): Revert Oct 31 change. When computing src_elt,
18024 if REG_RETVAL check succeeds, then put classp in src_elt.
18026 Thu Nov 4 23:48:14 1999 Jeffrey A Law (law@cygnus.com)
18028 * function.c (pad_to_arg_alignment): Only update argument_pad
18029 if the argument's alignment is greater than STACK_BOUNDARY.
18031 Thu Nov 4 16:44:53 1999 Richard Henderson <rth@cygnus.com>
18033 * bitmap.h (BITMAP_XFREE): New.
18034 * flow.c (life_analysis): Use it.
18035 (life_analysis_1): Free blocks.
18037 * combine.c (undo_commit): New.
18038 (try_combine): Use it. Don't zap undobuf.undos.
18039 (combine_instructions): Don't zap undobuf.undos; free the
18040 undobuf.frees list.
18042 * local-alloc.c (local_alloc): Free qty_phys_num_sugg.
18044 * stmt.c (cost_table_): New.
18045 (estimate_case_costs): Use it instead of xmalloc.
18047 * toplev.c (compile_file): Reuse dumpname memory instead
18050 Thu Nov 4 16:36:44 1999 Richard Henderson <rth@cygnus.com>
18052 * reg-stack.c (convert_regs_1): Initialize target_stack->top
18053 after verifying an EH edge.
18055 * haifa-sched.c (init_rgn_data_dependences): Correctly
18056 size bb_pending_lists_length when zeroing.
18058 Thu Nov 4 16:36:36 1999 Richard Henderson <rth@cygnus.com>
18060 * function.c (diddle_return_value): New.
18061 (expand_function_end): Use it.
18062 * stmt.c (expand_null_return): Likewise.
18063 (expand_value_return): Likewise.
18065 * reg-stack.c (subst_stack_regs_pat): Handle clobbers at top-level.
18067 * reload1.c (reload): Don't remove return value clobbers.
18069 Thu Nov 4 13:33:46 1999 Richard Henderson <rth@cygnus.com>
18071 * rtl.c (read_rtx): Use fatal_with_file_and_line not fatal.
18073 Thu Nov 4 12:49:52 1999 Richard Henderson <rth@cygnus.com>
18075 * cse.c (cse_main): Use xmalloc, not alloca.
18076 (cse_basic_block): Likewise.
18077 * local-alloc.c (local_alloc): Likewise.
18079 Thu Nov 4 14:22:12 1999 David Billinghurst <David.Billinghurst@riotinto.com.au>
18080 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18082 * rtl.c: Include toplev.h.
18083 (fatal): Remove declaration.
18085 Thu Nov 4 06:39:47 1999 Jeffrey A Law (law@cygnus.com)
18087 * haifa-sched.c (schedule_block): Fix thinko.
18089 1999-11-03 James McKelvey <mckelvey@fafnir.com>
18091 * fixinc/fixincl.c(create_file): Allow for systems that do not have
18092 S_IR* defined values
18094 1999-11-03 Philippe De Muyter <phdm@macqel.be>
18096 * fixlib.c (load_file_data): Do not call `realloc' with a NULL pointer;
18097 call `malloc' instead.
18099 Wed Nov 3 23:05:14 1999 Mark Mitchell <mark@codesourcery.com>
18101 * flags.h (flag_renumber_insns): Declare.
18102 * emit-rtl.c (renumber_insns): Check flag_renumber_insns. Print
18104 * rtl.h (renumber_insns): Change prototype.
18105 * toplev.c (flag_renumber_insns): Define.
18106 (rest_of_compilation): Pass rtl_dump_file to flag_renumber_insns.
18108 Wed Nov 3 15:11:27 1999 David S. Miller <davem@redhat.com>
18110 * config/sparc/sparc.md: Remove insn type fpsqrt, add fpsqrts
18111 and fpsqrtd. Use them and create fdiv function unit to more
18112 accurately represent fpu sqrt pipeline semantics on UltraSparc.
18113 * config/sparc/sparc.c: Account for fpsqrt{s,d} changes.
18115 Wed Nov 3 15:11:27 1999 Matteo Frigo <athena@fftw.org>
18117 * config/sparc/sparc.md: Adjust FADD/FMUL result latencies to
18119 * config/sparc/sparc.c (ultra_schedule_insn): Insert launched
18120 insn into ready list, do not use just a raw swap.
18122 Wed Nov 3 14:51:59 1999 Mark P. Mitchell <mark@codesourcery.com>
18124 * rtl.h (renumber_insns): New function.
18125 (remove_unnecessary_notes): Likewise.
18126 * emit-rtl.c (renumber_insns): Define.
18127 (remove_unncessary_notes): Likewise.
18128 * toplev.c (rest_of_compilation): Remove dead code.
18129 Use renumber_insns and remove_unncessary_notes.
18131 * gcse.c (struct null_pointer_info): New type.
18132 (get_bitmap_width): New function.
18133 (current_block): Remove.
18134 (nonnull_local): Likewise.
18135 (nonnull_killed): Likewise.
18136 (invalidate_nonnull_info): Take a null_pointer_info as input.
18137 (delete_null_pointer_checks_1): New function.
18138 (delete_null_pointer_checks): Use it.
18140 * haifa-sched.c (find_rgns): Replace uses of alloca with xmalloc.
18141 (split_edges): Likewise.
18142 (schedule_block): Likewise.
18143 (compute_block_backward_dependencies): Likewise.
18144 (schedule_region): Likewise.
18145 (schedule_insns): Likewise.
18147 Wed Nov 3 15:40:23 1999 Catherine Moore <clm@cygnus.com>
18149 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Provide default.
18150 * emit-rtl.c (gen_label_rtx): Support LABEL_ALTERNATE_NAME.
18151 * final.c (final_scan_insn): Emit LABEL_ALTERNATE_NAME.
18152 * ggc-common.c (ggc_mark_rtx_children): Mark LABEL_ALTERNATE_NAME.
18153 * jump.c (delete_unreferenced_labels): Don't delete if
18154 LABEL_ALTERNATE_NAME is set.
18155 * print-rtl.c (print_rtx): Dump alternate name.
18156 * rtl.def (CODE_LABEL): Change format to "iuuis00s".
18157 * rtl.h (LABEL_ALTERNATE_NAME): Define.
18158 * rtl.texi (LABEL_ALTERNATE_NAME): Document.
18159 * tm.texi (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Document.
18161 Wed Nov 3 15:39:19 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18163 * fix-header.c (recognized_extern, recognized_function): Constify
18166 * lcm.c (compute_laterin): Remove unused variable `temp_bitmap'.
18167 (pre_edge_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
18168 (compute_available): Remove unused variable `last'.
18169 (compute_nearerout): Remove unused variable `temp_bitmap'.
18170 (pre_edge_rev_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
18171 Remove unused variable `x'.
18173 * scan.h (recognized_function, recognized_extern): Constify a
18176 * simplify-rtx.c (simplify_rtx): Remove unused variable `new'.
18178 Wed Nov 3 10:40:53 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18180 * varasm.c (decode_rtx_const): Use XSTR to access the string
18183 Wed Nov 3 10:10:58 1999 Richard Henderson <rth@cygnus.com>
18185 * c-decl.c (duplicate_decls): Copy DECL_MODE too.
18187 Wed Nov 3 12:12:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18189 * reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.
18191 Wed Nov 3 03:26:28 1999 Jeffrey A Law (law@cygnus.com)
18193 * pa.c (ireg_operand): New function.
18194 * pa.h (PREDICATE_CODES): Handle ireg_operand.
18195 * pa.md (parallel_addb, parallel_movb): Use ireg_operand.
18196 Fix out of date comment.
18198 * pa.md (negdi2): Turn into expander + anonymous pattern.
18200 * reload.c (find_reloads): Fix typos in recent change.
18202 * dwarf2out.c: Do not include ctype.h.
18204 Tue Nov 2 21:53:44 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18206 * regclass.c (record_reg_classes): Always use may_move_cost when
18207 seeing how operand fits with various register classes.
18209 Tue Nov 2 15:38:17 1999 Richard Henderson <rth@cygnus.com>
18211 * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes.
18212 * toplev.c: Revert Nov 1 13:22 change.
18214 Tue Nov 2 14:21:37 1999 Jason Eckhardt <jle@cygnus.com>
18216 * config/pa/pa.md (height reduction patterns): Add checks for
18217 overlapping operands to avoid semantic-destroying splits for
18218 height reduction patterns.
18220 Tue Nov 2 15:27:31 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18222 * configure.in (m68k-hp-hpux*, xm_alloca.h): The underscore should
18223 have been an hyphen, fixed.
18224 * configure: Rebuilt.
18226 Tue Nov 2 17:04:36 1999 Nick Clifton <nickc@cygnus.com>
18228 * config/arm/tpe.h: Add prototypes for exported functions.
18229 * config/arm/pe.c: Fix compile time warnings.
18230 * config/arm/semi.h: Fix compile time warnings.
18231 * config/arm/arm.c: Fix compile time warnings.
18232 * config/arm/arm.h: Fix compile time warnings.
18233 * config/arm/arm.md: Fix compile time warnings.
18234 * config/arm/thumb.c: Fix compile time warnings.
18235 * config/arm/thumb.h: Fix compile time warnings.
18236 * config/arm/thumb.md: Fix compile time warnings.
18238 Tue Nov 2 04:10:24 1999 Jan Hubicka <hubicka@freesoft.cz>
18240 * jump.c (jump_optimize_1): Swap the incscc and the conditional mode
18243 * unroll.c (unroll_loop): Remove LOOP notes when loop is
18244 completely unrolled.
18246 Tue Nov 2 16:57:22 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18248 * cse.c (simplify_plus_minus, check_fold_const): Delete declarations.
18250 Tue Nov 2 09:43:00 1999 Catherine Moore <clm@cygnus.com>
18252 * Makefile.in (genattrtab): Don't use (HOST_RTLANAL).
18253 * rtl.h (rtx_equal_p): Move prototype.
18254 * rtl.c (rtx_equal_function_value_matters): Move from
18256 (rtx_equal_p): Likewise.
18257 * rtlanal.c (rtx_equal_function_value_matters): Delete.
18258 (rtx_equal_p): Likewise.
18260 Mon Nov 1 23:21:17 1999 Jason Merrill <jason@yorick.cygnus.com>
18262 * libgcc2.c (__do_global_dtors): Only do EH frame stuff if
18263 ! HAS_INIT_SECTION.
18265 Mon Nov 1 23:37:38 1999 Jeffrey A Law (law@cygnus.com)
18267 * gcc.1 (PA options): Remove obsolete -mshared-libs options.
18269 * pa.h (ADDR_VEC_ALIGN): Define.
18271 * jump.c (jump_optimize_1): Also move LOOP_VTOP and LOOP_CONT
18272 notes when presented with "if (foo) break; end_of_loop" and
18273 the break sequence gets moved out of the loop.
18275 * unroll.c (unroll_loop): Allocate memory for MAP using xcalloc.
18276 Remove explicit zero initializations of entries within MAP.
18278 Mon Nov 1 18:09:14 1999 Richard Henderson <rth@cygnus.com>
18280 * reg-stack.c (convert_regs_1): Handle EH edges specially.
18282 Mon Nov 1 15:41:01 1999 Mark P. Mitchell <mark@codesourcery.com>
18284 * bitmap.h (BITMAP_XMALLOC): New macro.
18285 * flow.c (CLEAN_ALLOCA): Remove.
18286 (delete_unreachable_blocks): Use xmalloc/xcalloc instead of alloca.
18287 (life_analysis): Likewise.
18288 (update_life_info): Don't use CLEAN_ALLOCA.
18289 (life_analysis_1): Use xmalloc/xcalloc instead of alloca.
18290 (calculate_global_regs_live): Likewise.
18291 (print_rtl_with_bb): Likewise.
18292 (verify_flow_info): Likewise.
18293 * global.c (global_alloc): Likewise.
18294 (global_conflicts): Likewise.
18295 * integrate.c (save_for_inline_nocopy): Likewise.
18296 (expand_inline_function): Likewise.
18297 * jump.c (jump_optimize_1): Likewise.
18298 (duplicate_loop_exit_test): Likewise.
18299 (thread_jumps): Likewise.
18300 * loop.c (loop_optimize): Likewise.
18301 (combine_givs): Likewise.
18302 (recombine_givs): Likewise.
18303 * reorg.c (dbr_schedule): Likewise.
18304 * unroll.c (unroll_loop): Likewise.
18306 * combine.c (combine_instructions): Use xmalloc instead of alloca.
18308 Mon Nov 1 13:22:30 1999 Richard Henderson <rth@cygnus.com>
18310 * toplev.c (rest_of_compilation): Don't optimize the CFG
18311 when rebuilding, just before dbr.
18313 Mon Nov 1 14:35:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18315 * output.h (assemble_end_function, assemble_destructor,
18316 assemble_constructor, assemble_gc_entry, assemble_global,
18317 assemble_label, output_constant_pool) Constify a char*.
18319 * varasm.c (assemble_destructor, assemble_constructor,
18320 assemble_gc_entry, assemble_end_function, assemble_global,
18321 assemble_label, output_constant_pool): Likewise.
18323 Mon Nov 1 14:22:51 1999 Nick Clifton <nickc@cygnus.com>
18325 * config/arm/thumb.c (thumb_expand_prologue): Add comments
18326 explaining what is goin on in this function.
18328 Mon Nov 1 08:03:15 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18330 * regclass.c (record_reg_classes): In matching case, recompute
18331 costs since the direction of movement is different.
18333 Sun Oct 31 21:59:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
18335 * resource.c (mark_target_live_regs): For unconditional branches,
18336 the resources found at the branch target should be added to the
18337 resources found so far, not intersected.
18339 Sun Oct 31 15:48:49 1999 Philippe De Muyter <phdm@macqel.be>
18341 * fixinc/fixtests.c, fixinc/fixfixes.c : Keep `#' in first column for
18343 * fixinc/fixincl.c (fcntl.h) : Do not include this file twice.
18344 (sys/mman.h): Include this file only if #HAVE_MMAP.
18345 (run_compiles): Initialize `esac_fmt' with one old KR string, not
18346 with automatically concatenated ANSI strings.
18348 Sun Oct 31 23:57:07 1999 Mark Mitchell <mark@codesourcery.com>
18350 * ggc-page.c (struct page_entry): Remove save_num_free_objects.
18351 (DIV_ROUND_UP): Robustify.
18352 (ggc_recalculate_in_use_p): New function.
18353 (release_pages): Don't inline it.
18354 (ggc_alloc_obj): Don't refuse to allocate objects on pages for
18356 (ggc_pop_context): Use ggc_recalculate_in_use_p.
18357 (clear_marks): Always save in_use_p.
18358 (sweep_pages): Use ggc_recalculate_in_use_p.
18359 (ggc_page_print_statistics): Avoid signed/unsigned comparisons.
18360 Release pages before counting statistics.
18362 Sun Oct 31 23:42:37 1999 Mark Mitchell <mark@codesourcery.com>
18364 * toplev.c (rest_of_compilation): Fix thinko in this change:
18366 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
18368 (rest_of_compilation): If inside an inlined external function,
18369 pretend we are just being declared.
18371 Sun Oct 31 23:03:25 1999 Jeffrey A Law (law@cygnus.com)
18373 * flow.c (calculate_global_regs_live): Fix thinko.
18375 * integrate.c (expand_inline_function): Fix bugs in previous
18376 change from Oct 28, 1999.
18378 Sun Oct 31 20:27:45 1999 Mark Mitchell <mark@codesourcery.com>
18380 * stmt.c (expand_value_return): Fix typo in this change:
18382 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18383 (expand_value_return): Correctly convert VAL when promoting function
18384 return; support RETURN_REG being a PARALLEL.
18386 Sun Oct 31 20:25:42 1999 Mark P. Mitchell <mark@codesourcery.com>
18388 * expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.
18390 Sun Oct 31 20:42:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18392 * hard-reg-set.h (reg_names): Constify a char*.
18394 * regclass.c (reg_names): Likewise.
18396 * regs.h (reg_names): Likewise
18398 * a29k/a29k.c (reg_names): Delete declaration.
18400 * a29k/a29k.h (CONDITIONAL_REGISTER_USAGE): Constify a char*.
18402 * arc/arc.c (arc_save_restore, arc_output_function_prologue,
18403 arc_output_function_epilogue): Likewise.
18405 * elxsi/elxsi.c (reg_names): Likewise.
18407 * gmicro/gmicro.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Likewise.
18409 * m32r/m32r.c (m32r_output_function_epilogue, emit_cond_move):
18412 * m88k/m88k.c (output_function_profiler): Likewise.
18414 * sparc/sparc.c (sparc_flat_output_function_prologue,
18415 sparc_flat_output_function_epilogue): Likewise.
18417 Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com>
18419 * toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber
18420 warning from -Wuninitialized and put it under -W.
18421 * function.c (uninitialized_vars_warning): Warn only when the
18422 corresponding flag is set.
18424 Sun Oct 31 01:53:30 1999 Jeffrey A Law (law@cygnus.com)
18426 * cse.c (cse_insn): If an insn has only a single set, SRC_EQV
18427 is nonzero and the single set does not have an elt, then assign
18430 * simplify-rtx.c: New file.
18431 * Makefile.in (OBJS): Add simplify-rtx.o
18432 (simplify-rtx.o): Add dependencies.
18433 * rtl.h (simplify_gen_binary, simplify_rtx): Add prototypes.
18434 * cse.c: Use simplify_gen_binary intead of cse_gen_binary.
18435 (cse_gen_binary, simplify_unary_operation): Delete.
18436 (simplify_binary_operation, simplify_plus_minus): Likewise.
18437 (check_fold_consts, simplify_relation_operation): Likewise.
18438 (simplify_ternary_operation): Likewise.
18439 (delete_trivially_dead_insns): Simplify the contents of the
18440 REG_EQUAL note before trying to substitute it into the source
18441 of the reg-reg copy at the end of a libcall sequence.
18443 * combine.c (combine_simplify_rtx): Renamed from simplify_rtx. All
18444 references/callers changed.
18446 * mn10200.c (mn10200_va_arg): Force the return value into a
18449 * fr30.h (EXTRA_CC_NAMES): Remove obsolete macro.
18451 * cccp.c (macroexpand): Avoid out of range accesses for omitted
18454 Sat Oct 30 22:42:50 1999 Stephen L Moshier <moshier@mediaone.net>
18456 * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
18458 Sat Oct 30 22:19:26 1999 Jeffrey A Law (law@cygnus.com)
18460 * fold-const.c (fold): Fix thinko when optimizing comparisons
18463 Sat Oct 30 21:32:17 1999 David Starner <dstarner98@aasaa.ofe.org>
18465 * gcc.texi (Passes): Update front-end files to their current
18468 Sat Oct 30 14:41:40 1999 Richard Henderson <rth@cygnus.com>
18470 * alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Call secondary_reload_class.
18471 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18472 (PREDICATE_CODES): Add addition_operation.
18473 * alpha-protos.h (addition_operation): Declare.
18474 (secondary_reload_class): Likewise.
18475 * alpha.c (addition_operation): New.
18476 (secondary_reload_class): New, from old SECONDARY_INPUT_RELOAD_CLASS.
18477 * alpha.md (adddi3): Turn into expander.
18478 (*lda, *adddi_2): New.
18479 (movsf, movdf patterns): Don't preference integer regs.
18480 (movsi, movdi patterns): Don't preference fp regs.
18482 Sat Oct 30 14:38:22 1999 Richard Henderson <rth@cygnus.com>
18484 * genrecog.c (write_switch): Check for duplicate CODE cases.
18486 Sat Oct 30 14:31:48 1999 Richard Henderson <rth@cygnus.com>
18488 * ggc-common.c: Update pre-function commentary.
18489 * ggc-page.c: Likewise.
18491 (poison_pages): Use memset directly.
18492 (ggc_alloc_obj): Likewise. Use a different pattern than poison_pages.
18493 (ggc_collect): Poison before sweeping.
18494 * ggc-simple.c: Update pre-function commentary.
18495 (ggc_alloc_obj): Poison non-zeroed memory.
18497 Sat Oct 30 14:28:52 1999 Mark Mitchell <mark@codesourcery.com>
18499 * ggc-common.c (ggc_print_statistics): Make arguments to fprintf
18500 match format string, even on 64-bit hosts.
18501 * gcc-page.c (ggc_page_print_statistics): Likewise.
18503 Sat Oct 30 14:38:04 1999 Catherine Moore <clm@cygnus.com>
18505 * config/i386/i386.c (ix86_cpu): Revert last patch.
18506 * config/i386/i386.h (ix86_cpu): Ditto.
18508 Fri Oct 29 17:00:42 1999 Jim Wilson <wilson@cygnus.com>
18510 * stor-layout.c (layout_type): When compute TYPE_SIZE_UNIT from
18511 TYPE_SIZE, convert type of result to sizetype.
18513 Fri Oct 29 14:34:17 1999 Richard Henderson <rth@cygnus.com>
18515 * flow.c (count_or_remove_death_notes): Equate NULL with the
18518 * jump.c, reg-stack.c, toplev.c: Revert Oct 27 change.
18519 * toplev.c (rest_of_compilation): Rebuild CFG immediately before
18522 * i386.c (pic_label_no): Delete.
18523 (ix86_attr_length_default): Don't use single_set to peek
18526 * recog.c (peephole2_optimize): Allow recog_next_insn to index
18527 the first insn after bb->end.
18528 * i386.md (push mem peeps): Scratch is live after evaluation
18530 (cmp mem peep): Similarly.
18532 Fri Oct 29 11:50:11 1999 Catherine Moore <clm@cygnus.com>
18534 * calls.c (emit_library_call_value): Fix declaration of alignment_pad.
18535 * function.c (pad_to_arg_alignment): Add missing braces.
18537 Fri Oct 29 13:53:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18539 * alpha/alpha-protos.h (literal_section): Add prototype.
18540 (alpha_need_linkage, alpha_start_function,alpha_end_function):
18543 * alpha/alpha.c (alpha_ra_ever_killed, set_frame_related_p): Add
18545 (alpha_start_function, alpha_end_function, float_strings,
18546 alpha_need_linkage): Constify a char*
18548 * alpha/alpha.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_MI_THUNK): Likewise.
18550 * alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
18552 * alpha/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
18554 * alpha/vms.h (ASM_OUTPUT_SECTION_NAME): Likewise.
18556 Fri Oct 29 13:49:39 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18558 * flow.c (debug_flow_info): Add prototype.
18560 * gcc.c (main): Likewise.
18562 * gcse.c (expr_reaches_here_p_work, pre_expr_reaches_here_p_work):
18565 * reload1.c (failed_reload, set_reload_reg): Likewise.
18567 * mips-tfile.c (main): Likewise.
18568 (pfatal_with_name, fancy_abort, botch, fatal, catch_signal): Mark
18569 with ATTRIBUTE_NORETURN.
18571 Fri Oct 29 18:16:03 1999 Andrew Haley <aph@cygnus.com>
18573 * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
18574 DECL is not a memory ref.
18576 Fri Oct 29 09:05:34 1999 Catherine Moore <clm@cygnus.com>
18578 * config/i386/i386.h (ix86_cpu): Remove extern attribute.
18579 * config/i386/i386.c (ix86_cpu): Add extern attribute.
18581 Fri Oct 29 16:30:04 1999 Andrew Haley <aph@cygnus.com>
18583 * config/mips/elf.h: remove NAME__MAIN and SYMBOL__MAIN.
18584 * config/mips/elf64.h: ditto.
18586 Fri Oct 29 08:03:57 1999 Catherine Moore <clm@cygnus.com>
18588 * expr.c (emit_push_insn): New argument alignment_pad.
18589 Update all callers. Adjust stack pointer based on alignment pad.
18590 * function.c (pad_to_arg_alignment): New argument alignment_pad.
18591 Update all callers. Track alignment_pad if boundary > PARM_BOUNDARY.
18592 (locate_and_pad_parm): New argument alignment_pad. Update all
18594 * expr.h (emit_push_insn): Update prototype.
18595 (locate_and_pad_parm): Update prototype.
18596 * calls.c (arg_data): Add new field alignment_pad.
18597 (initialize_argument_information): Initialize alignment_pad.
18599 Fri Oct 29 02:51:35 1999 Mark Mitchell <mark@codesourcery.com>
18601 * except.c (free_eh_nesting_info): Free the info itself.
18602 * function.c (free_after_compilation): Don't free NULL.
18603 * gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
18604 (pre_edge_insert): Free inserted.
18605 * stmt.c (free_stmt_status): Don't free NULL.
18607 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
18609 * gcov.c (DIR_SEPARATOR): Provide default.
18610 (output_data): Add test for MS-DOS format absolute filename.
18611 (fancy_abort): Correct program name.
18612 (open_files): Open all files in binary mode.
18613 * libgcc2.c (__bb_exit_func): Likewise.
18615 * profile.c (init_branch_prob): Specify binary when opening files.
18617 * flags.h (flag_unwind_tables): New decl.
18618 * toplev.c (flag_unwind_table): New definition.
18619 (f_options): Add -funwind-tables.
18620 (decode_g_option): Clarify warning when unknown -g option is given.
18621 (rest_of_compilation): If inside an inlined external function,
18622 pretend we are just being declared.
18624 * dwarf2out.c (dwarf2out_do_frame): Check -funwind_tables.
18625 (dwarf2out_frame_finish): Likewise.
18627 Fri Oct 29 07:44:26 1999 Vasco Pedro <vp@di.fct.unl.pt>
18629 * fold-const.c (merge_ranges): If not in0, but in1, handle
18630 upper bounds equal like subset case.
18632 Thu Oct 28 19:22:24 1999 Douglas Rupp <rupp@gnat.com>
18634 * dbxout.c (dbxout_parms): Generate a second stabs line for parameters
18635 passed in a register but moved to the stack.
18637 Thu Oct 28 19:12:57 1999 Sam Tardieu <tardieu@act-europe.fr>
18639 * gcc.c (pass_exit_codes, greatest_status): New variables.
18640 (struct option_map): Add entry for "--pass-exit-codes".
18641 (execute): Update greatest_status if error.
18642 (display_help): Add documentation for -pass-exit-codes.
18643 (process_command): Handle -pass-exit-codes.
18644 (main): Look at pass_exit_codes and greatest_status on call to exit.
18646 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18648 * reload.c (find_reloads): Refine test for no input reload
18649 case to not includes reloads emitted after insn.
18651 * function.c (find_temp_slots_from_address): Handle sum involving
18652 a register that points to a temp slot.
18653 (update_temp_slot_address): Make recursive call if both old and
18654 new are PLUS with a common operand.
18655 * calls.c (expand_call): Mark temp slot for result as having
18658 * rtlanal.c (reg_referenced_p, case IF_THEN_ELSE): New case.
18660 * gcc.c (process_command): Add standard_exec_prefix with "GCC"
18661 component as well as "BINUTILS".
18663 * integrate.h (copy_rtx_and_substitute): New arg, FOR_LHS.
18664 * integrate.c (copy_rtx_and_substitute): Likewise.
18665 (expand_inline_function, integrate_parm_decls, integrate_decl_tree):
18666 All callers changed.
18667 * unroll.c (inital_reg_note_copy, copy_loop_body): Likewise.
18669 * dbxout.c (dbxout_type, case INTEGER_TYPE_NODE): If can use
18670 gdb extensions, write size of type; also be more consistent
18671 in using references when this is a subtype.
18673 * pa.md (extv, extzv, insv): Use define_expand to reject constant
18674 that is out of range.
18676 * loop.c (unknown_constant_address_altered): New variable.
18677 (prescan_loop): Initialize it.
18678 (note_addr_stored): Set it for RTX_UNCHANGING_P MEM.
18679 (invariant_p, case MEM): Remove handling for volatile and readonly;
18680 check new variable if readonly.
18681 (check_dbra_loop): Chdeck unknown_constant_address_altered.
18683 * cse.c (canon_hash, case MEM): Do not record if BLKmode.
18684 (addr_affects_sp_p): Removed from note_mem_written and only
18685 define #ifdef AUTO_INC_DEC.
18687 * alpha.c (input_operand, case ADDRESSOF): Treat as REG.
18689 * regclass.c (record_reg_classes): Properly handle register move
18692 * varasm.c (initializer_constant_valid_p, case MINUS_EXPR):
18693 Don't think valid if both operands are invalid.
18694 (struct constant_descriptor): New field RTL.
18695 (mark_const_hash_entry): Mark it.
18696 (record_constant{,_rtx}): Initialize it.
18697 (output_constant_def): Allocate RTL in permanent obstack and
18699 ({record,compare}_constant_1): Modes must match for
18700 CONSTRUCTOR of ARRAY_TYPE.
18702 * c-common.h (initializer_constant_valid_p): Delete decl from here.
18703 * output.h (initializer_constant_valid_p): Move decl to here.
18704 * c-common.c (initializer_constant_valid_p): Delete function from here.
18705 * varasm.c (initializer_constant_valid_p): Move function to here.
18707 * tree.h (STRIP_SIGN_NOPS): New macro.
18708 * fold-const.c (optimize_minmax_comparison): New function.
18709 (invert_truthvalue, case WITH_RECORD_EXPR): New case.
18710 (fold): Use STRIP_SIGN_NOPS instead of STRIP_TYPE_NOPS.
18711 (fold, case EQ_EXPR): Call optimize_minmax_comparison and add
18712 cases with ABS_EXPR, NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR, and
18713 widening conversions.
18714 (fold, case LE_EXPR): Rework changing unsigned to signed comparisons
18715 to look at size of mode, not precision of type; also add missing cases.
18716 (optimize_bit_field_compare, decode_field_reference): Don't try to
18717 optimize COMPONENT_REF of a PLACEHOLDER_EXPR.
18719 * dwarf2out.c (ctype.h): Include.
18720 (dwarf2out_set_demangle_name_func): New function.
18721 (size_of_line_info): Deleted.
18722 (output_line_info): Compute size of line info table from difference
18724 (base_type_die, add_name_attribute): Call demangle function, if any.
18725 (field_byte_offset): Use bits per word for variable length fields.
18726 (gen_array_type_die): Add array name.
18727 (gen_subprogram_die): Ignore DECL_INLINE if -fno-inline.
18728 (dwarf2out_add_library_unit_info): New function.
18730 * explow.c (set_stack_check_libfunc): New function.
18731 (stack_check_libfunc): New static variable.
18732 (probe_stack_range): Allow front-end to set up a libfunc to call.
18734 * combine.c (simplify_comparison): When making comparison in wider
18735 mode, check for having commuted an AND and a SUBREG.
18736 (contains_muldiv): New function.
18737 (try_combine): Call it when dividing a PARALLEL.
18738 (simplify_rtx, case TRUNCATE): Don't remove for umulsi3_highpart.
18739 (simplify_comparison, case ASHIFTRT): Recognize sign-extension of
18741 (record_value_for_reg): If TEM is a binary operation with two CLOBBERs,
18742 use one of the CLOBBERs instead.
18743 (if_then_else_cond): If comparing against zero, just return thing
18746 * optabs.c (expand_abs): If machine has MAX, ABS (x) is MAX (x, -x).
18747 Don't generate shifts and subtract if have conditional arithmetic.
18749 * rtl.h (delete_barrier): New declaration.
18750 * jump.c (jump_optimize): Set up to handle conditional call.
18751 In conditional arithmetic case, handle CALL_INSN followed by a BARRIER.
18752 (delete_barrier): New function.
18754 * rtl.c (read_rtx): Call fatal if bad RTL code; check for bad mode.
18756 * recog.c (nonmemory_operand): Accept ADDRESSOF.
18758 * tree.c (build_type_attribute_variant): Push to obstack of
18759 ttype around type_hash_canon call.
18761 * expr.c (placeholder_list): Move decl to file scope.
18762 (expand_expr): Don't force access to volatile just because its
18764 If ignoring reference operations, just expand the operands.
18765 (expand_expr, case COMPONENT_REF): Propagate
18766 EXPAND_CONST_ADDRESS to recursive call when expanding inner.
18767 Refine test for using bitfield operations vs pointer punning.
18768 (expand_expr, case CONVERT_EXPR): If converting to
18769 BLKmode UNION_TYPE from BLKmode, just return inner object.
18770 Use proper mode in store_field call.
18771 Properly set sizes of object to store and total size in store_field
18772 call for convert to union.
18773 (expand_expr, case ARRAY_REF): If OP0 is in a register, put it in
18774 memory (like for ADDR_EXPR). Also, don't put constant in register if
18775 we'll want it in memory.
18776 (readonly_fields_p): New function.
18777 (expand_expr, case INDIRECT_REF): Call it if LHS.
18778 (expand_assignment): Handle a RESULT_DECL where
18779 DECL_RTL is a PARALLEL.
18780 (do_jump, case WITH_RECORD_EXPR): New case.
18781 (get_inner_reference): Always go inside a CONVERT_EXPR
18782 and NOP_EXPR if both modes are the same.
18783 (store_field): Use bitfield operations if size of bitsize is not same
18784 as size of RHS's type.
18785 Check for bitpos not a multiple of alignment in BLKmode case.
18786 Do block move in largest possible alignment.
18787 (store_constructor): Set BITSIZE to -1 for variable size and properly
18788 in case of array of BLKmode.
18789 (expand_expr_unaligned): New function.
18790 (do_compare_and_jump): Call it.
18792 * mips/iris5.h (SWITCHES_NEED_SPACES): New macro.
18793 * collect2.c (main): Only allow -ofoo if SWITCHES_NEED_SPACES
18794 does not include 'o'.
18796 * function.c (instantiate_virtual_regs_1, case SET): Handle case where
18797 both SET_DEST and SET_SRC reference a virtual register.
18798 (gen_mem_addressof): Copy RTX_UNCHANGING_P from new REG to old REG.
18800 * integrate.c (expand_inline_function): Handle case of setting
18801 virtual stack vars register (from built in setjmp); when parameter
18802 lives in memory, expand virtual_{stack_vars,incoming_args}_rtx early.
18803 (subst_constant): Add new parm, MEMONLY.
18804 (expand_inline_function, integrate_parm_decls): Pass new parm.
18805 (integrate_decl_tree): Likewise.
18806 (copy_rtx_and_substitute, case MEM): Do copy RTX_UNCHANGING_P.
18807 (try_constants): Call subst_constants twice, with MEMONLY 0 and 1.
18808 (copy_rtx_and_substitute, case SET): Add explicit calls to
18809 copy_rtx_and_substitute for both sides.
18811 * stmt.c (expand_asm_operands): Don't use TREE_STRING_LENGTH for
18813 (pushcase{,_range}): Convert to NOMINAL_TYPE after checking for
18814 within INDEX_TYPE, instead of before.
18815 (fixup_gotos): Use f->target_rtl, not the next insn,
18816 since latter may be from a later fixup.
18817 (expand_value_return): Correctly convert VAL when promoting function
18818 return; support RETURN_REG being a PARALLEL.
18819 (expand_return): When checking for result in regs and having
18820 cleanup, consider PARALLEL in DECL_RTL as being in regs.
18822 1999-10-28 21:27 -0700 Zack Weinberg <zack@bitmover.com>
18824 * cpplib.h (struct cpp_buffer: fname, nominal_fname,
18825 last_nominal_fname): Mark const.
18826 (struct include_hash: name, nshort, control_macro): Mark
18828 (struct macrodef: symnam): Mark const.
18829 (struct if_stack: fname): Mark const.
18830 (is_idchar, is_idstart, is_hor_space, trigraph_table): Delete.
18831 (IStable): New character-syntax array which encompasses all
18832 the old is_foo arrays.
18833 (is_idchar, is_numchar, is_idstart, is_numstart, is_hspace,
18834 is_space): New macros for interrogating IStable.
18835 (check_macro_name): Kill last argument. All callers changed.
18837 * cppinit.c (initialize_char_syntax): Delete.
18838 (is_idchar, is_idstart, is_hor_space, is_space,
18839 trigraph_table): Delete.
18840 (IStable): New. Initialize with clever macros to avoid
18841 information duplication.
18842 (builtin_array): Table of builtins to get rid of explicit list
18843 in initialize_builtins.
18844 (initialize_builtins): Use builtins_array.
18845 (cpp_start_read): Call init_IStable, and set IStable['$'] if
18846 opts->dollars_in_ident.
18848 * cppexp.c: Change all refs to is_xyz[] arrays to use new
18850 (cpp_parse_expr): Avoid 'format string is not constant'
18851 warning. Use ISGRAPH to identify printable chars.
18852 * cppfiles.c: Change all refs to is_xyz[] arrays to use new
18854 (read_and_prescan): Map trigraphs to chars with open-coded
18855 if-else-if-... sequence, not a lookup table.
18856 * cpphash.c: Change all refs to is_xyz[] arrays to use new
18858 * cpplib.c: Change all refs to is_xyz[] arrays to use new
18859 is_xyz() macros. Kill SKIP_ALL_WHITE_SPACE (unused).
18860 (check_macro_name): Remove ability to report an invalid
18861 assertion name, which is never used.
18862 (do_line): Constify a couple of char *'s.
18863 * cppmain.c (main): Call cpp_cleanup before returning.
18865 Thu Oct 28 21:16:35 1999 Mark Mitchell <mark@codesourcery.com>
18867 * ggc.h (struct ggc_statistics): New type.
18868 (ggc_get_size): New function.
18869 (ggc_print_statistics): Likewise.
18870 * ggc-common.c (ggc_stats): New variable.
18871 (ggc_mark_rtx_children): Keep statistics.
18872 (ggc_mark_tree_children): Likewise.
18873 (ggc_print_statistics): New function.
18874 * ggc-page.c (struct globals): Add bytes_mapped field.
18875 (alloc_anon): Update it.
18876 (release_pages): Likewise.
18877 (ggc_get_size): New function.
18878 (ggc_page_print_statistics): New function.
18879 * ggc-simple.c (ggc_get_size): New function.
18881 Fri Oct 29 06:32:44 1999 Geoffrey Keating <geoffk@cygnus.com>
18883 * flow.c (propagate_block): When the last reference to a label
18884 before an ADDR_VEC is deleted because the reference is a dead
18885 store, delete the ADDR_VEC.
18887 Thu Oct 28 12:28:50 1999 Richard Henderson <rth@cygnus.com>
18889 * resource.c (find_free_register): Don't use the frame pointer
18890 if frame_pointer_needed.
18892 Thu Oct 28 10:02:00 1999 Jim Wilson <wilson@cygnus.com>
18894 * config/mips/mips.c (mips_va_arg): Delete gen_jump as emit_jump arg.
18895 (function_arg_pass_by_reference): Check for a NULL pointer in cum.
18897 * config/i960/i960.c (i960_va_start): New locals base, num.
18898 Use INDIRECT_REF instead of ARRAY_REF on valist.
18899 (i960_va_arg): Use INDIRECT_REF instead of ARRAY_REF on valist.
18901 Thu Oct 28 09:45:48 1999 Mark Mitchell <mark@codesourcery.com>
18903 * gcse.c (delete_null_pointer_checks): Fix typo in previous change.
18905 Thu Oct 28 03:37:50 1999 Peter Gerwinski <peter@gerwinski.de>
18907 * tree.def (PLACEHOLDER_EXPR): Update comments.
18909 Thu Oct 28 06:47:32 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18911 * c-common.c (check_format_info): Avoid non-literal format string
18912 warnings when `first_arg_num' is zero.
18914 Thu Oct 28 12:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18916 * rtl.texi: Delete explicit Prev, Up and Next entries in "@node"s.
18918 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
18920 * arm.md (casesi_insn): Add a clobber of the condition code
18923 Mon Oct 18 21:16:06 1999 Fred Fish <fnf@be.com>
18925 * tm.texi (CC1PLUS_SPEC): Make it clear in the docs that CC1_SPEC is
18926 used by both cc1 and cc1plus.
18928 Thu Oct 28 10:00:48 1999 Nick Clifton <nickc@cygnus.com>
18930 * config/arm/arm.c: Initialise arm_structure_size_boundary to
18931 DEFAULT_STRUCTURE_SIZE_BOUNDARY.
18932 * config/arm/arm.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define
18933 to the value 32 if it has not already been defined.
18934 * config/arm/netbsd.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY):
18935 Override definition in arm.h with a value of 8.
18937 Thu Oct 28 03:12:02 1999 David Starner <dstarner98@aasaa.ofe.org>
18939 * c-pragma.c (push_alignment): Don't check the return value
18942 Thu Oct 28 03:08:38 1999 Matteo Frigo <athena@fftw.org>
18944 * sparc.h (ADJUST_COST): Fix thinko.
18946 Thu Oct 28 02:44:03 1999 Glen Nakamura <glen.nakamura@usa.net>
18948 * cccp.c (rescan): Fixed obp pointer handling around call to
18949 check_expand subroutine.
18951 Thu Oct 28 02:15:22 1999 Jeffrey A Law (law@cygnus.com)
18953 * gcse.c (delete_null_pointer_checks): Only record non-null info
18954 for pseudos when examining stores.
18956 * arm.md (adddi3, adddi_sesidi_di, adddi_sesidi_di): Add
18957 splitters for these patterns. Use "#" for output templates.
18958 (addsi3_carryin_shift): New pattern.
18960 Thu Oct 28 10:20:02 1999 Geoffrey Keating <geoffk@cygnus.com>
18962 * config/rs6000/rs6000.md (movsf): Don't convert a SUBREG
18963 of the function return register into a plain REG until
18964 after function inlining is done.
18966 Wed Oct 27 15:21:46 1999 Richard Henderson <rth@cygnus.com>
18968 * jump.c (jump_optimize_1): If we did cross-jumping, and
18969 the data will matter, rebuild the CFG.
18970 * reg-stack.c (reg_to_stack): Only (re)build the CFG if
18971 not optimizing. Don't run shorten_branches.
18972 * toplev.c (rest_of_compilation): Run shorten_branches after
18975 Wed Oct 27 12:33:40 1999 Mark Mitchell <mark@codesourcery.com>
18977 * rtl.h (note_stores): Add additional paramter.
18978 * rtlanal.c (reg_set_p_1): Take additional paramter.
18979 (reg_set_last_1): Likewise.
18980 (reg_set_p): Adjust call to note_stores.
18981 (reg_set_last): Likewise.
18982 (note_stores): Pass data parameter to worker function.
18983 * alias.c (record_set): Take additional parameter.
18984 (init_alias_analysis): Pass it.
18985 * caller-save.c (mark_set_regs): Take additional parameter.
18986 (save_call_clobbered_regs): Pass NULL to note_stores.
18987 * combine.c (set_nonzero_bits_and_sign_copies): Take additional
18989 (record_dead_and_set_regs_1): Likewise.
18990 (reg_dead_at_p_1): Likewise.
18991 (combine_instructions): Adjust calls to note_stores.
18992 (try_combine): Likewise.
18993 (record_dead_insn): Remove.
18994 (record_dead_and_set_regs): Adjust calls to note_stores.
18995 (reg_dead_at_p): Likewise.
18996 * cse.c (invalidate_skipped_set): Take additional parameter.
18997 (cse_check_loop_start): Likewise.
18998 (cse_check_loop_start_value): Remove.
18999 (cse_set_around_loop): Adjust calls to note_stores.
19000 * flow.c (notice_stack_pointer_modification): Take additional
19001 parameter. Remove duplicate declaration.
19002 (record_volatile_insns): Adjust calls to note_stores.
19003 * gcse.c (record_set_info): Take additional parameter.
19004 (record_last_set_info): Likewise.
19005 (invalidate_nonnull_info): Likewise.
19006 (record_set_insn): Remove.
19007 (compute_sets): Adjust calls to note_stores.
19008 (last_set_insn): Remove.
19009 (compute_hash_table): Adjust calls to note_stores.
19010 (insert_insn_end_bb): Likewise.
19011 (delete_null_pointer_checks): Likewise.
19012 * global.c (mark_reg_store): Take additional parameter.
19013 (mark_reg_clobber): Likewise.
19014 (reg_becomes_live): Likewise.
19015 (global_conflicts): Adjust calls to note_stores.
19016 (build_insn_chain): Likewise.
19017 * integrate.c (note_modified_parmregs): Take additional parameter.
19018 (mark_stores): Likewise. Make it static.
19019 (save_for_inline_nocopy): Adjust calls to note_stores.
19020 (try_constants): Likewise.
19021 * integrate.h (mark_stores): Remove declaration.
19022 * jump.c (mark_modified_reg): Take additional parameter.
19023 (thread_jumps): Adjust calls to note_stores.
19024 * local-alloc.c (validate_equiv_mem_from_store): Take additional
19026 (no_equiv): Likewise.
19027 (reg_is_set): Likewise.
19028 (validate_equiv_mem): Adjust calls to note_stores.
19029 (update_equiv_regs): Likewise.
19030 (block_alloc): Likewise.
19031 * loop.c (note_set_pseudo_multiple_uses_retval): Remove.
19032 (note_addr_stored): Take additional parameter.
19033 (note_set_pseudo_multiple_uses): Likewise.
19034 (record_initial): Likewise.
19035 (prescan_loop): Adjust calls to note_stores.
19036 (strength_reduce): Likewise.
19037 (check_dbra_loop): Likewise.
19038 * regmove.c (flags_set_1): Take additional paramter.
19039 (mark_flags_life_zones): Adjust calls to note_stores.
19040 * reload1.c (mark_not_eliminable): Take additional parameter.
19041 (forget_old_reloads_1): Likewise.
19042 (reload_cse_invalidate_rtx): Likewise.
19043 (reload_cse_check_clobber): Likewise.
19044 (reload_combine_note_store): Likewise.
19045 (move2add_note_store): Likewise.
19046 (reload): Adjust calls to note_stores.
19047 (reload_as_needed): Likewise.
19048 (emit_reload_insns): Likewise.
19049 (reload_cse_regs_1): Likewise.
19050 (reload_cse_record_set): Adjust calls to reload_cse_invalidate_rtx.
19051 (reload_combine): Adjust calls to note_stores.
19052 * resource.c (update_live_status): Take additional paramter.
19053 (mark_target_live_regs): Adjust calls to note_stores.
19054 * stupid.c (find_clobbered_regs): Take additional parameter.
19055 (stupid_life_analysis): Adjust calls to note_stores.
19057 Wed Oct 27 19:26:12 1999 Nick Clifton <nickc@cygnus.com>
19059 * config/arm/coff.h (STRUCTURE_SIZE_BOUNDARY): Delete
19062 * config/arm/elf.h (STRUCTURE_SIZE_BOUNDARY): Delete
19065 * config/arm/arm.h (STRUCTURE_SIZE_BOUNDARY): Define in terms
19066 of the variable arm_structure_size_boundary.
19068 Wed Oct 27 02:05:58 1999 Mark P. Mitchell <mark@codesourcery.com>
19070 * alias.c (init_alias_analysis): Allocate reg_known_value and
19071 reg_known_equiv_p on the heap. Likewise for new_reg_base_value
19073 (end_alias_analysis): Free reg_known_value and reg_known_equiv_p.
19074 * cse.c (cse_main): Call end_alias_analysis.
19075 * haifa-sched.c (schedule_insns): Likewise.
19076 * local-alloc. (update_equiv_regs): Likewise.
19077 * reload1.c (reload_cse_regs): Likewise.
19079 Wed Oct 27 01:49:17 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19081 * sparc/sparc.c (sparc_override_options): Clear MASK_FPU_SET.
19082 * sparc/sparc.h (TARGET_SWITCHES): Add "fpu" entry for reverse
19083 mapping from MASK_FPU.
19085 Wed Oct 27 01:42:26 1999 Scott Christley <scottc@net-community.com>
19087 * sparc.md (call): Don't bound structure return size to 0xfff.
19089 Wed Oct 27 00:56:59 1999 Richard Henderson <rth@cygnus.com>
19091 * resource.c (mark_target_live_regs): Check that the target
19092 insn wasn't created after compute_bb_for_insn.
19094 Tue Oct 26 23:15:03 1999 Mark Mitchell <mark@codesourcery.com>
19096 * ggc-page.c (poison_pages): Don't be overzealous.
19098 Tue Oct 26 23:29:18 1999 Jeffrey A Law (law@cygnus.com)
19100 * alias.c: Update comments for ADDRESS.
19101 (nonlocal_reference_p): Look inside the ADDRESS to determine if
19102 it is a local memory reference.
19104 * c-typeck.c (build_function_call): Check that the built-in
19105 function is of class BUILT_IN_NORMAL before trying to recongize
19106 it as BUILT_IN_ABS.
19107 * calls.c (calls_function_1): Similarly for BUILT_IN_ALLOCA.
19108 * stmt.c (expand_end_cae): Similarly for BUILT_IN_CLASSIFY_TYPE.
19110 Wed Oct 27 00:14:13 1999 Robert Lipe <robertlipe@usa.net>
19112 * gcse.c (expr_reaches_here_p): Use xcalloc and explit free instead
19114 (pre_gcse): Likewise.
19115 (hoist_expr_reaches_here_p): Likewise.
19116 (hoist_code): Likewise.
19117 (pre_expr_reaches_here_p): Replace alloca with xcalloc. Move core
19119 (pre_expr_reaches_here_p_work): ... here.
19120 (expr_reaches_here_p): Replace alloca with xcalloc. Move core
19122 (expr_reaches_here_p_work): ... here.
19124 Tue Oct 26 20:42:45 1999 Richard Henderson <rth@cygnus.com>
19126 * resource.c (find_basic_block): Delete.
19127 (mark_target_live_regs, incr_ticks_for_insn): Use BLOCK_NUM instead.
19128 (init_resource_info): Call compute_bb_for_insn.
19130 Tue Oct 26 20:21:02 1999 Richard Henderson <rth@cygnus.com>
19132 * flow.c (merge_blocks_move_predecessor_nojumps): Cope
19133 with already adjacent blocks, but no fallthru.
19134 (merge_blocks_move_successor_nojumps): Simplify.
19135 (debug_flow_info): New.
19137 * toplev.c (rest_of_compilation): Open jump1 dump file before
19138 jump and close after, as opposed to just using dump_rtl.
19140 Wed Oct 27 03:09:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
19142 * reload.h (earlyclobber_operand_p): Declare.
19143 * reload.c (earlyclobber_operand_p): Don't declare. No longer static.
19144 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
19145 an earlyclobbered output conflict with RELOAD_INPUT reloads - handle
19146 case where the RELOAD_OTHER reload is new. Use earlyclobber_operand_p.
19148 Tue Oct 26 18:23:38 1999 Jan Hubicka <hubicka@freesoft.cz>
19149 Richard Henderson <rth@cygnus.com>
19151 * emit-rtl.c (emit_block_insn_before): New.
19152 (emit_block_insn_after): New.
19153 * basic-block.h: Declare them.
19155 * bitmap.h: Protect from multiple inclusion.
19157 * recog.c (scratch_operand): Handle VOIDmode correctly.
19159 * rtl.h (JUMP_CROSS_JUMP_DEATH_MATTERS): New.
19161 * builtins.c (expand_builtin_apply_args_1): Remove STACK_REGS hack.
19162 * function.c (assign_parms): Likewise.
19163 * global.c (global_conflicts): Clarify STACK_REGS commentary.
19165 * reg-stack.c (max_uid): Remove.
19166 (blocks, block_begin, block_end, block_drops_in): Remove.
19167 (block_stack_in, block_out_reg_set, block_number): Remove.
19168 (struct block_info_def, BLOCK_INFO): New.
19169 (enum emit_where): New.
19170 (current_block): New.
19171 (BLOCK_NUM): Remove.
19172 (mark_regs_pat, record_label_references): Remove.
19173 (record_reg_life_pat, record_reg_life, find_blocks): Remove.
19175 (goto_block_pat, print_blocks, dump_stack_info): Remove.
19176 (reg_to_stack): Simplified test for existance of fp code. Use
19177 flow.c code. Call shorten_branches after cross-jump opt.
19178 (check_asm_stack_operands): Renamed from record_asm_reg_life.
19179 Return false if the asm doesn't use stack regs. Don't do life
19180 analysis on the asm.
19181 (emit_pop_insn): Replace function pointer arg `when' with
19182 enum `where'. Update all callers.
19183 (change_stack): Likewise. Update basic block end.
19184 (emit_swap_insn): Use current_block->head to limit reverse search
19185 for start of block. Use emit_block_insn_after.
19186 (subst_stack_regs_pat): Handle USE and CLOBBER patterns.
19187 (subst_asm_stack_regs): Use check_asm_stack_operands. Use direct
19188 structure assignment instead of bcopy.
19189 (print_stack): New.
19190 (convert_regs_entry, convert_regs_exit): New.
19191 (convert_regs_1, convert_regs_2): Split out from convert_regs.
19192 Work on basic blocks and the CFG.
19193 (convert_regs): Use them.
19195 * i386.c (output_fix_trunc): Remove code for DImode input operand
19196 not at top-of-stack.
19197 * i386.c (fix_truncdfdi2, fix_truncsfdi2): Use scratch with
19199 (fix_truncdi_1): Allow any mode scratch.
19201 Tue Oct 26 13:30:35 1999 Richard Henderson <rth@cygnus.com>
19203 * alpha.h (TARGET_MEM_FUNCTIONS): Define here.
19204 * linux.h, netbsd.h, vms.h: Not here.
19206 1999-10-26 Gavin Romig-Koch <gavin@cygnus.com>
19208 * config/mips/mips.h (ISA_HAS_64BIT_REGS,ISA_HAS_BRANCHLIKELY,
19209 ISA_HAS_FP4,ISA_HAS_CONDMOVE): New.
19210 (GENERATE_BRANCHLIKELY,HAVE_SQRT_P,
19211 CONDITIONAL_REGISTER_USEAGE): Use them.
19212 * config/mips/mips.c (mips_move_1word,mips_move_2words,
19213 gen_conditional_branch,override_options) : Use them.
19214 * config/mips/mips.md : Use them.
19216 Tue Oct 26 13:09:23 1999 Richard Henderson <rth@cygnus.com>
19218 * i386.md (zero_extendqihi2): Use SImode register name with andl.
19220 Tue Oct 26 12:35:38 1999 Richard Henderson <rth@cygnus.com>
19222 * integrate.c (function_cannot_inline_p): Don't allow inlining
19225 Tue Oct 26 14:10:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19227 * c-parse.in (cast_expr): Constify.
19229 * cccp.c (special_symbol): Likewise.
19231 * cse.c (hash_cse_reg_info, cse_reg_info_equal_p): Likewise.
19233 * dwarf2out.c (base_type_die): Likewise.
19235 * global.c (allocno_compare): Likewise.
19237 * local-alloc.c (qty_compare_1, qty_sugg_compare_1): Likewise.
19239 * regclass.c (fix_register): Likewise.
19241 * rtl.h (fix_register): Likewise.
19243 * stupid.c (stupid_reg_compare): Likewise.
19245 * toplev.c (decode_f_option): Likewise.
19247 * tree.c (build_complex_type): Likewise.
19249 Tue Oct 26 18:35:25 1999 Richard Earnshaw <rearnsha@arm.com>
19251 * output.h: Don't unnecessarily conditionalize prototypes on TREE_CODE.
19253 Tue Oct 26 15:42:56 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19255 * reload.c (find_reloads): Compute mode and nregs fields of all
19257 * reload1.c (calculate_needs_all_insns): Simplify a bit.
19258 (calculate_needs): Use precomputed mode/nregs values.
19259 (allocate_reload_reg): Likewise.
19261 (failed_reload, set_reload_reg): ... new functions.
19262 (choose_reload_regs_init): New function, mostly broken out from...
19263 (choose_reload_regs): ... here. Lose all the save_xxx nonsense.
19264 Also lose one #if 0 block.
19266 Tue Oct 26 02:48:32 1999 Marc Espie <espie@cvs.openbsd.org>
19268 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET): Fix target name
19271 Tue Oct 26 01:27:32 1999 Mark Mitchell <mark@codesourcery.com>
19273 * tree.h (BLOCK_TYPE_TAGS): Remove.
19274 (BLOCK_END_NOTE): Likewise.
19275 (BLOCK_LIVE_RANGE_FLAG): Likewise.
19276 (BLOCK_LIVE_RANGE_START): Likewise.
19277 (BLOCK_LIVE_RANGE_END): Likewise.
19278 (tree_block): Remove live_range_flag, live_range_var_flag, and
19279 type_tags. Remove end_note, live_range_start, and live_range_end.
19280 (remember_end_note): Remove prototype.
19281 * tree.c (build_block): Don't set BLOCK_TYPE_TAGS.
19282 * c-decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call
19284 * ggc-common.c (ggc_mark_tree_children): Don't mark
19285 BLOCK_TYPE_TAGS or BLOCK_END_NOTE.
19286 * integrate.c (adjust_copied_decl_tree): Remove.
19287 * print-tree.c (print_node): Don't print BLOCK_TYPE_TAGS.
19288 * stmt.c (last_block_end_note): Remove.
19289 (init_stmt): Don't add a GC root for it.
19290 (expand_fixup): Don't set it.
19291 (remember_end_note): Remove.
19292 (expand_end_bindings): Don't set last_block_end_note.
19294 Tue Oct 26 00:41:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19296 * reload1.c (reload_reg_free_for_value_p): Show
19297 RELOAD_FOR_OTHER_ADDRESS reloads can conflict with RELOAD_OTHER
19300 Mon Oct 25 23:54:45 1999 Geoff Keating <geoffk@cygnus.com>
19302 * expmed.c (extract_bit_field): Allow for the case of non-integer
19303 objects that are smaller than a word (like SFmode on a 64-bit
19306 * loop.c (basic_induction_var): A non-integer variable which is
19307 being set by a paradoxical subreg is probably not a biv.
19309 1999-10-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19311 * prefix.c (translate_name) Check for empty prefix string.
19313 Mon Oct 25 23:10:45 1999 Andreas Schwab <schwab@suse.de>
19315 * Makefile.in (CPP_CROSS_NAME): New variable.
19316 (install-cpp): Use it instead of CPP_INSTALL_NAME for the cross
19318 (uninstall-cpp): Use CPP_INSTALL_NAME and CPP_CROSS_NAME for the
19319 names of the files to be uninstalled.
19321 Mon Oct 25 23:03:09 1999 Jeffrey A Law (law@cygnus.com)
19323 * collect2.c (IS_DIR_SEPARATOR): Define.
19324 (prefix_from_string): Use IS_DIR_SEPARATOR and DIR_SEPARATOR.
19326 * som.h (ASM_DECLARE_FUNCTION_NAME): Set PRIV_LEV for static
19329 * haifa-sched.c (add_dependence): Update the true dependency
19330 cache the first time we add a true dependence to the LOG_LINKS chain.
19332 Mon Oct 25 22:27:40 1999 Jim Kingdon <http://developer.redhat.com/>
19334 * fold-const.c (fold): Fix comment.
19336 Mon Oct 25 22:49:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19338 * dbxout.c (lastfile, cwd, dbxout_type_method_1,
19339 dbxout_symbol_location, dbxout_symbol_name, dbxout_init,
19340 dbxout_start_new_source_file, dbxout_source_file,
19341 dbxout_source_line, dbxout_finish, dbxout_type_fields,
19342 dbxout_type_methods, dbxout_symbol, dbxout_prepare_symbol):
19344 (dbxout_types, dbxout_args, dbxout_symbol): Delete prototypes.
19345 (dbxout_symbol): Mark parameter `local' with ATTRIBUTE_UNUSED.
19346 (dbxout_block): Initialize variable `blocknum'.
19348 * dbxout.h (dbxout_init, dbxout_finish,
19349 dbxout_start_new_source_file, dbxout_source_file, dbxout_types,
19350 dbxout_args, dbxout_source_line): Constify a char*.
19352 * dwarfout.c (dwarf_tag_name, dwarf_attr_name,
19353 dwarf_stack_op_name, dwarf_typemod_name, dwarf_fmt_byte_name,
19354 dwarf_fund_type_name, name_attribute, stmt_list_attribute,
19355 low_pc_attribute, high_pc_attribute, body_begin_attribute,
19356 body_end_attribute, comp_dir_attribute, sf_names_attribute,
19357 src_info_attribute, mac_info_attribute, producer_attribute,
19358 lookup_filename, generate_macinfo_entry, fundamental_type_code,
19359 dwarfout_line, dwarfout_start_new_source_file, dwarfout_define,
19360 dwarfout_undef): Constify a char*.
19361 (add_incomplete_type, retry_incomplete_types): Add prototypes.
19363 * dwarfout.h (dwarfout_define, dwarfout_undef,
19364 dwarfout_start_new_source_file, dwarfout_line): Constify a char*.
19366 1999-10-25 Gavin Romig-Koch <gavin@cygnus.com>
19368 * config/mips/mips.h (MIPS_ISA_DEFAULT): Insure it's defined.
19369 (MULTILIB_ISA_DEFAULT): New.
19370 (MULTILIB_DEFAULTS): Use it.
19371 * config/mips/mips.c (): Remove the now unnecessary definition
19372 of MIPS_ISA_DEFAULT.
19373 * config/mips/elf64.h (MULTILIB_DEFAULTS): Remove the now
19374 unnecessary definition.
19376 Mon Oct 25 22:08:35 1999 Richard Earnshaw (rearnsha@arm.com)
19378 * arm.md (pic_load_addr): Add constraints to operand 1.
19380 1999-10-25 Bruce Korb <autogen@linuxbox.com>
19382 * fixinc/genfixes: Provide a means for specifying -D options to
19385 Mon Oct 25 00:42:35 1999 Jeffrey A Law (law@cygnus.com)
19387 * arm.c (arm_override_options): Correct initialization of
19388 arm_fast_multiply, arm_arch4, arm_arch5, arm_ld_sched,
19389 arm_is_strong, and arm_is_6_or_7.
19391 * loop.c (note_set_pseudo_multiple_uses_retval): New variable.
19392 (note_set_pseudo_multiple_uses): New function.
19393 (check_dbra_loop): Use not_set_pseudo_multiple_uses to determine
19394 if a pseudo set in the loop exit is used elsewhere.
19396 Sun Oct 24 20:52:40 1999 Mark Mitchell <mark@codesourcery.com>
19398 * i386.md (mulsi3): Tweak to work with SCO OSR5 COFF assembler.
19400 Sun Oct 24 21:02:46 1999 Richard Henderson <rth@cygnus.com>
19402 * i386.md (*lea_0): Collapse addsi_0, addsi_lea_[123] into
19403 a single load-address pattern.
19405 Sun Oct 24 19:33:24 1999 Mark P. Mitchell <mark@codesourcery.com>
19407 * haifa-sched.c (schedule_insns): Don't assign LUIDs differently
19408 depending on whether or not line-number notes are present.
19410 Sun Oct 24 20:29:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19412 * cccp.c (progname, file_buf, default_include, include_file,
19413 macrodef, definition, hashval, wchar_type, user_label_prefix,
19414 directive, out_fname, if_stack, safe_write, index0, get_lintcmd,
19415 expand_to_temp_buffer, is_system_include, base_name,
19416 absolute_filename, read_name_map, open_include_file,
19417 record_control_macro, check_precompiled, check_preconditions,
19418 pcfinclude, pass_thru_directive, create_definition,
19419 check_macro_name, comp_def_part, collect_expansion,
19420 check_assertion, read_token_list, assertion_install,
19421 assertion_lookup, eval_if_expression, conditional_skip,
19422 validate_else, skip_quoted_string, quote_string, macarg1,
19423 error_from_errno, install, lookup, hashf, dump_defn_1,
19424 perror_with_name, pfatal_with_name, main, trigraph_pcp,
19425 check_white_space, rescan, handle_directive, monthnames,
19426 special_symbol, do_include, remap_include_file, write_output,
19427 arglist, do_assert, do_unassert, do_line, do_error, do_once,
19428 do_ident, do_sccs, do_xifdef, skip_if_group,
19429 output_line_directive, macroexpand, macarg, change_newlines,
19430 initialize_builtins, make_definition): Constify a char*.
19432 * pcp.h (stringdef): Likewise.
19434 Sun Oct 24 13:29:28 1999 Richard Henderson <rth@cygnus.com>
19436 * unroll.c (copy_loop_body): Examine SET_DEST of single_set
19439 Sun Oct 24 13:14:20 1999 Graham <grahams@rcp.co.uk>
19440 Richard Henderson <rth@cygnus.com>
19442 * alias.c: Include ggc.h.
19443 (reg_base_value, new_reg_base_value, reg_base_value_size): Make static.
19444 (record_set): Verify enough room in reg_base_value.
19445 (init_alias_analysis): Allocate reg_base_value with xcalloc.
19446 Register it as a GC root.
19447 (end_alias_analysis): Free reg_base_value. Remove it as a GC root.
19448 * Makefile.in (alias.o): Depend on ggc.h.
19450 * unroll.c (unroll_loop): Verify the insn before a barrier
19451 is a JUMP_INSN before checking JUMP_LABEL.
19453 Sun Oct 24 15:46:44 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19455 * mips/bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
19456 * mips/iris4.h (ASM_OUTPUT_ASCII): Likewise.
19457 * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
19458 * mips/mips.h (ASM_OUTPUT_ASCII): Likewise.
19459 * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
19460 * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
19462 Sun Oct 24 15:35:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19464 * output.h (ctors_section, dtors_section, bss_section): Prototype.
19466 * alpha/alpha-interix.h (text_section): Delete prototype.
19467 * alpha/elf.h (text_section): Likewise.
19468 * arm/linux-elf.h (text_section): Likewise.
19469 * arm/linux-telf.h (text_section): Likewise.
19470 * c4x/c4x.h (text_section): Likewise.
19471 * dsp16xx/dsp16xx.h (bss_section): Likewise.
19472 * elfos.h (text_section): Likewise.
19473 * i386/aix386ng.h (text_section): Likewise.
19474 * i386/i386-interix.h (text_section): Likewise.
19475 * i386/sco5.h (text_section): Likewise.
19476 * i386/svr3gas.h (text_section): Likewise.
19477 * nextstep.h (text_section): Likewise.
19478 * psos.h (text_section): Likewise.
19479 * ptx4.h (text_section): Likewise.
19480 * svr3.h (text_section): Likewise.
19481 * svr4.h (text_section, ctors_section, dtors_section): Likewise.
19483 Sun Oct 24 15:20:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19485 * final.c (peephole): Delete prototype.
19487 * gcse.c (process_insert_insn, pre_edge_insert): Add prototypes.
19488 (pre_insert_copies): Remove unused variable `bb'.
19490 * genrecog.c (debug_decision_0, debug_decision_list, main): Add
19493 * output.h (peephole): Add prototype.
19495 Sun Oct 24 11:35:30 1999 Mark P. Mitchell <mark@codesourcery.com>
19497 * config/mips/iris6.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Define to
19500 Sat Oct 23 21:13:00 1999 Mark Mitchell <mark@codesourcery.com>
19502 * integrate.c (integrate_decl_tree): Tweak setting of DECL_CONTEXT
19503 for inlined declarations.
19505 Fri Oct 22 18:05:43 1999 Jeffrey A Law (law@cygnus.com)
19507 * arm.c (logical_binary_operator): New fucntion.
19508 * arm.h (logical_binary_operator): Declare it.
19509 (PREDICATE_CODES): Handle logical_binary_operator.
19510 * arm.md (anddi3, anddi_zesidi_di, anddi_sesdi_di): Use "#" for
19511 output constraints. Add appropriate splitters.
19512 (anddi_notdi_di, anddi_notzesidi_di, anddi_notsesidi_di): Likewise.
19513 (iordi3, iordi_zesidi_di, iordi_sesidi_di): Likewise.
19514 (xordi3, xordi_zesidi_di, xordi_sesidi_di): Likewise.
19516 Fri Oct 22 23:46:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19518 * genoutput.c (struct operand_data): New elt eliminable.
19519 (output_operand_data): Write it.
19520 (scan_operands): Set it for MATCH_OPERAND, clear for other matchers.
19521 (compare_operands): Take it into account.
19522 * recog.h (struct insn_operand_data): New elt eliminable.
19523 * reload1.c (check_eliminable_occurrences, elimination_effects): New
19525 (old_asm_operands_vec, new_asm_operands_vec): Delete.
19526 (eliminate_regs): Move code that detects changes to elimination
19527 target regs into new function elimination_effects.
19528 Delete one #if 0 block.
19529 Abort for USE, CLOBBER, ASM_OPERANDS and SET.
19530 (eliminate_regs_in_insn): Return immediately for USEs, CLOBBERs,
19531 ADDR_VECs, ADDR_DIFF_VECs and ASM_INPUTs.
19532 Only call eliminate_regs for real operands of the insn, not for parts
19533 of its structure or parts matched by things like match_operator.
19534 Use elimination_effects and check_eliminable_occurrences. Use
19535 copy_insn to duplicate the pattern when not in the final pass.
19537 Fri Oct 22 09:03:44 1999 Mark Mitchell <mark@codesourcery.com>
19539 * i386.md: Add missing `y' modifiers to uses of fst, fstp, fld,
19542 1999-10-22 Bruce Korb <autogen@linuxbox.com>
19544 * fixinc/README: document the "mach" machine matching test
19545 * fixinc/fixfixes.c: Implement the #else/#endif label fix
19546 * fixinc/fixtests.c: Implement the #else/#endif label test
19547 * fixinc/inclhack.def: utilize these tests and fixes
19548 * fixinc/inclhack.sh: regen
19549 * fixinc/fixincl.x: regen
19550 * fixinc/fixincl.sh: regen
19552 Thu Oct 21 20:37:19 1999 Jeffrey A Law (law@cygnus.com)
19554 * Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h. Also
19557 Thu Oct 21 20:30:19 1999 Matthias Klose <doko@debian.org>
19559 * gcc.1: Document exit codes.
19561 Thu Oct 21 12:49:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19563 * calls.c: Include tm_p.h later, so everything we need is defined.
19564 * expr.c: Likewise.
19565 * function.c: Likewise.
19567 * except.c: Include tm_p.h.
19569 * sparc.c: Likewise.
19570 (dwarf2out_cfi_label): Don't prototype.
19571 (check_return_regs, epilogue_renumber,
19572 ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
19573 ultra_find_type, ultra_build_types_avail, ultra_flush_pipeline,
19574 ultra_rescan_pipeline_state, set_extends, ultra_code_from_mask,
19575 ultra_schedule_insn): Add static prototype.
19576 (data_segment_operand, text_segment_operand): Call itself with the
19577 proper number of arguments.
19578 (sparc_flat_save_restore, sparc_v8plus_shift): Constify a char*.
19580 * sparc.h: Move all declarations to sparc-protos.h.
19581 (SELECT_RTX_SECTION): Pass a missing MODE argument to
19584 * sparc/sysv4.h (SELECT_RTX_SECTION): Likewise.
19586 * config/svr4.h (text_section, ctors_section, dtors_section): Add
19588 (ASM_OUTPUT_SECTION_NAME, UNIQUE_SECTION,
19589 ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
19590 ASM_OUTPUT_ASCII): Constify a char*.
19592 * sparc-protos.h: New file for sparc prototypes.
19594 Thu Oct 21 12:23:40 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19596 * function.c (record_insns, contains): Always declare and define.
19597 (record_insns): Mark with ATTRIBUTE_UNUSED.
19599 Thu Oct 21 13:03:49 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
19601 * config/arm/telf.h (ASM_OUTPUT_SECTION_NAME): Add %nobits option
19602 to .section when outputting a .bss section to deal with multiple
19603 .bss input sections (as happens with -fdata-sections)
19604 Also output %progbits, not @progbits so the assembler doesn't treat as
19606 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Likewise
19608 * config/arm/lib1funcs.asm (_call_via_rX): Allow compilation of
19609 thumb parts even when building with non-thumb CPUs, by forcing
19612 Wed Oct 20 22:57:58 1999 Jeffrey A Law (law@cygnus.com)
19614 * sparc.md (movsf_const_intreg): If splitting, length must be > 1.
19615 (movdf_const_intreg_sp64): Similarly.
19617 * local-alloc.c (update_equiv_regs): Check the correct insn
19618 for pre-existing REG_EQUIV notes.
19620 Wed Oct 20 20:41:46 1999 Mark Mitchell <mark@codesourcery.com>
19622 * cse.c (cse_end_of_basic_block): Don't return the end of a basic
19623 block reached by a branch if we're not going to actually process
19626 Wed Oct 20 15:18:42 1999 Jim Wilson <wilson@cygnus.com>
19628 * integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
19629 a local extern function declaration.
19631 Wed Oct 20 13:56:01 1999 Richard Henderson <rth@cygnus.com>
19633 * i386.c (ix86_expand_prologue): Properly wrap USE around
19634 reg for CALL_INSN_FUNCTION_USAGE.
19636 Thu Oct 14 18:51:37 1999 Andrew Haley <aph@cygnus.com>
19638 * config/mips/mips.md (movdf_internal1a): Allow floating-point
19639 move between GP_REGs.
19641 Wed Oct 20 15:36:11 1999 Andrew Haley <aph@cygnus.com>
19643 * config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
19644 the mode size when finding out if an offset is legal.
19646 Wed Oct 20 06:26:58 1999 Richard Henderson <rth@cygnus.com>
19648 * basic-block.h (PROP_*): Move constants from ...
19649 * flow.c: ... here.
19650 (compute_bb_for_insn): Free the array before reallocating.
19651 (update_life_info): New arg PROP_FLAGS; pass on to propagate_block.
19652 (allocate_reg_life_data): Reset all reg variables collected by
19654 (get_block_head_tail): Don't convert from bb to block.
19655 (get_bb_head_tail): New. Update all callers of get_block_head_tail.
19656 (find_insn_reg_weight): Take block not bb.
19657 (schedule_block): Don't set block num for moved insns.
19658 (schedule_region): Don't update_life_info or find_insn_reg_weight.
19659 (schedule_insns): Do it here instead.
19660 * combine.c (combine_instructions): Invoke compute_bb_for_insn
19661 before update_life_info.
19662 * recog.c (split_all_insns, peephole2_optimize): Update for
19663 new arg to update_life_info.
19664 * rtlanal.c (remove_note): Cope with NULL note.
19665 * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage
19668 Wed Oct 20 10:46:41 1999 Richard Earnshaw (rearnsha@arm.com)
19670 * jump.c (jump_optimize_1): More accurately detect casesi insns.
19672 * flow.c (merge_blocks_move_predecessor_nojumps): Re-order the basic
19673 block records so that merge_blocks_nomove will clean up correctly.
19674 (split_edge): Handle casesi insns.
19676 * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
19678 Tue Oct 19 23:43:50 1999 Jeffrey A Law (law@cygnus.com)
19680 * pa.md (call, call_value): Do not emit a blockage after restoring
19683 Tue Oct 19 17:22:39 1999 Mark Mitchell <mark@codesourcery.com>
19685 * c-typeck.c (c_expand_asm_operands): Fix typo.
19687 Tue Oct 19 18:42:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19689 * arm.c (fpu_rhs_operand): Verify modes.
19690 (fpu_add_operand): Likewise.
19691 (di_operand): Likewise.
19692 (soft_df_operand): Likewise.
19694 Tue Oct 19 15:26:11 1999 Richard Earnshaw (rearnsha@arm.com)
19696 * arm.c (arm_return_in_memory): APCS rules state that the elements
19697 of a structure returned in a register must be 'integer-like'.
19699 1999-10-19 Bruce Korb <autogen@linuxbox.com>
19701 * fixinc/Makefile.in: Change the generation rules to run `genfixes'
19702 in the source tree when the generated targets are out of date
19703 * fixinc/genfixes: Alter it to run individual fixes for make.
19704 * fixinc/README: rewrite
19705 * fixinc/inclhack.def: moved initial comments to README
19707 Tue Oct 19 14:01:34 1999 Nick Clifton <nickc@cygnus.com>
19709 * toplev.c (main): Do not generate an error message if an
19710 unrecognised command line switch is recognisable by another
19711 language. If extra_warnings are enabled, then generate a
19712 warning message instead.
19714 Tue Oct 19 11:41:12 1999 Mumit Khan <khan@xraylith.wisc.edu>
19716 * c-pragma.h (PRAGMA_INSERT_ATTRIBUTES): Delete macro.
19717 (insert_pack_attributes): Delete prototype.
19719 * c-pragma.c (default_alignment): New static variable.
19720 (push_alignment): Initialize to current effective alignment.
19721 (pop_alignment): Use to set new alignment.
19722 (insert_pack_attributes): Delete function.
19723 (handle_pragma_token): Set default_alignment as well each time
19724 a #pragma pack(<n>) is encountered.
19726 Tue Oct 19 02:03:00 1999 Jeffrey A Law (law@cygnus.com)
19728 * reg-stack.c (stack_result): Aggregates are not returned in
19731 Tue Oct 19 01:26:48 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
19733 * fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
19735 Mon Oct 18 15:19:41 1999 Richard Henderson <rth@cygnus.com>
19737 * basic-block.h (set_block_num): Declare.
19738 * flow.c (update_life_info): Don't call compute_bb_for_insn
19739 or free_basic_block_vars.
19740 * haifa-sched.c (remove_dependence): Conditionalize on HAVE_cc0.
19741 (insn_orig_block): Remove.
19742 (INSN_BLOCK): Remove. Update all callers to use BLOCK_NUM.
19743 (schedule_block): Keep BLOCK_NUM up-to-date.
19744 (schedule_insns): Use compute_bb_for_insn.
19745 * recog.c (split_all_insns): Likewise.
19746 (peephole2_optimize): Likewise.
19748 Mon Oct 18 18:50:51 1999 Andreas Schwab <schwab@suse.de>
19750 * config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
19751 if the pic register is used.
19753 Mon Oct 18 02:38:46 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19755 * c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
19756 (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of
19757 if that tests TREE_PERMANENT.
19759 Mon Oct 18 01:41:35 1999 Jeffrey A Law (law@cygnus.com)
19761 * cse.c (invalidate_for_call): Do not remove memory references from
19762 the table here. It's handled elsewhere.
19764 * haifa-sched.c (add_dependence): Protect references to the
19765 true dependency cache with #ifdef INSN_SCHEDULING.
19766 (remove_dependence): Similarly.
19768 * mn10200.md (outline_epilogue_jump): Embed a (return) to indicate
19769 to the cfg code that this is a return instruction.
19770 * mn10300.md (return_internal): Similarly.
19772 * combine.c (get_last_value): If the last set of a register
19773 is after subst_low_cuid, then we can not use it to determine
19774 the register's last value.
19776 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
19778 * Makefile.in: Back out previous change.
19780 Sun Oct 17 15:22:50 1999 Jeffrey A Law (law@cygnus.com)
19782 * pa.c (move_operand): Reject (lo_sum (reg) (unspec ...)).
19784 * haifa-sched.c (add_dependence): Only check/update the cache
19786 (remove_dependence): Likewise.
19787 (schedule_insns): Only create the true_dependency_cache if the
19788 average number of instructions in a basic block is very large.
19790 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
19792 * Makefile.in (ggc-common.o): Depend on genrtl.h.
19793 (ggc-simple.o): Likewise.
19794 (ggc-page.o): Likewise.
19796 Sun Oct 17 02:09:50 1999 Andrew MacLeod <amacleod@cygnus.com>
19798 * basic-block.h (pre_edge_lcm, pre_edge_rev_lcm, compute_available):
19799 Prototype for exported functions.
19800 (pre_lcm, pre_rev_lcm): Remove prototypes.
19801 * gcse.c (compute_ae_kill): Add ae_gen and ae_kill as parameters.
19802 (compute_available): Move to lcm.c, and change parameter order.
19803 (one_classic_gcse_pass): Call compute_ae_kill with parameters.
19804 (pre_insert, s_preds, s_succs, num_preds, num_succs): Delete.
19805 (gcse_main): No longer call compute_preds_succs. Rebuild the
19806 set table after reach pre pass.
19807 (pre_insert_map, pre_delete_map, edge_list): New.
19808 (alloc_pre_mem): Allocate edge vectors.
19809 (free_pre_mem): Delete edge vectors.
19810 (compute_pre_data): Call new edge based lcm routines.
19811 (process_insert_insn): New function.
19812 (insert_insn_end_bb): Use it.
19813 (pre_edge_insert): New function.
19814 (pre_insert_copy_insn): Formatting fixes. Update BLOCK_END as
19816 (pre_insert_copies): Revamp using new edge based lcm outputs.
19817 (pre_delete): Likewise.
19818 (one_pre_gcse_pass): Insert & remove fake edges to the exit
19820 (compute_code_hoist_vbeinout): New new edge based routines.
19821 * lcm.c: Remove all the old LCM functions. Replace with new ones
19822 that work with the new cfg datastructures and work with edges
19825 Sun Oct 17 00:44:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19827 * reload.h (struct reload): Add new fields "mode" and "nregs".
19828 * reload1.c: Change all occurrences of reload_mode and reload_nregs
19829 to reference the "mode" and "nregs" field within struct reload.
19831 Sat Oct 16 21:50:28 1999 Jeffrey A Law (law@cygnus.com)
19833 * haifa-sched.c (true_dependency_cache): New.
19834 (add_dependence): Use the true dependency cache to avoid expensive
19835 walks down the LOG_LINKS dependency list. Add entries to the
19836 cache as necessary.
19837 (remove_dependence): Remove entries from the true dependency cache
19839 (schedule_insns): Allocate and initialize and free the true
19842 * haifa-sched.c (schedule_insns): Do not remove inter-block
19843 dependencies anymore.
19845 Sat Oct 16 11:19:52 1999 Richard Henderson <rth@cygnus.com>
19847 * i386/t-cygwin (winnt.o): Depend on RTL_H and TREE_H.
19848 * i386/t-winnt: Likewise.
19850 Sat Oct 16 11:11:54 1999 Richard Henderson <rth@cygnus.com>
19852 * ggc-page.c (init_ggc): Work around SunOS unaligned mmap bug.
19854 1999-10-16 Manfred Hollstein <mhollstein@cygnus.com>
19856 * Makefile.in (LANGUAGES): Omit "proto".
19857 (clean): Remove stale comment about removing unprotoize.c.
19859 Sat Oct 16 11:29:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19861 * protoize.c (safe_read, safe_write): Avoid the gcc extension of
19862 using arithmetic on void pointers.
19864 Sat Oct 16 02:48:22 1999 Jeffrey A Law (law@cygnus.com)
19866 * haifa-sched.c (compute_block_forward_dependencies): Only check
19867 for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
19869 Sat Oct 16 00:07:01 1999 Richard Henderson <rth@cygnus.com>
19871 * gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
19872 (expr_equiv_p): Reject memories with different alias sets.
19874 Fri Oct 15 15:17:29 1999 Greg McGary <gkm@gnu.org>
19876 * flags.h (flag_bounds_check, flag_bounded_pointers): New extern decls.
19877 * toplev.c (flag_bounds_check, flag_bounded_pointers): New flags.
19878 (f_options): Add "bounded-pointers" and "bounds-check" entries.
19879 * c-lang.c (lang_init_options): Set flag_bounds_check as "unspecified".
19880 (lang_init): Set default for flag_bounds_check if still "unspecified".
19882 Sat Oct 16 13:42:29 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19884 * config/c4x/c4x.md (HF mode patterns): Add missing modes.
19886 Sat Oct 16 13:37:46 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19888 * config/c4x/c4x.md (movstrqi_small): Utilise parallel move
19891 Sat Oct 16 13:26:47 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19893 * config/c4x/c4x.md (*db_noclobber,
19894 *decrement_and_branch_until_zero_noclobber): New patterns and
19895 associated splitters.
19897 Sat Oct 16 13:13:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19899 * config/c4x/c4x.md (parallel instruction patterns): Rework
19900 constraints to keep reload happy.
19902 Sat Oct 16 13:03:16 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19904 * config/c4x/c4x.md (*absqi2_noclobber, *negqi2_noclobber,
19905 *one_cmplqi2_noclobber, *subqi3_noclobber, *andqi3_255_noclobber,
19906 *andqi3_65535_noclobber, *andnqi3_noclobber, *xorqi3_noclobber):
19907 Add new patterns and associated post-reload splitters.
19909 Sat Oct 16 12:42:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19911 * config/c4x/c4x.c (c4x_emit_libcall): Use ggc_alloc_string.
19913 Sat Oct 16 12:34:44 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19915 * config/c4x/c4x.c (c4x_rptb_insert): Emit rpts_top pattern
19917 * config/c4x/c4x.md (rpts_top): New pattern and splitter.
19919 Sat Oct 16 12:26:30 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19921 * config/c4x/c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF
19924 Fri Oct 15 17:02:09 1999 Jeffrey A Law (law@cygnus.com)
19926 * pa.c (move_operand): Rely on memory_address_p to determine the
19927 validity of non-indexed memory addresses.
19928 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow LO_SUM with a symbolic
19929 operand in DFmode and SFmode when generating PA2.0 code.
19931 Fri Oct 15 14:25:19 1999 Richard Henderson <rth@cygnus.com>
19933 * print-rtl.c (print_rtx): Limit last 'u' change to LABEL_REF.
19935 Fri Oct 15 13:48:45 1999 Richard Henderson <rth@cygnus.com>
19937 * mips.c (function_prologue): Fix argument types.
19938 * mips.md (casesi): Use emit_jump_insn for casesi_internal.
19939 (casesi_internal): Write to the scratch register.
19941 1999-10-15 11:16 -0700 Zack Weinberg <zack@bitmover.com>
19943 * cppexp.c (cpp_parse_escape): Make static. Change second arg
19945 (parse_charconst): Delete unnecessary cast when calling
19947 (cpplib.h): Kill prototype of cpp_parse_escape.
19949 Fri Oct 15 11:02:46 1999 Richard Henderson <rth@cygnus.com>
19951 Based on patch from Michael Gschwind <mikeg@watson.ibm.com>:
19952 * unroll.c (unroll_loop): Cast return value of alloca.
19953 * i370/i370.c: Include function.h and toplev.h.
19954 (i370_label_scan): Remove c++ commented abort.
19955 * i370/i370.h (HANDLE_PRAGMA): Takes three arguments.
19956 (ASM_OUTPUT_LABELREF): Fix TOUPPER/else broken 16 Sept.
19957 * i370/xm-i370.h (HOST_BITS_PER_LONGLONG): Define.
19958 * i370/xm-mvs.h, i370/xm-oe.h: Likewise.
19960 Fri Oct 15 03:01:01 1999 Loren Rittle <ljrittle@acm.org>
19962 * config/t-freebsd: Do not override USER_H.
19963 * ginclude/stddef.h: Generalize check for _MACHINE_ANSI_H_.
19965 Fri Oct 15 02:37:28 1999 Alastair J. Houghton <ajh8@doc.ic.ac.uk>
19966 Mumit Khan <khan@xraylith.wisc.edu>
19968 * c-parse.in (component_decl): Support anonymous struct/union.
19970 * c-parse.y: Regenerate.
19971 * c-parse.c: Likewise.
19972 * objc/objc-parse.y: Likewise.
19973 * objc/objc-parse.c: Likewise.
19974 * c-decl.c (finish_struct): Don't sort the fields.
19975 (field_decl_cmp): Delete unused function.
19977 Fri Oct 15 01:20:52 1999 Richard Henderson <rth@cygnus.com>
19979 * sparc.md (movsf_const_intreg): Revert last constraint change.
19980 (movdf_const_intreg_sp32): Likewise.
19982 Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
19984 * cse.c: Include hashtab.h instead of splay-tree.h
19985 (struct cse_reg_info): No longer use variant union. Add new
19986 field "regno". All references changed to avoid union.
19987 (cse_reg_info_used_list, cse_reg_info_used_list_end): New variables.
19988 (free_cse_reg_info): Remove.
19989 (hash_cse_reg_info, cse_reg_info_equal_p): New functions.
19990 (get_cse_reg_info): Revamp to use expandable hash tables instead
19991 of splay trees. Initialize new fields in cse_reg_info structure.
19992 (new_basic_block): Similarly.
19994 Thu Oct 14 23:51:56 1999 Richard Henderson <rth@cygnus.com>
19996 * genrecog.c (message_with_line): Prototype.
19997 (validate_pattern): Pass along the set for the dest, not a flag.
19998 Fix non-lvalue message. Don't warn for VOIDmode SET_DEST of CALL.
19999 Check for PC/CC0 as sources.
20000 (nodes_identical): Check for children position match before
20001 allowing the combination.
20003 * rtl.c (read_rtx): Track line number across \\\n.
20005 Thu Oct 14 23:50:25 1999 Richard Henderson <rth@cygnus.com>
20007 * mips.h (SPECIAL_MODE_PREDICATES): New.
20008 * mips.md (*) Use nonimmediate_operand not general_operand for outputs.
20009 (movdi+1, movsi+1): Add output reload constraint.
20010 (casesi_internal): Likewise. Fix commentary.
20011 (return_internal): Use pmode_register_operand.
20013 Thu Oct 14 23:19:34 1999 Richard Henderson <rth@cygnus.com>
20015 * 1750a.md (movstrqi): Add missing output reload constraint.
20016 (call_value): Likewise.
20017 * a29k.md (cpxxx patterns): Add missing match_operator mode.
20018 (jmpfdec): Add missing inout reload constraint.
20019 * elxsi.md (addsi patterns): Add missing output reload constraint.
20020 (move from sp): Use @ alternates.
20021 (call_value): No constraint on output.
20022 * fr30.md (movsi_pop): Add missing output reload constraint.
20023 (movsf_constant_store): Likewise.
20024 (splits): Remove constraints.
20025 (subsi3): Add missing mode.
20026 * i370.md (cmpstrsi+1): Add missing output reload constraint.
20027 (call_value): Likewise.
20028 * i960.md (cmpinc/cmpdec patterns): Add inout reload constraints.
20029 * m32r.h (PREDICATE_CODES): Add seth_add3_operand.
20030 * m32r.md (movsicc_internal): Add output reload constraint.
20031 (movstrsi_internal): Add inout reload constraints.
20032 * m88k.h (reg_names): Don't declare.
20033 (SPECIAL_MODE_PREDICATES): New.
20034 * m88k.md (*): Use register_operand not reg_or_0_operand
20036 * mn10200.h (PREDICATE_CODES): New.
20037 * ns32k.md (ffs pattern): Add output reload constraint.
20038 * pdp11.md (sob pattern): Add inout reload constraint.
20039 * sh.md (splits): Remove constraints.
20040 (indirect_jump_scratch, fpu_switch): Add output reload constraint.
20041 * v850.md (pattern_is_ok_for_epilogue): Likewise.
20042 * vax.md (jgequ pattern): Add inout reload constraint.
20044 Fri Oct 15 00:05:00 1999 Jeffrey A Law (law@cygnus.com)
20046 * configure.in (djgpp): Revert previous patch.
20047 * configure: Rebuit.
20048 * config/i386/djgpp.h: Revert previous patch.
20050 Fri Oct 15 00:00:24 1999 Loren J. Rittle <ljrittle@acm.org>
20052 * fixinc/inclhack.def: Restore patch lost during last merge of
20053 "no_bogosity" branch.
20054 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
20056 Thu Oct 14 23:57:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
20058 * fixincludes: Add a HPUX 11 fix for inttypes.h.
20059 * fixinc/inclhack.def: Same.
20060 * fixinc/inclhack.sh, fixinc/fixincl.sh, fixinc/fixincl.x: Regenerate.
20062 Thu Oct 14 22:51:55 1999 Richard Henderson <rth@cygnus.com>
20064 * alpha.h (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Accept ADDRESSOF
20065 as the base of a PLUS.
20067 Fri Oct 15 18:36:07 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20069 * config/c4x/c4x.md: Define mode for remaining unspec operators.
20070 * config/c4x/c4x.c (dst_operand): Use nonimmediate_operand.
20072 Thu Oct 14 22:14:23 1999 Richard Henderson <rth@cygnus.com>
20074 * pa.md (post_stw+1): Use pmode_register_operand.
20075 (dcacheflush, icacheflush): Likewise.
20077 * i386.md (movstricthi_1): Allow r/r.
20079 Thu Oct 14 19:44:08 1999 Jan Hubicka <hubicka@freesoft.cz>
20081 * fold-const.c (fold): Convert (or (not arg0) (not arg1))
20082 to (not (and (arg0) (arg1))). Similary for and.
20084 * fold-const.c (fold): Move bit_rotate code to the EXPR_PLUS case,
20085 fallthrough to associate code.
20086 Convert XOR to OR in code like (a&c1)^(a&c2) where c1 and c2 don't have
20089 * combine.c (simplify_logical): Convert XOR to IOR if operands have
20090 no bits in common; remove XOR to ROTATE conversion.
20092 Fri Oct 15 17:40:11 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20094 * config/c4x/c4x.h (c4x_va_start, c4x_va_arg): Declare.
20096 Fri Oct 15 17:27:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20098 * config/c4x/c4x.c (dst_operand): New.
20099 (PREDICATE_CODES): Update.
20100 * config/c4x/c4x.h (dst_operand): Declare it.
20101 * config/c4x/c4x.md: Define mode for each unspec usage.
20102 (move patterns): Use dst_operand predicate instead of src_operand.
20103 (movqi_update, movqf_update): Delete.
20105 Thu Oct 14 18:48:54 1999 Richard Henderson <rth@cygnus.com>
20107 * recog.c (pmode_register_operand): New.
20108 * recog.h: Declare it.
20109 * genrecog.c (pred_codes): Likewise.
20110 (special_mode_pred_table): Likewise.
20111 (validate_pattern): Don't warn no mode for address_operand.
20113 * print-rtl.c (print_rtx) [LABEL_REF]: Only do full subexpression
20114 if the operand is not insn-like.
20116 Thu Oct 14 19:38:42 1999 Jeffrey A Law (law@cygnus.com)
20117 Sylvian Pion <Sylvain.Pion@sophia.inria.fr>
20119 * fold-const.c (fold): Handle more simplifications allowed by IEEE.
20121 Thu Oct 14 17:30:14 1999 Richard Henderson <rth@cygnus.com>
20123 * sparc.md (*): Use {nonimmediate,register}_operand as appropriate
20124 instead of general_operand in a SET_DEST. Use const_double_operand
20125 instead of an explicit test against CONST_DOUBLE.
20126 (movsf_const_lo): Add missing register mode.
20127 (goto_handler_and_restore): Add auxiliary test for Pmode.
20128 (flush): Adjust to use address_operand.
20129 (return_sf_no_fpu): Add missing output constraint.
20131 Thu Oct 14 17:21:26 1999 Richard Henderson <rth@cygnus.com>
20133 * rs6000.md (call_value_indirect_aix32): Use wildcard match_operand
20134 for call return value.
20135 (call_value_indirect_aix64, call_value_indirect_nt): Likewise.
20137 Thu Oct 14 13:54:25 1999 Jason Merrill <jason@yorick.cygnus.com>
20139 * toplev.c (main): Only warn about options for other languages.
20140 * collect2.c (main): Pass -w to sub-gcc.
20142 Thu Oct 14 16:27:50 1999 Richard Henderson <rth@cygnus.com>
20144 * flow.c (propagate_block): Add call-clobbered registers to
20147 * flow.c (propagate_block): Use free_EXPR_LIST_list instead of
20148 zapping mem_set_list.
20149 (invalidate_mems_from_autoinc): Use free_EXPR_LIST_node.
20150 (mark_set_1, mark_used_regs): Likewise.
20152 Thu Oct 14 10:51:49 1999 Richard Henderson <rth@cygnus.com>
20154 * m68k.md (zero_extendsidi2): Add missing output reload constraint.
20156 Wed Oct 13 00:09:18 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20158 * invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
20159 -Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
20160 options. Also add a new item "C-only Warning Options" to the
20163 1999-10-14 Gavin Romig-Koch <gavin@cygnus.com>
20165 * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
20166 from multiple calls.
20168 Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com>
20170 * i386.md (call value patterns): Move to the end of the file.
20171 (prologue_set_got, prologue_get_pc): Use register_operand for op 0.
20173 1999-10-14 Mark Elbrecht <snowball3@bigfoot.com>
20175 * configure.in (djgpp configuration): Define extra_objects..
20176 * configure: Rebuilt.
20177 * config/i386/djgpp.h (CTORS_SECTION_ASM_OP): Define.
20178 (DTORS_SECTION_ASM_OP): Define.
20179 (INIT_SECTION_ASM_OP): Define.
20180 (FINI_SECTION_ASM_OP): Define.
20181 (DATA_SECTION_ASM_OP): Define.
20182 (TEXT_SECTION_ASM_OP): Define.
20183 (EH_FRAME_SECTION_ASM_OP): Define.
20184 (LINK_COMMAND_SPEC): Remove -Tdjgpp.djl.
20185 (STARTFILE_SPEC): Add crtbegin.o.
20186 (ENDFILE_SPEC): Define and add crtend.o. Move argument -Tdjgpp.djl
20187 to here from LINK_COMMAND_SPEC.
20188 (DO_GLOBAL_CTORS_BODY): Define.
20189 (CRTSTUFF_USE_FINI_SECTION): Define
20190 (HAS_INIT_SECTION): Delete.
20192 Thu Oct 14 05:08:14 1999 Andreas Schwab <schwab@suse.de>
20194 * Makefile.in (all.cross): Depend on xcpp$(exeext).
20196 Thu Oct 14 04:00:40 1999 Richard Henderson <rth@cygnus.com>
20198 * pa.h (PREDICATE_CODES): New.
20200 * genrecog.c (validate_pattern): Condense the destination
20201 non-lvalue message.
20203 Thu Oct 14 03:23:08 1999 Richard Henderson <rth@cygnus.com>
20205 * alpha.md (call-1): Supply missing mode for operator.
20206 (*): Add missing output reload constraints. Remove constraints
20207 from define_splits.
20209 * i386.h (SPECIAL_MODE_PREDICATES): New.
20210 * i386.md (movstricthi_1): Use nonimmediate_operand for op 0.
20211 (movqi_1, movdi_1, movdi_2, some splits): Likewise.
20212 (addsi_lea_3): Add missing mode for op 3.
20213 (prologue_set_got, prologue_get_pc): Add missing modes.
20214 (*) Add missing output reload constraints.
20216 Thu Oct 14 03:59:57 1999 Stephane Carrez <stcarrez@worldnet.fr>
20218 * stor-layout.c (layout_union): Use HOST_WIDE_INT for const_size;
20219 check for member bit-size overflow and use var_size if it occurs.
20220 (layout_record): Use bitsize_int() to define the type size in bits.
20221 Likewise for computation and assignment to DECL_FIELD_BITPOS.
20222 (layout_decl): Likewise when assigning to DECL_SIZE.
20224 Thu Oct 14 02:57:05 1999 Richard Henderson <rth@cygnus.com>
20226 * genrecog.c (validate_pattern): Typo last change. Verify
20227 that output operands have output reloads.
20229 Thu Oct 14 01:49:54 1999 Richard Henderson <rth@cygnus.com>
20231 * genrecog.c (special_mode_pred_table): New.
20232 (NUM_SPECIAL_MODE_PREDS): New.
20233 (find_operand): New.
20234 (validate_pattern): New argument `insn'. Warn for assignment to
20235 any predicate accepting non-lvalues. Conditionaly warn for
20236 match_operand without a mode. Try much harder to match source
20237 and destination modes on a set.
20238 * tm.texi (SPECIAL_MODE_PREDICATES): Document.
20240 Thu Oct 14 02:54:13 1999 Jeffrey A Law (law@cygnus.com)
20242 * fold-const.c (fold): Detect rotates built from BIT_XOR_EXPRs.
20244 Thu Oct 14 02:18:19 1999 Marc Espie <espie@cvs.openbsd.org>
20246 * combine.c (simplify_logical): Recognize xor pattern that encodes
20249 Wed Oct 13 23:23:45 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20251 * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
20254 Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com>
20256 * ggc-page.c (MAP_FAILED): Provide default.
20258 Wed Oct 13 21:41:59 1999 Richard Henderson <rth@cygnus.com>
20260 * sparc.c (symbolic_operand): Verify mode; don't accept CONST_DOUBLE.
20261 * sparc.h (PREDICATE_CODES): Update.
20263 Wed Oct 13 21:18:17 1999 Richard Henderson <rth@cygnus.com>
20265 * alpha.c (some_ni_operand): New.
20266 * alpha-protos.h: Declare it.
20267 * alpha.h (PREDICATE_CODES): Update.
20268 * alpha.md (sXaddq reload insns): Use some_ni_operand
20269 for SET_DEST instead of some_operand.
20271 Wed Oct 13 21:04:45 1999 Richard Henderson <rth@cygnus.com>
20272 Jim Wilson <wilson@cygnus.com>
20274 * genrecog.c (maybe_both_true_2): Don't compare modes of
20276 (process_tree): Elide peephole2_insns. Invoke simplify_tests
20277 after find_afterward.
20278 (debug_decision_1): Dump next and afterward codes.
20280 Wed Oct 13 20:35:16 1999 Richard Henderson <rth@cygnus.com>
20282 * rtl.c (dump_and_abort): Remove.
20283 (fatal_with_file_and_line): New.
20284 (fatal_expected_char): New.
20285 (read_rtx_lineno, read_rtx_filename): New.
20286 (read_skip_spaces): Track line number.
20287 (read_name): Use fatal_with_file_and_line.
20288 (read_rtx): Use fatal_expected_char. Track line number.
20289 * rtl.h (read_rtx_filename, read_rtx_lineno): Declare.
20291 * print-rtl.c (print_rtx): Don't special case LABEL_REF argument
20292 if it isn't a CODE_LABEL.
20294 * genattr.c (main): Set read_rtx_filename.
20295 * genattrtab.c (main): Likewise.
20296 * gencodes.c (main): Likewise.
20297 * genconfig.c (main): Likewise.
20298 * genemit.c (main): Likewise.
20299 * genextract.c (main): Likewise.
20300 * genflags.c (main): Likewise.
20301 * genopinit.c (main): Likewise.
20302 * genoutput.c (main): Likewise.
20303 * genpeep.c (main): Likewise.
20305 * genrecog.c (decision_test.u.insn): Add `lineno'.
20306 (pattern_lineno, error_count): New variables.
20307 (message_with_line): New.
20308 (add_to_sequence): Break out checking code to ...
20309 (validate_pattern): ... here. Detect SET_DEST matching CONST_INT.
20310 (merge_insn): Use message_with_line.
20311 (make_insn_sequence): Use validate_pattern. Record insn lineno.
20312 (main): Set read_rtx_filename, pattern_lineno. Exit early on error.
20314 Wed Oct 13 22:01:35 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20316 * expr.c (store_constructor): Clear union if constructor is empty.
20318 Wed Oct 13 15:19:04 1999 Jim Wilson <wilson@cygnus.com>
20320 * config/rs6000/sysv4.h (CC1_SPEC): Fix errors from Jan 19 change.
20321 Add !endian checks. Change %{...} to %(...).
20323 Wed Oct 13 13:30:34 1999 Richard Henderson <rth@cygnus.com>
20325 * i386.md (*addsi3_cc): Renamed from addcsi3.
20326 (*addsi3_carry): Renamed from addxsi3.
20327 (*subsi3_cc): Renamed from subcsi3.
20328 (*subsi3_carry): Renamed from subxsi3.
20329 (*xorqi_cc_1): Renamed from xorcqi_1.
20330 (xorqi_cc_ext_1): Renamed from xorcqi_ext_1.
20331 * i386.c (ix86_expand_fp_compare): Update for xorqi_cc_ext_1.
20333 Wed Oct 13 13:10:46 1999 Richard Henderson <rth@cygnus.com>
20335 * Makefile.in (ggc-common.o): Depend on RTL_H not RTL_BASE_H.
20336 (ggc-simple.o, ggc-page.o, ggc-none.o, ggc-callbacks.o): Likewise.
20338 1999-10-13 Brendan Kehoe <brendan@cygnus.com>
20340 * regmove.c (optimize_reg_copy_3): Make sure P is non-nil as we
20341 climb up the chain of insns.
20343 Wed Oct 13 10:20:58 1999 Richard Henderson <rth@cygnus.com>
20345 * genrecog.c (write_subroutine): Careful for null trees.
20346 (process_tree): Don't elide empty functions.
20348 Wed Oct 13 10:07:54 1999 Richard Henderson <rth@cygnus.com>
20350 * Makefile.in (genrtl.o): Depend on ggc.h.
20351 * configure.in (valloc): Probe for it.
20352 (with-gc): Use ggc-page if valloc present.
20353 * ggc-common.c (ggc_mark_rtx_children): Use ggc_mark_if_gcable.
20354 (ggc_mark_rtvec_children): New from corpse of ggc_mark_rtvec.
20355 (ggc_alloc_string): Moved from ggc-page.c.
20356 * ggc-none.c (ggc_alloc_obj): New.
20357 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove.
20358 * ggc-page.c (sys/mman.h): Only include if HAVE_MMAP.
20359 (struct globals): Likewise for dev_zero_fd.
20360 (init_ggc): Likewise for it's initialization.
20361 (ggc_allocated_p): Move careful dereference from ...
20362 (ggc_lookup_page_table): ... here. Delete.
20363 (lookup_page_table_entry): Don't use ggc_lookup_page_table.
20364 (alloc_anon): Use valloc if no mmap.
20365 (release_pages): Use free if using valloc.
20366 (ggc_alloc_obj): Renamed from alloc_obj.
20367 (ggc_set_mark): Renamed from mark_obj.
20368 (ggc_mark_if_gcable): Renamed from ggc_mark_string_if_gcable.
20369 (ggc_alloc_rtx, ggc_alloc_rtvec): Delete.
20370 (ggc_alloc_tree, ggc_alloc_string, ggc_alloc): Delete.
20371 (ggc_set_mark_rtx, ggc_set_mark_rtvec): Delete.
20372 (ggc_set_mark_tree, ggc_mark_string, ggc_mark): Delete.
20373 (ggc_collect): Use fp printing instead of our own rounding.
20374 * ggc-simple.c (IS_MARKED, IGNORE_MARK): Delete.
20375 (GGC_STRING_MAGIC, GGC_STRING_MAGIC_MARK): Delete.
20376 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): Delete.
20377 (struct ggc_rtx, struct ggc_rtvec, struct ggc_tree): Delete.
20378 (struct ggc_string, struct ggc_any): Delete.
20379 (offsetof): Provide default definition.
20380 (GGC_BALANCE, GGC_ALWAYS_COLLECT, GGC_ALWAYS_VERIFY): New.
20382 (struct ggc_mem): New, from corpse of ggc_any.
20383 (struct ggc_status): Delete.
20384 (ggc_chain, ggc_allocated_strings, ggc_strings_used): Delete.
20385 (n_rtxs_collected, n_vecs_collected, n_trees_collected): Delete.
20386 (n_strings_collected, n_anys_collected): Delete.
20387 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Delete.
20388 (ggc_alloc_string, ggc_alloc): Delete.
20389 (ggc_free_rtx, ggc_free_rtvec, ggc_free_tree): Delete.
20390 (ggc_free_string, ggc_free_any): Delete.
20391 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Delete.
20392 (ggc_compare_addresses, ggc_mark_string): Delete.
20393 (ggc_mark_string_if_gcable, ggc_mark): Delete.
20394 (search_data): Delete.
20395 (struct globals): New.
20396 (GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED): New.
20397 (tree_insert, tree_lookup): New.
20398 (ggc_alloc_obj, ggc_set_mark, ggc_mark_if_gcable): New.
20399 (clear_marks, sweep_objs): New.
20400 (ggc_collect): Gut. Use clear_marks, sweep_objs.
20401 (init_ggc): Set allocated_last_gc.
20402 (ggc_push_context): Gut. Use G.context.
20403 (ggc_pop_context): Likewise.
20404 (ggc_pop_context_1): New.
20405 (debug_ggc_tree): New.
20406 (debug_ggc_balance, tally_leaves): New.
20407 * ggc.h (ggc_mark_rtvec, ggc_mark_string, ggc_mark): Remove decl.
20408 (ggc_mark_string_if_gcable): Remove decl.
20409 (ggc_mark_rtx, ggc_mark_tree): Use ggc_set_mark.
20410 (ggc_mark_rtvec_children): New.
20411 (ggc_mark_rtvec, ggc_mark_string, ggc_mark): New.
20412 (ggc_mark_if_gcable): New decl.
20413 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove decl.
20414 (ggc_alloc_tree, ggc_alloc): Likewise.
20415 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Likewise.
20416 (ggc_alloc_obj): New decl.
20417 (ggc_alloc_rtx, ggc_alloc_rtvec): New macros.
20418 (ggc_alloc_tree, ggc_alloc): Likewise.
20419 (ggc_set_mark): New decl.
20420 * rtl.h (struct rtx_def): Remove gc_mark.
20421 (struct rtvec_def): Likewise.
20422 * tree.h (struct tree_common): Likewise.
20424 Wed Oct 13 01:44:29 1999 Carol LePage <carolo@hal.com>
20426 * configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines,
20427 float_format and thread_file definitions.
20428 * configure: Rebuilt.
20430 Wed Oct 13 09:25:03 1999 Niels Möller <nisse@lysator.liu.se>
20432 * extend.texi (Function Names): Document types of function names.
20434 Wed Oct 13 00:45:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20436 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
20437 an earlyclobbered output conflict with RELOAD_INPUT reloads.
20439 Tue Oct 12 23:28:28 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20441 * sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
20443 Tue Oct 12 23:19:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20445 * sh.h (REGISTER_MOVE_COST): Change PR_REG to PR_REGS.
20447 Tue Oct 12 17:09:38 1999 David Edelsohn <edelsohn@gnu.org>
20449 * collect2.c (main): Do prelimnary link on AIX if rflag.
20451 Tue Oct 12 09:45:19 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
20453 * config/rs6000/eabi-ctors.c (__do_global_ctors): Run through
20454 __CTOR_LIST__ in opposite order, which is the correct order for sorted
20456 (__do_global_dtors): similarly for __DTOR_LIST__.
20458 Fri Oct 8 19:46:03 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20459 Diego Novillo <dnovillo@cygnus.com>
20461 * config/sh/sh.h (REGISTER_MOVE_COST): Handle moves from T_REGS to
20464 Tue Oct 12 07:38:41 1999 Bruce Korb <autogen@linuxbox.com>
20466 * fixincl/*: Merged "no_bogosity" branch
20467 * fixincl/fixlib.h: protect against doubly defining t_bool
20468 * fixincl/server.h: protect against doubly defining t_bool
20470 Mon Oct 11 20:18:41 1999 Jim Wilson <wilson@cygnus.com>
20472 * genoutput.c: Include toplev.h.
20474 Mon Oct 11 18:56:14 1999 Jim Wilson <wilson@cygnus.com>
20476 * config/sparc/liteelf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
20478 * configure.in (sparclite-*-elf, sparc86x-*-elf): Don't use libgloss.h.
20479 * configure: Regenerate.
20481 Mon Oct 11 16:07:49 1999 Richard Henderson <rth@cygnus.com>
20483 * gcse.c (delete_null_pointer_checks): Returns void.
20485 Mon Oct 11 20:31:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20487 * rtl.c (copy_rtx): Don't use accessor macros to copy fields.
20488 * emit-rtl.c (copy_insn_1): Likewise.
20490 Mon Oct 11 13:29:06 1999 Geoffrey Keating <geoffk@cygnus.com>
20492 * config/mips/mips.c (mips_build_va_list): Correct
20493 TREE_CHAIN setting when hard-float.
20494 (mips_va_start): Use corrected setting.
20495 (mips_va_arg): Likewise. Also pass a tree to build of
20496 POSTINCREMENT_EXPR rather than a naked 'int'.
20498 Sun Oct 10 18:27:27 1999 Mark Mitchell <mark@codesourcery.com>
20500 * ggc.h (ggc_push_context): Fix comment.
20501 (ggc_pop_context): Likewise.
20502 (mark_string_if_gcable): Likewise.
20503 * ggc-common.c (ggc_mark_rtx_children): Use
20504 ggc_mark_string_if_gcable.
20505 * ggc-page.c (ggc_lookup_page_table): New function.
20506 (ggc_allocated_p): Likewise.
20507 (mark_obj): Fix formatting.
20508 (ggc_mark_string_if_gcable): New function.
20509 * ggc-simple.c (ggc_allocated_strings): New variable.
20510 (ggc_strings_used): Likewise.
20511 (ggc_compare_addresses): New function.
20512 (ggc_pop_context): Pop the `any' memory too.
20513 (ggc_mark_string_if_gcable): New function.
20514 (ggc_collect): Initialize and tear down ggc_allocated_strings.
20516 Sun Oct 10 20:05:21 1999 David Edelsohn <edelsohn@gnu.org>
20518 * rs6000.md (movstrsi_?reg): Use preferred rD/rS = r5 form.
20519 (scc patterns): Disable most SImode variants if TARGET_POWERPC64.
20520 * rs6000.c (expand_block_move): Match movstrsi_?reg register
20523 Sun Oct 10 16:37:01 1999 Richard Henderson <rth@cygnus.com>
20525 * haifa-sched.c (sched_reg_n_calls_crossed): Delete.
20526 (sched_reg_live_length, sched_reg_basic_block): Delete.
20527 (current_block_num, bb_live_regs, old_live_regs): Delete.
20528 (dead_notes, struct sometimes): Delete.
20529 (sched_note_set, birthing_insn_p): Delete.
20530 (adjust_priority): Gut useless reg lifetime code.
20531 (create_reg_dead_note, attach_deaths): Delete.
20532 (attach_deaths_insn, new_sometimes_live): Delete.
20533 (finish_sometimes_live): Delete.
20534 (find_pre_sched_live, find_post_sched_live): Delete.
20535 (update_reg_usage): Delete.
20536 (find_insn_reg_weight): New, from corpse of find_pre_sched_live.
20537 (schedule_insns): Delete reg lifetime code.
20538 (sched_analyze): Use REG_SAVE_NOTE to stuff NOTE_INSN notes away.
20539 (unlink_other_notes): Adjust REG_NOTE commentary.
20540 (reemit_notes): Use REG_SAVE_NOTE.
20541 (schedule_block): Likewise.
20542 (schedule_region): Allocate bitmap of blocks in region. Use
20543 count_or_remove_death_notes. Use update_life_info.
20545 * rtl.h (REG_SAVE_NOTE): New.
20546 * rtl.c (reg_note_name): Update.
20548 Sun Oct 10 16:14:16 1999 Richard Henderson <rth@cygnus.com>
20550 * combine.c (refresh_blocks, need_refresh): New.
20551 (combine_instructions): Allocate refresh_blocks. Invoke
20552 update_life_info if needed.
20553 (distribute_notes): Mark refresh_blocks instead of installing
20555 * flow.c (update_life_info): Remove notes if GLOBAL_RM_NOTES.
20556 * basic_block.h (enum update_life_extent): Add GLOBAL_RM_NOTES.
20558 * Makefile.in (recog.o): Depend on basic-block.h.
20560 Sun Oct 10 12:03:21 1999 Richard Henderson <rth@cygnus.com>
20562 * genrecog.c (add_to_sequence): Thinko last change: delete
20563 shadowing allow_const_int variable.
20565 Sun Oct 10 08:40:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20567 * cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing
20568 __GNUC__ and __GNUC_MINOR__.
20570 * gansidecl.h: Likewise.
20576 * toplev.h: Likewise.
20578 * tree.c: Likewise.
20580 * tree.h: Likewise.
20582 * varray.c: Likewise.
20584 * varray.h: Likewise.
20586 Sun Oct 10 13:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20588 * loop.c (find_and_verify_loops): When looking for a BARRIER, don't
20589 use one before a jump table.
20591 * rtl.def (ADDRESS): Change documentation to match reality.
20592 * md.texi: Don't document it.
20593 * gmicro.md (load address pattern): Use 'p' constraint, delete use
20596 * emit-rtl.c (copy_insn_1): Make format_ptr a const char *.
20598 Sun Oct 10 02:41:41 1999 Richard Henderson <rth@cygnus.com>
20600 * genrecog.c (add_to_sequence): Move allow_const_int test outside
20601 known predicate block; default allow_const_int true.
20602 (debug_decision_list): New.
20604 Sun Oct 10 00:43:08 1999 Richard Henderson <rth@cygnus.com>
20606 * i386.h (CC1_SPEC): Typo -- use cc1_cpu.
20608 Sat Oct 9 23:26:55 1999 Jeffrey A Law (law@cygnus.com)
20610 * gcse.c (gcse_main): Avoid global optimizations if we have a
20611 large number of basic blocks and the ratio of edges to blocks
20613 (delete_null_pointer_checks): Likewise.
20615 Sat Oct 9 23:16:01 1999 Ken Raeburn <raeburn@mit.edu>
20617 * c-common.c (check_format_info): Warn if format string isn't a
20620 Sat Oct 9 23:04:02 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
20622 * configure.in (arm*-*-*): Don't let autoconf remove brackets
20623 * configure: regenerate
20625 Sat Oct 9 13:15:53 1999 Richard Henderson <rth@cygnus.com>
20627 * alpha.md (extendsidi2): Turn into a splitter. Allow f/f.
20628 If TARGET_FIX, allow r/f. Remove cvtlq unspec pattern.
20629 (peepholes): Re-enable.
20631 Sat Oct 9 12:18:16 1999 Richard Henderson <rth@cygnus.com>
20633 * Makefile.in (flow.o): Depend on TREE_H.
20634 * basic-block.h (REG_SET_EQUAL_P): New.
20635 (XOR_REG_SET): New.
20636 (n_edges): Declare.
20637 (free_regset_vector): Remove declaration.
20638 (flow_delete_insn_chain): Declare.
20639 (enum update_life_extent): New.
20640 (update_life_info, count_or_remove_death_notes): Declare.
20641 * combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
20642 Verify register live at bb->global_live_at_start before adding USE.
20643 * flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
20644 (CLEAN_ALLOCA): New.
20646 (PROP_*): New flags.
20647 (find_basic_blocks_1): Use alloc_EXPR_LIST.
20648 (clear_edges): Zero n_edges.
20649 (make_edge): Increment n_edges.
20650 (split_edge): Don't allocate bb->local_set. Increment n_edges.
20651 (flow_delete_insn_chain): Export.
20652 (delete_block): Decrement n_edges.
20653 (merge_blocks_nomove): Likewise.
20654 (life_analysis): Give life_analysis_1 PROP flags.
20655 (verify_wide_reg_1, verify_wide_reg): New.
20656 (verify_local_live_at_start): New.
20657 (update_life_info): Rewrite to call into propogate_block.
20659 (mark_regs_live_at_end): After reload, if epilogue as rtl,
20660 always mark stack pointer. Conditionally mark PIC register.
20661 After reload, mark call-saved registers, return regsiters.
20662 (life_analysis_1): Accept PROP flags not remove_dead_code.
20663 Call mark_regs_live_at_end before zeroing regs_ever_live.
20664 Use calculate_global_regs_live. Copy global_live_at_end before
20665 calling final propagate_block. Zero reg_next_use on exit.
20666 (calculate_global_regs_live): New.
20667 (allocate_bb_life_data): Don't allocate bb->local_set.
20668 (init_regset_vector, free_regset_vector): Remove.
20669 (propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
20670 Test flags before every operation. Warn if prologue/epilogue insn
20671 would have been deleted.
20672 (mark_set_regs, mark_set_1): Accept and use FLAGS.
20673 Use alloc_EXPR_LIST.
20674 (mark_used_regs): Accept and use FLAGS, not FINAL.
20675 Remove special handling for RETURN.
20676 (try_pre_increment): Use alloc_EXPR_LIST.
20677 (dump_flow_info): Dump n_edges.
20678 (unlink_insn_chain, split_hard_reg_notes): Remove.
20679 (maybe_add_dead_note, maybe_add_dead_note_use): Remove.
20680 (find_insn_with_note, new_insn_dead_notes): Remove.
20681 (update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
20682 (maybe_remove_dead_notes, prepend_reg_notes): Remove.
20683 (replace_insns): Remove.
20684 (count_or_remove_death_notes): New.
20685 (verify_flow_info): Abort on error after all checks.
20686 (remove_edge): Decrement n_edges.
20687 (remove_fake_edges): Tweak format.
20688 * haifa-sched.c (schedule_insns): Use split_all_insns.
20689 * output.h (update_life_info): Remove declaration.
20690 * recog.c (split_all_insns): From the corpse of split_block_insns,
20691 do the whole function block by block. Use update_life_info.
20692 (recog_last_allowed_insn): New.
20693 (recog_next_insn): Mind it.
20694 (peephole2_optimize): Set it. Walk backwards through blocks.
20695 Use update_life_info.
20696 * rtl.h (update_flow_info, replace_insns): Remove declarations.
20697 (split_all_insns): Declare.
20698 * toplev.c (rest_of_compilation): Thread prologue before flow2.
20699 Use split_all_insns.
20701 * i386.md (or -1 peep2s): Disable.
20703 Fri Oct 8 17:49:08 1999 Richard Henderson <rth@cygnus.com>
20705 * config/mips/mips.md (movstrsi+[123]) : Combine these into
20706 a single pattern. Scrap the 'd' versions as unnecessary.
20708 * config/mips/mips.md (tablejump_internal3,tablejump_mips161,
20709 tablejump_mips162,tablejump_internal4): The operands to a
20710 label_ref must be VOIDmode.
20712 Fri Oct 8 16:12:42 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20714 * configure.in (c-mbchar): Append, don't overwrite, `extra_c_flags'.
20716 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
20718 * mips.c (mips_va_arg) [EABI]: Return addr_rtx.
20720 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
20722 * lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
20723 cache every function if ggc_p.
20725 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20727 * jump.c (duplicate_loop_exit_test): Use copy_insn/copy_insn_1
20728 instead of copy_rtx. Accept sequences that contain asm statements.
20729 * emit-rtl.c (copy_insn_1, copy_insn): New functions.
20730 (copy_insn_scratch_in, copy_insn_scratch_out, copy_insn_n_scratches,
20731 orig_asm_operands_vector, copy_asm_operands_vector,
20732 orig_asm_constraints_vecotr, copy_asm_constraints_vector): New static
20734 * rtl.h (copy_insn, copy_insn_1): Declare.
20736 Fri Oct 8 13:08:12 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20738 * Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.
20740 * alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of
20741 arguments to `current_file_function_operand'.
20743 * genrecog.c: Include hard-reg-set.h and resource.h in the
20744 generated output file.
20746 * real.c: Include tm_p.h.
20748 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20750 * i386.md (prologue_allocate_stack): Add '=' constraint letter on
20753 Thu Oct 7 23:06:50 1999 Richard Henderson <rth@cygnus.com>
20755 * rs6000.md (fix_truncdfsi2_internal+1): Emit a clobber
20756 before the fctiwz insn.
20758 Thu Oct 7 22:53:00 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20759 Mark Mitchell <mark@codesourcery.com>
20761 * tree.c (make_lang_type_fn): New funtion pointer.
20762 (make_lang_type): Call it.
20763 * tree.h (make_lang_type): Declare.
20764 (make_lang_type_fn): Likewise.
20765 * rs6000.c (rs6000_build_va_list): Use make_lang_type.
20767 Thu Oct 7 00:36:17 1999 Diego Novillo <dnovillo@cygnus.com>
20769 * config/rs6000/rs6000.c (secondary_reload_class): For TARGET_ELF
20770 make sure that HIGH instructions are copied into BASE_REGS.
20772 Thu Oct 7 17:02:34 1999 Jason Merrill <jason@yorick.cygnus.com>
20774 * expr.c (expand_expr, TARGET_EXPR): Set TREE_USED sooner.
20776 Thu Oct 7 17:01:58 1999 Greg McGary <gkm@gnu.org>
20778 * c-decl.c (finish_struct): Use simpler method of
20779 removing elements of a singly-linked list.
20781 Thu Oct 7 15:23:28 1999 Michael Meissner <meissner@cygnus.com>
20783 * alpha.md (peephole2's): Comment out peephole2's that generate
20786 Thu Oct 7 12:00:53 1999 Richard Henderson <rth@cygnus.com>
20788 * genrecog.c (add_to_sequence): Disable mode check for
20791 Thu Oct 7 20:14:16 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20793 * ggc-simple.c (init_ggc): Set empty_string.
20795 Thu Oct 7 01:13:15 1999 Richard Henderson <rth@cygnus.com>
20797 * configure.in: Detect mmap. Add --with-gc=foo to select
20798 garbage collector; default to page if mmap available.
20799 * Makefile.in (GGC): Substitute.
20801 Wed Oct 6 23:56:30 1999 Richard Henderson <rth@cygnus.com>
20803 * c-decl.c (ggc_p): Enable.
20805 Wed Oct 6 17:17:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20807 * flow.c (verify_flow_info): Make it extern & unconditionally define.
20809 1999-10-06 Brendan Kehoe <brendan@cygnus.com>
20811 * sparc/sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc
20812 string for little-endian-data.
20814 Wed Oct 6 16:10:35 1999 Michael Meissner <meissner@cygnus.com>
20816 * varray.h (VARRAY_CHECK): Fix up appropriate revision check, in
20817 case somebody tries to compile --enable-checking code with gcc
20820 Wed Oct 6 12:22:50 1999 Richard Henderson <rth@cygnus.com>
20822 * genrecog.c (add_to_sequence): Verify operand to label_ref is
20825 Wed Oct 6 10:21:15 1999 Richard Henderson <rth@cygnus.com>
20827 * genconfig.c (main): Disable HAVE_conditional_arithmetic.
20828 * jump.c (jump_optimize_1): Document why.
20830 Wed Oct 6 10:41:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20832 * collect2.c (scan_prog_file, scan_libraries): Prototype function
20833 pointers and casts for `int_handler' and `quit_handler'.
20835 * flow.c (verify_flow_info, split_hard_reg_notes,
20836 find_insn_with_note, sets_reg_or_subreg_1, prepend_reg_notes,
20837 remove_edge, remove_fake_successors): Add static prototypes.
20838 (verify_flow_info): Wrap with macro ENABLE_CHECKING.
20839 (mark_set_1): Initialize variable `regno'.
20840 (unlink_insn_chain): Likewise for variable `curr'.
20841 (remove_fake_edges): Remove unused variables `e', `tmp' and `last'.
20843 * loop.c (strength_reduce): Initialize variable
20844 `unrolled_insn_copies'.
20845 (cmp_combine_givs_stats, cmp_recombine_givs_stats): Add static
20846 prototypes. Change these functions to take const PTR parameters
20847 to avoid prototype conflict when used as the comparson argument
20849 (check_dbra_loop): Initialize variable `comparison_val'.
20851 * reload.c (debug_reload_to_stream, debug_reload): Add prototypes.
20852 (get_secondary_mem): Mark parameter `x' with ATTRIBUTE_UNUSED.
20853 (find_valid_class): Initialize variable `best_class'.
20854 (find_reloads): Call memcpy, not bcopy.
20856 * reload1.c (gen_mode_int, dump_needs): Add prototypes.
20857 (hard_reg_use_compare): Don't needlessly cast away const.
20858 (reload_reg_class_lower): Likewise.
20859 (choose_reload_regs): Initialize variable `regno'.
20861 Tue Oct 5 16:34:12 1999 Paul Burchard <burchard@pobox.com>
20863 * ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
20865 Tue Oct 5 16:14:40 1999 Michael Meissner <meissner@cygnus.com>
20867 * libgcc1-test.c (toplevel): Include stddef.h to get size_t.
20868 ({,d}discard): Add forward declarations. Declare parameter as
20870 (main_without_main): Explicitly declare return type to be int.
20871 (memcpy): Properly declare.
20873 * libgcc2.c (toplevel): If inhibit_libc is defined and not
20874 building the trampoline support, declare malloc, free, and
20876 (__clear_cache): Mark arguments as potentially unused.
20878 * frame.c (toplevel): If inhibit_libc is defined, declare
20881 Tue Oct 5 12:00:32 1999 Richard Henderson <rth@cygnus.com>
20883 * flow.c (make_edge): Accept an optional 2D bitmap in which
20884 to cache edge existence. Update all callers.
20885 (make_label_edge, make_eh_edge): Pass through the edge cache.
20886 (make_edges): Provide the cache.
20888 Tue Oct 5 12:16:49 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20890 * mbchar.c (literal_codeset, local_mbtowc, local_mblen): Constify
20892 (local_mbtowc): Change the type of variable `i' from int to size_t.
20894 * mbchar.h (ISSJIS1, ISSJIS2): Use parens around && within ||.
20895 (local_mbtowc, local_mblen, literal_codeset): Constify a char*.
20897 Tue Oct 5 11:34:52 1999 Michael Meissner <meissner@cygnus.com>
20899 * ggc-common.c (toplevel): Reorder includes, so that ggc.h comes
20900 after other includes that define the appropriate types. Include
20901 tm_p.h for getting user prototypes.
20902 * ggc-callbacks.c (toplevel): Ditto.
20903 * ggc-none.c (toplevel): Ditto.
20904 * gcc-page.c (toplevel): Ditto.
20905 * ggc-simple.c (toplevel): Ditto.
20907 Mon Oct 4 16:48:16 1999 Diego Novillo <dnovillo@cygnus.com>
20908 Jonathan Larmour <jlarmour@cygnus.co.uk>
20910 * config/mips/mips.c (mips_move_2words): Split doubles if
20911 ISA >= 3, !TARGET_64BIT, and destination is not an FP register.
20913 Mon Oct 4 21:47:31 1999 Richard Henderson <rth@cygnus.com>
20915 * genrecog.c (struct decision_test): New.
20916 (struct decision): Remove test-related members, sort the rest by size.
20917 (IS_SPLIT): Simplify.
20918 (new_decision, new_decision_test): New.
20919 (add_to_sequence): Use them. No special handling for args of
20921 (maybe_both_true): Renamed from not_both_true; return sense changed.
20922 (maybe_both_true_1, maybe_both_true_2): New. Broken out
20923 of maybe_both_true and adjusted for decision_test.
20924 (position_merit): Remove.
20925 (nodes_identical, nodes_identical_1): New, broken out of merge_trees.
20926 (merge_accept_insn): New, broken out of merge_trees.
20927 (merge_trees): Use them. No special case for c_test; no node
20928 splitting; use test type instead of position_merit.
20929 (factor_tests): New.
20930 (simplify_tests): New.
20931 (break_out_subroutines): Don't write code now.
20932 (find_afterward): New.
20933 (write_afterward, write_switch, write_cond): New.
20934 (write_action, is_unconditional): New.
20935 (write_node): New. Use them.
20936 (write_tree_1): Rewrite. Use the new functions above.
20937 (write_tree): Remove afterward processing.
20938 (write_subroutine): Simplify function variant emission.
20939 (write_subroutines): New.
20940 (same_codes, clear_codes): Remove.
20941 (same_modes, clear_modes): Remove.
20942 (write_header): New, broken out of main.
20943 (make_insn_sequence): Use new_decision and new_decision_test.
20944 (process_tree): New, broken out of main.
20945 (main): Adjust for merge_trees interface change.
20946 Don't #define operands in the output file.
20947 (record_insn_name): New, broken out of make_insn_sequence.
20948 (debug_decision_2, debug_decision_1, debug_decision_0): New.
20949 (debug_decision): New.
20951 1999-10-04 21:58 -0700 Zack Weinberg <zack@bitmover.com>
20953 * resource.c (find_free_register): Mark class_str argument const.
20954 * resource.h: Update prototype to match.
20956 * i386.h (PREDICATE_CODES): Add entry for long_memory_operand.
20957 * i386.md: Give all anonymous insns names.
20959 Mon Oct 4 21:12:02 1999 Jeffrey A Law (law@cygnus.com)
20961 * flow.c (merge_blocks): Avoid assing BASIC_BLOCK for non-existent
20964 Mon Oct 4 21:01:39 1999 Richard Henderson <rth@cygnus.com>
20966 * toplev.c (dbr_sched_time): Unconditional.
20967 (peephole2_time): New.
20968 (compile_file): Add pass numbers to all of the dump file suffixes.
20969 Dump peephole2_time. Don't dump times for non-applicable passes.
20970 (rest_of_compilation): Add pass numbers to dump file suffixes.
20971 Conditionalize calls to the scheduler.
20972 * invoke.texi: Update.
20974 Mon Oct 4 20:25:13 1999 Anthony Green <green@cygnus.com>
20976 * flow.c (make_edges): Fix insn iteration.
20977 (find_basic_blocks): Assign NULL_RTX, not 0, to rtx.
20978 (find_basic_blocks_1): Fix spelling mistake.
20980 Mon Oct 4 16:56:11 1999 Richard Henderson <rth@cygnus.com>
20982 * tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that
20983 always have side-effects. Use memset not bzero.
20984 (make_node): Likewise.
20986 Mon Oct 4 16:22:20 1999 Mark Mitchell <mark@codesourcery.com>
20988 * stmt.c (expand_anon_union_decl): When any of the elements of the
20989 union is addressable, so is the entire union.
20991 Mon Oct 4 11:38:33 1999 Richard Henderson <rth@cygnus.com>
20993 * sbitmap.c (sbitmap_ones): Don't set too many bits.
20995 * bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
20996 * bitmap.c (bitmap_operation): Return true iff TO changed.
20997 (bitmap_equal_p): New.
20998 (bitmap_bit_p): Tidy arithmetic.
20999 (debug_bitmap_file): Likewise.
21001 Mon Oct 4 11:28:37 1999 Richard Henderson <rth@cygnus.com>
21003 * toplev.c (rest_of_compilation): Turn on cse_not_expected
21004 before cse2 instead of after.
21006 Mon Oct 4 09:55:17 1999 Stan Cox <scox@cygnus.com>
21008 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
21011 Mon Oct 4 08:54:12 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21013 * cppinit.c (is_idchar initializer): Loosen tests to accept
21016 Mon Oct 4 02:31:20 1999 Mark Mitchell <mark@codesourcery.com>
21018 * mips.md: Define conditional move patterns for floating point
21019 operands and DI mode conditions.
21021 Mon Oct 4 02:12:41 1999 Mark Mitchell <mark@codesourcery.com>
21023 * tree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that
21024 always have side-effects.
21026 Sun Oct 3 14:14:16 1999 Jeffrey A Law (law@cygnus.com)
21028 * mn10200.c (asm_file_start): Fix typo.
21030 * cppinit.c (is_idchar initializer): Tighten tests for when
21031 to put the table into initialized memory.
21033 * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
21034 not an array of rtunion.
21035 * gcc-page.c (ggc_alloc_rtvec): Similarly.
21036 * gcc-simple (ggc_free_rtvec): Similarly.
21038 * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
21041 * mbchar.h: Add missing #endif.
21043 * t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
21044 (FPBIT, DPBIT): Define.
21046 Sun Oct 3 12:44:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21048 * print-tree.c (print_node, indent_to): Remove redundant prototypes.
21050 * profile.c (instrument_arcs, output_gcov_string,
21051 tablejump_entry_p): Add static prototypes.
21052 (output_gcov_string): Constify a char*.
21054 * regmove.c (replacement_quality, fixup_match_2): Add static
21057 * resource.h (reg_dead_p): Add extern prototype.
21059 * rtl.c (trim_filename): Add static prototype.
21061 * scan-decls.c (skip_to_closing_brace): Likewise.
21063 * stmt.c (expand_decl_cleanup_no_eh): Hide definition.
21064 (expand_end_case): Initialize variable `range'.
21065 (emit_case_nodes): Remove unused prototype `rtx_fn'.
21067 * varasm.c (asm_emit_uninitialised): Add static prototype.
21068 (asm_emit_uninitialised, assemble_variable): Mark parameter with
21071 Sun Oct 3 12:24:52 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21073 * cpplib.c (if_directive_nameo): Add static prototype.
21075 * cse.c (cse_insn): Remove unused variable `p'.
21077 * except.c (create_rethrow_ref, push_entry,
21078 receive_exception_label, new_eh_region_entry, find_func_region,
21079 clear_function_eh_region, process_nestinfo): Add static prototypes.
21080 (get_reg_for_handler): Hide definition.
21081 (process_nestinfo): Initialize variable `extra_handlers'.
21083 * expr.h (expand_builtin_longjmp): Add extern prototype.
21085 * final.c (final_addr_vec_align, align_fuzz): Add static prototypes.
21087 * function.c (prepare_function_start): Likewise.
21088 (pop_function_context_from): Mark parameter `context' with
21090 (push_temp_slots_for_block, flush_addressof): Hide definition.
21092 * gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
21093 solve_program_flow_graph, calculate_branch_probs,
21094 function_summary, main, fancy_abort): Add prototypes.
21096 * gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
21097 (add_hash): Constify a char*.
21099 * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
21100 ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
21101 ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.
21103 * integrate.c (expand_inline_function_eh_labelmap): Likewise.
21105 * lists.c (free_list, zap_lists): Likewise.
21107 Sun Oct 3 12:05:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21109 * alias.c (nonlocal_reference_p): Add static prototype.
21111 * bitmap.c (bitmap_element_allocate): Prototype args in function
21114 * builtins.c (stabilize_va_list): Add static prototype.
21115 (expand_builtin_va_arg): Constify a char*.
21117 * c-lex.c (getch, put_back, extend_token_buffer_to,
21118 read_line_number, token_getch, token_put_back): Add static
21121 * c-parse.gperf (hash, is_reserved_word): Likewise.
21123 * cccp.c (is_dir_separator): Likewise.
21125 Sat Oct 2 16:07:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21127 * graph.h: New file to prototype functions exported by graph.c.
21129 * Makefile.in (graph.o, toplev.o): Depend on graph.h.
21131 * graph.c: Include graph.h.
21133 * toplev.c: Likewise. Remove redundant prototypes.
21135 Sat Oct 2 11:28:33 1999 Krister Walfridsson <cato@df.lth.se>
21137 * invoke.texi: Removed duplicated description for -Q.
21139 Sat Oct 2 11:16:00 1999 Jim Kingdon <http://developer.redhat.com>
21141 * extend.texi: Grammar fix in __extension__ text.
21143 Sat Oct 2 11:06:31 1999 Richard Henderson <rth@cygnus.com>
21145 * md.texi (define_peephole2): New section.
21147 Sat Oct 2 10:57:56 1999 Jan Hubicka <hubicka@freesoft.cz>
21149 * i386.md (mov?i patterns): Fix handling of TARGET_USE_MOV0
21150 (mov $-1 to or peepholer): Enable for pentium when optimizing for
21153 Sat Oct 2 10:55:25 1999 Jan Hubicka <hubicka@freesoft.cz>
21155 * builtins.c (expand_builtin_strlen): Fix best mode searching loop.
21157 Sat Oct 2 10:53:22 1999 Jan Hubicka <hubicka@freesoft.cz>
21159 * i386.md (ffs expander): Emit Pentium friendly code for
21162 Sat Oct 2 02:48:21 1999 Mark P. Mitchell <mark@codesourcery.com>
21164 * tree.c (build): Don't look at TREE_SIDE_EFFECTS or TREE_RAISES
21166 (build1): Likewise.
21168 Fri Oct 1 18:01:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21170 * i386elf.h (TARGET_DEFAULT): Use symbolic constants.
21172 Fri Oct 1 12:42:53 1999 Andreas Schwab <schwab@suse.de>
21174 * config/m68k/m68k.c (use_return_insn): Return false if the pic
21175 register is in use.
21177 Fri Oct 1 10:56:06 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21179 * md.texi (No Constraints): Delete section.
21180 * Makefile.in (genattrtab.o): Don't depend on "insn-config.h".
21181 * final.c (final_scan_insn): We always have register constraints.
21182 * genattrtab.c: Don't include "insn-config.h".
21183 (write_attr_case): We always have register constraints.
21184 * genconfig.c (register_constraint_flag): Delete.
21185 (walk_insn_part): Don't check whether we have register constraints.
21186 (main): Don't write out "#define REGISTER_CONSTRAINTS".
21187 * genoutput.c (have_constraints): Delete.
21188 (main): Don't set it.
21189 (output_operand_data): We always have constraints.
21190 (scan_operands): Likewise.
21191 (compare_operands): Likewise.
21192 * local-alloc.c (block_alloc): We always have constraints.
21193 (requires_inout): Always compile this function.
21194 * recog.c (extract_insn): We always have constraints.
21195 (constrain_operands, reg_fits_class_p): Always compile these
21197 * recog.h (struct recog_data): Delete non-REGISTER_CONSTRAINTS
21199 (struct insn_operand_data): Likewise.
21200 * regclass.c (regclass): We always have constraints.
21201 (record_reg_classes, copy_cost, record_address_regs,
21202 auto_inc_dec_reg_p): Always compile these functions.
21203 * regmove.c (regmove_optimize): We always have constraints.
21204 * reload.c (find_reloads): Likewise.
21205 * reload1.c (reload): Likewise.
21206 (reload_cse_simplify_operands): Likewise.
21207 * i860.c (output_delay_insn): Likewise.
21209 Thu Sep 30 23:04:41 1999 Mark P. Mitchell <mark@codesourcery.com>
21211 * iris6.h (BUILD_VA_LIST_TYPE): Define.
21213 Thu Sep 30 18:44:50 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21215 * rs6000.c (rs6000_build_va_list): Create a TYPE_DECL node
21216 for the va_list record.
21218 Thu Sep 30 18:34:54 1999 Jan Hubicka <hubicka@freesoft.cz>
21220 * i386.c (ix86_adjust_cost): Ignore false ebp dependencies in
21223 Thu Sep 30 18:31:36 1999 Jan Hubicka <hubicka@freesoft.cz>
21225 * alias.c: Include insn-flags.h.
21226 * Makefile.in (alias.o): Update.
21228 Thu Sep 30 18:21:30 1999 Jan Hubicka <hubicka@freesoft.cz>
21230 * i386.c (ix86_expand_int_movcc): Convert LEU and GTU comparisons
21231 to LTU and GEU. Handle more cases using sbb.
21233 Thu Sep 30 18:18:39 1999 Jan Hubicka <hubicka@freesoft.cz>
21235 * i386.md (truncatexfdf splitters): Do not use subreg.
21236 (fop XFmode patterns): Fix mode in operand testing.
21238 Thu Sep 30 18:04:13 1999 Richard Henderson <rth@cygnus.com>
21240 * jump.c (jump_optimize_1): Amend last change to test only the
21241 form of the operand, not the insn.
21243 * jump.c (jump_optimize_1) [conditional_move]: Use general_operand
21244 not register_operand to determine when B may need preloading.
21246 Thu Sep 30 17:39:16 1999 Richard Henderson <rth@cygnus.com>
21248 * alpha.md (*): Use nonimmediate not general_operand for SET_DEST.
21249 (ffsdi2, extxl, insxh, mskxh): Add missing DImode to SET_SRC.
21250 (call-value patterns): Move to end of file.
21251 (*): Remove mode from label_ref in (pc) context.
21252 (movstrqi): Use memory not general_operand for BLKmode operands.
21253 (prologue_stack_probe_loop, builtin_longjmp): Add missing mode
21254 to register_operand operands.
21255 (peep2 patterns): Convert from commented-out peephole patterns.
21257 Thu Sep 30 14:39:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21259 * tree.h (enum built_in_function): Rename BUILT_IN_DWARF_REG_SIZE
21260 to BUILT_IN_INIT_DWARF_REG_SIZES.
21261 * builtins.c (expand_builtins, case BUILT_IN_INIT_DWARF_REG_SIZES):
21262 Renamed from BUILT_IN_DWARF_REG_SIZE; call
21263 expand_builtin_init_dwarf_reg_sizes.
21264 * c-decl.c (init_decl_processing): Replace __builtin_dwarf_reg_size
21265 with __builtin_init_dwarf_reg_size_table.
21266 * dwarf2out.c (struct reg_size_range): Delete.
21267 (expand_builtin_init_dwarf_reg_sizes): New function.
21268 (expand_builtin_dwarf_reg_size): Delete.
21269 * except.h (expand_builtin_init_dwarf_reg_sizes): Declare.
21270 (expand_builtin_dwarf_reg_size): Don't declare.
21271 * libgcc2.c (dwarf_reg_size_table_initialized): New.
21272 (dwarf_reg_size_table): New.
21273 (init_reg_size_table): New function.
21274 (copy_reg): Use dwarf_reg_size_table.
21275 (eh_context_initialize): Make sure dwarf_reg_size_table is initialized
21278 Thu Sep 30 05:40:34 1999 Richard Earnshaw <rearnsha@arm.com>
21280 * c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
21281 Correctly build argument list to constructor and destructor functions.
21283 Thu Sep 30 00:13:27 1999 Dirk Zoller <duz@rtsffm.com>
21285 * c-tree.h (warn_float_equal): Declare.
21286 * c-decl.c (warn_float_equal): Define.
21287 (c_decode_option): Recognize -W[no-]float-equal.
21288 * c-typeck.c (build_binary_op): Conditionally warn
21289 about equality tests of floating point types.
21290 * toplev.c (documented_lan_options): Add -W[no-]float-equal.
21291 * invoke.texi: Add docs for -Wfloat-equal warning.
21293 Wed Sep 29 23:43:39 1999 Jeffrey A Law (law@cygnus.com)
21295 * h8300.h (INIT_TARGET_OPTABS): Use init_one_optab instead of
21296 generating RTL directly.
21297 * mips.h (INIT_TARGET_OPTABS): Likewise.
21298 * mn10200.h (INIT_TARGET_OPTABS): Likewise.
21300 * expr.h (init_mov_optab): Delete declaration
21302 * h8300.c (WORD_REG_USED): Update to avoid useless register
21303 saves in interrupt functions and functions which never return.
21305 * cse.c (struct set): Delete inner_dest_loc field.
21306 (cse_insn): Remove assignments to inner_dest_loc field.
21308 Wed Sep 29 16:06:20 1999 Richard Henderson <rth@cygnus.com>
21310 * ggc-page.c: Don't include <unistd.h> etc taken care of
21311 by "system.h". Include <sys/mman.h> afterward.
21313 Wed Sep 29 16:05:18 1999 Richard Henderson <rth@cygnus.com>
21315 * rs6000.c (rs6000_encode_section_info): If ggc_p, use
21318 Tue Sep 28 16:45:40 1999 David Edelsohn <edelsohn@gnu.org>
21320 * xcoffout.c (xcoffout_declare_function): Add documentation.
21321 * rs6000.c (num_insns_constant_wide): Use TARGET_POWERPC64 not
21322 TARGET_64BIT. Compare constant to -1, not bit pattern.
21323 (easy_fp_constant): Use TARGET_POWERPC64 not TARGET_64BIT.
21324 (expand_block_move): Allow 8 DImode loads for PowerPC64. Fix
21327 Tue Sep 28 16:43:14 1999 Nick Clifton <nickc@cygnus.com>
21329 * dwarf2out.c (add_abstract_origin_attribute): Abort if
21330 origin_die is NULL.
21331 (gen_inlined_enumeration_type_die): Do not abort if the type has
21332 not been writeen out.
21333 (gen_inlined_structure_type_die): Do not abort if the type has
21334 not been writeen out.
21335 (gen_inlined_union_type_die): Do not abort if the type has
21336 not been writeen out.
21337 (gen_tagged_type_instantiation_die): Do not abort if the type
21338 has not been written out.
21340 Tue Sep 28 14:33:47 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21342 * c-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined,
21344 * reg-stack.c (straighten_stack): Copy hard reg set with
21347 Tue Sep 28 01:11:05 1999 Richard Henderson <rth@cygnus.com>
21349 * builtins.c (stabilize_va_list): Stabilize array type va_list
21350 to a pointer type, not the base record type.
21351 (expand_builtin_va_copy): Dereference the pointers explicitly;
21352 use the correct size for the copy.
21354 * rs6000.c (rs6000_va_start): Dereference valist to get to the record.
21355 (rs6000_va_arg): Likewise.
21357 Mon Sep 27 23:27:21 1999 Richard Henderson <rth@cygnus.com>
21359 * rtl.h (struct rtx_def): Move gc_mark to align mode field.
21361 Mon Sep 27 23:20:29 1999 Mark Mitchell <mark@codesourcery.com>
21363 * tree.h (struct tree_decl): Use `bclass', not `class', in name of
21365 (DECL_BUILT_IN_CLASS): Adjust accordingly.
21367 Mon Sep 27 23:03:16 1999 Richard Henderson <rth@cygnus.com>
21369 * ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
21370 (init_ggc): Use it instead of a constant.
21371 (ggc_collect): Bound allocated_last_gc by it.
21373 Mon Sep 27 19:06:04 1999 Jeffrey A Law (law@cygnus.com)
21375 * fixinc/fixinc.irix (stdio.h): Hack stdio.h to avoid problems
21378 Mon Sep 27 19:40:17 CEST 1999 Marc Espie <espie@cvs.openbsd.org>
21380 * configure.in (mips*el-*-openbsd*): Don't duplicate default settings.
21381 (mips*-*-openbsd*): Let big endian configuration be a fragment.
21382 * configure: Regen.
21383 * config/mips/openbsd.h: New, OpenBSD little endian target.
21384 * config/mips/openbsd-be.h: New, OpenBSD big endian target fragment.
21385 * config/mips/xm-openbsd.h: New, OpenBSD host.
21387 Mon Sep 27 10:28:48 1999 Andreas Schwab <schwab@suse.de>
21389 * config/m68k/m68k.c (output_function_prologue,
21390 output_function_epilogue): Use
21391 current_function_uses_pic_offset_table instead of regs_ever_live
21392 to decide whether to save/restore pic register.
21393 (legitimize_pic_address): Don't modify regs_ever_live any more.
21395 Sun Sep 26 10:55:36 1999 Mark Mitchell <mark@codesourcery.com>
21397 * function.h (struct function): Add x_dont_save_pending_sizes_p.
21398 * stor-layout.c (variable_size): Don't add sizes to the pending
21399 sizes list if x_dont_save_pending_sizes_p is set.
21401 Sun Sep 26 16:36:52 1999 Robert Lipe (robertlipe@usa.net)
21403 * config/i386/dgux.h (SELECT_RTX_SECTION): Provide dummy argument
21404 for symbolic_operand().
21405 * config/i386/sco5.h (SELECT_RTX_SECTION): Likewise.
21407 Sun Sep 26 07:37:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21409 * combine.c (gen_rtx_combine): Add missing call to va_end().
21411 * final.c (asm_fprintf): Likewise.
21413 * genattrtab.c (attr_rtx): Likewise.
21415 Sat Sep 25 13:11:07 1999 Jeffrey A Law (law@cygnus.com)
21417 * cse.c: Update comments.
21418 (cse_insn): When converting a conditional/computed jump into
21419 an unconditional jump, always make sure a BARRIER immediately
21420 follows the converted jump. Do not delete unreachable code.
21421 (cse_basic_block): Do not delete unreachable code.
21422 * toplev.c (rest_of_compilation): Move call to
21423 delete_trivially_dead_insns after the conditional call to
21426 Sat Sep 25 09:03:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21428 * collect2.c (make_temp_file): Don't prototype.
21430 * gcc.c (make_temp_file): Likewise.
21432 * mips.c (mips_make_temp_file): Renamed from `make_temp_file'.
21434 Sat Sep 25 13:42:15 1999 Nick Clifton <nickc@cygnus.com>
21436 * varasm.c (asm_emit_uninitialised): New function: Generate
21437 the assembler statements necessary to declare an uninitialised
21439 (ASM_EMIT_LOCAL): New macro: Emit a local, uninitialised
21441 (ASM_EMIT_BSS): New macro: Emit an entry in the bss section.
21442 (ASM_EMIT_COMMON): New macro: Emit an entry in the common
21444 (assemble_variable): Use asm_emit_uninitialised to emit an
21445 uninitialised variable.
21447 Fri Sep 24 17:10:56 1999 Nick Clifton <nickc@cygnus.com>
21449 * combine.c (simplify_comparison): Cope with downshifting a 32 bit
21450 constant on a 64 bit host. Patch supplied by Geoffrey Keating
21451 <geoffk@cygnus.com>.
21453 Fri Sep 24 10:48:10 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21455 * builtins.c (expand_builtin): Use MD_EXPAND_BUILTIN if defined.
21456 * c-common.h (builtin_function): Don't declare.
21458 * c-decl.c (duplicate_decls): Use DECL_BUILT_IN_CLASS rather than
21460 (pushdecl): Likewise.
21461 (finish_decl): Likewise.
21462 (builtin_function): New arg CLASS. Arg FUNCTION_CODE now of type
21463 int. All callers changed.
21464 Set the builtin's DECL_BUILT_IN_CLASS.
21465 * tree.h (enum built_in_class): New.
21466 (enum built_in_function): Delete NOT_BUILT_IN.
21467 (DECL_FUNCTION_CODE): The corresponding field in tree_decl is now
21469 (DECL_SET_FUNCTION_CODE): Likewise.
21470 (DECL_BUILT_IN_CLASS): New macro.
21471 (DECL_BUILT_IN): Use DECL_BUILT_IN_CLASS.
21472 (struct tree_decl): Split builtin function code field into a
21474 (builtin_function): Declare.
21476 Fri Sep 24 01:45:05 1999 Mark Mitchell <mark@codesourcery.com>
21478 * optabs.c (init_traps): Fix typo in last change.
21480 Fri Sep 24 01:10:11 1999 Mark Mitchell <mark@codesourcery.com>
21482 * toplev.c (rest_of_decl_compilation): Update comment.
21484 Fri Sep 24 11:57:06 1999 Geoffrey Keating <geoffk@cygnus.com>
21486 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol
21487 in .sbss if appropriate.
21488 (EXTRA_SECTION_FUNCTIONS): Add sbss.
21489 (SBSS_SECTION_ASM_OP): New macro.
21490 * config/mips/linux.h (EXTRA_SECTION_FUNCTIONS): Add sbss.
21491 (EXTRA_SECTIONS): Add in_sbss.
21492 * config/mips/mips.h: Prototype sbss_section.
21494 Thu Sep 23 18:18:55 1999 Mark Mitchell <mark@codesourcery.com>
21496 * stmt.c (expand_start_bindings): Don't allow cleanup instructions
21499 Thu Sep 23 18:07:01 1999 Mark Mitchell <mark@codesourcery.com>
21501 * optabs.c (init_traps): Register trap_rtx as a GC root.
21503 Thu Sep 23 17:41:47 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21505 * config/mips/mips.c (function_arg_pass_by_reference): Define
21506 unconditionally, since it's called unconditionally.
21508 Thu Sep 23 13:40:02 1999 Jason Merrill <jason@yorick.cygnus.com>
21510 * toplev.c (documented_lang_options): Add -fshort-wchar.
21511 * c-decl.c (c_decode_option): Likewise.
21512 (init_decl_processing): If -fshort-wchar, use 'short unsigned int'
21514 * c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
21515 * gcc.c (default_compilers): If -fshort-wchar,
21516 override __WCHAR_TYPE__.
21517 * tm.texi (C Dialect Options): Add -fshort-wchar.
21519 * dwarf2out.c (output_aranges): Use DW_AT_location to find the
21520 symbol for a variable.
21522 * cpplib.h (CPP_PREPROCESSED): New macro.
21523 * cpplib.c (handle_directive): Don't complain about `# NUMBER' if
21524 we're seeing this input for a second time.
21526 Thu Sep 23 12:54:49 1999 Alex Samuel <samuel@codesourcery.com>
21528 * emit-rtl.c (init_emit_once): Initialize modes first.
21530 Sun Sep 19 01:23:23 1999 Alex Samuel <samuel@codesourcery.com>
21532 * config/i386/i386.c (pic_label_name): Change to char pointer.
21533 (global_offset_table): New variable.
21534 (load_pic_register): Fill global_offset_table if it hasn't
21535 already been done. Allocate pic_label_name dynamically.
21536 * ggc.h (empty_string): New variable.
21537 * ggc-simple.c (empty_string): Likewise.
21538 (init_ggc): Allocate empty_string and add as root.
21539 * stmt.c (digit_strings): New variable.
21540 (init_stmt): Add last_block_end_note as root. Allocate and
21541 initialize digit_strings.
21542 (expand_asm_operands): Use empty_string instead of string
21543 constant. Use digit_strings instead of string constants.
21544 * profile.c (init_arc_profiler): Allocate string with
21545 ggc_alloc_string instead of xmalloc.
21546 (output_func_start_profiler): Likewise.
21547 * c-typeck.c (digest_init): Check if init is error_mark_node.
21549 Thu Sep 23 12:59:14 1999 Alex Samuel <samuel@codesourcery.com>
21550 Richard Henderson <rth@cygnus.com>
21552 * ggc-page.c: New file.
21553 * Makefile.in (ggc-page.o): New.
21555 Thu Sep 23 13:55:21 1999 Jeffrey A Law (law@cygnus.com)
21557 * invoke.texi: Document -fdelete-null-pointer-checks
21558 * toplev.c (flag_delete_null_pointer_checks): New.
21559 (f_options): Add entry for -fdelete-null-pointer-checks.
21560 (rest_of_compilation): Conditionalize null pointer check
21561 elimination on flag_delete_null_pointer_checks.
21562 (main): If -O2 or greater, enable -fdelete-null-pointer-checks
21564 1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com>
21566 * iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
21567 copyright notice and special exception to GPL.
21569 Thu Sep 23 13:40:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21571 * abi64.h (mips_function_value): Add prototype arguments.
21573 * mips-protos.h: New file with mips prototypes.
21575 * mips.c: Include "tm_p.h".
21576 (mktemp, lookup_name): Add prototype arguments.
21577 (extern_list, string_constant, mips_fill_delay_slot,
21578 mips_output_external, mips_output_external_libcall,
21579 mips_output_filename, mips_declare_object, function_prologue,
21580 mips_expand_prologue, function_epilogue, mips16_constant,
21581 build_mips16_function_stub, mips_output_conditional_branch):
21583 (mips_va_start): Remove unused variable `u'.
21584 (mips_va_arg): Cast value to unsigned when comparing against one.
21586 (save_restore_insns, mips_expand_prologue): Add missing arg in
21587 call to `large_int'.
21589 * mips.h: Move prototypes to mips-protos.h.
21590 (data_section, memory_address_p, rdata_section,
21591 readonly_data_section, simple_epilogue_p, text_section): Delete
21592 prototypes delcared elsewhere.
21593 (mips_epilogue_delay_slots, print_options): Delete unused decls.
21595 (GO_PRINTF, GO_PRINTF2): Call fprintf, not trace.
21597 * mips.md: Delete extra args in call to `mips_move_2words'.
21599 * xm-iris6.h (alloca): Add prototype argument.
21601 * genpeep.c: Include "tm_p.h" in generated output file.
21603 Thu Sep 23 10:36:55 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21605 * basic-block.h (find_edge_index): Change parameters.
21606 * flow.c (verify_edge_list): Pass basic_block parameters to
21607 find_edge_index instead of integers.
21609 Thu Sep 23 15:54:12 1999 Nick Clifton <nickc@cygnus.com>
21611 * combine.c (simplify_comparison): Use an unsigned shift to adjust
21614 Thu Sep 23 08:46:21 1999 Guy Harris <guy@netapp.com>
21616 * gcc.1: Fix a formatting error.
21618 Wed Sep 22 16:10:21 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
21620 * install.texi (Configurations): Remove pyramid. Add fr30, i686,
21621 i786, mn10200, mn10300, pdp11, v850.
21623 Thu Sep 23 07:37:13 1999 Dan Nicolaescu <dann@ics.uci.edu>
21625 * libgcc2.c (num_digits): Add prototype with
21626 __attribute__((const)).
21627 (__terminate): Add prototype.
21629 Thu Sep 23 05:32:06 1999 Richard Henderson <rth@cygnus.com>
21631 * builtins.c, dbxout.c, varasm.c: Include tm_p.h.
21633 * alpha/alpha.c (print_operand): Fix type of `code'.
21634 (alpha_output_filename): Constify.
21635 * alpha/alpha.h: Move all function declarations ...
21636 * alpha/alpha-protos.h: ... here. New file.
21637 * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function.
21638 (SECTION_FUNCTION_TEMPLATE): Likewise.
21640 Thu Sep 23 11:15:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21642 * expmed.c (do_cmp_and_jump): Pass ccp_jump to can_compare_p.
21643 * expr.c (expand_expr): Likewise.
21644 (do_jump): Likewise.
21645 (do_store_flag): Pass ccp_store_flag to can_compare_p.
21646 * expr.h (enum optab_index): Add cbranch, cmov, cstore optabs and
21648 (enum can_compare_purpose): New.
21649 (can_compare_p): Adjust prototype.
21650 (prepare_cmp_insn, prepare_operand): Declare.
21651 * genopinit.c (optabs): Add cbranch_optab, cmov_optab, cstore_optab.
21652 * optabs.c (cmp_available_p): Deleted.
21653 (expand_abs): Pass ccp_jump to can_compare_p.
21654 (can_compare_p): New arg PURPOSE. Check for combined optabs.
21655 (prepare_cmp_insn): No longer static. Add arg PURPOSE.
21656 Call can_compare_p rather than cmp_available_p.
21657 (prepare_operand): No longer static.
21658 (emit_cmp_and_jump_insn): Check for and use cbranch patterns.
21659 (emit_cmp_and_jump_insns): Pass ccp_jump to prepare_cmp_insn.
21660 (expand_float): Fix a slightly broken emit_cmp_insn/emit_jump_insn
21661 sequence to use emit_cmp_and_jump_insns.
21662 (init_optabs): Initialize cbranch_optab, cmov_optab, cstore_optab.
21664 Wed Sep 22 17:58:01 1999 Stan Cox <scox@cygnus.com>
21666 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large
21667 register offsets; let LEGITIMIZE_ADDRESS load it into a register.
21668 (LEGITIMIZE_ADDRESS): Use plus_constant to avoid
21669 (plus (reg) (const_int 0))
21670 * mips.md (call_internal3c): New pattern for -mips16 -mlong-calls.
21672 Wed Sep 22 17:55:31 1999 David Edelsohn <edelsohn@gnu.org>
21674 * rs6000.c (expand_block_move): DImode loads and stores require
21675 word-aligned displacements. Increment address registers with
21676 adddi3 on 64-bit platform. Use TARGET_POWERPC64 not TARGET_64BIT.
21678 Wed Sep 22 17:35:55 1999 Michael Meissner <meissner@cygnus.com>
21680 * dwarf2out.c (base_type_die): Use the name __unknown__ if there
21681 is no name for the base type, rather than segfault. If we are
21682 writing out a complex integer type, use DW_ATE_lo_user.
21684 * expr.c (emit_move_insn_1): If we are copying a complex that fits
21685 in one word or less (complex char, complex short, or on 64 bit
21686 systems complex float) to/from a hard register, copy it through
21687 memory instead of dying in gen_{real,imag}part. If we have a
21688 short complex type, prevent inlining since it allocates stack
21691 * tree.c (build_complex_type): If we are writing dwarf2 output,
21692 generate a name for complex integer types.
21694 Wed Sep 22 11:34:08 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21696 * basic-block.h (add_noreturn_fake_exit_edges): Use correct name.
21697 * flow.c (remove_edge): Remove extra whitespace.
21698 (remove_fake_edges): Fix comment.
21699 (add_noreturn_fake_exit_edges): Use the correct name.
21701 Wed Sep 22 16:12:40 BST 1999 Nathan Sidwell <nathan@acm.org>
21703 * Makefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.
21704 (mostlyclean): Depend on INTL_MOSTLYCLEAN.
21705 (clean): Depend on INTL_CLEAN.
21706 (maintainer-clean): Adjust.
21708 Wed Sep 22 10:18:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21710 * configure.in (AC_PREREQ): Bump to 2.13.
21711 (AC_C_STRINGIZE): Call this instead of using a custom macro.
21713 * gansidecl.h (HAVE_STRINGIZE): Define, if stage2 gcc && __STDC__.
21715 * system.h (HAVE_STRINGIZE): Test this instead of HAVE_CPP_STRINGIFY.
21717 * acconfig.h (HAVE_CPP_STRINGIFY): Delete.
21719 * alpha/xm-vms.h (HAVE_CPP_STRINGIFY): Delete.
21720 (HAVE_STRINGIZE): Define.
21722 Wed Sep 22 06:25:15 1999 Jim Kingdon <http://developer.redhat.com>
21724 * c-parse.in: save and restore warn_pointer_arith on __extension__
21725 along with pedantic.
21726 (SAVE_WARN_FLAGS, RESTORE_WARN_FLAGS): Added.
21727 Set the type of extension to itype rather than $<itype>1 kludge.
21728 * extend.texi (Alternate Keywords): Adjust documentation.
21729 * c-parse.c, c-parse.y, objc-parse.c, objc-parse.y: Rebuilt.
21731 Wed Sep 22 06:06:57 1999 Jeffrey A Law (law@cygnus.com)
21733 * pa.c, pa.h, pa.md: Support multiple assembler dialects in
21734 most assembler templates.
21736 * pa.c (hppa_legitimize_address): Handle full offsets for PA2.0
21737 FP loads and stores.
21738 (following_call): Always return zero for the PA8000.
21739 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Handle full offsets for PA2.0
21740 FP loads and stores.
21741 (LEGITIMIZE_RELOAD_ADDRESS): Similarly.
21743 * pa.h (BRANCH_COST): Define.
21745 * pa.md (return, return_internal): Use bve for PA2.0.
21747 * pa.md (fused multiply): Add variants which reduce height for the
21748 fused multiply, but which still generate 2 insns.
21749 (fnegabs): Similarly.
21751 * pa.md (subsi3): Turn into an expander. Create two anonymous
21752 patterns. One for PA2.0 one for PA1.x. Use mtsarcm for PA2.0.
21753 * pa.h (EXTRA_CONSTRAINT): Handle 'S'.
21755 * pa.md (floatunssisf2, floatunssidf2): Generate different RTL
21757 (floatunssidf2_pa20, floatunssisf2_pa20): New patterns for PA2.0
21759 (floatunsdisf2, floatunsdidf2, fixuns_truncsfsi2): Likewise.
21760 (fixuns_truncdfsi2, fixuns_truncsfdi2, fixuns_truncdfsi2): Likewise.
21762 * regclass.c (init_regs): Add "top_of_stack" as a garbage
21765 * flow.c (record_active_eh_regions): Terminate loop after finding
21766 the last insn in the last basic block.
21768 Wed Sep 22 20:25:00 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21770 * config/c4x/c4x.md: Delete parallel instruction peepholes.
21772 Wed Sep 22 19:59:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21774 * config/c4x/c4x.c (c4x_add_gc_roots): Add tree roots.
21776 Wed Sep 22 19:56:25 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21778 * config/c4x/c4x.c (c4x_process_after_reload): Rework machdep insn
21779 splitting to not use output template.
21781 Wed Sep 22 19:50:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21783 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.
21784 * config/c4x/c4x.c (c4x_va_start): New function.
21786 Tue Sep 21 18:40:01 1999 Jan Hubicka <hubicka@freesoft.cz>
21788 * genrecog.c (not_both_true): Handle correctly cases when called for
21789 tests with different positions in the insn.
21791 Tue Sep 21 18:29:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21793 * machmode.h (HOST_PTR_PRINTF): Move from here ...
21795 * system.h (HOST_PTR_PRINTF): ... to here.
21797 * mips-tfile.c: Don't include machmode.h.
21799 * Makefile.in (MACHMODE_H): New variable. Update to use it.
21800 (mips-tfile.o): Don't depend on machmode.h.
21802 Tue Sep 21 18:27:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21804 * haifa-sched.c (sched_analyze): Rename local variable `region' to
21805 avoid conflicts with typedef struct `region' at the top level scope.
21807 Tue Sep 21 14:14:50 1999 Richard Henderson <rth@cygnus.com>
21809 * basic-block.h (basic_block): Add eh_beg, eh_end.
21810 * flow.c (entry_exit_blocks): Update.
21811 (find_basic_blocks): Don't allocate bb_eh_end, or pass it around.
21812 Call new functions.
21813 (find_basic_blocks_1): Don't record eh_list at each bb. Use
21814 lists.c functions to allocate insn lists.
21815 (make_edges): Use eh_beg+eh_end, not the lists. Split out EH
21817 (make_eh_edge): ... here. New.
21818 (move_stray_eh_region_notes): New.
21819 (record_active_eh_regions): New.
21820 (delete_unreachable_blocks): Split out block merging ...
21821 (try_merge_blocks): ... here. New.
21822 (merge_blocks_move_predecessor_nojumps): Remove edge arg.
21823 Dump debugging data.
21824 (merge_blocks_move_successor_nojumps): Likewise.
21825 (merge_blocks): Use eh_beg+eh_end to validate block movement.
21827 Tue Sep 21 11:15:03 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
21829 * extend.texi (Bound member functions): Document unbound pmf
21832 Tue Sep 21 14:55:11 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21834 * flow.c (split_edge): Handle insertion on a fallthrough edge which
21835 has the EXIT_BLOCK as a dest.
21837 Tue Sep 21 14:51:23 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21839 * flow.c (remove_edge): New function to remove an edge from the
21841 (remove_fake_successors): New function to remove fake successor edges.
21842 (remove_fake_edges): New function to remove all fake edges from the
21844 (add_fake_exit_edges): New function to add fake edges from all blocks
21845 with no successors to the exit block.
21846 * basic-block.h (remove_fake_edges, add_fake_exit_edges): Add
21847 prototypes for new functions.
21849 Tue Sep 21 14:49:53 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21851 * config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR):
21852 Use Pmode to determine whether to output .dword or .word.
21854 Tue Sep 21 11:04:34 1999 Alex Samuel <samuel@codesourcery.com>
21856 * tree.c (built_in_filename): New variable.
21857 (BUILT_IN_FILENAME): New macro.
21858 (init_tree_codes): Allocate built_in_filename.
21859 (make_node): Use built_in_filename instead of string constant.
21861 Tue Sep 21 14:13:27 1999 Nick Clifton <nickc@cygnus.com>
21863 * configure.in: Add fr30 target.
21864 * configure: Regenerate.
21865 * config/fr30: New directory.
21866 * config/fr30/crti.asm: New file.
21867 * config/fr30/fr30.c: New file.
21868 * config/fr30/crtn.asm: New file.
21869 * config/fr30/fr30.h: New file.
21870 * config/fr30/fr30.md: New file.
21871 * config/fr30/lib1funcs.asm: New file.
21872 * config/fr30/t-fr30: New file.
21873 * config/fr30/xm-fr30.h: New file.
21875 Tue Sep 21 06:45:31 1999 Jeffrey A Law (law@cygnus.com)
21877 * flow.c (merge_blocks_move_successor_nojumps): Delete the
21878 BARRIER at the end of the successor, not the BARRIER before
21881 * pa.c (pa_add_gc_roots): Fix thinko in last change.
21883 Tue Sep 21 05:29:17 1999 Richard Earnshaw (rearnsha@arm.com)
21885 * stmt.c (any_pending_cleanups): Don't crash when
21886 current_function->stmt is unset.
21888 Tue Sep 21 00:59:49 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21890 * emit-rtl.c (init_emit_once): Initialize const_int_rtx before
21891 other initializations that may use it for relative offsets.
21893 Mon Sep 20 21:43:25 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21895 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
21896 (ASM_SPEC): Moved from sol2dbg.h. Added work-around for gas.
21897 * config/i386/sol2dbg.h: Removed.
21898 * config/i386/sol2gas.h: New file, to enable gas work-around.
21899 * configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas.
21900 Don't use sol2dbg.h.
21901 * configure: Rebuilt.
21903 Mon Sep 20 13:29:41 1999 Mark Mitchell <mark@codesourcery.com>
21905 * invoke.texi (-fthis-is-variable): Remove documentation.
21907 Mon Sep 20 12:59:16 1999 Richard Henderson <rth@cygnus.com>
21909 * basic-block.h (compute_bb_for_insn): Declare.
21910 * flow.c (compute_bb_for_insn): Export. Don't accept the varray
21911 to use; set size of basic_block_for_insn directly.
21912 (find_basic_blocks): Update.
21914 Mon Sep 20 15:11:54 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21916 * flow.c (verify_flow_info): Fix typo, "abort;" -> "abort ();".
21918 Mon Sep 20 14:56:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21920 * crtstuff.c (ON_EXIT): Delete empty macro definition.
21921 (__do_global_ctors_aux): Call atexit(), not ON_EXIT().
21923 Mon Sep 20 15:25:35 1999 Nick Clifton <nickc@cygnus.com>
21925 * c-decl.c (c_decode_option): Extend comment.
21927 Mon Sep 20 14:43:37 1999 Nick Clifton <nickc@cygnus.com>
21929 * toplev.c (progname): Make 'const char *'
21930 (flag_print_mem): Move out of main.
21931 (version_flag): Move out of main.
21932 (filename): Move out of main.
21933 (debug_args): Remove g prefix from options.
21934 (documented_lang_options): Remove cpplib specific options.
21935 (display_help): Add g prefix to debug options.
21936 (check_lang_option): Delete this function.
21937 (decode_d_option): New function: Decode -d... option.
21938 (decode_f_option): New function: Decode -f... option.
21939 (decode_W_option): New function: Decode -W... option.
21940 (decode_g_option): New function: Decode -g... option.
21941 (independent_decode_option): New function: Decode a language
21942 independent command line option.
21943 (main): Invoke lang_decode_option and then
21944 independent_decode_option on each command line option in
21947 Mon Sep 20 05:41:36 1999 Jeffrey A Law (law@cygnus.com)
21949 Revert this change. Gavin's patch to operand_equal_p is a better fix.
21950 * fold-const.c (fold_range_test): Do not try to fold the range
21951 test if the rhs or lhs has side effects.
21953 * basic-block.h (compute_flow_dominators): Declare.
21955 * gcse.c (alloc_code_hoist_mem): New function.
21956 (free_code_hoist_mem, compute_code_hoist_vbeinout): Likewise.
21957 (compute_code_hoist_data, hoist_expr_reaches_here_p): Likewise.
21958 (hoist_code, one_code_hoisting_pass): Likewise.
21959 (gcse_main): If optimizing for size, then hoist expressions
21960 computed in multiple dominated basic blocks.
21962 * gcse.c (invalid_nonnull_info): New function.
21963 (delete_null_pointer_checks): Likewise.
21964 * rtl.h (delete_null_pointer_checks): Declare.
21965 * toplev.c (rest_of_compilation): Call delete_null_pointer_checks.
21967 * flow.c (merge_blocks_move_predecessor_nojumps): New function.
21968 (merge-blocks_move_successor_nojumps): Likewise.
21969 (merge_blocks): Allow merging of some blocks, even if it requires
21970 physical movement of the blocks, but not if it requires new jumps.
21972 * bitmap.c (debug_bitmap_file): Renmaed from bitmap_debug_file.
21973 Callers and prototype changed.
21974 * bitmap.h: Fix debug_bitmap and debug_bitmap_file prototypes.
21976 Mon Sep 20 06:56:32 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21978 * config/sparc/sol2.h (LINK_SPEC): Avoid the duplication of
21979 -YP when both -p and -pg are present. From i386/sol2.h.
21981 Mon Sep 20 10:49:05 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21983 * Makefile.in (distclean): Delete tm_p.h.
21984 * configure.in: Create a new file, "tm_p.h", from a list in
21985 "tm_p_file". For ix86 systems, set up "tm_p_file" to include
21986 "i386/i386-protos.h".
21988 * alias.c: Include "tm_p.h".
21989 * c-typeck.c: Likewise.
21990 * calls.c: Likewise.
21992 * emit-rtl.c: Likewise.
21993 * explow.c: Likewise.
21994 * expmed.c: Likewise.
21995 * expr.c: Likewise.
21996 * final.c: Likewise.
21997 * flow.c: Likewise.
21998 * fold-const.c: Likewise.
21999 * function.c: Likewise.
22000 * gcse.c: Likewise.
22001 * global.c: Likewise.
22002 * haifa-sched.c: Likewise.
22003 * integrate.c: Likewise.
22004 * jump.c: Likewise.
22005 * local-alloc.c: Likewise.
22006 * loop.c: Likewise.
22007 * optabs.c: Likewise.
22008 * recog.c: Likewise.
22009 * reg-stack.c: Likewise.
22010 * regclass.c: Likewise.
22011 * regmove.c: Likewise.
22012 * reload.c: Likewise.
22013 * reload1.c: Likewise.
22014 * reorg.c: Likewise.
22015 * resource.c: Likewise.
22016 * stmt.c: Likewise.
22017 * stor-layout.c: Likewise.
22018 * toplev.c: Likewise.
22019 * tree.c: Likewise.
22020 * unroll.c: Likewise.
22021 * genattrtab.c (main): Make generated file include "tm_p.h".
22022 * genemit.c (main): Likewise.
22023 * genoutput.c (main): Likewise.
22024 * genrecog.c (main): Likewise.
22026 * i386.h: Delete all prototypes.
22027 * i386.c: Include "tm_p.h".
22028 (ix86_attr_length_default): Call constant_call_address_operand
22029 with correct number of arguments.
22030 * i386-protos.h: New file.
22031 * i386.md (unnamed patterns): Call constant_call_address_operand
22032 with correct number of arguments.
22033 (exception_receiver): Call load_pic_register with correct number
22036 Sun Sep 19 14:18:39 1999 Richard Henderson <rth@cygnus.com>
22038 * c-pragma.c (mark_align_stack): Dereference the void* properly.
22040 Sun Sep 19 09:03:40 1999 Mark Mitchell <mark@codesourcery.com>
22042 * rtl.h (insns_safe_to_move_p): New function.
22043 * loop.c (find_and_verify_loops): Use it.
22044 * rtlanal.c (insns_safe_to_move_p): Define it.
22046 Sun Sep 19 02:54:33 1999 Richard Henderson <rth@cygnus.com>
22048 * c-pragma.c: Include ggc.h.
22049 * Makefile.in (c-pragma.o): Update.
22051 Sat Sep 18 16:01:18 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
22053 * config/i386/sol2.h (CPP_SPEC): Support -[p]threads
22054 (LIB_SPEC): Likewise.
22055 (LINK_SPEC): Do not assert -z text with -shared -mimpure-text.
22056 Reindent -YP/-p/-pg.
22057 Copied from config/sparc/sol2.h.
22059 Sat Sep 18 11:52:43 1999 Richard Henderson <rth@cygnus.com>
22061 * c-pragma.c (mark_align_stack): New.
22062 (init_pragma): New.
22063 * c-pragma.h (init_pragma): Declare it.
22064 * c-lex.c (init_parse): Call it.
22066 Sat Sep 18 15:20:38 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
22068 * configure.in: Pick up thread library on Solaris/x86 just
22069 like on Solaris/sparc.
22070 * configure: Rebuilt.
22072 Sat Sep 18 11:15:58 1999 Alex Samuel <samuel@codesourcery.com>
22074 * rtl.h (global_rtx_index): New enum.
22075 (global_rtl): Change to array of rtx.
22076 (pc_rtx, cc0_rtx): Redefine accordingly.
22077 (cc0_rtx, stack_pointer_rtx, frame_pointer_rtx): Likewise.
22078 (hard_frame_pointer_rtx, arg_pointer_rtx): Likewise.
22079 (virtual_incoming_args_rtx, virtual_stack_vars_rtx): Likewise.
22080 (virtual_outgoing_args_rtx, virtual_cfa): Likewise.
22081 (const_int_rtx): Change to array of rtx.
22082 (const0_rtx, const1_rtx, const2_rtx, constm1_rtx): Redefine
22084 * emit-rtl.c (global_rtl): Change to array of rtx.
22085 (const_int_rtx): Change to aray of rtx.
22086 (gen_rtx_CONST_INT): Redefine accordingly.
22087 (init_emit_once): Allocate and initialize global_rtl. Likewise
22088 for const_int_rtx. Add both as GC roots.
22089 * genattrtab.c (global_rtl): Update declaration.
22091 1999-09-17 Ulrich Drepper <drepper@cygnus.com>
22093 * Makefile (USER_H): Add iso646.h back.
22095 Sat Sep 18 01:07:21 1999 Jeffrey A Law (law@cygnus.com)
22097 * haifa-sched.c (sched_analyze): Use free_INSN_LIST_list instead of
22098 zapping the LOG_LINKS of sched_before_next_call.
22100 * pa.h (INSN_SETS_ARE_DELAYED): Delete.
22101 * pa.c (insn_refs_are_delayed): Renamed from
22102 insn_sets_and_refs_are_delayed.
22104 Fri Sep 17 15:19:01 1999 Mark Mitchell <mark@codesourcery.com>
22106 * functiion.h (struct function): Add x_whole_function_mode_p.
22107 (retrofit_block): Declare.
22108 * function.c (retrofit_block): New function.
22109 (identify_blocks): Add assertions. Allow an incomplete set of
22110 block notes if we're still generating code for the function.
22111 * integrate.c: Include loop.h.
22112 (expand_inline_function): Call find_loop_tree_blocks to map block
22113 notes to blocks when in whole-function mode. Use retrofit_block
22114 to insert new BLOCKs for the inlined function, rather than
22116 * stmt.c (expand_fixup): Likewise. Don't use pushlevel/polevel.
22117 * Makefile.in (integrate.o): Depend on loop.h.
22119 Fri Sep 17 15:11:20 1999 Mark Mitchell <mark@codesourcery.com>
22121 * tree.h (warn_about_unused_variables): Declare.
22122 * stmt.c (warn_about_unused_variables): New function, split out
22124 (expand_end_bindings): Here.
22126 Fri Sep 17 15:07:37 1999 Mark Mitchell <mark@codesourcery.com>
22128 * stmt.c (preserve_subexpressions_p): Don't crash when
22129 current_function->stmt is unset.
22131 Fri Sep 17 15:03:16 1999 Mark Mitchell <mark@codesourcery.com>
22133 * stmt.c (expand_start_bindings): Allow callers to pass a flag
22134 indicating that no NOTE_INSN_BLOCK_BEG note is required.
22135 (expand_start_target_temps): Use it.
22136 * except.c (expand_eh_region_start_for_decl): Likewise.
22137 * expr.c (expand_expr): Likewise.
22139 Fri Sep 17 15:05:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
22141 * fold-const.c (operand_equal_p): Pay attention to side effects.
22143 Fri Sep 17 11:14:17 1999 Jason Merrill <jason@yorick.cygnus.com>
22145 * libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
22146 * sparc/sunos4.h (HAVE_ON_EXIT): Remove.
22148 * tlink.c (scan_linker_output): Look for keywords before accepting
22149 a mangled name in quotes.
22151 Thu Sep 16 16:47:08 1999 Richard Henderson <rth@cygnus.com>
22153 * alpha/alpha-interix.h (DWARF2_UNWIND_INFO): Define to zero.
22154 * alpha/osf2or3.h (DWARF2_UNWIND_INFO): Likewise.
22156 Thu Sep 16 16:35:41 1999 Richard Henderson <rth@cygnus.com>
22158 * alpha.md: Revert Thu Nov 26 change that came in through the
22159 last gcc2 merge: reinstate (plus (plus ...)) reload patterns.
22160 Avoid earlyclobber when possible.
22162 Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22164 * libgcc2.c (__do_global_ctors): Call atexit with one arg.
22166 * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
22167 Define HAVE_ON_EXIT.
22169 Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22171 * system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
22172 CTYPE_CONV in all ctype macros.
22174 * cccp.c (initialize_char_syntax): Use uppercase ctype macro
22177 * cexp.y (initialize_random_junk): Likewise.
22179 * c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.
22181 * i370.c (handle_pragma): Likewise.
22183 * i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.
22185 * v850.c (override_options): Likewise.
22187 * doprint.c (_doprnt): Likewise.
22189 * fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
22192 * fixinc/server.c (load_data): Likewise.
22194 * fold-const.c (real_hex_to_f): Likewise.
22196 * genattr.c (write_upcase, gen_attr): Likewise.
22198 * genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
22199 write_upcase): Likewise.
22201 * genemit.c (print_code): Likewise.
22203 * genopinit.c (gen_insn): Likewise.
22205 * genpeep.c (print_code): Likewise.
22207 * genrecog.c (print_code): Likewise.
22209 * optabs.c (init_libfuncs): Likewise.
22211 Thu Sep 16 14:03:32 1999 Mark Mitchell <mark@codesourcery.com>
22213 * haifa-sched.c (sched_analyze): Keep the list of notes organized
22215 (reemit_notes): Likewise.
22217 Thu Sep 16 11:50:52 1999 Alex Samuel <samuel@codesourcery.com>
22219 * ggc.h (ggc_root): Move to ggc-common.c.
22221 (ggc_mark_rtx, ggc_mark_tree): Change to macro.
22222 (ggc_mark_rtvec, ggc_mark_tree_varray): Declare extern.
22223 (ggc_mark_tree_hash_table, ggc_mark_string, ggc_mark): Likewise.
22224 (ggc_mark_roots, ggc_mark_rtx_children, ggc_mark_tree_children): New.
22225 * ggc-common.c (ggc_root): Move from ggc.h.
22226 (roots): Declare, static.
22227 (ggc_mark_rtx, ggc_mark_tree): Renamed to...
22228 (ggc_mark_rtx_children, ggc_mark_tree_children): Don't check for
22229 null or check/set mark bit.
22230 (ggc_mark_roots): New.
22231 * ggc-simple.c (ggc_collect): Call ggc_mark_roots.
22233 Thu Sep 16 11:37:32 1999 Richard Henderson <rth@cygnus.com>
22235 * m32r.c: Include toplev.h.
22236 (*): Add ATTRIBUTE_UNUSED as needed to arguments.
22237 (gen_compare): Rename swap_p to must_swap to match uses.
22238 Add default abort case.
22239 (m32r_output_function_epilogue): Remove unused variables.
22240 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
22241 * m32r.h (PROTO, STDIO_PROTO): Rename XPROTO; unconditionally
22242 define to empty parameter list. Update all uses.
22243 (predicate decls): Use enum machine_mode not int.
22244 * m32r.md (movsi): Call abort, not fatal_insn.
22245 (zero_branch_insn, rev_zero_branch_insn): Add default abort case.
22247 1999-09-14 Andrew Haley <aph@cygnus.com>
22249 * config/mips/mips.md (movsi_usw): if operand 1 is const_int 0,
22250 use $0 instead of 0.
22252 Thu Sep 16 10:53:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22254 * reload1.c (order_regs_for_reload): Move hard_reg_n_uses
22255 computation out of loop over hard regs.
22257 Wed Sep 15 21:37:06 1999 Mark Mitchell <mark@codesourcery.com>
22259 * function.c (identify_blocks): Don't shadow a variable in an
22261 * integrate.c (integrate_decl_tree): Don't use pushlevel,
22262 pushdecl, or poplevel to build up the new BLOCK tree.
22263 (expand_inline_function): Likewise.
22264 (integrate_parm_decls): Likewise.
22266 Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
22268 * c-typeck.c (qualify_type): Merge qualifiers from both types.
22270 1999-09-15 Brad Lucier <lucier@math.purdue.edu>
22272 * toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
22273 * invoke.texi: Document this change.
22275 Wed Sep 15 17:56:00 1999 Richard Henderson <rth@cygnus.com>
22277 * emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
22279 (mark_emit_status): Renamed from mark_emit_state.
22280 * except.c (mark_eh_status): Renamed from mark_eh_state.
22281 Check not null before marking.
22282 (free_eh_status): New.
22283 * expr.c (mark_expr_status, free_expr_status): New.
22284 * function.c (free_machine_status): New.
22285 (free_after_parsing): New.
22286 (free_after_compilation): Move bits to free_after_parsing; call
22287 free_eh_status, free_expr_status; zero the marked members of the
22289 (prepare_function_start): No can_garbage_collect.
22290 Call init_eh_for_function.
22291 (expand_dummy_function_end): Free up current_function state.
22292 (mark_function_status): Renamed from mark_function_state.
22293 (mark_function_chain): No can_garbage_collect. Call mark_expr_status.
22294 * function.h (struct function): No can_garbage_collect.
22295 (free_machine_status, free_after_parsing): Declare.
22296 (free_eh_status, free_expr_status): Declare.
22297 * ggc.h (mark_expr_status): Declare.
22298 * stmt.c (free_stmt_status): Free the struct.
22299 (mark_stmt_status): Renamed from mark_stmt_state.
22300 (init_stmt): Don't call init_eh.
22301 (init_stmt_for_function): Don't call init_eh_for_function.
22302 * toplev.c (compile_file): Call init_eh.
22303 (rest_of_compilation): Free basic block info before ggc_collect.
22304 Call free_after_parsing; conditionally call free_after_compilation.
22305 * varasm.c (mark_varasm_status): Renamed from mark_varasm_state.
22306 Check not null before marking.
22307 (free_varasm_status): Don't check DECL_DEFER_OUTPUT. Free the struct.
22309 Wed Sep 15 17:53:16 1999 Richard Henderson <rth@cygnus.com>
22311 * c-lex.c (yylex): Initialize warn.
22313 Wed Sep 15 18:35:38 1999 Jeffrey A Law (law@cygnus.com)
22315 * pa.c (emit_move_sequence): Properly set the mode of the scratch
22316 register when performing secondary reloads for the SAR register.
22318 Wed Sep 15 15:51:52 1999 Mark Mitchell <mark@codesourcery.com>
22320 * rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
22321 (NOTE_BLOCK): New macro.
22322 (NOTE_BLOCK_LIVE_RANGE_BLOCK): Remove.
22323 * function.h (identify_blocks): Change prototype.
22324 * function.c (identify_blocks): Simplify.
22325 (reorder_blocks): Likewise.
22326 * ggc-common.c (ggc_mark_rtx): Mark the BLOCK associated with a
22327 NOTE_INSN_BLOCK_{BEG,END}.
22328 * haifa-sched.c (sched_analyze): Don't put NOTE_BLOCK_NUMBER on
22329 the list of saved notes if the note isn't a
22330 NOTE_INSN_BLOCK_{BEG,END}.
22331 (move_insn1): Use NOTE_EH_HANDLER in comment, rather than
22333 (reemit_notes): Adjust recreation of notes to reflect new saved
22335 * print-rtl.c (print_rtx): Print the address of the BLOCK when
22336 printing a block note.
22337 * stmt.c (block_vector): Remove.
22338 (find_loop_tree_blocks): Simplify.
22339 (unroll_block_trees): Likewise.
22340 * tree.h (reorder_block): Change prototype.
22342 Wed Sep 15 14:39:35 1999 Jason Merrill <jason@yorick.cygnus.com>
22344 * gbl-ctors.h: Lose HAVE_ATEXIT. Don't define ON_EXIT.
22345 * libgcc2.c: Lose obsolete defn of WEAK_ALIAS.
22346 (__bb_init_func, __bb_init_prg): Use atexit instead of ON_EXIT.
22347 (__do_global_dtors): Likewise. Don't mess with _exit_dummy_decl.
22348 (atexit, exit): Simplify.
22349 * tm.texi: Document NEED_ATEXIT and ON_EXIT. Remove HAVE_ATEXIT.
22350 * config/lots: Remove defns of HAVE_ATEXIT.
22352 Wed Sep 15 10:25:12 1999 Mark Mitchell <mark@codesourcery.com>
22354 * calls.c (precompute_arguments): Fix typo in comment.
22355 * expr.c (preexpand_calls): Don't preexpand the cleanup in a
22358 Wed Sep 15 09:59:59 1999 Mark Mitchell <mark@codesourcery.com>
22360 * dsp16xx.c (override_options): Fix typos in GC root registration.
22362 Wed Sep 15 15:23:28 1999 Philip Blundell <pb@nexus.co.uk>
22364 * config/arm/linux-elf.h (MAKE_DECL_ONE_ONLY): Copy definition
22365 from config/svr4.h.
22366 (UNIQUE_SECTION_P, UNIQUE_SECTION): Likewise.
22367 (FUNCTION_PROFILER): Redefine appropriately for Linux.
22368 (CC1_SPEC): Likewise.
22370 Wed Sep 15 10:09:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22372 * genattr.c (main): Add extern prototype. Call return, not exit.
22373 * genattrtab.c (main): Likewise.
22374 * gencheck.c (main): Likewise.
22375 * gencodes.c (main): Likewise.
22376 * genconfig.c (main): Likewise.
22377 * genemit.c (main): Likewise.
22378 * genextract.c (main): Likewise.
22379 * genflags.c (main): Likewise.
22380 * gengenrtl.c (main): Likewise.
22381 * genopinit.c (main): Likewise.
22382 * genoutput.c (main): Likewise.
22383 * genpeep.c (main): Likewise.
22384 * genrecog.c (main): Likewise.
22386 * genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED.
22387 * genattrtab.c (get_insn_name): Likewise.
22388 * gencodes.c (get_insn_name): Likewise.
22389 * genconfig.c (get_insn_name): Likewise.
22390 * genemit.c (get_insn_name): Likewise.
22391 * genextract.c (get_insn_name): Likewise.
22392 * genflags.c (get_insn_name): Likewise.
22393 * genopinit.c (get_insn_name): Likewise.
22394 * genpeep.c (get_insn_name): Likewise.
22396 * gencheck.c (usage): Add static prototype.
22397 * genextract.c (print_path): Constify a char*.
22398 * genopinit.c (optabs): Likewise.
22399 * genoutput.c (operand_data, data, output_predicate_decls,
22400 compare_operands): Likewise.
22401 * genrecog.c (write_tree): Add default case in switch.
22403 Wed Sep 15 09:59:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22405 * rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.
22407 * print-rtl.c (get_insn_name): Remove prototype.
22409 * toplev.h (progname): Declare const.
22411 * toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
22412 init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
22413 dump_sched_info, dump_local_alloc, regset_release_memory,
22414 print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
22415 error_with_file_and_line, error_with_decl, error_for_asm, error,
22416 fatal, warning_with_file_and_line, warning_with_decl, warning,
22417 pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
22418 Remove redundant prototypes.
22420 (notice, check_lang_option, report_file_and_line, vnotice,
22421 mark_file_stack): Add static prototype.
22422 (set_fatal_function): Add prototype.
22423 (vnotice, report_file_and_line, set_fatal_function,
22424 check_lang_option): Constify a char*.
22425 (main): Prototype. Call return, not exit.
22427 Wed Sep 15 09:50:18 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22429 * aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
22431 * configure.in (AC_GCC_C_LONG_DOUBLE): Call it.
22433 * gansidecl.h (HAVE_LONG_DOUBLE): Define if gcc for stage2.
22435 * ggc-simple.c (HAVE_LONG_DOUBLE): Test before using long double.
22437 Wed Sep 15 11:04:43 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22439 * function.c (assign_parms): Delete arg SECOND_TIME. Don't test it,
22440 behave as if it's zero in all cases.
22441 (expand_function_start): Adjust call to assign_parms.
22442 * tree.h (assign_parms): Adjust prototype.
22443 * objc/objc-act.c (hack_method_prototype): Adjust call to
22446 Tue Sep 14 21:47:06 1999 Jeffrey A Law (law@cygnus.com)
22448 * cse.c (FIXED_BASE_PLUS_P): Do not consider referneces to
22449 arg_pointer_rtx fixed if the argument pointer register is
22451 (NONZERO_BASE_PLUS_P): Likewise.
22453 Tue Sep 14 20:26:02 1999 Richard Henderson <rth@cygnus.com>
22455 * rtl.def (match_insn, match_insn2): Remove match_insn; rename
22456 match_insn2 to match_insn.
22457 * genrecog.c (add_to_sequence): Rename MATCH_INSN2.
22459 Tue Sep 14 20:10:29 1999 Richard Henderson <rth@cygnus.com>
22461 * Makefile.in (USER_H): Remove va-foo.h.
22463 * ginclude/{va-alpha.h,va-arc.h,va-c4x.h,va-clipper.h,va-h8300.h,
22464 va-i860.h,va-i960.h,va-m32r.h,va-m88k.h,va-mips.h,va-mn10200.h,
22465 va-mn10300.h,va-pa.h,va-ppc.h,va-pyr.h,va-sh.h,va-sparc.h,
22466 va-spur.h,va-v850.h}: Remove.
22468 Tue Sep 14 19:43:16 1999 Richard Henderson <rth@cygnus.com>
22470 * sparc/sparc.md (eligible_for_return_delay): New attribute.
22471 (in_return_delay): Use it instead of match_insn.
22473 Tue Sep 14 23:05:37 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
22475 * config/alpha/va_list.h (va-alpha.h): Do not include.
22476 (__gnuc_va_list): Typedef as in varargs.h.
22478 Tue Sep 14 18:14:03 1999 Richard Henderson <rth@cygnus.com>
22480 * ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and
22481 DECL_LIVE_RANGE_RTL.
22483 Tue Sep 14 16:47:08 1999 Mark Mitchell <mark@codesourcery.com>
22485 * except.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER,
22486 not NOTE_BLOCK_NUMBER.
22487 (expand_eh_region_end): Likewise.
22488 (find_exception_handler_labels): Likewise.
22489 (scan_region): Likewise.
22490 (exception_optimize): Likewise.
22491 (update_rethrow_references): Likewise.
22492 (set_insn_eh_region): Likewise.
22493 * final.c (final_scan_insn): Likewise.
22494 * flow.c (make_edges): Likewise.
22495 * integrate.c (expand_inline_function): Likewise.
22496 * print-rtl.c (print_rtx): Likewise.
22498 Tue Sep 14 16:30:16 1999 Richard Henderson <rth@cygnus.com>
22500 * ginclude/stdarg.h, ginclude/varargs.h: Implement in
22501 terms of builtin functions and types.
22503 * mips.c (mips_build_va_list): New.
22504 (mips_va_start, mips_va_arg): New.
22505 * mips.h (BUILD_VA_LIST_TYPE): New.
22506 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
22508 * sh.c (sh_builtin_saveregs): Use get_varargs_alias_set.
22509 (sh_build_va_list, sh_va_start, sh_va_arg): New.
22510 * sh.h (BUILD_VA_LIST_TYPE): New.
22511 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
22513 Tue Sep 14 16:20:24 1999 Richard Henderson <rth@cygnus.com>
22515 * recog.h (struct recog_data): Make dup_num, operand_address_p,
22516 n_operands, n_dups, n_alternatives `char' instead of `unsigned char'.
22517 (struct insn_data): Likewise with n_operands, n_dups,
22518 n_alternatives, output_format.
22519 * regclass.c (scan_one_insn): Cast n_operands to int before
22520 arithmetic inside comparison.
22522 Tue Sep 14 15:13:36 1999 Richard Henderson <rth@cygnus.com>
22524 * toplev.c (compile_function): Unconditionally emit nop.
22526 Tue Sep 14 14:41:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22528 * haifa-sched.c (actual_hazard): Move declaration of variable
22529 `this_cost' into the scope where it is used.
22531 Tue Sep 14 14:14:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22533 * c-pragma.c (handle_pragma_token): Wrap variables `name' and
22534 `value' in HANDLE_PRAGMA_WEAK. Wrap variable `align' in
22535 HANDLE_PRAGMA_PACK||HANDLE_PRAGMA_PACK_PUSH_POP.
22537 * genrecog.c (make_insn_sequence): Call memset, not bzero.
22539 * jump.c (find_insert_position): Don't declare or define unless
22540 !HAVE_conditional_arithmetic.
22541 (returnjump_p_1, delete_prior_computation): Add static prototypes.
22543 * mips-tdump.c (fatal, fancy_abort, main): Add extern prototypes.
22545 * recog.c (offsettable_address_p): Prototype function pointer.
22546 (preprocess_constraints): Call memset, not bzero.
22548 * tree.c (tree_node_kind_names): Constify a char*. Make static.
22549 (gcc_obstack_init): Don't declare.
22550 (fix_sizetype): Add static prototype.
22551 (gcc_obstack_init): Use prototype casts in call to _obstack_begin.
22552 (tree_cons): Call memset, not bzero.
22554 * varasm.c (remove_from_pending_weak_list): Wrap declaration and
22555 definition in macro ASM_WEAKEN_LABEL.
22556 (mark_const_hash_entry): Add static prototype.
22558 Tue Sep 14 12:22:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22560 * c-lex.c (handle_generic_pragma): Remove unused variable `c'.
22562 * unroll.c (find_common_reg_term, subtract_reg_term,
22563 loop_find_equiv_value): Add static prototypes.
22564 (unroll_loop): Wrap variable `prev' in macro HAVE_cc0.
22565 (copy_loop_body): Remove unreachable break statement.
22567 * sparc.c (sparc_va_arg): Remove unused variable `tmp'.
22569 * sparc.h (sparc_va_start, sparc_va_arg): Add extern prototypes.
22571 Tue Sep 14 15:28:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22573 Undo some changes from the gcc2 merge:
22574 * rtl.def (CONSTANT_P_RTX): Fix the comment for this rtx code.
22575 * emit-rtl.c (gen_rtx_REG): Don't test special reg rtx's for null
22579 Sat Oct 3 07:20:28 1998 Stephen L Moshier <moshier@world.std.com>
22580 * emit-rtl.c (gen_lowpart_common): Disable optimization of
22581 initialized float-int union if the value is a NaN.
22583 Tue Sep 14 04:03:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
22585 * gthr-win32.h: New file.
22587 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Recognize
22588 shared as a valid attribute.
22589 * i386/cygwin.h (ASM_OUTPUT_SECTION): Handle shared attribute.
22590 * extend.texi: Document `shared' variable attribute.
22592 Tue Sep 14 04:01:46 1999 Loren Rittle <ljrittle@acm.org>
22594 * configure.in: Handle --enable-threads on FreeBSD.
22595 * configure: Rebuit.
22597 Tue Sep 14 03:58:44 1999 Andreas Jaeger <aj@arthur.rhein-neckar.de>
22599 * configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
22601 * configure: Rebuilt.
22603 Tue Sep 14 03:47:23 1999 Joel Sherrill <joel@OARcorp.com>
22604 Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
22605 Rosimildo DaSilva <rdasilva@connecttel.com>
22607 * configure.in (m68k-*-rtemscoff*): Added.
22608 * configure.in (mips64orion-*-rtems*): Converted to ELF.
22609 * configure.in (sparc-*-rtemsaout*): Added as alias for old
22610 sparc-rtems configuration.
22611 * configure.in (sparc-*-rtemself*): Added.
22612 * configure.in (sparc-*-rtems*): Now ELF not a.out.
22613 * config/i386/rtems.h: Added comment.
22614 * config/sparc/rtemself.h: New file.
22616 * configure.in (m68k-rtemself): Added.
22617 * config/elfos.h: Added ifndef wrapper for DWARF2_DEBUGGING_INFO
22618 and DWARF_DEBUGGING_INFO.
22619 * config/m68k/crti.s: New file.
22620 * config/m68k/crtn.s: New file.
22621 * config/m68k/t-crtstuff: New file.
22622 * config/m68k/rtemself.h: New file.
22624 * configure.in (i[[34567]]86-*-rtemself*): Now uses crtstuff for
22625 global ctor/dtor and C++ exception handling.
22626 * config/i386/rtemself.h: Now uses crtstuff (crti.o + crtbegin.o)
22627 for STARTFILE_SPEC and crtstuff (crtend.o + crtn.o) for
22629 * config/i386/t-rtems-i386: New File.
22631 Tue Sep 14 09:47:41 1999 Andreas Schwab <schwab@suse.de>
22633 * stmt.c (expand_end_case): Return right away if the case stack is
22636 Tue Sep 14 01:47:19 1999 Jeffrey A Law (law@cygnus.com)
22638 * Makefile.in (version.c): Remove rule incorrectly brought in from
22641 Tue Sep 14 01:42:27 1999 Marc Espie <espie@cvs.openbsd.org>
22643 * Makefile.in: Prepend $(SHELL) to move-if-change calls.
22644 * msdos/top.sed: Take into account a prepended $(SHELL) to
22646 * winnt/config-nt.sed: Likewise. Kill bogus substitution.
22648 * objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.
22650 Tue Sep 14 01:38:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22652 * regmove.c (fixup_match_1): Don't change an unchanging register.
22653 (stable_but_for_p): Renamed to:
22654 (stable_and_no_regs_but_for_p). Reject unchanging registers too.
22655 Changed all callers.
22657 Tue Sep 14 01:33:15 1999 Andreas Schwab <schwab@suse.de>
22659 * loop.c (strength_reduce): Don't call reg_used_between_p if the
22660 insn from BL2 is after the insn from BL.
22662 Mon Sep 13 21:06:01 1999 Richard Henderson <rth@cygnus.com>
22664 * recog.h (INSN_OUTPUT_FORMAT_*): New.
22665 (struct insn_data): Merge `template' and `outfun' into `output'.
22666 Add `output_format'.
22667 * genoutput.c (INSN_OUTPUT_FORMAT_*): New.
22668 (struct data): Remove `outfun'; add `output_format'.
22669 (name_for_index): Remove declaration.
22670 (output_insn_data): Handle output formats.
22671 (process_template): Emit the bare array for @.
22672 (gen_expand, gen_split): Set output_format to NONE.
22673 * output.h (get_insn_template): Declare.
22674 * final.c (get_insn_template): New.
22675 (final_scan_insn): Use it.
22676 * toplev.c (compile_file): Likewise.
22678 * c4x/c4x.c (c4x_process_after_reload): Likewise.
22679 * i860/i860.c (output_delayed_branch): Likewise.
22680 (output_delay_insn): Likewise.
22682 1999-09-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
22684 * rtl.c (obstack_alloc_rtx): Removed.
22686 1999-09-13 17:03 -0700 Zack Weinberg <zack@bitmover.com>
22688 * config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.
22690 Mon Sep 13 15:21:46 1999 Richard Henderson <rth@cygnus.com>
22692 * i386.c (call_insn_operand): Reject const_int.
22693 (expander_call_insn_operand): Use call_insn_operand.
22695 Mon Sep 13 17:44:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22697 * gcc.c (getrusage): Wrap prototype arguments in PROTO().
22699 1999-09-13 12:18 -0700 Zack Weinberg <zack@bitmover.com>
22701 * config/i370/i370.md (mulsi, divsi, modsi anonymous insns):
22702 Use DImode operation.
22704 1999-09-13 12:13 -0700 Zack Weinberg <zack@bitmover.com>
22706 * gcc.c: Include sys/resource.h.
22707 (report_times): New flag.
22708 (execute): If report_times is set, calculate and report the
22709 CPU time consumed by each subprocess.
22711 (rus, prus): New globals.
22712 (option_map): Add --time.
22713 (display_help): Document -time.
22714 (process_command): Set report_times if -time is given.
22715 Turn off -pipe if -time is given.
22717 * invoke.texi: Document new option -time.
22719 * configure.in: Check for getrusage. Check if we have to
22720 prototype getrusage.
22721 * acconfig.h: Add NEED_DECLARATION_GETRUSAGE.
22722 * configure: Regenerate.
22723 * config.in: Regenerate.
22725 Mon Sep 13 12:57:06 1999 Dave Brolley <brolley@cygnus.com>
22727 * cppinit.c (append_include_chain): Initialize 'next' and 'alloc'
22730 Mon Sep 13 10:01:33 1999 Nick Clifton <nickc@cygnus.com>
22732 * config/fp-bit.c: Define L_thenan_sf or L_thenan_df (as
22733 appropriate) if FINE_GRAINED_LIBRARIES is not defined.
22734 (nan): Return _thenan_sf or _thenan_df as appropriate.
22735 (L_thenan_sf): Define _thenan_sf.
22736 (L_thenan_df): Define _thenan_df.
22738 * Makefile.in (FPBIT_FUNCS): Add _thenan_sf.
22739 (DPBIT_FUNCS): Add _thenan_df.
22741 Mon Sep 13 09:38:53 1999 Andreas Schwab <schwab@suse.de>
22743 * tree.c (fix_sizetype): Exchange the types for TYPE_SIZE and
22746 Sun Sep 12 23:28:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22748 * Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.
22751 (lang_specific_driver): Don't take a function pointer parameter.
22752 All callers changed.
22754 * gcc.c: Include gcc.h.
22755 (do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
22756 lang_specific_extra_outfiles, fatal): Don't declare.
22757 (multilib_defaults_raw): Constify.
22758 (read_specs): Call memset, rather than bzero.
22759 (main): Call return, not exit.
22760 (lookup_compiler): Call memcpy, not bcopy.
22761 (fatal): Make extern.
22763 * cppspec.c: Include gcc.h.
22764 (lang_specific_driver): Initialize variable `quote'. Constify a
22765 char*. All calls to the function pointer parameter now
22766 explicitly call `fatal'.
22768 * gccspec.c (lang_specific_driver): Include gcc.h.
22770 Sun Sep 12 19:52:10 1999 Richard Earnshaw <rearnsha@arm.com>
22772 * arm.c (note_invalid_constants): Use recog_data.operand_type
22775 Sun Sep 12 15:53:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22777 * tree.h (build_common_tree_nodes, build_common_tree_nodes_2):
22780 * reload.h (reload_in, reload_out, reload_in_reg, reload_out_reg,
22781 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
22782 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
22783 reload_secondary_in_reload, reload_secondary_out_reload,
22784 reload_secondary_in_icode, reload_secondary_out_icode,
22785 reload_reg_rtx, reload_when_needed): Delete declarations.
22786 (struct reload): New structure.
22787 (rld): Declare new array.
22788 * reload.c (reload_in, reload_out, reload_in_reg, reload_out_reg,
22789 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
22790 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
22791 reload_secondary_in_reload, reload_secondary_out_reload,
22792 reload_secondary_in_icode, reload_secondary_out_icode,
22793 reload_reg_rtx, reload_when_needed): Delete definitions.
22795 (whole file): Replace uses of the deleted arrays with uses of rld.
22796 * reload1.c (whole file): Replace uses of the deleted arrays with
22798 (choose_reload_regs): Copy in/out of save_reload_reg_rtx with
22799 explicit loops, not with bcopy.
22801 Sun Sep 12 05:00:24 1999 Richard Henderson <rth@cygnus.com>
22803 * recog.h (insn_template, insn_outfun, insn_n_operands, insn_n_dups,
22804 insn_n_alternatives, insn_operand_constraint, insn_operand_address_p,
22805 insn_operand_mode, insn_operand_strict_low, insn_operand_predicate,
22806 insn_name): Delete and consolidate into new structures.
22807 (insn_operand_predicate_fn): New.
22808 (insn_output_fn): New.
22809 (insn_gen_fn): New.
22810 (struct insn_operand_data): New.
22811 (struct insn_data): New.
22813 (OUT_FCN): Update for insn_data change.
22814 * builtins.c (expand_builtin_strlen): Likewise.
22815 (expand_builtin_memcmp): Likewise.
22816 * combine.c (make_extraction, simplify_comparison): Likewise.
22817 * cse.c (canon_reg, cse_insn): Likewise.
22818 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
22819 * expmed.c (store_bit_field, extract_bit_field): Likewise.
22820 (emit_store_flag): Likewise.
22821 * expr.c (convert_move, emit_block_move): Likewise.
22822 (clear_storage, emit_push_insn, expand_increment): Likewise.
22823 (do_store_flag): Likewise.
22824 * expr.h (GEN_FCN): Likewise.
22825 (insn_gen_function): Die.
22826 * final.c (final_scan_insn): Update for insn_data change.
22827 (output_asm_name): Likewise.
22828 * function.c (fixup_var_refs_1): Likewise.
22829 * loop.c (check_dbra_loop): Likewise.
22830 * optabs.c (expand_binop, expand_twoval_binop): Likewise.
22831 (expand_unop, expand_complex_abs, emit_unop_insn): Likewise.
22832 (prepare_cmp_insn, prepare_operand, emit_indirect_jump): Likewise.
22833 (emit_conditional_move, gen_add2_insn, gen_sub2_insn): Likewise.
22834 * recog.c (validate_replace_rtx_1, extract_insn): Likewise.
22835 * regmove.c (gen_add3_insn): Likewise.
22836 * reload.c (push_secondary_reload, combine_reloads): Likewise.
22837 (find_reloads, find_reloads_address_1): Likewise.
22838 (debug_reload_to_stream): Likewise.
22839 * reload1.c (emit_reload_insns, gen_reload): Likewise.
22840 * stmt.c (expand_end_case): Likewise.
22841 * toplev.c (compile_file): Likewise.
22843 * c4x/c4x.c (c4x_process_after_reload): Likewise.
22844 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
22846 * print-rtl.c (insn_name_ptr): Remove declaration.
22847 (get_insn_name): Declare.
22848 (print_rtx): Use it.
22849 * genoutput.c (insn_name_ptr): Remove.
22850 (next_operand_number): New.
22851 (struct operand_data): New.
22852 (null_operand, odata, odata_end): New.
22853 (struct data): Use struct operand_data.
22854 (idata, idata_end): Renamed from insn_data and end_of_insn_data.
22855 (get_insn_name): Renamed from name_for_index.
22856 (output_prologue): Define NO_MD_PROTOTYPES.
22857 (output_predicate_decls): Break out from output_epilogue.
22858 Iterate over the operands list.
22859 (output_operand_data): Break out from output_epilogue. Emit
22860 just the operands list.
22861 (output_insn_data): Break out from output_epilogue. Emit just
22863 (output_epilogue): Remove.
22864 (output_get_insn_name): New.
22865 (constraints, op_n_alternatives, predicates, address_p): Die.
22866 (modes, strict_low, seen): Die.
22867 (scan_operands): Take new param `d' instead of writing to
22868 seven global variables.
22869 (compare_operands): New.
22870 (place_operands): New.
22871 (validate_insn_alternatives): Update for struct data change.
22872 (gen_insn): Don't zero or copy 7 global arrays. Update for
22873 scan_operands; call place_operands.
22874 (gen_peephole, gen_expand, gen_split): Likewise.
22875 (main): Update for new output routines.
22877 * genattr.c (insn_name_ptr): Remove.
22878 (get_insn_name): New function.
22879 * genattrtab.c, gencodes.c, genconfig.c, genemit.c: Likewise.
22880 * genextract.c, genflags.c, genopinit.c, genpeep.c: Likewise.
22881 * genrecog.c: Likewise.
22883 * alpha.md (adddi3): Make `pattern' array static.
22885 Sun Sep 12 22:05:21 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22887 * config/c4x/c4x.h (c4x_rpts_cycles_string,
22888 c4x_cpu_version_string): Constify char *.
22889 * config/c4x/c4x.c (c4x_rpts_cycles_string,
22890 c4x_cpu_version_string): Likewise.
22892 Sat Sep 11 23:28:33 1999 Richard Henderson <rth@cygnus.com>
22894 * tree.c (save_tree_status): Revert 10 Sep change.
22895 (restore_tree_status): Likewise. Call obstack_free with NULL
22896 before freeing the obstack proper.
22898 Sat Sep 11 23:23:46 1999 Richard Henderson <rth@cygnus.com>
22900 * cse.c (cse_main): If gc'ing, collect around cse_basic_block.
22902 * ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
22903 surrounding context.
22905 Sat Sep 11 19:52:43 1999 Mark Mitchell <mark@codesourcery.com>
22907 * tree.c (type_hash_canon): Put all types in the hash-table, when
22910 Sat Sep 11 18:37:04 1999 Richard Henderson <rth@cygnus.com>
22912 * recog.h (struct recog_data, recog_data): New.
22913 (recog_foo variables): Kill.
22914 * recog.c (recog_operand, recog_operand_loc): Kill.
22915 (recog_dup_loc, recog_dup_num, recog_n_operands): Kill.
22916 (recog_n_dups, recog_n_alternatives, recog_operand_mode): Kill.
22917 (recog_constraints, recog_op_type, recog_operand_address_p): Kill.
22918 (recog_data): Define.
22919 (extract_insn): Update all recog_foo references to use recog_data.
22920 (preprocess_constraints, constrain_operands): Likewise.
22921 * final.c (final_scan_insn, cleanup_subreg_operands): Likewise.
22922 * genattrtab.c (main): Likewise.
22923 * genextract.c (main): Likewise.
22924 * genoutput.c: Likewise.
22925 * genrecog.c (write_subroutine, main): Likewise.
22926 * local-alloc.c (block_alloc): Likewise.
22927 * reg-stack.c (record_asm_reg_life, subst_asm_stack_regs): Likewise.
22928 * regclass.c (scan_one_insn, record_reg_classes): Likewise.
22929 * regmove.c (regmove_optimize, find_matches, fixup_match_1): Likewise.
22930 * reload.c (find_reloads, find_reloads_toplev): Likewise.
22931 * reload1.c (maybe_fix_stack_asms, eliminate_regs_in_insn): Likewise.
22932 (reload_cse_simplify_operands): Likewise.
22934 * arc/arc.c (arc_final_prescan_insn): Likewise.
22935 * arm/arm.c (note_invalid_constants, arm_final_prescan_insn): Likewise.
22936 * h8300/h8300.c (notice_update_cc): Likewise.
22937 * i386/i386.c (ix86_attr_length_default, ix86_agi_dependant): Likewise.
22938 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
22939 * mn10200/mn10200.c (notice_update_cc): Likewise.
22940 * mn10300/mn10300.c (notice_update_cc): Likewise.
22941 * romp/romp.c (update_cc): Likewise.
22942 * sparc/sparc.c (check_pic): Likewise.
22943 * v850/v850.c (notice_update_cc): Likewise.
22945 * genemit.c (main): Don't declare recog_operand.
22947 Sat Sep 11 12:41:55 1999 Alex Samuel <samuel@codesourcery.com>
22949 * ggc.h (rtvec_def): Forward declare.
22950 (tree_node): Likewise.
22951 (ggc_root): Define.
22953 (ggc_set_mark_rtx): Add prototype.
22954 (ggc_set_mark_rtvec): Likewise.
22955 (ggc_set_mark_tree): Likewise.
22956 * ggc-simple.c (ggc_root): Don't define.
22957 (roots): Don't declare.
22958 (ggc_mark_rtx): Remove.
22959 (ggc_mark_rtvec): Likewise.
22960 (ggc_mark_tree): Likewise.
22961 (ggc_mark_varray): Likewise.
22962 (ggc_mark_tree_hash_table_entry): Likewise.
22963 (ggc_mark_tree_hash_table): Likewise.
22964 (ggc_set_mart_rtx): New function.
22965 (ggc_set_mark_rtvec): Likewise.
22966 (ggc_set_mark_tree): Likewise.
22967 (ggc_add_root): Remove.
22968 (ggc_add_rtx_root): Likewise.
22969 (ggc_remove_tree_root): Likewise.
22970 (ggc_add_string_root): Likewise.
22971 (ggc_add_tree_varray_root): Likewise.
22972 (ggc_add_tree_hash_table_root): Likewise.
22973 (ggc_del_root): Likewise.
22974 (ggc_mark_rtx_ptr): Likewise.
22975 (ggc_mark_tree_ptr): Likewise.
22976 (ggc_mark_string_ptr): Likewise.
22977 (ggc_mark_tree_varray_ptr): Likewise.
22978 (ggc_mark_tree_hash_table_ptr): Likewise.
22979 * ggc-common.c: New file.
22980 * Makefile.in (OBJS): Add ggc-common.o.
22981 (ggc-common.o): List dependencies.
22983 1999-09-10 22:37 -0700 Zack Weinberg <zack@bitmover.com>
22985 * cppalloc.c (xstrdup): Use memcpy.
22986 * cpperror.c (cpp_print_containing_files): Don't use
22988 * cpplib.c (conditional_skip): Set temp->lineno.
22989 (do_endif): Make error message less obscure.
22990 (if_directive_name): New function.
22991 (cpp_get_token [case EOF]): Unwind the if stack and generate
22992 error messages for each unterminated conditional in this file.
22993 (parse_string): Do not behave differently if -traditional.
22995 Fri Sep 10 14:04:07 1999 Richard Henderson <rth@cygnus.com>
22997 * builtins.c (expand_builtin_va_arg): Cope with an array-type
22998 va_list decomposing to pointer-type.
22999 * rs6000.c (rs6000_va_start) Unwrap the ARRAY_TYPE to get at fields.
23000 (rs6000_va_arg): Likewise.
23002 Fri Sep 10 13:21:21 1999 Jim Wilson <wilson@cygnus.com>
23004 * except.c (start_dynamic_handler): Compute size using
23005 STACK_SAVEAREA_MODE.
23007 Fri Sep 10 16:01:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23009 * protoize.c: Remove various __STDC__ and POSIX hacks. Don't
23010 include directory headers. Don't define strrchr. Don't provide
23011 my_* replacement functions. Prefer PTR over `pointer_type'.
23012 Don't prototype system functions. Don't redefine getopt.
23014 (shortpath, fancy_abort, notice, savestring, dupnstr, substr,
23015 safe_read, safe_write, save_pointers, restore_pointers,
23016 is_id_char, in_system_include_dir, directory_specified_p,
23017 file_excluded_p, unexpand_if_needed, abspath, check_aux_info,
23018 find_corresponding_lparen, referenced_file_is_newer,
23019 save_def_or_dec, munge_compile_params, gen_aux_info_file,
23020 process_aux_info_file, identify_lineno, check_source,
23021 seek_to_line, forward_to_next_token_char, output_bytes,
23022 output_string, output_up_to, other_variable_style_function,
23023 find_rightmost_formals_list, do_cleaning, careful_find_l_paren,
23024 do_processing, is_syscalls_file, rename_c_file, find_extern_def,
23025 find_static_definition, connect_defs_and_decs, add_local_decl,
23026 add_global_decls, needs_to_be_converted, visit_each_hash_node,
23027 add_symbol, lookup, free_def_dec, find_file, reverse_def_dec_list,
23028 edit_fn_declaration, edit_formals_lists, edit_fn_definition,
23029 scan_for_missed_items, edit_file, string_list_cons): Add static
23031 (standard_exec_prefix, target_machine, target_version,
23032 default_syscalls_dir, string_list, string_list_cons, find_file,
23033 do_cleaning): Constify a char*.
23034 (safe_read, safe_write): Use PTR, not a char*.
23035 (is_id_char): Take an int, not a char.
23036 (main): Add prototype. Call return, not exit.
23038 Fri Sep 10 16:48:26 1999 Andrew Haley <aph@cygnus.com>
23040 * tree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields
23041 when comparing types.
23043 Fri Sep 10 08:43:32 1999 Richard Henderson <rth@cygnus.com>
23045 * loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
23046 (strength_reduce): Release the varrays from the no-bivs early exit.
23048 * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before
23049 the loop over the registers.
23051 * tree.c (save_tree_status): Set maybepermanent_firstobj NULL
23053 (restore_tree_status): Check that instead when freeing the obstack.
23055 Wed Sep 8 16:12:04 1999 Andrew Haley <aph@cygnus.com>
23057 * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
23060 Fri Sep 10 11:58:55 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23062 * i386.md (ashlqi3): For NON_QI_REG_P regs, use sall. Fix some
23063 operand size modifiers.
23065 Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23067 * c-common.c (c_common_nodes_and_builtins): Don't build
23069 * c-common.h (enum c_tree_index and related accesor macros): Remove
23070 everything now declared in tree.h.
23071 * c-decl.c (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
23072 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, WCHAR_UNSIGNED, FLOAT_TYPE_SIZE,
23073 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Don't provide defaults.
23074 (error_mark_node, void_type_node, char_type_node, integer_type_node,
23075 unsigned_type_node, ptr_type_node, va_list_type_node,
23076 integer_zero_node, null_pointer_node, integer_one_node): Delete.
23077 (init_decl_processing): Call build_common_tree_nodes and
23078 build_common_tree_nodes_2 instead of building their nodes here.
23079 Don't add roots for these nodes.
23080 * stor-layout.c (size_zero_node, size_one_node): Delete.
23081 (set_sizetype): Make a new node for bitsizetype each time.
23082 * tree.c (global_trees): New variable.
23083 (init_obstacks): Add a gc root for it.
23084 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
23085 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE,
23086 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Provide defaults.
23087 (build_common_tree_nodes): New function.
23088 (fix_sizetype): New function.
23089 (build_common_tree_nodes_2): New function.
23090 * tree.h (enum tree_index): New.
23091 (global_trees): Declare.
23092 Add accessor macros for all nodes now moved to global_trees.
23093 Delete their declarations.
23095 Thu Sep 9 20:15:46 1999 Richard Henderson <rth@cygnus.com>
23097 * c-decl.c (finish_function): When processing a nested function,
23098 push and pop GC context around rest_of_compilation.
23100 Thu Sep 9 16:42:06 1999 Richard Henderson <rth@cygnus.com>
23102 * i386.c (override_options): Remove ppro, pentium2, and p2 as aliases.
23103 Default ix86_arch to PROCESSOR_I386.
23104 * i386.h (CC1_CPU_SPEC): Don't add -march=foo. Remove -mno-foo.
23105 (CPP_486_SPEC, CPP_586_SPEC, CPP_686_SPEC): Delete.
23106 (CPP_CPU_DEFAULT_SPEC): Define to __tune_foo__.
23107 (CC1_CPU_SPEC): Make -march=foo define __foo__, and provide
23108 __tune_foo__ if no -mcpu. Make -mcpu=bar define __tune_bar__.
23109 (EXTRA_SPECS): Remove deleted specs.
23111 Thu Sep 9 16:03:06 1999 Richard Henderson <rth@cygnus.com>
23113 * function.c (assign_stack_local_1): Allocate from
23114 function->x_frame_offset, not frame_offset.
23116 Thu Sep 9 14:36:31 1999 Mark Mitchell <mark@codesourcery.com>
23118 * ggc.h (lang_cleanup_tree): Remove.
23119 * gcc-simple.c (ggc_free_tree): Don't call lang_cleanup_tree.
23120 * ggc-callbacks.c (lang_cleanup_tree): Remove.
23122 * c-decl.c (finish_struct): Use ggc_alloc to allocate
23123 TYPE_LANG_SPECIFIC when garbage collecting.
23124 (lang_mark_tree): Mark TYPE_LANG_SPECIFIC.
23125 (lang_cleanup_tree): Remove.
23127 Thu Sep 9 14:23:02 1999 Jason Merrill <jason@yorick.cygnus.com>
23129 * defaults.h (EH_FRAME_SECTION, EH_FRAME_SECTION_ASM_OP): Define here.
23130 * crtstuff.c: Not here.
23131 * dwarf2out.c: Or here.
23132 * libgcc2.c (__do_global_ctors, __do_global_dtors): Handle EH frame
23135 Thu Sep 9 09:40:58 1999 Mark Mitchell <mark@codesourcery.com>
23137 * function.h (free_after_compilation): Remove decl parameter.
23138 (free_varasm_status0: Likewise.
23139 (free_emit_status): Likewise.
23140 (free_stmt_status): Likewise.
23141 (free_after_compilation): Likewise.
23142 (init_lang_status): New variable.
23143 (free_lang_status): Likewise.
23144 * emit-rtl.c (free_emit_status): Make decl parameter implicit.
23145 * function.c (init_lang_status): New variable.
23146 (free_lang_status): Likewise.
23147 (push_function_context_to): Don't set function::decl here.
23148 (free_after_copmilation): Make decl parameter implicit. Call
23149 free_lang_status if defined.
23150 (prepare_function_start): Call init_lang_status if defined.
23151 (init_function_start): Set function::decl here.
23152 * profile.c (output_func_start_profiler): Don't call pushdecl
23153 until we've actually started the function.
23154 * stmt.c (free_stmt_status): Make decl parameter implicit.
23155 * toplev.c (rest_of_compilation): Don't pass decl to
23156 free_after_compilation.
23157 * varasm.c (free_varasm_status): Likewise.
23159 Thu Sep 9 17:23:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23161 * except.c (call_get_eh_context): Add root when allocating static
23164 Thu Sep 9 15:24:59 BST 1999 Richard Earnshaw <rearnsha@arm.com>
23166 * arm.c: Include "ggc.h".
23167 (arm_add_gc_roots): New function.
23168 (arm_override_options): Call it.
23169 (aof_pic_entry): Add a GC root for aof_pic_label when it's allocated.
23171 * arm.md (define_asm_attributes): Add a pool_range attribute.
23173 Thu Sep 9 12:32:57 BST 1999 Nathan Sidwell <nathan@acm.org>
23175 * extend.texi (Volatiles): New node.
23177 Thu Sep 9 03:37:31 1999 Richard Henderson <rth@cygnus.com>
23179 * ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
23180 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): New.
23181 (struct ggc_any): Replace `mark' with `magic_mark'.
23182 (ggc_alloc_string): Use memcpy, not bcopy.
23183 (ggc_alloc_any): Set magic_mark. Update bytes_alloced_since_gc.
23184 (ggc_free_{rtx,rtvec,tree,string}): Mark inline.
23185 (ggc_free_any): New.
23186 (ggc_mark_string): Use IGNORE_MARK. Calc back to struct gcc_string.
23187 (ggc_mark): Use IGNORE_MARK. Abort if magic doesn't match.
23188 (ggc_collect): Re-enable collection avoidance. Use GGC_ANY_MARK.
23189 Use IS_MARKED. Use ggc_free_any.
23191 1999-09-09 Scott Bambrough <scottb@netwinder.org>
23193 * config/arm/linux-elf.h: define NO_IMPLICIT_EXTERN_C
23195 Thu Sep 9 01:55:21 1999 Richard Henderson <rth@cygnus.com>
23197 * toplev.c (main): Always init_ggc.
23199 Wed Sep 8 23:53:22 1999 Richard Henderson <rth@cygnus.com>
23201 * except.c (find_all_handler_type_matches): Free the list if
23202 we found no matches.
23204 * combine.c (SUBST): Break out to a real function do_SUBST.
23205 (SUBST_INT): Likewise.
23206 * gcse.c (free_pre_mem): Free `temp_bitmap'.
23207 (pre_insert): Free `inserted'.
23208 * loop.c (basic_induction_var): Always set `location'.
23210 * function.c (expand_function_end): Add initial_trampoline as a root.
23211 * rtl.h (init_varasm_once): Declare.
23212 * toplev.c (compile_file): Call it.
23213 * ggc-simple.c (ggc_mark_string_ptr): New.
23214 (ggc_add_string_root): New.
23215 (ggc_collect): Disable collection avoidance temporarily.
23216 * ggc.h (ggc_add_string_root): Declare.
23217 * except.c (create_rethrow_ref): Use ggc_alloc_string.
23218 * optabs.c (init_libfuncs): Likewise.
23219 * varasm.c (named_section): Use ggc_alloc_string.
23220 (make_function_rtl): Likewise.
23221 (make_decl_rtl): Likewise.
23222 (assemble_static_space): Likewise.
23223 (assemble_trampoline_template): Likewise.
23224 (output_constant_def): Likewise.
23225 (force_const_mem): Likewise.
23226 (mark_const_hash_entry): New.
23227 (mark_pool_sym_hash_table): New.
23228 (mark_varasm_state): Use it.
23229 (init_varasm_once): New.
23231 * expr.h (init_one_libfunc): Declare.
23232 * optabs.c (init_one_libfunc): New.
23233 (init_optabs): Use it.
23234 * config/gofast.h: Likewise.
23235 * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Likewise.
23236 * config/sparc/sparc.h (INIT_TARGET_OPTABS): Likewise.
23238 Thu Sep 9 13:46:06 1999 Geoffrey Keating <geoffk@cygnus.com>
23240 * Makefile.in (cppexp.o): Depend on cpphash.h.
23241 * cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx.
23243 * cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx.
23244 * cpplib.c (do_define): Generalise to handle poisoned definitions,
23245 redefining poisoned identifiers, etc.
23246 (do_undef): Don't allow poisoned identifiers to be undefined.
23247 (do_pragma): Add #pragma poison.
23248 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
23250 * cccp.c: Add T_POISON node type.
23251 (special_symbol): Handle `defined(xxx)' and plain `xxx' for
23253 (do_define): Generalise to handle poisoned definitions,
23254 redefining poisoned identifiers, etc.
23255 (do_undef): Don't allow poisoned identifiers to be undefined.
23256 (do_pragma): Add #pragma poison.
23257 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
23259 * c-pragma.c (handle_pragma_token): Ignore #pragma poison.
23260 * c-pragma.h: Add ps_poison state. We now always have generic
23263 Wed Sep 8 20:30:42 1999 Mark Mitchell <mark@codesourcery.com>
23265 * ggc.h (ggc_alloc): New function.
23266 (ggc_mark): Likewise.
23267 * ggc-simple.c (ggc_any): New structure.
23268 (ggc_status): Add anys.
23269 (n_anys_collected): New variable.
23270 (ggc_alloc): Define.
23271 (ggc_mark): Likewise.
23272 (ggc_collect): Collect the anys.
23274 Wed Sep 8 20:15:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23276 * c-decl.c (mark_binding_level): Make static to match prototype.
23278 Wed Sep 8 16:41:27 1999 Richard Henderson <rth@cygnus.com>
23280 * flow.c (new_insn_dead_notes): Don't early out for preexisting regs.
23282 Wed Sep 8 16:07:52 1999 Richard Henderson <rth@cygnus.com>
23284 * gengenrtl.c (CONST_DOUBLE_FORMAT): Take the size REAL_ARITHMETIC
23285 will use into account. Expand the max width to 5.
23288 Wed Sep 8 16:01:14 1999 Richard Henderson <rth@cygnus.com>
23290 * ggc-simple.c (ggc_free_rtx): Poison the correct amount
23291 for the rtx length.
23293 Wed Sep 8 15:23:54 1999 Richard Henderson <rth@cygnus.com>
23295 * alpha.md (call value patterns): Remove the result predicates.
23297 Wed Sep 8 13:35:38 1999 Richard Henderson <rth@cygnus.com>
23299 * Makefile.in (stmp-fixinc): Remove extraneous exit 1 from
23302 Wed Sep 8 15:32:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23304 * system.h (sbrk, malloc, calloc, realloc): Backup prototypes
23305 changed from extern char *, to extern PTR. Also fix typo in
23306 NEED_DECLARATION_REALLOC test.
23308 * mips-tdump.c (malloc, calloc, realloc): Don't prototype.
23310 Wed Sep 8 11:40:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23312 * gansidecl.h (__attribute__, ATTRIBUTE_UNUSED_LABEL,
23313 ATTRIBUTE_UNUSED, ATTRIBUTE_NORETURN, ATTRIBUTE_PRINTF,
23314 ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2, ATTRIBUTE_PRINTF_3,
23315 ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5, GENERIC_PTR): Delete.
23317 * c-decl.c (field_decl_cmp): Use PTR instead of GENERIC_PTR.
23319 * cccp.c (pcfinclude): Likewise.
23321 * global.c (allocno_compare): Likewise.
23323 * haifa-sched.c (rank_for_schedule): Likewise.
23325 * local-alloc.c (qty_sugg_compare_1, qty_compare_1): Likewise.
23327 * reload1.c (hard_reg_use_compare, reload_reg_class_lower): Likewise.
23329 * stupid.c (stupid_reg_compare): Likewise.
23331 * tree.c (_obstack_allocated_p): Likewise.
23333 * varray.h (varray_data_tag, VARRAY_GENERIC_PTR_INIT): Likewise.
23335 1999-09-08 Bruce Korb autogen@linuxbox.com
23337 * Makefile.in: Give the hapless gperf user a hint about
23338 why "gperf -F" fails.
23340 Wed Sep 8 04:43:22 1999 Richard Henderson <rth@cygnus.com>
23342 * lists.c: Include ggc.h.
23344 (init_EXPR_INSN_LIST_cache): Install it.
23346 * ggc-simple.c (init_ggc): Absorb the old init.
23347 (ggc_push_context): Use xcalloc.
23348 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Likewise.
23349 (ggc_collect): Add [rvts] tags to the collection stats.
23351 Wed Sep 8 11:14:25 1999 Andreas Schwab <schwab@suse.de>
23353 * cccp.c (main): Fix handling of -include and -imacros options.
23355 Wed Sep 8 02:23:08 1999 Jeffrey A Law (law@cygnus.com)
23357 * cpplib.c (cpp_push_buffer): Fix order of arguments.
23359 Wed Sep 8 04:44:09 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
23361 * rtl.h (obstack_alloc_rtx): Removed, it's now static in
23364 Wed Sep 8 00:33:43 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
23366 * flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.
23367 * haifa-sched.c (sched_analyze_1): Use XEXP rather than SUBREG_REG
23368 and SET_DEST. Update comment.
23370 Wed Sep 8 18:55:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23372 * config/c4x/c4x.c: Include ggc.h.
23373 (c4x_add_gc_roots): New function.
23374 (c4x_override_options): Call c4x_add_gc_roots.
23376 Wed Sep 8 00:00:16 1999 Richard Henderson <rth@cygnus.com>
23378 * defaults.h (TARGET_ESC): Move ...
23379 * system.h: ... here, where Linas had it in the first place. Silly me.
23381 Tue Sep 7 23:46:35 1999 Linas Vepstas <linas@linas.org>
23383 * c-common.c: Use ISGRAPH, ISLOWER, toupper.
23384 * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c,
23385 genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise.
23386 * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC.
23387 * defaults.h (TARGET_ESC): Add default.
23389 Tue Sep 7 23:36:59 1999 Linas Vepstas <linas@linas.org>
23391 * configure.in: add i370-*-openedition, i370-*-mvs and
23392 i370-*-linux targets
23394 Tue Sep 7 23:31:53 1999 Mark Mitchell <mark@codesourcery.com>
23396 * dsp16xxx.c: Include ggc.h
23397 (override_options): Mark GC roots.
23398 * mn10200.c: Include ggc.h.
23399 (asm_file_start): Mark GC roots.
23400 * tahoe.c: Include ggc.h.
23401 (extensible_operand): Mark GC roots.
23403 Tue Sep 7 23:23:15 1999 Linas Vepstas <linas@linas.org>
23405 * README: Add section discussing status of ELF ABI.
23406 * i370.c: Fix misc spelling mistakes.
23407 (i370_label_scan): Updated notes, exception handling.
23408 (i370_function_prolog): Simplify ELF stack handling.
23409 * i370.h: (FIXED_REGISTERS): Free up r12 for ELF.
23410 (STACK_GROWS_DOWNWARD): ELF stack grows down.
23411 (ASM_DECLARE_FUNCTION_NAME): Fix crazy malloc size.
23412 * i370.md: (movdi): Add notes.
23413 (floatsidf2): Use stack not rtca for scratch float area.
23414 (iorsi3): Correct operand constraints.
23415 * x-oe: Restore TAROUTOPTS which are used by pax.
23417 Tue Sep 7 22:39:18 1999 Mark Mitchell <mark@codesourcery.com>
23419 * rs6000.c: Include ggc.h.
23420 (rs6000_add_gc_roots): New function.
23421 (override_options): Call it.
23423 Tue Sep 7 22:09:03 1999 Richard Henderson <rth@cygnus.com>
23425 * alpha.h (alpha_compare): New.
23426 (alpha_compare_op0, alpha_compare_op1, alpha_compare_fp_p): Remove.
23427 * alpha.c: Likewise for the definitions.
23428 (alpha_emit_conditional_branch): Update for alpha_compare.
23429 (alpha_emit_conditional_move): Likewise.
23430 * alpha.md (cmpdf, cmpdi): Likewise.
23431 (setcc patterns): Likewise. Zero alpha_compare after use.
23432 (sne): Optimize (x != 0) into (0U < x).
23434 Tue Sep 7 21:55:02 1999 Richard Henderson <rth@cygnus.com>
23436 * alpha.h (alpha_eh_epilogue_sp_ofs): Remove.
23437 (struct machine_function): Declare; add eh_epilogue_sp_ofs.
23438 (INIT_EXPANDERS): Remove.
23439 * alpha.c: Include ggc.h.
23440 (alpha_eh_epilogue_sp_ofs, alpha_return_addr_rtx): Remove.
23441 (alpha_init_machine_status, alpha_mark_machine_status): New.
23442 (override_options): Install them.
23443 (struct machine_function): Moved to alpha.h.
23444 (alpha_save_machine_status, alpha_restore_machine_status): Remove.
23445 (alpha_init_expanders): Remove.
23446 (alpha_return_addr): Adjust to use current_function->machine.
23447 (alpha_ra_ever_killed): Likewise.
23448 (alpha_expand_epilogue): Likewise.
23449 * alpha.md (eh_epilogue): Likewise.
23451 Wed Sep 8 14:34:42 1999 Ian Piumarta <piumarta@prof.inria.fr>
23452 Melissa O'Neill <oneill@cs.sfu.ca>
23453 Geoffrey Keating <geoffk@cygnus.com>
23455 * config/rs6000/rs6000.c (first_reg_to_save): Don't save fixed or
23456 call-used registers (call-saved registers must still be contiguous
23457 and end with r31, of course).
23459 Tue Sep 7 21:41:38 1999 Richard Henderson <rth@cygnus.com>
23461 * c-typeck.c (type_lists_compatible_p): Use simple_type_promotes_to.
23462 (self_promoting_type_p): Delete.
23463 (self_promoting_args_p): Move ...
23464 * c-common.c: ... here.
23465 (c_common_nodes_and_builtins): Initialize lang_type_promotes_to.
23466 (simple_type_promotes_to): New.
23467 * builtins.c (lang_type_promotes_to): New.
23468 (expand_builtin_va_arg): Use it to give diagnostic for illegal types.
23469 * c-tree.h (C_PROMOTING_INTEGER_TYPE_P): Move ...
23470 * c-common.h: ... here.
23471 (self_promoting_args_p, simple_type_promotes_to): Declare.
23472 * c-decl.c (duplicate_decls): Use simple_type_promotes_to.
23473 (grokdeclarator): Likewise.
23474 * tree.h (lang_type_promotes_to): Declare.
23476 Tue Sep 7 17:15:21 1999 Mark Mitchell <mark@codesourcery.com>
23478 Add some machine-dependent GC roots.
23479 * sparc.c: Include ggc.h.
23480 (sparc_add_gc_roots): New function.
23481 (mark_ultrasparc_pipeline_state): Likewise.
23482 (override_options): Call sparc_add_gc_roots.
23483 * pa.c: Include ggc.h.
23484 (pa_add_gc_roots): New function.
23485 (mark_deferred_plabels): Likewise.
23486 (override_options): Call pa_add_gc_roots.
23487 * mips.c: Include ggc.h.
23488 (mips_add_gc_roots): New function.
23489 (override_options): Use it.
23491 Tue Sep 7 11:39:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23493 * cpperror.c (cpp_file_line_for_message): Constify a char*.
23495 * cppexp.c (parse_number, parse_charconst, cpp_lex,
23496 cpp_parse_expr): Add static prototypes.
23497 (parse_charconst): Don't cast away const-ness.
23498 (token): Constify a char*.
23500 * cppfiles.c (file_name_list, include_hash, find_include_file,
23501 finclude, initialize_input_buffer): Constify a char*.
23502 (file_cleanup, find_position): Add static prototypes.
23504 * cpphash.c (macro_cleanup, macarg, timestamp, special_symbol,
23505 collect_expansion): Add static prototypes.
23506 (cpp_install, create_definition, monthnames): Constify a char*.
23508 * cpphash.h (cpp_install): Likewise.
23510 * cppinit.c (known_suffixes, default_include,
23511 dump_special_to_buffer, NAME, cpp_start_read, cpp_finish): Likewise.
23512 (base_name, dump_special_to_buffer, initialize_dependency_output):
23513 Add static prototypes.
23515 * cpplib.c (my_strerror): Constify a char*.
23516 (null_underflow, null_cleanup, skip_comment, copy_comment,
23517 copy_rest_of_line, handle_directive, pass_thru_directive,
23518 get_directive_token, read_line_number, cpp_print_file_and_line,
23519 v_cpp_error, v_cpp_warning, v_cpp_error_with_line,
23520 v_cpp_warning_with_line, detect_if_not_defined,
23521 consider_directive_while_skipping): Add static prototypes.
23522 (pass_thru_directive, check_macro_name, cpp_expand_to_buffer,
23523 cpp_pedwarn_with_file_and_line): Constify a char*.
23525 * cpplib.h (cpp_options, include_hash, progname, definition,
23526 cpp_pedwarn_with_file_and_line, cpp_expand_to_buffer,
23527 check_macro_name, cpp_pfatal_with_name, cpp_file_line_for_message,
23528 find_include_file, deps_output, include_hash): Constify a char*.
23530 * cppmain.c (progname): Constify.
23531 (main): Add prototype. Use return, not exit.
23533 * fix-header.c (fatal, add_symbols, lookup_std_proto, write_lbrac,
23534 recognized_macro, check_macro_names, read_scan_file, write_rbrac,
23535 inf_skip_spaces, inf_read_upto, inf_scan_ident, inf_scan_ident,
23536 check_protection): Add static prototype.
23538 (progname, recognized_macrom, recognized_extern): Constify a char*.
23539 (main): Add prototype.
23541 * gen-protos.c (progname): Constify a char*.
23543 Tue Sep 7 00:47:52 1999 Mark Mitchell <mark@codesourcery.com>
23545 * emit-rtl.c (free_emit_status): Take decl as a parameter.
23546 (init_emit_once): Add more GC roots.
23547 * except.c (mark_func_eh_entry): New function.
23548 (mark_eh_node): Mark false_label and rethrow_label.
23549 (init_eh): Add more GC roots.
23550 * function.c (free_after_compilation): Take decl as a paramter.
23551 Call free_stmt_status.
23552 (mark_function_state): Don't assume x_parm_reg_stack_loc is
23554 * function.h (free_after_compilation): Change prototype.
23555 (free_varasm_status): Likewise.
23556 (free_emit_status): Likewise.
23557 (free_stmt_status): New function.
23558 * ggc-simple.c (rtx, vecs, trees, strings, bytes_alloced_since_gc):
23559 Remove, replacing with ...
23560 (ggc_status): New structure.
23561 (ggc_chain): New variable.
23562 (init_gcc): Define.
23563 (ggc_push_context): New function.
23564 (ggc_pop_context): Likewise.
23565 (ggc_alloc_rtx): Adjust for use of ggc_chain.
23566 (ggc_alloc_rtvec): Likewise.
23567 (ggc_alloc_tree): Likewise.
23568 (ggc_alloc_string): Likewise.
23569 (ggc_mark_rtx): Mark NOTE_SOURCE_FILE and NOTE_RANGE_INFO.
23570 (ggc_mark_tree): Give language-dependent code a chance to mark
23572 (ggc_mark_tree_varray): Handle empty arrays.
23573 (ggc_collect): Adjust for use of ggc_chain. Clear
23574 bytes_alloced_since_last_gc.
23575 * ggc.h (ggc_pop_context): New function.
23576 (ggc_push_context): Likewise.
23577 * print-tree.c (print_node): Don't print obstacks when GC'ing.
23578 * stmt.c (free_stmt_status): New function.
23579 (init_stmt_for_function): Clear last_expr_value.
23580 * toplev.c (rest_of_compilation): Always call free_after_compilation.
23581 Conditionalize call to ggc_collect.
23582 (main): Call init_ggc.
23583 * tree.c (push_obstacks): Do the push, even when GC'ing.
23584 (push_obstacks_nochange): Likewise.
23585 (pop_obstacks): Liekwise.
23586 * varasm.c (free_varasm_status): Take decl as a parameter.
23588 Tue Sep 7 08:15:49 1999 Gavin Romig-Koch <gavin@cygnus.com>
23590 * config/mips/mips.h (MULTILIB_ENDIAN_DEFAULT) : New macro.
23591 (MULTILIB_ENDIAN_DEFAULT) : Use the new macro.
23592 * config/mips/elf64.h (MULTILIB_DEFAULTS) : Use the new macro.
23593 * config/mips/r3900.h (MULTILIB_DEFAULTS) : Use the new macro.
23595 Tue Sep 7 03:42:45 1999 Mark Klein (mklein@dis.com)
23597 * pa/x-pa-mpeix: New file for the MPE port.
23599 * pa/quadlib.asm: New file for long double support.
23601 * configure.in: Add hppa1.0-*-mpeix for MPE port.
23602 * configure: Rebuilt.
23604 Tue Sep 7 10:08:40 1999 Andreas Schwab <schwab@suse.de>
23606 * final.c (shorten_branches): Fix last change.
23608 Tue Sep 7 00:30:32 1999 Jeffrey A Law (law@cygnus.com)
23610 * pa.h (ASM_OUTPUT_DOUBLE_INT): Delete.
23612 Mon Sep 6 22:44:47 1999 Jeffrey A Law (law@cygnus.com)
23614 * Merge from gcc2 snapshot Jan 9, 1999. See FSFChangeLog for
23617 Mon Sep 6 22:31:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23619 * c-aux-info.c (concat): Don't define.
23621 * cccp.c (my_strerror): Likewise. All callers changed to use
23623 (do_include): Call xstrdup, not xmalloc/strcpy.
23624 (grow_outbuf): Don't check if xrealloc returns NULL, it can't.
23625 (xmalloc, xrealloc, xcalloc, xstrdup): Don't define.
23627 * collect2.c (my_strsignal): Likewise. All callers changed to use
23629 (locatelib): Call xstrdup, not xmalloc/strcpy.
23631 * 1750a.h (ASM_OUTPUT_INTERNAL_LABEL): Call xmalloc, not malloc.
23633 * dsp16xx.c (override_options): Call xstrdup, not xmalloc/strcpy.
23635 * i370.h (ASM_DECLARE_FUNCTION_NAME): Call xmalloc, not malloc.
23637 * mips.c (build_mips16_call_stub): Call xstrdup, not xmalloc/strcpy.
23639 * cppinit.c (cpp_options_init): Call xcalloc, not xmalloc/bzero.
23641 * dwarfout.c (dwarfout_init): Call concat, not xmalloc/strcpy/...
23643 * except.c (new_eh_region_entry): Call xmalloc/xrealloc, not
23645 (find_all_handler_type_matches): Likewise. Don't check return
23647 (get_new_handler, init_insn_eh_region, process_nestinfo): Call
23648 xmalloc, not malloc.
23649 (init_eh_nesting_info): Likewise. Call xcalloc, not xmalloc/bzero.
23651 * gcc.c (xstrerror, xmalloc, xrealloc): Don't define.
23652 (init_spec): Call xcalloc, not xmalloc/bzero.
23653 (set_spec): Call xstrdup, not save_string.
23654 (record_temp_file): Call xstrdup, not xmalloc/strcpy.
23655 (find_a_file): Call xstrdup, not xmalloc/strcpy.
23656 (process_command): Call xstrdup, not save_string.
23657 (main): Call xcalloc, not xmalloc/bzero.
23659 * gcov.c (xmalloc): Don't define.
23660 (create_program_flow_graph): Call xcalloc, not xmalloc/bzero.
23661 (scan_for_source_files): Call xstrdup, not xmalloc/strcpy.
23662 (output_data): Call xcalloc, not xmalloc/bzero.
23664 * haifa-sched.c (schedule_insns): Call xcalloc, not xmalloc/bzero.
23666 * mips-tdump.c (xmalloc): Don't define.
23667 (print_symbol): Call xmalloc, not malloc.
23668 (read_tfile): Call xcalloc, not calloc.
23670 * mips-tfile.c (xfree, my_strsignal, xmalloc, xcalloc, xrealloc):
23671 Don't define. All callers of xfree/my_strsignal changed to use
23672 free/strsignal instead.
23673 (allocate_cluster): Call xcalloc, not calloc.
23675 * objc/objc-act.c (lang_init): Call concat, not xmalloc/strcpy/...
23676 Fix memory leak, free allocated memory.
23678 * prefix.c (translate_name): Call xstrdup, not save_string.
23679 (update_path): Likewise.
23681 * profile.c (branch_prob): Call xstrdup, not xmalloc/strcpy.
23683 * protoize.c (xstrerror, xmalloc, xrealloc, xfree, savestring2):
23684 Don't define. Callers of xfree/savestring2 changed to use
23685 free/concat instead.
23687 * reload1.c (reload): Call xcalloc, not xmalloc/bzero.
23688 (init_elim_table): Likewise.
23690 * resource.c (init_resource_info): Likewise.
23692 * stupid.c (stupid_life_analysis): Likewise.
23694 * toplev.c (xmalloc, xcalloc, xrealloc, xstrdup): Don't define.
23695 (open_dump_file): Call concat, not xmalloc/strcpy/...
23696 (clean_dump_file): Likewise.
23697 (compile_file): Call xstrdup, not xmalloc/strcpy.
23699 Mon Sep 6 15:04:55 1999 Richard Henderson <rth@cygnus.com>
23701 * v850.h (EXPAND_BUILTIN_VA_ARG): New.
23702 * v850.c (v850_va_arg): New.
23704 Tue Sep 7 09:36:01 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23706 * haifa-sched.c: Tidy comments.
23708 Mon Sep 6 14:30:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23710 * Makefile.in (C_AND_OBJC_OBJS): Remove ggc-callbacks.o.
23711 (c-parse.o, c-decl.o, c-lang.o, c-lex.o, c-common.o,
23712 $(out_object_file)): Depend on ggc.h.
23713 * c-common.c: Include "ggc.h".
23714 (combine_strings): If doing GC, use ggc_alloc_string.
23715 * c-decl.c: Include "ggc.h".
23716 (ggc_p): Define with value 0.
23717 (mark_binding_level): New function.
23718 (init_decl_processing): Add GC roots.
23719 (mark_c_function_context): New function.
23720 (lang_mark_false_label_stack): New function.
23721 (lang_mark_tree): New function.
23722 (lang_cleanup_tree): New function.
23723 * c-lang.c: Include "ggc.h".
23724 (lang_init): Call c_parse_init.
23725 * c-lex.c: Include "ggc.h".
23726 (check_linenum): If doing GC, don't copy filenames to permanent
23728 * c-parse.in: Include "ggc.h".
23729 (c_parse_init): New function.
23730 * c-tree.h (c_parse_init, mark_c_function_context): Declare.
23731 * objc/Make-lang.in (objc-parse.o): Depend on ggc.h.
23733 * except.c (mark_eh_state): Mark more state.
23734 * function.c (mark_function_state): Likewise.
23735 * ggc-simple.c (ggc_alloc_rtvec): Bring in sync with non-gc version.
23736 (ggc_alloc_string) [GGC_DUMP]: Fix typo.
23737 * toplev.c (mark_file_stack): New function.
23738 (compile_file): If doing GC, use ggc_alloc_string on input filename.
23739 (main): Add root for input_file_stack.
23741 * i386.c: Include "ggc.h".
23742 (ix86_mark_machine_status): New function.
23743 (override_options): Set mark_machine_status.
23745 Mon Sep 6 15:26:23 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23747 * tree.c (copy_node): Copy node contents also if doing GC.
23749 Mon Sep 6 08:42:06 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
23751 * collect2.c (scan_libraries): Fix double-thinko :-).
23753 Mon Sep 6 02:42:36 1999 Jeffrey A Law (law@cygnus.com)
23755 * collect2.c (scan_libraries): Fix thinko.
23757 * cse.c (delete_trivially_dead_insns): Do not skip the last
23758 insn if it is a real insn.
23760 Sun Sep 5 18:57:42 1999 Mark Mitchell <mark@codesourcery.com>
23762 * Makefile.in (ggc-simple.o): Depend on hash.h.
23763 * ggc.h (ggc_add_tree_hash_table_root): Declare.
23764 (ggc_mark_tree_varray): Likewise.
23765 (ggc_mark_tree_hash_table): Likewise.
23766 * ggc-simple.c: Include hash.h.
23767 (ggc_mark_tree_hash_table_ptr): New function.
23768 (ggc_mark_tree_hash_table_entry): Likewise.
23769 (ggc_mark_tree_hash_table): Likewise.
23770 (ggc_add_tree_hash_table_root): Likewise.
23771 * varray.h (const_equiv_data): Use struct rtx_def *, rather than
23772 rtx, when defining fields.
23774 Sun Sep 5 18:57:42 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
23776 * profile.c (output_func_start_profiler): Remove apparently
23777 nonsensical call to start_sequence.
23779 Sun Sep 5 17:34:33 1999 Richard Henderson <rth@cygnus.com>
23781 * clipper/clipper.c (clipper_va_start): Fix typos.
23783 * pyr/pyr.c (pyr_build_va_list, pyr_va_start, pyr_va_arg): New stubs.
23784 * spur/spur.c (spur_build_va_list, spur_va_start): New stubs.
23785 (spur_va_arg): New stub.
23787 * configure.in: Comment out pyramid.
23789 Sun Sep 5 19:11:01 1999 Michael Meissner <meissner@cygnus.com>
23791 * i386.h (MASK_{DEBUG_{ADDR,ARG},INTEL_SYNTAX}): Move so these
23792 don't conflict with the bits that win32, cygwin, and dgux
23795 Sun Sep 5 09:31:56 1999 Richard Henderson <rth@cygnus.com>
23796 Bernd Schmidt <bernds@cygnus.co.uk>
23798 * integrate.c (function_cannot_inline_p): Do not inline
23799 functions with forced labels.
23801 Sun Sep 5 00:35:17 1999 Richard Henderson <rth@cygnus.com>
23802 Bernd Schmidt <bernds@cygnus.co.uk>
23803 Mark Mitchell <mark@codesourcery.com>
23805 * Makefile.in (ggc-simple.o): Depend on varray.h.
23806 (rtl.o): Depend on ggc.h.
23807 (genattrtab.o): Depend on ggc.h.
23808 (print-tree.o): Likewise.
23809 (fold-const.o): Likewise.
23810 * emit-rtl.c (sequence_element_free_list): Remove, and all references.
23811 (make_insn_raw): Don't cache insns when GC'ing.
23812 (emit_insn_before): Likewise.
23813 (emit_insn_after): Likewise.
23814 (emit_insn): Likewise.
23815 (start_sequence): Use xmalloc to allocate the sequence_stack.
23816 (end_sequence): Add free to free it.
23817 (gen_sequence): Don't cache insns when GC'ing.
23818 (clear_emit_caches): Don't use sequence_element_free_list.
23819 (init_emit): Use xcalloc, not xmalloc+bzero.
23820 * fold-const.c (size_int_wide): Kill the cache, when GC'ing.
23821 * function.c (pop_function_context_from): Use free to free the
23822 fixup_var_refs_queue.
23823 (put_reg_into_stack): Allocate it with xmalloc.
23824 * genattrtab.c: Include ggc.h.
23825 (operate_exp): Don't use obstack_free when GC'ing.
23826 (simplify_cond): Likewise.
23827 (simplify_text_exp): Likewise.
23828 (optimize_attrs): Likewise.
23829 * gengenrtl.c (gendef): Use ggc_alloc_rtx to allocate RTL, when
23831 (gencode): Generate a #include for ggc.h.
23832 * ggc-callbacks.c (ggc_p): Define it to zero.
23833 * ggc-none.c (ggc_p): Likewise.
23834 * ggc-simple.c: Include varray.h.
23835 (ggc_mark_tree_varray): New function.
23836 (ggc_add_tree_varray_root): Likewise.
23837 (ggc_mark_tree_varray_ptr): Likewise.
23838 * ggc.h (ggc_p): Declare.
23839 (varray_head_tag): Likewise.
23840 (ggc_add_tree_varray_root): Declare.
23841 * print-tree.c (print_node): Don't check for TREE_PERMANENT
23842 inconsistencies when GC'ing.
23843 * rtl.c: Include ggc.h.
23844 (rtvec_alloc): Use ggc_alloc_rtvec when GC'ing.
23845 (rtx_alloc): Use ggc_alloc_rtx when GC'ing.
23846 (rtx_free): Don't call obstack_free when GC'ing.
23847 * toplev.c (rest_of_compilation): Call ggc_collect after every
23849 * tree.c (push_obstacks): Do nothing, if GC'ing.
23850 (pop_obstacks_nochange): Likewise.
23851 (pop_obstacks): Likewise.
23852 (make_node): Use ggc_alloc_tree when GC'ing.
23853 (copy_node): Likewise.
23854 (get_identifier): Use ggc_alloc_string when GC'ing.
23855 (build_string): Likewise.
23856 (make_tree_vec): Use ggc_alloc_tree when GC'ing.
23857 (tree_cons): Likewise.
23858 (build1): Likewise.
23859 (type_hash_canon): Don't call obstack_free when GC'ing.
23861 Sat Sep 4 21:52:32 1999 Richard Henderson <rth@cygnus.com>
23863 * haifa-sched.c (schedule_block): Use next_nonnote_insn instead
23864 of NEXT_INSN when examining speculative insns for SCHED_GROUP_P.
23866 Sat Sep 4 20:40:19 1999 Richard Henderson <rth@cygnus.com>
23867 Bernd Schmidt <bernds@cygnus.co.uk>
23868 Mark Mitchell <mark@codesourcery.com>
23870 * Makefile.in (stor-layout.o): Depend on ggc.h.
23871 (expr.o): Depend on ggc.h.
23872 (profile.o): Depend on ggc.h.
23873 (stor-layout.o): Depend on ggc.h.
23874 * emit-rtl.c (init_emit_once): Add gc roots.
23875 * expr.c: Include ggc.h.
23876 (emit_block_move): Add gc roots.
23877 (clear_storage): Likewise.
23878 * expr.h (init_stor_layout_once): New function.
23879 * profile.c: Include ggc.h.
23880 (init_arc_profiler): profiler_label is a root.
23881 * scan.c (make_sstring_space): Trust xrealloc to function
23882 correctly with first parameter NULL.
23883 * stor-layout.c: Include ggc.h.
23884 (set_sizetype): Add gc root.
23885 (init_stor_layout_once): New function.
23886 * toplev.c (compile_file): Call it.
23888 Sat Sep 4 19:26:25 1999 Richard Henderson <rth@cygnus.com>
23889 Bernd Schmidt <bernds@cygnus.co.uk>
23890 Mark Mitchell <mark@codesourcery.com>
23892 * Makefile.in (tree.o): Depend on ggc.h.
23893 (varasm.o): Likewise.
23894 (function.o): Likewise.
23895 (stmt.o): Likewise.
23896 (except.o): Likewise.
23897 (optabs.o): Likewise.
23898 (emit-rtl.o): Likewise.
23899 * emit-rtl.c: Include ggc.h.
23900 (sequence_element_free_list): Remove, and all references.
23901 (mark_sequence): New functions.
23902 (mark_emit_state): New function.
23903 * except.c: Include ggc.h.
23904 (mark_eh_node, mark_eh_stack, mark_eh_queue): New functions.
23905 (mark_tree_label_node): New functions.
23906 (mark_eh_state): New function.
23907 * function.c: Include ggc.h.
23908 (mark_temp_slot, mark_function_chain): New functions.
23909 (mark_function_state): New function.
23910 (init_function_once): New function.
23911 * function.h (init_function_once): New function.
23912 * ggc-callbacks.c (lang_mark_false_label_stack): New function.
23913 * ggc.h (label_node): Declare.
23914 (eh_status, emit_status, stmt_status, varasm_status): Likewise.
23915 (lang_mark_false_label_stack): New function.
23916 (mark_temp_slot): Remove declaration.
23917 (mark_function_chain): Likewise.
23918 (mark_eh_state): Adjust prototype.
23919 (mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab):
23921 * optabs.c: Include ggc.h.
23922 (mark_optab): New function.
23923 (init_optabs): Add gc roots.
23924 * stmt.c: Include ggc.h.
23925 (mark_cond_nesting, mark_loop_nesting): New functions.
23926 (mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise.
23927 (mark_stmt_state): New function.
23928 * toplev.c (compile_file): Call init_function_once.
23929 * tree.c: Include ggc.h.
23930 (type_hash): Move declaration earlier in file.
23931 (TYPE_HASH_SIZE, type_hash_table): Likewise.
23932 (init_obstacks): Add gc roots.
23933 (mark_type_hash): New function.
23934 * varasm.c: Include ggc.h.
23935 (mark_pool_constant): New function.
23936 (mark_varasm_state): New function.
23938 Sat Sep 4 22:28:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23940 * ggc-simple.c (ggc_root, ggc_collect): Wrap prototype with PROTO.
23942 Sat Sep 4 18:01:45 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23944 * c-decl.c (struct language_function): Renamed from struct c_function.
23946 (c_function_chain): Delete.
23947 (push_c_function_context): New arg F. Don't warn about nested
23948 functions here. Fill LANGUAGE elt of F. Delete code to update
23949 c_function_chain. Don't call push_function_context.
23950 (pop_c_function_context): New arg F. Restore from there instead of
23951 from c_function_chain. Don't call pop_function_context. Clear out
23952 LANGUAGE field of F when done.
23953 * c-lang.c: Include "function.h"
23954 (lang_init): Initialize save_lang_status and restore_lang_status.
23955 * c-parse.in (nested_function, nested_function_notype): Warn about
23956 nested functions. Call push_function_context/pop_function_context
23957 instead of the _c_ variants.
23958 * c-tree.h (push_c_function_context, pop_c_function_context): Update
23960 * Makefile.in (c-lang.o): Update dependencies.
23962 * emit-rtl.c (init_emit): Use xmalloc to allocate regno_reg_rtx,
23963 regno_pointer_flag, regno_pointer_align.
23964 (gen_reg_rtx): Use xrealloc to enlarge them.
23965 (free_emit_status): New function.
23966 * function.c (mark_machine_status, mark_lang_status): New variables.
23967 (assign_stack_local_1): Renamed from assign_outer_stack_local. Merge
23968 in some bits from assign_stack_local. All callers changed to use new
23970 (assign_stack_local): Just call assign_stack_local_1.
23971 (free_after_compilation): New function.
23972 (put_reg_into_stack): Simplify to always call assign_stack_local_1.
23973 (trampoline_address): Likewise.
23974 (assign_parms): Use xcalloc/xrealloc to allocate parm_reg_stack_loc.
23975 (prepare_function_start): Explicitly clear some more variables.
23976 * function.h (struct function): New elt can_garbage_collect.
23977 (mark_machine_status, mark_lang_status): Declare variables.
23978 (free_after_compilation, free_emit_status, free_varasm_status,
23979 init_varasm_status): Declare functions.
23980 * toplev.c (rest_of_compilation): Call free_after_compilation when
23981 done with the current function.
23982 * varasm.c (free_varasm_status): New function.
23984 Sat Sep 4 17:15:13 1999 Richard Henderson <rth@cygnus.com>
23986 * sparc.h (EXPAND_BUILTIN_VA_START): Define.
23987 (EXPAND_BUILTIN_VA_ARG): Define.
23988 * sparc.c (sparc_va_start): New.
23989 (sparc_va_arg): New.
23991 Sun Sep 5 11:11:59 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23993 * config/c4x/c4x.h (DBR_OUTPUT_SEQEND): Use XVECEXP not XEXPs.
23995 Sun Sep 5 10:13:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23997 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Disable.
23999 Sat Sep 4 13:44:01 1999 Mark Mitchell <mark@codesourcery.com>
24001 * Makefile.in (C_AND_C_OBJS): Add gcc-callbacks.o.
24002 (OBJS): Add $(GGC).
24003 (ggc-callbacks.o): New target.
24004 * ggc-callbacks.c: New file.
24006 Sat Sep 4 22:53:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24008 * expr.h: Collapse individual optab and libfunc vars to arrays.
24009 (optab_index, libfunc_index): New enumerations.
24010 (optab_table, libfunc_table): New arrays.
24011 Add accessor macros for both.
24013 * optabs.c (optab_table, libfunc_table): New.
24014 Delete declarations for individual optab and libfunc vars.
24016 Sat Sep 4 12:57:17 1999 Richard Henderson <rth@cygnus.com>
24018 * i386/sco5.h (RETURN_POPS_ARGS): Name change ix86_return_pops_args.
24020 Sat Sep 4 11:19:52 1999 Richard Henderson <rth@cygnus.com>
24022 * Makefile.in (GGC, GGC_LIB): New.
24023 (HOST_RTL): Include ggc-none.o.
24024 (ggc-simple.o): New target.
24025 (ggc-none.o): Likewise.
24026 * tree.h (tree_common): Add gc_mark.
24027 * rtl.h (struct rtx_def): Steal a bit from code to make gc_mark.
24028 (struct rtvec_def): Add gc_mark.
24029 * emit-rtl.c (global_rtl): Update static initializers to contain
24030 enough initializers.
24031 * ggc.h, ggc-none.c, ggc-simple.c: New files.
24032 * toplev.c (gc_time): New variable.
24033 (all_time): New variable.
24034 (compile_file): Print gc time.
24035 (print_time): Calculate percentage of the whole.
24037 Sat Sep 4 13:11:01 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24039 Change obstack memory management and varasm constant pool handling so
24040 that nested functions are treated like any other functions.
24041 * function.c (init_machine_status): New variable.
24042 (push_function_context_to): Set contains_functions for the outer
24043 function. Don't call save_varasm_status.
24044 (pop_function_context_from): Don't call restore_varasm_status. Don't
24045 set current_function_contains_functions.
24046 (prepare_function_start): Call init_varasm_status rather than
24047 init_const_rtx_hash_table. Call (*init_machine_status) if the pointer
24049 * function.h (struct function) Add field varasm. Delete fields
24050 inline_obstacks, inl_emit, const_rtx_hash_table, first_pool,
24051 last_pool, const_rtx_sym_hash_table, pool_offset, const_double_chain.
24052 (init_machine_status): Declare.
24053 (save_varasm_status, restore_varasm_status): Delete declarations.
24054 (save_tree_status, restore_tree_status): Delete last argument.
24055 * integrate.c (initialize_for_inline): Lose arg COPY. Delete copying
24056 code. All callers changed.
24057 (copy_decl_list, copy_decl_tree, copy_decl_rtls, copy_for_inline,
24058 save_constants_in_decl_trees, restore_constants, save_constants,
24059 save_for_inline_eh_labelmap, save_for_inline_copying): Delete
24061 (inlining): New variable.
24062 (reg_map, label_map, insn_map, orig_asm_operands_vector,
24063 copy_asm_operands_vector, copy_asm_constraints_vector): Delete
24065 (save_for_inline_nocopy): Don't save constants.
24066 Don't set inl_emit field in current_function.
24067 (expand_inline_function): Use emit field, not inl_emit, of the inlined
24068 function. Set new variable inlining before
24069 calling copy_rtx_and_substitute.
24070 (copy_rtx_and_substitute): In MEM and SYMBOL_REF cases, handle
24071 constant pool references if inlining is nonzero.
24072 Delete ADDRESS and (most of the) CONST cases.
24073 (output_inline_function): Save and restore current_function/
24074 current_function_decl. Delete restore_constants code. Don't call
24075 init_const_rtx_hash_table.
24076 * output.h (init_const_rtx_hash_table): Don't declare.
24077 * rtl.h (struct function): Declare.
24078 (get_pool_constant_for_function, get_pool_mode_for_function): Declare.
24079 * toplev.c (rest_of_compilation): Don't treat nested functions or
24080 functions containing them specially. Delete all code to deal with
24081 save_for_inline_copying.
24082 * tree.c (toplev_inline_obstacks, extra_inline_obstacks,
24083 inline_obstacks): Delete variables.
24084 (save_tree_status): Lose arg CONTEXT. All callers changed.
24085 Simply allocate a new function_maybepermanent_obstack for the new
24086 function, delete all the special cases.
24087 Don't save inline_obstacks.
24088 (restore_tree_status): Lose arg CONTEXT. All callers changed.
24089 Delete special handling for function_maybepermanent_obstack; simply
24091 Don't restore inline_obstacks.
24092 (permanent_allocation): Delete code that frees inline_obstacks.
24093 (print_inline_obstack_statistics): Delete function.
24094 (dump_tree_statistics): Don't call it.
24095 * varasm.c (struct varasm_status): New.
24096 (const_rtx_hash_table, const_rtx_sym_hash_table, first_pool,
24097 last_pool, pool_offset, const_double_chain): Delete global
24098 variables, replace with accessor macros.
24099 (immed_double_const): Don't walk const_double_chain outside a
24100 function, but don't treat nested functions specially anymore.
24101 (immed_real_const_1): Likewise.
24102 (clear_const_double_mem): Don't treat nested functions specially.
24103 (init_const_rtx_hash_table): Deleted, code moved to init_varasm_status.
24104 (save_varasm_status, restore_varasm_status): Delete functions.
24105 (init_varasm_status): New function.
24106 (force_const_mem): Don't treat nested functions specially.
24107 (find_pool_constant): Accept new arg F, search for constants in
24108 that function's pool rather than the current one. All callers
24110 (get_pool_constant_for_function, get_pool_mode_for_function): New
24113 * i386.c (init_386_machine_status): New function, mostly from
24114 clear_386_stack_locals.
24115 (struct machine_functions): Rename element names to avoid name
24117 (pic_label_rtx, pic_label_name, i386_stack_locals): New accessor
24118 macros, replacing global variables.
24119 (clear_386_stack_locals, save_386_machine_status,
24120 restore_386_machine_status): Delete functions.
24121 (override_options): Initialize init_machine_status.
24122 * i386.h (INIT_EXPANDERS): Delete macro.
24123 (save_386_machine_status, restore_386_machine_status,
24124 clear_386_stack_locals): Delete declarations.
24126 Sat Sep 4 16:56:28 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
24128 * config/c4x/c4x.md (rptb_init): Renamed from *rptb_init.
24129 (doloop_begin): Simplify pattern and use emit_jump_insn.
24130 (doloop_end): Simplify pattern, switch operand order,
24131 and use emit_jump_insn.
24133 Fri Sep 3 19:02:38 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
24135 * function.h (struct function): Add new element LANGUAGE.
24136 (save_lang_status): Declare new variable.
24137 (restore_lang_status): Likewise.
24138 * function.c (save_lang_status): Define.
24139 (restore_lang_status): Likewise.
24140 (push_function_context_to): Call language-specific save function.
24141 (pop_function_context_from): Call language-specific restore function.
24143 Fri Sep 3 01:16:18 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
24145 * i386.md (movsf_1): Check REG_P before use of REGNO.
24146 (movdf_1): Likewise.
24147 (movxf_1): Likewise.
24148 (extendsfdf2): Likewise.
24149 (extendsfxf2): Likewise.
24150 (extenddfxf2): Likewise.
24152 Sat Sep 4 11:37:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
24154 * config/c4x/c4x.c (c4x_emit_move_sequence): Do not force large
24155 constants into memory.
24156 (c4x_shiftable_constant): New function.
24157 * config/c4x/c4x.c (LEGITIMATE_CONSTANT_P): Allow any CONST_INT.
24158 (c4x_shiftable_constant): Declare.
24159 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant,
24160 ashlqi3_noclobber): Add new patterns and associated splitters.
24162 Fri Sep 3 16:22:17 1999 Richard Henderson <rth@cygnus.com>
24164 * dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
24165 * dwarf2out.c (dwarf2out_frame_init): Likewise.
24166 * final.c (shorten_branches): Likewise.
24167 * global.c (global_alloc): Likewise.
24168 * haifa-sched.c (build_control_flow): Likewise.
24169 * stmt.c (check_for_full_enumeration_handling): Likewise.
24170 (estimate_case_costs): Likewise.
24172 Fri Sep 3 15:49:56 1999 Mark Mitchell <mark@codesourcery.com>
24174 * rtl.h (RTL_CHECKC2): Fix typo in last change.
24176 Fri Sep 3 15:13:34 1999 Richard Henderson <rth@cygnus.com>
24178 * flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
24179 (recompute_reg_usage): Likewise.
24180 * rtlanal.c (find_regno_fusage): Likewise.
24182 * rtl.c (rtl_check_failed_code1): New function.
24183 (rtl_check_failed_code2): New.
24184 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
24185 (RTL_CHECKC1, RTL_CHECKC2): New.
24186 (XC*): New accessor macros.
24187 (NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
24188 (ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
24189 (CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
24190 (ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
24191 (TRAP_*, RANGE_INFO_*): Likewise.
24193 Fri Sep 3 15:10:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24195 * Makefile.in (tlink.o): Don't depend on toplev.h.
24197 * collect2.c (c_file, o_file, export_file, import_file, ldout,
24198 output_file, nm_file_name, ldd_file_name, strip_file_name,
24199 c_file_name, prefix_list, libexts, is_ctor_dtor, find_a_file,
24200 add_prefix, prefix_from_env, prefix_from_string, do_wait,
24201 fork_execute, maybe_unlink, add_to_list,
24202 extract_init_priority, write_list, dump_list,
24203 dump_prefix_list, write_list_with_asm, write_c_file,
24204 write_c_file_stat, write_c_file_glob, scan_prog_file,
24205 scan_libraries, is_in_list, resolve_lib_name, use_import_list,
24206 ignore_library, extract_string, notice, dump_file, target_machine,
24207 collect_wait, collect_execute, libname, locatelib, aix_std_libs,
24208 read_file, print_load_command): Constify a char*.
24209 (fdopen, error, fatal, fatal_perror): Don't prototype.
24210 (my_strerror): Remove. All callers use xstrerror instead.
24211 (xcalloc, xmalloc, xrealloc, xstrdup, putenv): Remove definitions.
24212 (main): Add prototype. Constify lots of char* ptrs. Change calls
24213 to xcalloc/strcpy/strcat/... to one call to concat.
24214 (main, scan_prog_file, scan_libraries): Use an intermediate
24215 `const char **' to build an argv array.
24216 (mapfile, libselect, libcompare, locatelib): Add prototypes.
24218 * collect2.h (collect_execute, collect_wait, dump_file,
24219 file_exists): Constify a char*.
24220 (ldout, c_file_name, temporary_obstack, permanent_obstack,
24221 temporary_firstobj, vflag, debug): Add extern declarations.
24222 (fancy_abort, error, notice, fatal, fatal_perror): Add prototypes.
24224 * tlink.c: Don't include toplev.h.
24225 (vflag, debug, ldout, c_file_name, temporary_obstack,
24226 permanent_obstack, temporary_firstobj): Don't declare.
24227 (tlink_execute, frob_extension, symbol_hash_lookup,
24228 file_hash_lookup, demangled_hash_lookup, tlink_init, freadsym,
24229 recompile_files, read_repo_files, demangle_new_symbols,
24230 scan_linker_output): Constify a char*.
24231 (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc,
24232 do_tlink): Mark parameters with ATTRIBUTE_UNUSED.
24234 Fri Sep 3 18:09:24 1999 Andrew Haley <aph@cygnus.com>
24236 * config/m68k/m68kelf.h: Set USE_GAS; this makes gcc generate jbsr
24237 (relative) rather than jsr (absolute) subroutine call insns.
24238 * config/m68k/m68k-coff.h: Ditto.
24240 Fri Sep 3 17:24:31 1999 Richard Earnshaw <rearnsha@arm.com>
24242 * arm.c (note_invalid_constants): No need to ignore ASMs, we can
24243 now rework these too.
24244 (arm_reorg): If an insn can't reach the end of the current pool,
24245 ensure that we emit that pool before the insn.
24247 Fri Sep 3 09:14:32 1999 Marc Espie <espie@tetto.liafa.jussieu.fr>
24249 * tlink.c (scan_linker_output): Skip the initial underscore in
24250 a mangled name if appropriate.
24252 Fri Sep 3 01:28:33 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24254 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
24255 objc_tree_code_name, synth_id_with_class_suffix, warn_with_method,
24256 error_with_ivar, gen_declarator, create_builtin_decl,
24257 my_build_string, generate_descriptor_table, generate_ivars_list,
24258 generate_dispatch_table, check_protocols, TAG_GETCLASS,
24259 TAG_GETMETACLASS, TAG_MSGSEND, TAG_MSGSENDSUPER, TAG_EXECCLASS,
24260 dump_base_name, lang_decode_option, build_encode_expr,
24261 start_class, finish_class, encode_pointer, really_start_method,
24262 gen_declaration, dump_interface, handle_class_ref, handle_impent):
24264 (objc_demangle, objc_printable_name, generate_struct_by_value_array):
24265 Add static prototypes.
24266 (build_objc_string_decl, build_selector_reference_decl,
24267 encode_bitfield, build_class_reference_decl): Remove unused
24268 parameter, all callers changed.
24269 (maybe_objc_method_name): Mark with ATTRIBUTE_UNUSED.
24270 (objc_printable_name): Likewise. Change second parameter to type int.
24271 (init_objc): Use memcpy, not bcopy, to avoid casts.
24273 Thu Sep 2 21:49:52 1999 Richard Henderson <rth@cygnus.com>
24275 * reload1.c (eliminate_regs_in_insn): Avoid eliminating the
24276 reg notes on a deleted insn.
24277 * gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.
24279 Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com)
24281 * i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
24283 Thu Sep 2 22:00:08 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24285 * stmt.c (expand_asm_operands): Fix index into inout_mode when
24288 Thu Sep 2 13:00:48 1999 Richard Henderson <rth@cygnus.com>
24290 * stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
24291 * tm.texi (MD_ASM_CLOBBERS): Document it.
24293 Thu Sep 2 10:22:40 1999 Richard Henderson <rth@cygnus.com>
24295 * dwarf2out.c (dwarf2out_line): Constify `lastfile'.
24296 * except.c (expand_rethrow): Remove unused variable.
24297 * expr.c (do_jump_by_parts_greater_rtx): Likewise.
24298 * flow.c (replace_insns): Likewise.
24299 (create_edge_list, verify_edge_list): Likewise.
24300 * gcse.c (cprop_cc0_jump): Protect declaration with HAVE_cc0.
24302 * genemit.c (gen_expand): Only emit `operands[N]' decl if there
24303 is special code to run.
24304 (main): Don't define operands to emit_operand.
24305 * genrecog.c (main): Don't emit an empty peephole2_insn function.
24307 * rtl.h (NOTE_BASIC_BLOCK): Use X0BBDEF.
24309 * alpha/alpha.h (normal_memory_operand): Declare.
24310 (reg_no_subreg_operand): Declare.
24311 * alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use HOST_WIDE_INT_PRINT_DEC.
24313 Thu Sep 2 10:19:20 1999 Richard Henderson <rth@cygnus.com>
24315 * c-parse.in (compstmt_primary_start): New, broken out of first
24316 part of compstmt handling in primary.
24317 (primary): Use it. Add an error clause.
24318 (compstmt_nostart): Renamed from compstmt; remove all
24319 initial invocations of compstmt_start.
24322 Thu Sep 2 01:35:50 1999 Marc Espie <espie@cvs.openbsd.org>
24324 * protoize.c (gen_aux_info_file): Let pexecute call choose_temp_base if
24327 Thu Sep 2 00:43:59 1999 Finn Hakansson <finn@axis.com>
24329 * combine.c (simplify_shift_const): Remove extra semicolon.
24330 * dwarf2out.c (remove_AT): Likewise.
24331 * expmed.c (expand_mult): Likewise.
24332 * gcov.c (create_program_flow_graph): Likewise.
24333 * reorg.c (mostly_true_jump): Likewise.
24335 Thu Sep 2 00:06:43 1999 Jeffrey A Law (law@cygnus.com)
24337 * fold-const.c (fold_range_test): Do not try to fold the range
24338 test if the rhs or lhs has side effects.
24340 * combine.c (simplify_rtx): Recognize another case of a synthesized
24343 * varasm.c (mark_constant_pool): When marking indirect references,
24344 only look at SYMBOL_REFs.
24346 * except.c (expand_fixup_region_end): Do not peek at
24347 INSN_UID (node->entry->outer_context) for flag_new_exceptions.
24349 Thu Sep 2 13:52:53 1999 Geoffrey Keating <geoffk@cygnus.com>
24351 * flags.h: New variables align_loops, align_loops_log,
24352 align_jumps, align_jumps_log, align_labels, align_labels_log,
24353 align_functions, align_functions_log.
24354 * toplev.c: Define them.
24355 (f_options): Handle -falign-* when they have no argument.
24356 (main): Add logic to set variables for -falign-functions,
24357 -falign-jumps, -falign-labels, -falign-loops.
24358 Make it -fsched-verbose=<n> and -finline-limit=<n>.
24359 (display_help): Change help to match options.
24360 * final.c (LABEL_ALIGN): Default to align_labels_log.
24361 (LABEL_ALIGN_MAX_SKIP): Default to align_labels-1.
24362 (LOOP_ALIGN): Default to align_loops_log.
24363 (LOOP_ALIGN_MAX_SKIP): Default to align_loops-1.
24364 (LABEL_ALIGN_AFTER_BARRIER): Default to align_jumps_log.
24365 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to align_jumps-1.
24366 * varasm.c (assemble_start_function): Handle align_functions.
24368 * config/sparc/sparc.h: Don't declare sparc_align_*.
24369 Don't provide LABEL_ALIGN_AFTER_BARRIER or LOOP_ALIGN.
24370 (DEFAULT_SPARC_ALIGN_FUNCS): Delete; take functionality into
24372 (FUNCTION_BOUNDARY): Fix incorrect use---it's not just a request,
24374 * config/sparc/sparc.c: Delete sparc_align_loops,
24375 sparc_align_jumps, sparc_align_funcs and the corresponding string
24377 (sparc_override_options): Default align_functions on ultrasparc.
24378 Delete -malign-* handling.
24380 * config/mips/mips.c (override_options): On 64-bit targets,
24381 try to align code to 64-bit boundaries.
24382 (print_operand): New substitution, %~,
24383 which aligns labels to align_labels_log.
24384 * config/mips/mips.md (div_trap_normal): Use %~.
24385 (div_trap_mips16): Likewise.
24387 (absdi2): Likewise.
24388 (ffssi2): Likewise.
24389 (ffsdi2): Likewise.
24390 (ashldi3_internal): Likewise.
24391 (ashrdi3_internal): Likewise.
24392 (lshrdi3_internal): Likewise.
24393 (casesi_internal): Likewise.
24395 Wed Sep 1 21:13:48 1999 Richard Henderson <rth@cygnus.com>
24397 Merge new ia32 backend from the branch!
24399 * i386.h, i386.c, i386.md, reg-stack.c, i386/unix.h: Many changes.
24400 See ChangeLog.P2 on new_ia32_branch for details.
24402 * rtl.h (stack_regs_mentioned_p): Delete prototype.
24403 * i386/cygwin.h (SUBTARGET_PROLOGUE): No more do_rtl.
24404 * i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
24405 * i386/gas.h (ASM_FILE_START): Define.
24406 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Update
24407 for name change of ix86_valid_decl_attribute_p.
24408 (i386_pe_valid_type_attribute_p): Similarly.
24410 Wed Sep 1 18:21:23 1999 Richard Henderson <rth@cygnus.com>
24412 * emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
24413 to step through CC modes.
24415 Wed Sep 1 20:18:06 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24417 * regmove.c (fixup_match_1): Don't move INSN in front of P if
24418 it would end up in the shadow of a live flags regsiter.
24420 Wed Sep 1 11:32:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24422 * reload1.c: Fix many indentation problems.
24423 * reload.c: Likewise.
24425 Tue Aug 31 22:08:03 1999 Marc Espie <espie@cvs.openbsd.org>
24427 * alias.c (non_local_reference_p): Constify fmt.
24429 Tue Aug 31 23:19:35 1999 Michael Meissner <meissner@cygnus.com>
24431 * config/i386/xm-cygwin.h (HAVE_DOS_BASED_FILE_SYSTEM): Define.
24433 Tue Aug 31 16:44:52 1999 Jeffrey A Law (law@cygnus.com)
24435 * cse.c (delete_trivially_dead_insns): Do not delete stores to
24436 the internal_arg_pointer.
24438 Tue Aug 31 13:35:42 1999 Richard Henderson <rth@cygnus.com>
24440 Merge peephole2 from new_ia32_branch:
24441 * Makefile.in (STAGESTUFF): Add *.peephole2.
24442 (mostlyclean): Likewise.
24443 (recog.o): Depend on resource.h.
24445 * final.c (peephole): Conditionalize decl on HAVE_peephole.
24446 (final_scan_insn): Likewise for the invocation of peephole.
24447 * genconfig.c (main): Look for peephole and peephole2 patterns.
24448 Emit HAVE_peephole* accordingly.
24449 * genpeep.c (main): Conditionalize entire output on HAVE_peephole.
24450 * flags.h (flag_peephole2): Declare.
24451 * toplev.c: New pass peephole2. New flag -fpeephole2.
24453 * genattrtab.c (main): Count DEFINE_PEEPHOLE2.
24454 * gencodes.c (main): Likewise.
24455 * genextract.c (main): Likewise.
24456 * genoutput.c (main): Likewise.
24457 * genemit.c (max_operand_1): Look for the max scratch operand.
24458 (gen_rtx_scratch): New.
24459 (gen_exp): Use it, and pass on new arg subroutine_type.
24460 (gen_expand): Take max scratch into account.
24461 (gen_split): Emit peephole2 functions.
24462 (output_peephole2_scratch): New.
24463 (main): Include hard-reg-set.h and resource.h. Handle peephole2.
24464 * genrecog.c (routine_type): Add PEEPHOLE2.
24466 (make_insn_sequence): Match outer parallel for peep2. Discard
24467 top level scratches and dups.
24468 (add_to_sequence): New args insn_type and top. Update all callers.
24469 Handle toplevel peep2 matching insns.
24470 (write_subroutine): Handle peep2.
24471 (write_tree_1): Likewise.
24472 (write_tree): Likewise.
24474 (change_state): New arg afterward. Update all callers.
24475 Handle matching separate insns.
24476 * recog.c (recog_next_insn): New.
24477 (peephole2_optimize): New.
24478 * rtl.def (DEFINE_PEEPHOLE2): New.
24479 * resource.c (find_free_register): New argument last_insn. Use it
24480 to find a register available through the entire span.
24481 * resource.h (find_free_register): Update prototype.
24483 Tue Aug 31 11:51:06 1999 Jim Kingdon <http://developer.redhat.com>
24485 * i386.c (output_strlen_unroll): Don't write xops[7]
24486 label if it wasn't set.
24488 1999-08-31 12:44 -0700 Zack Weinberg <zack@bitmover.com>
24490 * cpplib.c (struct directive): Const-ify name pointer and
24491 function pointer prototype.
24492 (validate_else, do_define, do_line, do_include, do_undef,
24493 do_error, do_pragma, do_ident, do_if, do_xifdef, do_else,
24494 do_elif, do_endif, do_sccs, do_assert, do_unassert,
24495 do_warning): Const-ify second arg.
24496 (directive_table): Mark const. Reorder entries by frequency
24497 of usage, record statistics.
24499 1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
24501 * rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
24502 bounds- check RTL accesses if --enable-checking.
24503 (RTVEC_ELT): Bounds check if --enable-checking.
24504 (XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
24505 XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
24506 (XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
24508 (X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
24509 X0BBDEF, X0ADVFLAGS): New macros for accessing '0' slots of RTXes.
24511 (ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
24512 (NOTE_SOURCE_FILE): Use X0STR.
24513 (NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
24514 MEM_ALIAS_SET): Use X0INT.
24515 (NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
24516 JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
24518 * real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
24519 * rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
24520 (rtl_check_failed_bounds, rtl_check_failed_type1,
24521 rtl_check_failed_type2, rtvec_check_failed_bounds): New
24523 (fancy_abort): Fix comment.
24525 * cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
24526 (cse_insn): Decrement LABEL_NUSES for jump target before
24527 deleting jump insn.
24528 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
24529 * final.c (alter_subreg): Compute regno before changing x to
24530 REG; set REGNO(x) after changing it.
24531 * flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
24532 notes containing CONST_INTs.
24533 (delete_eh_regions): Use NOTE_EH_HANDLER.
24534 * function.c (put_reg_into_stack): Make reg a MEM before
24536 (fixup_var_refs_insns): Save REG_NOTES (insn) in case we
24538 (gen_mem_addressof): Make reg a MEM before initializing it.
24539 * integrate.c (copy_rtx_and_substitute): Copy '0' slots with
24541 * local-alloc.c (update_equiv_regs): Zap REG_NOTES before
24542 deleting an insn, not after.
24543 (block_alloc): Only look at PATTERN(insn) if we have to, and
24544 only if it's format class 'i'.
24545 * loop.c (check_dbra_loop): Check bl->biv->add_val is a
24546 CONST_INT before using its INTVAL.
24547 * print-rtl.c (print_rtx): Use X0STR.
24548 * regmove.c (fixup_match_1): Don't look at PATTERN of
24549 non-class-'i' insn chain elements.
24550 * reload.c (loc_mentioned_in_p): Take address of
24551 in->fld[1].rtx directly.
24552 * reload1.c (reload): Change reg to a MEM before initializing
24554 * varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
24556 * config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
24558 Fri Aug 20 13:43:41 1999 Andrew Haley <aph@cygnus.com>
24560 * config/mips/mips.c (machine_dependent_reorg): Force a
24561 barrier to output the local constant pool if a barrier hasn't
24562 been found at a natural point in the instruction stream.
24564 Mon Aug 30 22:04:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24566 * c-parse.in (language_string): Constify.
24568 * dwarf2out.c (language_string): Remove declaration.
24570 * dwarfout.c (language_string): Likewise.
24572 * toplev.c (language_string, init_parse, finish_parse): Likewise.
24574 * tree.h (language_string, init_parse, finish_parse): Declare.
24576 * i386/sun386.h (language_string): Remove declaration.
24578 * mips.h (language_string): Likewise.
24580 * nextstep.h (language_string): Likewise.
24582 * nextstep21.h (language_string): Likewise.
24584 * rs6000.c (language_string): Likewise.
24586 Mon Aug 30 20:56:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24588 * Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
24589 (getpwd.o): Remove target.
24591 * getpwd.c: Delete file. Its in libiberty now.
24593 * dbxout.c (getpwd): Don't prototype.
24594 * dwarf2out.c (getpwd): Likewise
24595 * dwarfout.c (getpwd): Likewise
24596 * final.c (getpwd): Likewise.
24597 * protoize.c (getpwd): Likewise.
24599 Mon Aug 30 20:21:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24601 * cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
24603 Mon Aug 30 16:07:49 1999 Richard Henderson <rth@cygnus.com>
24605 * flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
24606 mark_set_resources.
24608 Mon Aug 30 12:23:53 1999 Jim Wilson <wilson@cygnus.com>
24610 * fixinc/Makefile.in (subdir): New.
24611 (fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
24614 Mon Aug 30 01:02:09 1999 Jeffrey A Law (law@cygnus.com)
24616 * emit-rtl.c (copy_rtx_if_shared): A MEM which references
24617 virtual_stack_vars_rtx or virtual_incoming_args_rtx can not
24620 * invoke.texi: Fix typo.
24622 * dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers
24623 changed. Handle autoincrement addressing modes.
24625 * integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer
24626 just like we would the virtual incoming args register when
24629 Sun Aug 29 23:17:54 1999 David Edelsohn <edelsohn@gnu.org>
24631 * rs6000.h (ASM_FILE_START): Specify complete filename, including
24632 path, in .file directive.
24634 Sun Aug 29 05:06:43 1999 Russ Allbery <rra@stanford.edu>
24636 * gcc.texi (External Bugs): Remove obsolete note about Perl on
24639 1999-08-29 08:38 -0700 Zack Weinberg <zack@bitmover.com>
24641 * stdbool.h: Make the typedef name _Bool, with bool a #defined
24644 Sun Aug 29 09:36:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24646 * tree.c (tree_code_name): Constify a char*.
24648 * tree.h (tree_code_name, decl_printable_name): Likewise.
24650 * function.h (struct function): Likewise.
24652 * toplev.c (decl_name, decl_printable_name): Likewise.
24654 * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise.
24656 * objc/objc-act.c (decl_printable_name): Remove redundant prototype.
24657 (init_objc): Remove function pointer cast.
24659 Sun Aug 29 05:01:17 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
24661 * pa.md (interspace_jump): New pattern.
24662 (builtin_longjmp): New expander.
24664 1999-08-29 Bernd Schmidt <bernds@cygnus.co.uk>
24666 * fp-bit.c (add, sub, multiply, divide, compare, _eq_f2, _ne_f2,
24667 _gt_f2, _ge_f2, _lt_f2, _le_f2, float_to_si, float_to_usi, negate,
24668 sf_to_df, df_to_sf): Fix potential problem with alias analysis.
24670 Sun Aug 29 04:30:52 1999 John Wehle (john@feith.com)
24672 * jump.c (delete_prior_computation): Also check calls
24673 to constant functions. Don't bother checking for a
24674 REG_UNUSED note before adding it.
24675 (delete_computation): Handle multi-word hard registers
24676 when synthesizing missing REG_DEAD notes for a register
24677 which is both set and used by an insn.
24679 1999-08-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
24681 * loop.c (this_loop_info): New variable.
24682 (loop_has_call, loop_has_volatile, loop_has_tablejump,
24683 loop_continue, loops_enclosed): Replace with fields in this_loop_info.
24685 (prescan_loop, strength_reduce): New argument loop_info. All callers
24687 (scan_loop): New variable loop_info, initialise to address of
24689 (prescan_loop): Set loop_info->vtop if find NOTE_INSN_LOOP_VTOP.
24690 Delete variable loop_has_multiple_exit targets and replace with
24691 field in this_loop_info.
24692 (find_and_verify_loops): Rename this_loop to this_loop_num.
24693 (strength_reduce): Delete loop_iteration_info. Replace variable
24694 loop_info with function argument of same name.
24695 (insert_bct): Rework test for loop being completely unrolled.
24697 * loop.h (struct loop_info): New fields num, loops_enclosed,
24698 has_call, has_volatile, has_tablejump, has_multiple_exit_targets,
24699 has_indirect_jump, and cont. Redefine use of unroll_number.
24700 (loop_unroll_number): Delete.
24702 * unroll.c (unroll_loop): Store loop unroll count in unroll_number
24703 field of loop_info.
24704 (loop_iterations): Delete variable vtop and instead use
24705 loop_info->vtop computed in prescan_loop.
24707 Sun Aug 29 03:27:23 1999 Scott Weikart <scott@igc.apc.org>
24709 * fix-header.c (main): Do not pass a null pointer to strcmp.
24711 Sun Aug 29 03:18:48 1999 William Bader (william@nscs.fast.net)
24713 * configure.in (i[34567]86-*-sco3.2v4*): Target does not truncate
24715 * configure: Rebuilt.
24717 Sat Aug 28 19:36:05 1999 Jeffrey A Law (law@cygnus.com)
24719 * jump.c (jump_optimize_1): Do not delete assignments to
24720 internal_arg_pointer.
24721 * cse.c (delete_trivially_dead_insns): Always consider a set of
24722 the internal_arg_pointer live.
24724 Sat Aug 28 16:24:31 1999 Richard Henderson <rth@cygnus.com>
24726 * flow.c (flow_delete_insn_chain): Rename from delete_insn_chain.
24727 (update_life_info) [REG_WAS_0]: Search the original insns rather
24728 than the new insns for the note. Fix typos finding note_dest.
24729 If no dest found, discard the note rather than abort.
24730 [REG_NOALIAS]: Handle as REG_NO_CONFLICT.
24731 (replace_insns): Remove the old insn list after update_life_info
24734 Sat Aug 28 16:20:12 1999 Richard Henderson <rth@cygnus.com>
24736 * haifa-sched.c (sched_analyze): Clear LOG_LINKS before calling
24737 sched_analyze_insn.
24738 (sched_analyze_1): Let add_dependence care for not adding dups.
24739 (sched_analyze_2): Likewise.
24740 (add_branch_dependences): Likewise.
24742 Sat Aug 28 15:58:16 1999 Mumit Khan <khan@xraylith.wisc.edu>
24744 * i386/winnt.c (export_list): New type.
24745 (exports_head): Rename to
24746 (export_head): this.
24747 (i386_pe_record_exported_symbol): Add is_data flag.
24748 (i386_pe_asm_file_end): Emit directive for exported variables.
24749 * i386/cygwin.h (i386_pe_record_exported_symbol): Update
24751 * i386/cygwin.h (ASM_OUTPUT_COMMON): Specify symbol type.
24752 (ASM_DECLARE_OBJECT_NAME): Likewise.
24753 (ASM_DECLARE_FUNCTION_NAME): Likewise.
24754 * i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
24756 Fri Aug 27 15:35:24 1999 Jeffrey A Law (law@cygnus.com)
24758 * cse.c (fold_rtx): Work around bug in Sun V5.0 compilers.
24760 * pa.c (emit_move_sequence): Do not stop on SUBREG_WORD of an
24763 Fri Aug 27 14:01:19 1999 Marc Espie <espie@cvs.openbsd.org>
24765 * config/openbsd.h: Define SET_ASM_OP.
24766 * tm.texi: cross-reference SET_ASM_OP in the index.
24768 1999-08-27 13:27 -0700 Zack Weinberg <zack@bitmover.com>
24770 * rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format
24771 for a CONST_DOUBLE, at compile time. Initialize rtx_length
24772 and class_narrowest_mode at compile time. Kill init_rtl.
24773 Mark rtx_length, mode_class, mode_size, mode_unit_size,
24774 mode_wider_mode, mode_mask_array, class_narrowest_mode, and
24775 rtx_format as const. Kill all references to EXTRA_CC_MODES or
24777 * rtl.def (CONST_DOUBLE): Use CONST_DOUBLE_FORMAT macro for
24779 * rtl.h: Declare rtx_length and rtx_format as const.
24780 * machmode.def: Define CC(). Use CC() to define CCmode. If
24781 EXTRA_CC_MODES is defined, expand it here.
24782 * machmode.h: Declare mode_class, mode_size, mode_unit_size,
24783 mode_wider_mode, mode_mask_array, and class_narrowest_mode as
24784 const. Kill all references to EXTRA_CC_MODES.
24786 * toplev.c: Don't prototype or call init_rtl.
24787 * optabs.c: Don't call init_mov_optab.
24788 * genemit.c: Don't generate init_mov_optab. Don't call
24790 * gengenrtl.c: Duplicate calculation of CONST_DOUBLE_FORMAT
24792 * genattr.c, genattrtab.c, gencodes.c, genconfig.c,
24793 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
24794 genrecog.c: Don't call init_rtl.
24796 * arc.h, arm.h, c4x.h, i386.h, i960.h, m88k.h, pa.h, pdp11.h,
24797 rs6000.h, sparc.h: Don't define EXTRA_CC_NAMES. Use CC() in
24798 definition of EXTRA_CC_MODES.
24800 * md.texi: Kill ref to EXTRA_CC_NAMES.
24801 * tm.texi: Document new way to define EXTRA_CC_MODES.
24803 * genrecog.c: Do not look up the name of a define_split.
24804 (Unrelated bugfix.)
24806 Fri Aug 27 17:03:42 1999 Nick Clifton <nickc@cygnus.com>
24808 * config/v850/v850.md: Fix typo introduced by previous delta.
24810 Fri Aug 27 09:48:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24812 * gcc.c (fatal): Make definition static to match prototype.
24814 Fri Aug 27 10:33:35 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24816 * combine.c (get_last_value): Don't look for earlier sets if the last
24817 known set is somewhere in between the insns being combined.
24819 Fri Aug 27 10:03:12 BST 1999 Nathan Sidwell <nathan@acm.org>
24821 * configure.in: Don't use shell ! to negate exit codes
24822 * configure: Regenerate
24824 Fri Aug 27 09:36:17 1999 Andreas Schwab <schwab@suse.de>
24826 * function.c (assign_stack_temp_for_type): Fix change of Mar 5 for
24827 the fact that ALIGN is measured in bits, not bytes.
24829 1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
24831 * errors.c: New file; defines functions error, warning, and
24832 fatal, variables have_error and progname.
24833 * errors.h: New file; prototypes and decls for stuff in errors.c.
24835 * Makefile: Add rules to build errors.o and
24836 $(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
24837 genopinit, genrecog, genextract, genpeep, genattr, and
24838 genoutput with errors.o. Add errors.h to deps of genconfig.o,
24839 gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
24840 genpeep.o, genattr.o, and genoutput.o.
24842 * genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
24843 genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
24844 define or prototype fatal. Set progname at beginning of main.
24845 * genoutput.c: Likewise, and don't define or prototype error
24848 * c-typeck.c (c_expand_start_case): Return immediately if exp
24850 * fold-const.c (operand_equal_p): Return immediately if arg1
24851 or arg0 are ERROR_MARKs.
24852 * stor-layout.c (layout_type [case RECORD_TYPE]): Ignore
24853 fields of type ERROR_MARK when calculating if the record can
24856 Fri Aug 27 01:03:48 1999 Jim Kingdon <http://developer.redhat.com>
24857 with much help from Jeffrey A Law and Richard Henderson
24859 * i386.md: In the 6 insns which call output_fix_trunc,
24860 earlyclobber operands[0].
24862 Fri Aug 27 01:01:51 1999 Philip Blundell <pb@nexus.co.uk>
24864 * jump.c (duplicate_loop_exit_test): Call reg_scan_update after
24865 creating new registers.
24867 1999-08-26 23:09 -0700 Zack Weinberg <zack@bitmover.com>
24869 * i386.h: Declare ix86_cpu_string, ix86_arch_string,
24870 i386_reg_alloc_order, i386_regparm_string,
24871 i386_align_loops_string, i386_align_jumps_string,
24872 i386_align_funcs_string, i386_preferred_stack_boundary_string,
24873 and i386_branch_cost_string as type "const char *".
24874 * i386.c: Define all above strings as type "const char *".
24876 Thu Aug 26 20:36:30 1999 Jim Wilson <wilson@cygnus.com>
24878 * dwarf2out.c (output_aranges): Check DWARF_OFFSET_SIZE not PTR_SIZE
24879 when emitting alignment padding. Emit padding byte of 0 instead of 4.
24881 Thu Aug 26 18:11:20 1999 Mark Mitchell <mark@codesourcery.com>
24883 * tree.c (array_type_nelts): Don't create RTL_EXPRs from
24884 SAVE_EXPRs unless the SAVE_EXPRs have already been expanded.
24886 Thu Aug 26 19:33:23 1999 Jim Wilson <wilson@cygnus.com>
24888 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Add default definition.
24889 (debug_dwarf): Add DWARF2_ASM_LINE_DEBUG_INFO support.
24890 (dwarf2out_line, dwarf2out_finish): Likewise.
24891 * tm.texi (DWARF2_ASM_LINE_DEBUG_INFO): Add documetation.
24893 Thu Aug 26 16:10:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
24895 * tree.c (lang_unsave_expr_now) : Correct return type.
24896 * tree.h (lang_unsave_expr_now) : Same.
24898 Thu Aug 26 13:12:29 1999 Jeffrey A Law (law@cygnus.com)
24900 * pa.c (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
24901 instead of duplicating code.
24903 Thu Aug 26 18:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24905 * gcse.c (hash_scan_insn): Don't scan obvious no-ops.
24907 1999-08-26 09:42 -0700 Zack Weinberg <zack@bitmover.com>
24909 * tree.h: fancy_abort always takes three args.
24910 * resource.c: Move include of system.h before toplev.h.
24912 Thu Aug 26 09:46:16 1999 Nick Clifton <nickc@cygnus.com>
24914 * dwarf2out.c (mem_loc_descriptor): Accept LABEL_REFs as well
24917 1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
24919 * system.h: Don't redefine abort or trim_filename.
24920 * rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
24921 or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
24922 whether or not __FUNCTION__ is available.
24923 * tree.h: Duplicate rtl.h's definition of abort, for files
24924 that don't include rtl.h. Delete all code to perform type
24925 checking with a compiler other than GCC.
24926 * varray.h: Delete all code to perform type checking with a
24927 compiler other than GCC. Make VARRAY_CHECK() always evaluate
24928 its arguments exactly once, using a statement expression.
24929 Adjust the VARRAY_<type> accessor macros to match.
24930 * toplev.h (fatal_insn, fatal_insn_not_found): Kill.
24931 (_fatal_insn, _fatal_insn_not_found): New fns, take info on
24932 caller's location. Define fatal_insn and fatal_insn_not_found
24933 as macros that use _fatal_insn and _fatal_insn_not_found.
24934 (fancy_abort, trim_filename): Kill prototypes.
24936 * rtl.c (trim_filename): Move here from toplev.c.
24937 (fancy_abort): New function.
24938 (DIR_SEPARATOR): Provide default definition.
24939 * tree.c (tree_check_failed, tree_class_check_failed): Go
24940 through fancy_abort.
24941 (tree_check, tree_class_check, cst_or_constructor_check,
24942 expr_check): Delete.
24943 * varray.c (varray_check_failed): New function.
24944 * toplev.c (fatal_insn, fatal_insn_not_found): Replace with
24945 _fatal_insn and _fatal_insn_not_found. Go through
24947 (trim_filename, fancy_abort): Delete.
24949 * builtins.c (expand_builtin_args_info): Report ICE with abort.
24950 * except.c (start_catch_handler): Report ICE with error/abort
24952 * final.c (output_operand_lossage): Likewise.
24953 * flow.c (verify_flow_info): Likewise.
24955 * gcc.c: Prototype fatal.
24956 * gengenrtl.c: Undef abort after including rtl.h not system.h.
24957 * genattr.c, genattrtab.c, genemit.c, genextract.c,
24958 genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
24959 Don't define fancy_abort.
24961 Wed Aug 25 17:56:59 1999 Richard Henderson <rth@cygnus.com>
24963 * optabs.c (emit_cmp_and_jump_insns): Be more thorough in
24966 Wed Aug 25 15:35:55 1999 Richard Henderson <rth@cygnus.com>
24968 * m88k.h (VERSION_INFO2): Kill.
24969 (VERSION_STRING): Kill.
24971 (VERSION_INFO1): Tidy.
24972 (TARGET_VERSION): Update.
24973 * m88k/dgux.h (VERSION_INFO2): Kill.
24974 (ASM_FIRST_LINE): Adjust for death of VERSION_STRING.
24975 * m88k/luna.h (VERSION_INFO1): Tidy.
24976 * m88k/sysv4.h (VERSION_INFO1): Likewise.
24977 * m88k.c (out_rcs_id, tm_rcs_id): Kill.
24978 (output_file_start): Adjust for death of VERSION_STRING.
24980 1999-08-25 13:51 -0700 Jim Meyering <meyering@ascend.com>
24982 * cpplib.c (detect_if_not_defined): New function.
24983 (do_if): Use it to detect potential once-only headers.
24985 Wed Aug 25 14:00:18 1999 Jason Merrill <jason@yorick.cygnus.com>
24987 * c-common.c (combine_strings): Always set TREE_CONSTANT.
24989 Wed Aug 25 15:27:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
24991 * combine.c (nonzero_bits) : Allow single-ly set registers to be
24992 anywere in the function only if they are pseudos and set before
24993 being used (not live at the start of the function).
24994 (num_sign_bit_copies) : Same.
24995 (get_last_value_validate) : Same.
24996 (get_last_value) : Same.
24998 Wed Aug 25 11:13:29 1999 Richard Henderson <rth@cygnus.com>
25000 * loop.c (express_from): Try harder to unify (* c N) and (* c M)
25001 where N and M are constant and N is an integer multiple of M.
25003 Wed Aug 25 13:55:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
25005 * sbitmap.h (sbitmap_intersection_of_succs): Add prototype.
25006 (sbitmap_intersection_of_preds, sbitmap_union_of_succs,
25007 sbitmap_union_of_preds): Add prototypes.
25008 * sbitmap.c (sbitmap_intersection_of_succs): New function to compute
25009 the intersection of successors with the new flow graph structures.
25010 (sbitmap_intersection_of_preds): New function to compute the
25011 intersection of predecessors with the new flow graph structures.
25012 (sbitmap_union_of_succs): New function to compute the union of
25013 successors with the new flow graph structures.
25014 (sbitmap_union_of_preds): New function to compute the union of
25015 predecessors with the new flow graph structures.
25016 * gcse.c (compute_rdm, compute_available): Use new sbitmap routines.
25017 (expr_reaches_here_p): Use edge and basic_block structures instead
25018 of s_preds and s_succs.
25019 (compute_cprop_avinout): Use new sbitmap routines.
25020 (pre_expr_reaches_here_p): Use edge and basic_block structures instead
25021 of s_preds and s_succs.
25022 * flow.c (compute_flow_dominators): Compute dominators using
25023 edges and basic blocks instead of s_preds and s_succs.
25025 Wed Aug 25 13:41:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
25027 * lists.c (unused_insn_list, unused_expr_list): New file for
25028 maintaining various types of lists. New statics for maintaining a
25029 cache of available INSN_LIST and EXPR_LIST nodes.
25030 (free_list): Static function for freeing a list of INSN/EXPR nodes.
25031 (alloc_INSN_LIST): Function to get a free INSN_LIST node.
25032 (alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
25033 (init_EXPR_INSN_LIST_cache): Initialize the cache lists.
25034 (free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
25035 (free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
25036 (free_EXPR_LIST_node): Free an individual EXPR_LIST node.
25037 (free_INSN_LIST_node): Free an individual INSN_LIST node.
25038 * haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
25039 (free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
25040 (remove_dependence, free_pending_lists): Use new global routines.
25041 (flush_pending_lists, sched_analyze_insn): Use new global routines.
25042 (sched_analyze, compute_block_backward_dependences): Use new routines.
25043 (sched_analyze_1, sched_analyze_2): Use new routines.
25044 (schedule_insns): Use new global routines.
25045 * rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
25047 (free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
25048 (free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
25050 * toplev.c (rest_of_compilation): Initialize node cache.
25051 * Makefile.in (OBJS): Add lists.o to list of object files.
25052 (lists.o): Add dependancies.
25054 Wed Aug 25 17:31:56 1999 Nick Clifton <nickc@cygnus.com>
25056 * config/v850/v850.md: Fix compile time warning messages.
25057 * config/v850/v850.c: Fix compile time warning messages.
25058 * config/v850/v850.h: Fix compile time warning messages.
25060 Wed Aug 25 09:44:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25062 * genattr.c (gen_attr): Add prototype arguments for get_attr_*().
25063 Remove unused prototype for `init_lengths'.
25065 Wed Aug 25 09:32:31 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25067 * calls.c (emit_call_1): Mark parameter `stack_size' with
25069 (expand_call): Initialize variable `insn'.
25070 (emit_library_call): Likewise for variable `high_to_save'.
25071 (emit_library_call_value): Likewise.
25072 (store_one_arg): Likewise for variables `lower_bound' and
25075 * combine.c (try_combine): Likewise for variables `i2_code_number'
25076 and `other_code_number'.
25077 (find_split_point): Likewise for variables `pos', `unsignedp' and
25079 (simplify_if_then_else): Likewise for variables `op' and `c1'.
25080 (simplify_and_const_int): Remove unused variable `width'.
25081 (merge_outer_ops): Likewise.
25083 * cse.c (simplify_binary_operation): Cast an INTVAL() to `unsigned
25084 HOST_WIDE_INT' when comparing against one.
25085 (simplify_relational_operation): Likewise.
25086 (cse_insn): Initialize variables `src_eqv_volatile',
25087 `src_eqv_in_memory', `src_eqv_in_struct', `src_eqv_hash' and `sets'.
25089 * final.c (init_final): Constify parameter `filename'.
25090 (final_start_function): Mark parameter `optimize' with
25092 (profile_function): Likewise for parameters `first' and `optimize'.
25093 (output_source_line): Likewise for parameter `file'.
25095 * integrate.c (subst_constants): Cast a value to `size_t' when
25096 comparing against one.
25097 (mark_stores): Initialize variable `mode'. Cast a value to
25098 `size_t' when comparing against one.
25100 * integrate.h (MAYBE_EXTEND_CONST_EQUIV_VARRAY): Likewise.
25102 * loop.c (move_movables): Initialize variable `first'.
25103 (strength_reduce): Likewise for variable `increment'.
25104 (check_dbra_loop): Likewise for variable `comparison_val'. Cast a
25105 value to `size_t' when comparing against one.
25106 (load_mems): Initialize variable `end_label'.
25108 * output.h (init_final): Constify parameter.
25110 * reload.c (decompose): Initialize variable `base'.
25112 * reload1.c (reload): Likewise for variable `is_scalar'.
25113 (spill_hard_reg): Mark parameter `dumpfile' with ATTRIBUTE_UNUSED.
25114 (choose_reload_regs): Initialize variable `mode'.
25115 (emit_reload_insns): Likewise for variable `store_insn'.
25116 (reload_cse_noop_set_p): Mark parameter `insn' with
25118 (reload_combine): Initialize variable `set'.
25120 * unroll.c (unroll_loop): Likewise for variable `local_label'.
25121 (copy_loop_body): Cast a value to `size_t' when comparing against
25124 * varasm.c (assemble_variable): Initialize variable `size_tree'.
25125 (const_hash): Add an `else abort()' in an if-else-if-else sequence.
25126 (remove_from_pending_weak_list): Mark parameter `name' with
25129 Wed Aug 25 11:18:39 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25131 * toplev.c (rest_of_compilation): Use decl_printable_name when opening
25134 Wed Aug 25 10:57:12 1999 Nick Clifton <nickc@cygnus.com>
25136 * config/arm/telf.h (ASM_WEAKEN_LABEL): Define.
25137 (ASM_DECLARE_FUNCTION_NAME): Define.
25138 (TYPE_ASM_OP, SIZE_ASM_OP, TYPE_OPERAND_FORMAT,
25139 ASM_DECLARE_RESULT, ASM_DECLARE_OBJECT_NAME,
25140 ASM_FINISH_DECLARE_OBJECT, ASM_DECLARE_FUNCTION_SIZE): Define if
25141 not already defined.
25143 Wed Aug 25 01:36:11 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
25145 * calls.c (emit_call_1): Use call_pop/call_value_pop for all values
25146 of n_popped when call/call_value are not defined.
25148 Wed Aug 25 01:25:14 1999 Jeffrey A Law (law@cygnus.com)
25150 * tm.texi: GNU CC -> GCC conversion.
25151 (CC1_SPEC): Indicate it is used for all language front ends.
25153 Tue Aug 24 23:43:03 1999 Mark Mitchell <mark@codesourcery.com>
25155 * flow.c (delete_block): Spell NOTE_INSN_EH_REGION_BEG and
25156 NOTE_INSN_EH_REGION_END correctly.
25158 Tue Aug 24 23:26:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
25159 Jeff Law <law@cygnus.com>
25161 * loop.c (strength_reduce): Automatically unroll loops if the
25162 unrolled loop size is smaller than the rolled loop size.
25164 * loop.c (insert_bct): Replace use of sdiv_optab with asr_optab
25165 and delete comment that code should be rewritten.
25167 Tue Aug 24 22:56:35 1999 Jeffrey A Law (law@cygnus.com)
25169 * haifa-sched.c (find_rgns): Mark a block found during the DFS search
25172 * haifa-sched.c (get_visual_tbl_length): Fix off-by-one error.
25174 Tue Aug 24 22:41:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
25176 * fixinc/mkfixinc.sh: Don't fix uwin headers.
25177 * i386/uwin.h (MD_STARTFILE_PREFIX): Define.
25178 (LINK_SPEC): Add -u _main when building executables.
25179 (ASM_DECLARE_FUNCTION): Update from Cygwin.
25180 (ASM_FILE_END): Use the default for ix86-pe.
25181 * i386/xm-uwin.h (HAVE_BCOPY): Undefine.
25183 Tue Aug 24 20:49:47 1999 Art Haas <ahaas@neosoft.com>
25185 * final.c (output_addr_const): Handle case where ASM_OPEN_PAREN
25186 and ASM_CLOSE_PAREN are empty strings.
25188 Wed Aug 25 12:46:22 1999 Fred Fish <fnf@cygnus.com>
25189 Geoffrey Keating <geoffk@cygnus.com>
25191 * Makefile.in (PREPROCESSOR_DEFINES): New macro.
25192 (protoize.o): Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
25193 (unprotoize.o): Ditto.
25194 (test-protoize-simple): Don't define STD_PROTO_DIR.
25195 * protoize.c: Use PARAMS rather than PROTO. Minor whitespace
25196 changes to make 'test-protoize-simple' pass.
25197 (STD_PROTO_DIR): Remove define.
25198 (STANDARD_EXEC_PREFIX): Supply default define.
25199 (standard_exec_prefix): New variable, init to STANDARD_EXEC_PREFIX.
25200 (target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
25201 (target_version): New variable, init to DEFAULT_TARGET_VERSION.
25202 (GET_ENV_PATH_LIST): New macro.
25203 (default_syscalls_dir): No longer initialized to STD_PROTO_DIR.
25204 (do_processing): Initialize default_syscalls_dir using new
25205 macros. Use it to initialize syscalls_absolute_filename.
25207 Tue Aug 24 16:58:15 1999 Richard Henderson <rth@cygnus.com>
25209 * jump.c (jump_optimize_1): Do cmov opt on any single-set; force
25210 B into a register before emit_conditional_move.
25212 Tue Aug 24 15:37:03 1999 Richard Henderson <rth@cygnus.com>
25214 * fold-const.c (fold): Reassociate (+ (+ (* a b) c) (* d e))
25215 as (+ (+ (* a b) (* d e)) c). Factor a common power-of-two
25216 multiplicand out of (+ (* a b) (* c d)).
25218 Tue Aug 24 11:46:10 1999 Bob Manson <manson@cygnus.com>
25219 Richard Henderson <rth@cygnus.com>
25221 * haifa-sched.c (split_hard_reg_notes): Move to flow.c
25222 (new_insn_dead_notes): Likewise.
25223 (update_n_sets): Likewise.
25224 (update_flow_info): Move to flow.c, renamed to update_life_info;
25225 extend to handle multiple source insns.
25226 * flow.c: Include resource.h
25227 (unlink_insn_chain): New.
25228 (split_hard_reg_notes): New.
25229 (maybe_add_dead_note): New.
25230 (maybe_add_dead_note_use): New.
25231 (find_insn_with_note): New.
25232 (new_insn_dead_notes): New.
25233 (update_n_sets): New.
25234 (sets_reg_or_subreg_1, sets_reg_or_subreg): New.
25235 (maybe_remove_dead_notes): New.
25236 (update_life_info): New.
25237 (prepend_reg_notes): New.
25238 (replace_insns): New.
25239 * output.h (update_life_info): Declare.
25240 * recog.c (split_block_insns): Use update_life_info.
25241 * resource.c (find_free_register): Use reg_alloc_order, don't use
25242 fixed regs, make sure the mode is supported, don't use new regs.
25244 * rtl.h (replace_insns): Declare.
25246 Tue Aug 24 13:48:39 1999 Nathan Sidwell <nathan@acm.org>
25248 * expr.c (expand_expr): Cope with COND_EXPRs with one
25249 non-returning branch.
25251 Mon Aug 23 22:28:16 1999 Mark Mitchell <mark@codesourcery.com>
25253 * expr.c (store_expr): Always pass down the target, even when not
25256 1999-08-24 Nick Clifton <nickc@cygnus.com>
25258 * configure.in: Define target_cpu_default for v850 targets.
25259 * configure: Regenerate
25261 * config/v850/v850.h (TARGET_CPU_generic): Define.
25262 (GO_IF_LEGITIMATE_ADDRESS): Insist that SImode and larger constant
25263 addresses are 4 byte aligned.
25265 * config/v850/v850.c (print_operand): Cope with 'R' format DFmode
25268 Tue Aug 24 09:32:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25270 * genattr.c (function_unit_desc): Constify a char*. Add prototype.
25271 (main): Add prototypes.
25273 * genattrtab.c (substitute_address, write_const_num_delay_slots,
25274 attr_eq, attr_numeral, attr_equal_p, attr_copy_rtx): Prototype.
25275 (write_attr_get): Emit prototypes along with function definition.
25276 (write_eligible_delay): Mark a parameter with ATTRIBUTE_UNUSED.
25277 (write_complex_function): Emit static prototype along with
25278 function definition.
25280 * genemit.c (gen_split): Emit prototypes along with function
25283 * genoutput.c (output_epilogue): Add prototype to `insn_outfun'.
25284 Likewise for predicates and `insn_operand_predicate'.
25285 (process_template): Emit static prototype along with function
25288 * genrecog.c (make_insn_sequence): Constify a char*. Add
25289 prototypes for get_split_*().
25290 (write_subroutine): Emit prototypes along with function
25293 Tue Aug 24 12:35:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25295 * gcse.c (find_avail_set): Follow chains of register-register copies.
25296 Use oprs_not_set_p to guarantee that the returned value can be
25298 (cprop_insn): Don't verify the return value of find_avail_set with
25301 * gcse.c (cprop_jump): New function, broken out of cprop_insn.
25302 (cprop_cc0_jump): New function.
25303 (cprop_insn): Break out new function cprop_jump and use it.
25304 Also use cprop_cc0_jump for machines with CC0.
25305 (cprop): Don't crash if cprop_insn turned the insn into a NOTE.
25307 * tree.h (current_function_calls_setjmp,
25308 current_function_calls_longjmp): Delete declarations.
25309 * dsp16xx.c: Include "function.h".
25310 * elxsi.c: Likewise.
25311 * gmicro.c: Likewise.
25312 * h8300.c: Likewise.
25313 * i370.c: Likewise.
25314 * m32r.c: Likewise.
25315 * mn10200.c: Likewise.
25316 * mn10300.c: Likewise.
25317 * ns32k.c: Likewise.
25318 * spur.c: Likewise.
25319 * v850.c: Likewise.
25321 * rtl.h (rtx_equal_function_value_matters): Declare.
25322 * toplev.c (rtx_equal_function_value_matters): Don't declare.
25324 * function.c: Likewise.
25325 * emit-rtl.c: Likewise.
25327 Tue Aug 24 02:47:44 1999 Jeffrey A Law (law@cygnus.com)
25329 * expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION
25332 1999-08-24 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
25334 * jump.c (delete_barrier_successors) Match (set (pc) (pc)) insn
25337 Mon Aug 23 23:35:52 1999 Matthias Klose <doko@cs.tu-berlin.de>
25339 * cpp.texi: Add a node documenting macro varargs (copied
25342 1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com>
25344 * cppspec.c: Put a null pointer at the end of the new argv.
25346 Mon Aug 23 21:23:24 1999 Jeffrey A Law (law@cygnus.com)
25348 * configure.in: Remove code to select/de-select the haifa
25349 scheduler. Every scheduled port gets haifa now.
25350 * configure: Rebuilt.
25351 * flags.h, genattrtab.c, rtl.h, toplev.c: Remove HAIFA ifdefs.
25353 * Makefile.in: Corresponding changes.
25355 Mon Aug 23 16:04:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25357 * optabs.c (prepare_cmp_insn): Turn COMPARISON arg into a pointer.
25358 All callers changed.
25359 (prepare_float_lib_cmp): Likewise.
25360 Use FLOAT_LIB_COMPARE_RETURNS_BOOL.
25361 * expr.h (emit_float_lib_cmp): Delete declaration.
25362 * tm.texi (FLOAT_LIB_COMPARE_RETURNS_BOOL): Document.
25363 * sparc.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): Define.
25364 * sparc.md (bcc and scc patterns): Don't handle TFmode comparisons
25366 (cmptf): Now conditional on TARGET_HARD_QUAD.
25368 Fri Aug 20 17:52:27 1999 Jim Wilson <wilson@cygnus.com>
25370 * resource.c (mark_target_live_regs): Use
25371 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
25373 Fri Aug 20 19:07:55 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25375 * rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
25377 * rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.
25379 * genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.
25381 Fri Aug 20 18:53:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25383 * rtl.h (rtx_format): Constify a char*.
25385 * rtl.c (rtx_format): Likewise.
25386 (copy_rtx, copy_most_rtx, read_rtx): Likewise.
25387 (init_rtl): Use accessor macro, not `rtx_format'.
25389 * alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
25392 * caller-save.c (mark_referenced_regs): Likewise.
25394 * combine.c (subst, make_compound_operation, known_cond,
25395 gen_rtx_combine, update_table_tick, get_last_value_validate,
25396 use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.
25398 * cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
25399 refers_to_p, canon_reg, fold_rtx, cse_process_notes,
25400 count_reg_usage): Likewise.
25402 * emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
25405 * final.c (leaf_renumber_regs_insn): Likewise.
25407 * flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
25408 dump_edge_info, count_reg_references): Likewise.
25410 * function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
25411 fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
25414 * gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
25415 oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
25416 add_label_notes): Likewise.
25418 * genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
25419 clear_struct_flag, count_sub_rtxs, count_alternatives,
25420 compares_alternatives_p, contained_in_p, walk_attr_value,
25421 write_expr_attr_cache): Likewise.
25423 * genconfig.c (walk_insn_part): Likewise.
25425 * genemit.c (max_operand_1, gen_exp): Likewise.
25427 * genextract.c (walk_rtx): Likewise.
25429 * genflags.c (num_operands): Likewise.
25431 * genoutput.c (scan_operands): Likewise.
25433 * genpeep.c (match_rtx): Likewise.
25435 * genrecog.c (add_to_sequence): Likewise.
25437 * haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
25440 * integrate.c (save_constants, copy_for_inline,
25441 copy_rtx_and_substitute, subst_constants, restore_constants):
25444 * jump.c (mark_jump_label, invert_exp, redirect_exp,
25445 rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.
25447 * local-alloc.c (contains_replace_regs, memref_referenced_p):
25450 * loop.c (record_excess_regs, rtx_equal_for_loop_p,
25451 add_label_notes, replace_call_address, count_nonfixed_reads,
25452 invariant_p, find_single_use_in_loop, find_mem_givs,
25453 find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
25456 * print-rtl.c (reg_names, print_rtx): Likewise.
25458 * recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.
25460 * reg-stack.c (stack_regs_mentioned_p, record_label_references,
25461 record_reg_life_pat, swap_rtx_condition, goto_block_pat,
25462 print_blocks): Likewise.
25464 * regclass.c (fix_register, record_address_regs,
25465 reg_scan_mark_refs): Likewise.
25467 * regmove.c (stable_but_for_p): Likewise.
25469 * reload.c (loc_mentioned_in_p, operands_match_p,
25470 find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
25471 copy_replacements, refers_to_regno_for_reload_p,
25472 refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
25473 reload_when_needed_name, reg_class_names, debug_reload_to_stream):
25476 * reload1.c (eliminate_regs, scan_paradoxical_subregs,
25477 delete_address_reloads_1, count_occurrences,
25478 reload_cse_mem_conflict_p, reload_combine_note_use,
25479 add_auto_inc_notes): Likewise.
25481 * resource.c (mark_referenced_resources, mark_set_resources):
25484 * rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
25485 reg_mentioned_p, regs_set_between_p, modified_between_p,
25486 modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
25487 rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
25488 may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
25489 jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.
25491 * sched.c (sched_analyze_2, attach_deaths): Likewise.
25493 * stupid.c (stupid_mark_refs): Likewise.
25495 * unroll.c (remap_split_bivs): Likewise.
25497 * varasm.c (mark_constants): Likewise.
25499 * a29k/a29k.c (uses_local_reg_p): Likewise.
25501 * alpha/alpha.c (summarize_insn): Likewise.
25503 * arm/arm.c (symbol_mentioned_p, label_mentioned_p,
25504 eliminate_lr2ip): Likewise.
25506 * arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.
25508 * i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
25509 reg_mentioned_in_mem): Likewise.
25511 * ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
25512 symbolic_reference_mentioned_p): Likewise.
25514 * romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.
25516 * sh/sh.c (regs_used, mark_use): Likewise.
25518 * vax/vax.c (vax_rtx_cost): Likewise.
25520 Fri Aug 20 18:38:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25522 * machmode.h (mode_name): Constify a char*.
25524 * rtl.c (mode_name): Likewise.
25526 * genopinit.c (gen_insn): Use accessor macro, not `mode_name'.
25528 * optabs.c (init_libfuncs): Constify a char*.
25530 * print-tree.c (mode_name): Remove redundant declaration.
25531 (print_node): Use accessor macro, not `mode_name'.
25533 * reload1.c (dump_needs): Constify a char*. Use accessor macro,
25535 (new_spill_reg): Constify a char*.
25537 * tree.c (mode_name): Remove redundant declaration.
25539 Fri Aug 20 18:31:26 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25541 * rtl.c (rtx_name): Constify a char*.
25543 * rtl.h (rtx_name, fix_sched_param): Likewise.
25545 * gmicro/gmicro.c (rtx_name): Remove redundant declaration.
25546 (mypr): Use accessor macro, not `rtx_name'.
25548 * genemit.c (print_code): Constify a char*.
25550 * genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.
25552 * genpeep.c (print_code): Constify a char*.
25554 * genrecog.c (print_code): Likewise.
25556 * graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
25557 end_bb): Add static prototype.
25558 (draw_edge): Constify a char*.
25559 (end_bb): Remove unused parameter.
25561 * haifa-sched.c (fix_sched_param, safe_concat, print_exp
25562 print_block_visualization): Constify a char*.
25564 Fri Aug 20 15:02:10 1999 Mark Mitchell <mark@codesourcery.com>
25566 * c-common.c (c_get_alias_set): Update comment.
25568 1999-08-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
25570 * linux.h (LIB_SPEC): Added.
25572 Fri Aug 20 22:32:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25574 * config/c4x/c4x.h (STARTFILE_SPEC): Don't def.
25576 1999-08-19 18:43 -0700 Zack Weinberg <zack@bitmover.com>
25578 * tree.c (expr_check): Fix typo in last change.
25580 1999-08-19 14:44 -0700 Zack Weinberg <zack@bitmover.com>
25582 * rtl.def (NOTE): Change format to "iuu0n".
25583 (ADDR_DIFF_VEC): Change format to "eEee0".
25584 (ADDRESSOF): Change format to "eit".
25586 * rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
25587 (RTVEC_ELT): Change to match.
25588 (XVECEXP): Use XVEC and RTVEC_ELT.
25589 (INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
25590 ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
25591 (PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
25592 CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
25593 TRAP_CONDITION, TRAP_CODE): Use XEXP.
25594 (INTVAL): Use XWINT.
25595 (ADDRESSOF_DECL): Use XTREE.
25596 (SET_ADDRESSOF_DECL): Delete.
25597 (NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
25598 NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill. These have been
25599 ifdefed out since 2.6 at least.
25600 (gen_rtvec_vv): Delete prototype.
25602 * rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
25604 (copy_most_rtx): Handle 't' format letter.
25605 * emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
25606 (gen_rtvec_vv): Delete function. All callers changed to use
25607 gen_rtvec_v instead.
25608 * print-rtl.c (print_rtx): Move special casing of NOTEs to
25609 the '0' format letter.
25611 * function.c (gen_mem_addressof): Don't use
25612 SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
25614 * integrate.c (copy_rtx_and_substitute): Likewise.
25615 Copy 't' slots with XTREE.
25616 (subst_constants): Treat 't' slots like '[swi]' slots.
25617 * cse.c (canon_hash, exp_equiv_p): Treat 't' slots like '0' slots.
25618 * jump.c (rtx_equal_for_thread_p): Likewise.
25619 * rtlanal.c (rtx_equal_p): Likewise.
25620 * stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
25621 only four arguments.
25622 * gengenrtl.c (type_from_format): Provide correct types for
25626 * tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
25627 If a recent gcc is in use (always in stage2 and beyond), use
25628 statement expressions, so we don't make a function call unless
25629 the check fails. Evaluate arguments exactly once.
25630 (CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
25631 TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
25633 (CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
25634 they evaluate their arguments exactly once, irrespective of
25635 the compiler in use.
25637 * tree.c [ENABLE_CHECKING]: Define whichever set of functions
25638 is used by the currently-enabled check macros. This is:
25639 (tree_check_failed, tree_class_check_failed): For gcc.
25640 (tree_check, tree_class_check, cst_or_constructor_check,
25641 expr_check): For other compilers.
25643 * gencheck.c: Do not define any *_CHECK1 macros.
25645 Thu Aug 19 14:42:38 1999 Mike Stump <mrs@wrs.com>
25646 Mark Mitchell <mark@codesourcery.com>
25648 * c-common.c (c_get_alias_set): Fix support for poitners and
25651 Thu Aug 19 11:51:22 EDT 1999 John Wehle (john@feith.com)
25653 * alias.c: Include tree.h.
25654 (nonlocal_reference_p, mark_constant_function): New functions.
25655 * flow.c (life_analysis): Call mark_constant_function.
25656 * rtl.h (mark_constant_function): Declare it.
25658 Thu Aug 19 15:02:01 1999 Nick Clifton <nickc@cygnus.com>
25660 * config/rs6000/rs6000.c (rs6000_override_options): Fix test for
25661 unrecognisable switches.
25663 Wed Aug 18 23:31:57 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25665 * loop.c (recombine_givs): Set ix field after sorting.
25666 (recombine_givs): Remove bogus index / giv lockstep looping.
25668 Wed Aug 18 18:20:40 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25670 * expmed.c (emit_store_flag): If UNSIGNEDP, call unsigned_condition
25672 (emit_store_flag_force): Use do_compare_rtx_and_jump.
25673 (do_cmp_and_jump): Formatting fixes.
25674 * expr.c (do_compare_and_jump): Renamed from compare; changed to call
25675 do_compare_rtx_and_jump instead of compare_from_rtx.
25676 (do_compare_rtx_and_jump): New function; mostly copied from
25678 (do_jump_for_compare): Delete.
25679 (expand_expr): Use do_compare_rtx_and_jump when handling MAX_EXPR and
25681 (do_jump): Use do_compare_and_jump or do_compare_rtx_and_jump instead
25682 of compare/do_jump_for_compare pairs.
25683 (do_jump_by_parts_greater): Use do_jump_by_parts_greater_rtx.
25684 (do_jump_by_parts_greater_rtx): Use do_compare_rtx_and_jump instead of
25685 compare_from_rtx/do_jump_for_compare pairs.
25686 (do_jump_by_parts_equality): Likewise.
25687 (do_jump_by_parts_equality_rtx): Likewise.
25688 * expr.h (do_compare_rtx_and_jump): Declare.
25689 * optabs.c (prepare_cmp_insn): New function, contains most of the code
25690 that used to be in emit_cmp_insn.
25691 (cmp_available_p): New function.
25692 (prepare_operand): New function.
25693 (emit_cmp_and_jump_insn_1): New function, contains some code that used
25694 to be in emit_cmp_insn.
25695 (prepare_float_lib_cmp): Renamed from emit_float_lib_cmp; change some
25696 parameters to be pointers; don't emit final compare but modify some of
25697 the values pointed to by the args so the caller can perform the
25698 correct comparison.
25699 (expand_binop): Call emit_store_flag_force with signed forms of
25701 (expand_abs): Use do_compare_rtx_and_jump instead of compare_from_rtx/
25702 emit_jump_insn pair.
25703 (emit_cmp_and_jump_insn): Use prepare_cmp_insn and
25704 emit_cmp_and_jump_insn_1. Call emit_queue.
25705 (emit_cmp_insn): Just call emit_cmp_and_jump_insns with zero for LABEL
25707 * flow.c (tidy_fallthru_edge): If HAVE_cc0, verify insn before a
25708 jump sets cc0 before deleting it.
25709 * integrate.c (expand_inline_function): Likewise.
25710 * unroll.c (unroll_loop): Similar changes in several places.
25711 (copy_loop_body): If HAVE_cc0, verify insn before a jump sets cc0
25712 before deleting it.
25714 Wed Aug 18 06:37:44 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25716 * Makefile.in (insn-recog.o): Update dependencies.
25717 * genrecog.c (main): Make generated file include "function.h".
25719 Sat Aug 14 00:54:57 1999 Geoffrey Keating <geoffk@cygnus.com>
25721 * cse.c (cse_insn): Call never_reached_warning when a jump is
25722 changed to be unconditional.
25723 * flags.h: Declare warn_notreached.
25724 * flow.c (delete_block): Call never_reached_warning when
25725 a block is deleted.
25726 * jump.c (delete_barrier_successors): Call never_reached_warning
25727 when we delete everything after a BARRIER.
25728 (never_reached_warning): New function.
25729 * rtl.h: Declare never_reached_warning.
25730 * toplev.c (warn_notreached): New variable.
25731 (lang_independent_options): Set warn_notreached
25732 when -Wunreachable-code.
25733 (compile_file): We need line numbers for -Wunreachable-code.
25735 Tue Aug 17 22:06:11 1999 Jan Hubicka <hubicka@freesoft.cz>
25737 * haifa-sched.c (insn_unit): Fix typo on out of range test.
25738 * sched.c (insn_unit): Likewise.
25740 Tue Aug 17 21:57:23 1999 Andreas Schwab <schwab@suse.de>
25742 * combine.c (distribute_notes): Handle REG_EH_RETHROW.
25744 Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
25746 * flow.c (create_edge_list): Use xmalloc, not malloc.
25748 Tue Aug 17 01:40:54 1999 Loren Rittle <ljrittle@acm.org>
25750 * fixinc/inclhack.def (no_double_slash): Do not trash single-line
25751 C-style comments. Do not lose the character before double slash.
25753 Mon Aug 16 18:08:22 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
25755 * basic-block.h (struct edge_list): Stucture to maintain a vector
25757 (EDGE_INDEX_NO_EDGE, EDGE_INDEX, INDEX_EDGE_PRED_BB, INDEX_EDGE_SUCC_BB,
25758 INDEX_EDGE, NUM_EDGES): New Macros for accessing edge list.
25759 (create_edge_list, free_edge-List, print_edge_list, verify_edge_list):
25760 New function prototypes.
25761 * flow.c (create_edge_list): Function to create an edge list.
25762 (free_edge_list): Discards memory used by an edge list.
25763 (print_edge_list): Debug output showing an edge list.
25764 (verify_edge_list): Internal consistency check for an edge list.
25765 (find_edge_index): Function to find an edge index for a pred and succ.
25767 Mon Aug 16 11:56:36 1999 Mark Mitchell <mark@codesourcery.com>
25769 * tree.c (type_hash_add): Use permalloc to allocate nodes in the
25772 Mon Aug 16 17:04:15 1999 Jorn Rennecke <amylaar@cygnus.co.uk>
25774 * mips.h (CLASS_CANNOT_CHANGE_SIZE): Define.
25776 Fri Aug 13 15:20:43 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
25778 * config/i386/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
25780 Fri Aug 13 10:21:28 1999 Nick Clifton <nickc@cygnus.com>
25782 * toplev.c (rest_of_compilation): Allow machine dependent
25783 reorganisation pass to place information into the RTL dump
25784 file if it so wishes.
25786 Sun Aug 15 12:41:21 1999 Jim Wilson <wilson@cygnus.com>
25788 * explow.c (hard_function_value): Use VOIDmode instead of
25790 * stmt.c (expand_return): Likewise.
25791 * stor-layout.c (get_best_mode): Likewise.
25793 * genemit.c (gen_expand): If next is MATCH_PAR_DUP, then output
25794 emit call instead of emit_insn call.
25796 Sat Aug 14 15:04:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
25798 * configure.in: Handle --disable/enable-win32-registry.
25799 * install.texi: Document --disable/enable-win32-registry.
25800 * acconfig.h (ENABLE_WIN32_REGISTRY): New macro.
25801 (WIN32_REGISTRY_KEY): New macro.
25802 * prefix.c: Use to enable/disable win32-specific code.
25803 (lookup_key): Use versioned key.
25804 * configure: Regenerate.
25805 * config.in: Likewise.
25807 Fri Aug 13 17:41:55 1999 Jason Merrill <jason@yorick.cygnus.com>
25809 * cpplib.c (read_line_number): New fn, split out of...
25812 Fri Aug 13 14:18:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
25814 tree.c (lang_unsave_expr_now) : New.
25815 (unsave_expr_now): Call lang_unsave_expr_now.
25816 tree.h (lang_unsave_expr_now) : New.
25818 Fri Aug 13 00:49:46 1999 Jason Merrill <jason@yorick.cygnus.com>
25820 * toplev.c (flag_new_exceptions): On by default.
25822 1999-08-13 Michael Meissner <meissner@cygnus.com>
25824 * Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B.
25826 Fri Aug 13 01:29:57 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
25828 * dwarfout.c (fundamental_type_code): Return FT_boolean for
25829 INTEGER_TYPE with precision==1, it's __java_boolean.
25831 Thu Aug 12 23:51:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25833 * global.c (prune_preferences): Move some invariants out of the
25836 Thu Aug 12 15:30:29 1999 Jesse Perry (jap@unx.dec.com)
25838 * configure.in (alpha*-dec-osf*): Add osf5.
25840 Sun Aug 1 22:24:03 1999 Philip Blundell <philb@gnu.org>
25842 * configure.in: Rework handling of ARM GNU/Linux slightly.
25843 (arm*-*-linux-gnuoldld): New target.
25844 * configure: Regenerate.
25845 * install.texi (Configurations): Add arm-*-linux-gnu{oldld} and
25846 arm-*-elf. Mention that arm-*-linux-gnuaout is obsolete.
25847 * config/arm/linux-oldld.h: New file.
25848 * config/arm/linux-elf26.h: Don't include linux-elf.h.
25849 (TARGET_DEFAULT, SUBTARGET_LINK_SPEC, SUBTARGET_EXTRA_ASM_SPEC):
25851 * config/arm/linux-elf.h (ASM_SPEC): Define.
25852 (TARGET_DEFAULT, SUBTARGET_EXTRA_LINK_SPEC,
25853 SUBTARGET_EXTRA_ASM_SPEC, CPP_APCS_PC_DEFAULT): Add definitions
25854 for 26-bit APCS and old linker.
25855 (CPP_PREDEFINES): Define `__arm__'; don't define `arm' or
25857 (FP_DEFAULT): Define to FP_SOFT3 for all machines.
25858 * config/arm/linux-aout.h (CPP_PREDEFINES): Define `__arm__';
25859 don't define `arm' or `arm_elf'.
25860 * config/arm/t-linux (EXTRA_MULTILIB_PARTS, MULTILIB_OPTIONS,
25861 MULTILIB_DIRNAMES): Define. Fix typo in comment.
25863 Thu Aug 12 10:14:47 1999 Andreas Schwab <schwab@suse.de>
25865 * rtl.texi: Fix typo.
25867 Wed Aug 11 23:50:57 1999 Jason Merrill <jason@yorick.cygnus.com>
25869 * invoke.texi (C++ Dialect Options): Add -fms-extensions.
25871 Wed Aug 11 12:59:37 1999 Mark Mitchell <mark@codesourcery.com>
25873 * extend.texi (C++ Signatures): Remove node.
25874 * invoke.texi: Remove discussion of -fhandle-signatures,
25875 signature, sigof, __signature__, and __sigof__.
25877 Wed Aug 11 03:38:25 1999 Jeffrey A Law (law@cygnus.com)
25879 * Makefile.in (JAVAGC): Removed.
25881 Wed Aug 11 02:13:26 1999 Mumit Khan <khan@xraylith.wisc.edu>
25883 * i386/cygwin.h (ASM_OUTPUT_ALIGNED_BSS): Define.
25885 1999-08-11 Mark Elbrecht <snowball3@bigfoot.com>
25887 * i386/djgpp.h (ASM_OUTPUT_ALIGNED_BSS): Define.
25889 1999-08-11 Richard Earnshaw (rearnsha@arm.com)
25891 * emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
25892 a register that is already known to be a pointer.
25894 1999-08-11 Bruce Korb <ddsinc09@ix.netcom.com>
25896 * fixinc/inclhack.tpl: Only install assert.h conditionally.
25897 * fixinc/inclhack.sh: Regenerated.
25898 * fixinc/fixincl.sh: Regenerated.
25900 Wed Aug 11 00:34:22 1999 Joe Buck <jbuck@synopsys.com>
25902 * invoke.texi: s/GNU CC/GCC/ for consistency with gcc.texi.
25903 Fix documentation of -ansi flag to describe its C++ behavior.
25904 Remove bogus reference to GCC 2.9.
25906 Tue Aug 10 17:19:02 1999 Jim Wilson <wilson@cygnus.com>
25908 * config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on
25909 note if it is non-NULL.
25911 Tue Aug 10 10:47:42 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
25913 * except.h (eh_nesting_info): Add new structure defintion.
25914 (init_eh_nesting_info, free_eh_nesting_info): Add function prototypes.
25915 (reachable_handlers, update_rethrow_references): Add function
25917 * rtl.h (struct rtvec_def): Update comments. REG_EH_RETHROW takes
25918 a rethrow symbol instead of an integer exception region number.
25919 * flow.c (Make_edges): Use new exception nesting routines to determine
25920 which handlers are reachable from a CALL or asynchronous insn.
25921 Dont add an edge for calls with a REG_EH_REGION of -1 to non-local
25923 (delete_eh_regions): Update rethrow labels, and don't delete
25924 regions which are the target of a rethrow.
25925 * except.c (struct func_eh_entry): Add rethrow_ref field, now we can
25926 avoid overloading the SYMBOL_REF_USED flag.
25927 (rethrow_symbol_map): Use new rethrow_ref field.
25928 (rethrow_used): Use new rethrow_ref field.
25929 (expand_rethrow): REG_EH_RETHROW now has a SYMBOL_REF instead
25930 of an integer. Fix formatting.
25931 (output_exception_table_entry): Use new rethrow_ref field.
25932 (can_throw): Check for EH_REGION_NOTE before deciding
25933 whether a CALL can throw or not.
25934 (scan_region): Call rethrow_used() instead of accessing data structure.
25935 (update_rethrow_references): New function to make sure only regions
25936 which are still targets of a rethrow are flagged as such.
25937 (process_nestinfo): New static function to initialize a handler
25938 list for a specific region.
25939 (init_eh_nesting_info): New function to allocate and initialize
25940 the list of all EH handlers reachable from all regions.
25941 (reachable_handlers): New function to retrieve the list of handlers
25942 reachable from a specific region and insn.
25943 (free_eh_nesting_info): New function to dispose of a list of
25944 reachable handlers.
25946 Tue Aug 10 10:39:31 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
25948 * flow.c (split_edge): Set JUMP_LABEL field.
25949 (commit_one_edge_insertion): Set head correctly for insert_before.
25950 When inserting insns, update insn block numbers if allocated.
25952 Tue Aug 10 09:26:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25954 * dwarf2out.c (dwarf2out_frame_debug_expr, add_incomplete_type,
25955 retry_incomplete_types): Add static prototype.
25956 (stripattributes, dwarf_cfi_name, ASM_OUTPUT_DWARF_STRING,
25957 dwarf_tag_name, dwarf_attr_name, dwarf_form_name,
25958 dwarf_stack_op_name, dwarf_type_encoding_name, add_AT_string,
25959 dwarf2_name, add_name_attribute, lookup_filename, dwarf2out_line,
25960 dwarf2out_start_source_file, dwarf2out_define, dwarf2out_undef):
25963 * dwarf2out.h (dwarf2out_define, dwarf2out_undef,
25964 dwarf2out_start_source_file, dwarf2out_line): Likewise.
25966 Tue Aug 10 09:21:46 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25968 * output.h (assemble_name): Constify a char*.
25970 * varasm.c (UNIQUE_SECTION, assemble_start_function,
25971 assemble_variable, assemble_name): Likewise.
25973 * dwarf2out.c (ASM_NAME_TO_STRING): Likewise.
25975 * arm/pe.c (arm_pe_unique_section): Likewise.
25977 * i386/cygwin.h (STRIP_NAME_ENCODING): Likewise.
25979 * i386/i386-interix.h (STRIP_NAME_ENCODING): Likewise.
25981 * i386/interix.c (i386_pe_unique_section): Likewise.
25983 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
25985 * i386/winnt.c (i386_pe_unique_section): Likewise.
25987 * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise.
25989 * mn10200/mn10200.h (ASM_OUTPUT_LABELREF): Likewise.
25991 * mn10300/mn10300.h (ASM_OUTPUT_LABELREF): Likewise.
25993 * pa/pa.c (output_call): Likewise.
25995 * pa/pa.h (ASM_OUTPUT_MI_THUNK): Likewise.
25997 * pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
25999 * rs6000/rs6000.c (rs6000_output_load_toc_table, output_toc):
26002 * rs6000/rs6000.h (RS6000_OUTPUT_BASENAME, STRIP_NAME_ENCODING):
26005 * rs6000/sol2.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
26007 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_INT,
26008 STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Likewise.
26010 * v850/v850.h (ASM_OUTPUT_LABELREF): Likewise.
26012 Mon Aug 9 19:54:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26014 * real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy.
26016 Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26018 * tree.h (lang_identify): Constify a char*.
26019 (print_error_function): Add extern prototype. Constify a char*.
26021 * c-lang.c (lang_identify): Constify a char*.
26023 * objc/objc-act.c (lang_identify): Constify a char*.
26025 Mon Aug 9 16:21:53 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26027 * genpeep.c (main): Make generated file include "function.h".
26028 * arm.c (function_really_clobbers_lr): Delete INLINE_HEADER case.
26030 Mon Aug 9 10:08:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26032 * Makefile.in: Update dependencies.
26033 * alias.c: Include "function.h"
26034 * c-decl.c: Likewise.
26035 * caller-save.c: Likewise.
26036 * calls.c: Likewise.
26037 * combine.c: Likewise.
26039 * explow.c: Likewise.
26040 * final.c: Likewise.
26041 * global.c: Likewise.
26042 * graph.c: Likewise.
26043 * local-alloc.c: Likewise.
26044 * loop.c: Likewise.
26045 * optabs.c: Likewise.
26046 * profile.c: Likewise.
26047 * recog.c: Likewise.
26048 * regclass.c: Likewise.
26049 * regmove.c: Likewise.
26050 * reload.c: Likewise.
26051 * reorg.c: Likewise.
26052 * resource.c: Likewise.
26053 * sched.c: Likewise.
26054 * stupid.c: Likewise.
26055 * config/1750a/1750a.c: Likewise.
26056 * config/a29k/a29k.c: Likewise.
26057 * config/arc/arc.c: Likewise.
26058 * config/arm/arm.c: Likewise.
26059 * config/arm/thumb.c: Likewise.
26060 * config/c4x/c4x.c: Likewise.
26061 * config/clipper/clipper.c: Likewise.
26062 * config/convex/convex.c: Likewise.
26063 * config/fx80/fx80.c: Likewise.
26064 * config/i860/i860.c: Likewise.
26065 * config/m68k/m68k.c: Likewise.
26066 * config/m88k/m88k.c: Likewise.
26067 * config/mips/mips.c: Likewise.
26068 * config/pdp11/pdp11.c: Likewise.
26069 * config/pyr/pyr.c: Likewise.
26070 * config/romp/romp.c: Likewise.
26071 * config/sh/sh.c: Likewise.
26072 * config/tahoe/tahoe.c: Likewise.
26073 * config/vax/vax.c: Likewise.
26074 * config/we32k/we32k.c: Likewise.
26075 * config/sparc/sparc.c: Include "function.h".
26076 (mem_min_alignment): Test current_function rather than
26077 regno_pointer_align.
26078 * config/pa/pa.c: Likewise.
26079 (compute_frame_size): Delete declaration of
26080 current_function_outgoing_args_size.
26081 * config/arc/arc.h (current_function_varargs): Delete declaration.
26082 * config/elxsi/elxsi.h (current_function_calls_alloca): Delete
26084 * config/i370/i370.h (current_function_outgoing_args_size): Delete
26086 * config/i386/i386.h (FINALIZE_PIC): Delete declaration of
26087 current_function_uses_pic_offset_table.
26088 * config/m68k/a-ux.h (FUNCTION_EXTRA_EPILOGUE): Delete declaration
26089 of current_function_returns_pointer.
26090 * config/m68k/altos3068.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
26091 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
26092 * config/m68k/m68kv4.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
26093 * config/m68k/mot3300.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
26094 * config/m68k/pbb.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
26095 * config/m68k/tower-as.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
26096 * config/m88k/m88k.c: Include "function.h"
26097 (call_used_regs, current_function_pretend_args_size,
26098 current_function_outgoing_args_size, frame_pointer_needed): Delete
26100 * config/m88k/m88k.h (current_function_pretend_args_size): Delete
26102 * config/mips/mips.h (current_function_calls_alloca): Delete
26104 * config/mn10200/mn10200.h (current_function_needs_context,
26105 rtx_equal_function_value_matters): Delete declarations.
26106 * config/ns32k/ns32k (current_function_uses_pic_offset_table,
26107 flag_pic): Delete declarations.
26108 * config/pa/pa.h (current_function_pretend_args_size,
26109 current_function_decl): Delete declarations.
26110 * config/pa/som.h (current_function_varargs): Delete declaration.
26111 * config/pdp11/pdp11.h (current_function_pretend_args_size): Delete
26113 * config/pyr/pyr.h (current_function_pretend_args_size,
26114 current_function_args_size, current_function_calls_alloca): Delete
26116 * config/sh/sh.h (current_function_varargs): Delete declaration.
26117 * config/sparc/sparc.h (current_function_outgoing_args_size,
26118 current_function_calls_alloca, current_function_decl): Delete
26120 * config/spur/spur.h (current_function_pretend_args_size,
26121 current_function_calls_alloca): Delete declarations.
26122 * config/v850/v850.c (current_function_outgoing_args_size): Delete
26124 * config/vax/vms.h (current_function_name): Delete declaration.
26125 * gcse.c: Include "function.h".
26126 (current_function_name, current_function_calls_setjmp): Delete
26128 * haifa-sched.c: Include "function.h".
26129 (forced_labels): Delete declaration.
26130 * jump.c: Likewise.
26131 * reg-stack.c: Likewise.
26132 * reload1.c: Likewise.
26133 * genemit.c (main): Make generated file include function.h.
26134 * genoutput.c (output_prologue): Likewise.
26136 * builtins.c (saveregs_value, apply_args_value): Delete variables.
26137 * emit-rtl.c (reg_rtx_no, first_label_num, first_insn, last_insn,
26138 sequence_rtl_expr, cur_insn_uid, last_linenum, last_filename,
26139 regno_pointer_flag, regno_pointer_flag_length, regno_pointer_align,
26140 regno_reg_rtx, sequence_stack): Delete variables. Add accessor
26141 macros for some of them.
26142 (emit_filename, emit_lineno): Delete declarations.
26143 (gen_reg_rtx): Use memset/memcpy instead of bzero/bcopy. Access
26144 regno_pointer_* variables through current_function.
26145 (gen_inline_header_rtx): Delete function.
26146 (save_emit_status): Delete function.
26147 (set_new_last_label_num): New function.
26148 (clear_emit_caches): New function.
26149 (restore_emit_status): Just clear last_labelnum and call
26151 (get_last_insn_anywhere): Variable sequence_stack is now accessed
26152 through macro seq_stack.
26153 (add_insn_after): Likewise.
26154 (add_insn_before): Likewise.
26155 (remove_insn): Likewise.
26156 (pop_topmost_sequence): Likewise.
26157 (in_sequence_p): Likewise.
26158 (start_sequence_for_rtl_expr): Likewise.
26159 (start_sequence): Likewise, and likewise for
26160 sequence_rtl_expr/seq_rtl_expr.
26161 (push_topmost_sequence): Likewise.
26162 (end_sequence): Likewise.
26163 (init_virtual_regs): Now takes a "struct emit_status *" argument.
26164 All callers changed. Store into that pointer instead of globals.
26165 (init_emit): Allocate emit elt of current_function.
26166 Changes for sequence_rtl_expr/sequence_stack renaming.
26167 Call clear_emit_caches instead of doing it in-line.
26168 Access regno_pointer_* variables through current_function.
26169 (init_emit_once) Don't clear sequence_stack.
26171 * expr.c (pending_stack_adjust, inhibit_defer_pop, pending_chain):
26173 (arg_pointer_save_area): Delete declaration.
26174 (finish_expr_for_function): Renamed from init_queue; no longer static.
26175 (init_expr): Don't call init_queue.
26176 (save_expr_status, restore_expr_status): Delete functions.
26177 (expand_expr): Changes to reflect new layout of struct function.
26178 Don't access current_function_check_memory_usage when current_function
26180 * expr.h (forced_labels, save_expr_regs, saveregs_value,
26181 apply_args_value, current_function_calls_alloca, inhibit_defer_pop,
26182 current_function_outgoing_args_size, current_function_arg_offset_rtx,
26183 current_function_uses_const_pool, function_call_count,
26184 current_function_uses_pic_offset_table, nonlocal_labels,
26185 current_function_internal_arg_pointer, nonlocal_goto_stack_level,
26186 current_function_check_memory_usage, nonlocal_goto_handler_slots,
26187 pending_stack_adjust, target_temp_slot_level, temp_slot_level): Delete
26189 (finish_expr_for_function): Declare.
26190 * flags.h (current_function_has_nonlocal_label,
26191 current_function_has_nonlocal_goto, current_function_is_thunk,
26192 current_function_has_computed_jump): Delete declarations.
26193 * flow.c (forced_labels): Delete declaration.
26194 * function.c (current_function_pops_args,
26195 current_function_returns_struct, current_function_returns_pcc_struct,
26196 current_function_needs_context, current_function_calls_setjmp,
26197 current_function_calls_longjmp, current_function_has_nonlocal_label,
26198 current_function_has_nonlocal_goto, current_function_is_thunk,
26199 current_function_has_computed_jump, current_function_calls_alloca,
26200 current_function_contains_functions, current_function_returns_pointer,
26201 current_function_epilogue_delay_list, current_function_args_size,
26202 current_function_pretend_args_size, current_function_arg_offset_rtx,
26203 current_function_outgoing_args_size, current_function_varargs,
26204 current_function_stdarg, current_function_args_info, cleanup_label,
26205 current_function_name, current_function_uses_const_pool,
26206 current_function_instrument_entry_exit, current_function_return_rtx,
26207 current_function_uses_pic_offset_table, nonlocal_labels,
26208 current_function_internal_arg_pointer, current_function_cannot_inline,
26209 current_function_check_memory_usage, function_call_count,
26210 nonlocal_goto_handler_slots, nonlocal_goto_handler_labels,
26211 nonlocal_goto_stack_level, return_label, save_expr_regs,
26212 stack_slot_list, rtl_expr_chain, tail_recursion_label, temp_slots,
26213 tail_recursion_reentry, arg_pointer_save_area, frame_offset,
26214 context_display, trampoline_list, parm_birth_insn, invalid_stack_slot,
26215 last_parm_insn, max_parm_reg, parm_reg_stack_loc, sequence_rtl_expr,
26216 temp_slot_level, var_temp_slot_level, target_temp_slot_level):
26218 (push_function_context_to): Don't save them. Don't call
26219 save_storage_status, save_emit_status or save_expr_status.
26220 (pop_function_context_from): Don't restore them. Don't call
26221 restore_storage_status or restore_expr_status.
26222 (get_func_frame_size): New function.
26223 (get_frame_size): Use it.
26224 (assign_outer_stack_local): Reflect some member name changes in struct
26226 (put_reg_into_stack): Likewise.
26227 (assign_stack_temp_for_type): sequence_rtl_expr was renamed to
26229 (fixup_var_refs): Likewise.
26230 (fix_lexical_addr): Likewise.
26231 (trampoline_address): Likewise.
26232 (prepare_function_start): Clear field inlinable of current_function.
26233 (init_function_for_compilation): New function.
26234 (expand_dummy_function_end): New function.
26235 (expand_function_end): Call finish_expr_for_function.
26236 * function.h (struct emit_status): New; fields moved here from struct
26237 function and from global variables. Add accessor macros for some of
26239 (struct expr_status): Likewise.
26240 (REGNO_POINTER_ALIGN, REGNO_POINTER_FLAG): Moved here from regs.h.
26241 (struct function): Add fields expr and emit, inlinable, inl_emit,
26242 original_arg_vector, original_decl_initial, inl_last_parm_insn,
26243 inl_max_label_num. Add many comments.
26244 Add accessor macros for all elts of struct function that no longer
26245 have a global variable.
26246 (cleanup_label, return_label, frame_offset, tail_recursion_label,
26247 tail_recursion_reentry, arg_pointer_save_area, rtl_expr_chain,
26248 stack_slot_list): Delete declarations.
26249 (get_func_frame_size): Declare.
26250 (save_expr_status, restore_expr_status, save_emit_status,
26251 save_storage_status, restore_storage_status): Delete declarations.
26252 (init_virtual_regs): Declare.
26253 * output.h (current_function_pops_args,
26254 current_function_returns_struct, current_function_returns_pcc_struct,
26255 current_function_needs_context, current_function_calls_setjmp,
26256 current_function_calls_longjmp, current_function_calls_alloca,
26257 current_function_has_nonlocal_label, current_function_varargs,
26258 current_function_has_computed_jump, current_function_returns_pointer,
26259 current_function_contains_functions, current_function_args_size,
26260 current_function_pretend_args_size, current_function_stdarg,
26261 current_function_outgoing_args_size, current_function_args_info,
26262 current_function_name, current_function_return_rtx,
26263 current_function_epilogue_delay_list,
26264 current_function_uses_const_pool, current_function_cannot_inline):
26265 Delete declarations.
26266 * regs.h (reg_rtx_no, regno_pointer_flag, regno_pointer_flag_length,
26267 regno_reg_rtx): Delete declaration.
26268 (REGNO_POINTER_FLAG): Delete macro.
26269 * stmt.c (expand_goto): Changes to reflect that some fields in struct
26270 function were renamed.
26271 * stor-layout.c (save_storage_status, restore_storage_status): Delete
26273 * toplev.c: Include "function.h".
26274 (current_function_decl): Delete declaration.
26275 (compile_file): Call init_dummy_function_start and
26276 expand_dummy_function_end around some initializations that need to
26278 (rest_of_compilation): Use DECL_SAVED_INSNS properly.
26279 Call init_function_for_compilation.
26280 * unroll.c: Include "function.h"
26281 (unroll_loop): Access regno_pointer_* variables through
26284 * tree.h (struct tree_decl): Add elt f to saved_insns member.
26285 (DECL_SAVED_INSNS): use it.
26286 (expand_dummy_function_end): Declare.
26287 (init_function_for_compilation): Declare.
26288 * calls.c (calls_function_1): Change use of DECL_SAVED_INSNS now
26289 that it's no longer an INLINE_HEADER.
26290 (expand_call): Likewise.
26291 * integrate.c (finish_inline): Delete function.
26292 (max_parm_reg, parm_reg_stack_loc): Delete declarations.
26293 (initialize_for_inline): Delete min_labelno, max_labelno and max_reg
26294 args. Don't generate an INLINE_HEADER rtx, just return the arg
26295 vector. All callers changed.
26296 (save_for_inline_copying): Create a duplicate struct emit_status to
26297 hold the emit state for compiling the current function. Use this and
26298 the other new fields in struct function that are for integration
26299 instead of an INLINE_HEADER.
26300 Use memcpy instead of bcopy.
26301 Store the current struct function in DECL_SAVED_INSNS of fndecl.
26302 (save_for_inline_nocopy): Similar changes, except no new emit_status
26304 (expand_inline_function): Get information from function structure,
26305 not from an inline header rtx.
26306 (output_inline_function): Lose code to extract the necessary
26307 information from an inline header; simply put back the function
26308 structure into current_function. Clear its inlinable elt.
26309 * rtl.def (INLINE_HEADER): Delete.
26310 * rtl.h: Delete all accessors for an INLINE_HEADER.
26311 (gen_inline_header_rtx): Delete declaration.
26312 (regno_reg_rtx, regno_pointer_align, nonlocal_goto_handler_labels):
26313 Delete declarations.
26314 (REGNO_POINTER_ALIGN): Delete.
26315 (clear_emit_caches): Declare.
26316 (set_new_last_label_num): Declare.
26318 Mon Aug 9 01:52:24 1999 Jason Merrill <jason@yorick.cygnus.com>
26320 * print-tree.c (print_node): Print base for OFFSET_TYPEs.
26322 * except.c (expand_eh_region_start_for_decl): Always start a new block.
26323 * stmt.c (is_eh_region): Make sure current_function is present, too.
26325 Mon Aug 9 01:15:24 1999 Jeffrey A Law (law@cygnus.com)
26327 * pa.h (HARD_REGNO_MODE_OK): Correctly handle FPregs, even when
26328 for 64bit PA targets.
26330 * pa.h (SELECT_SECTION): Define.
26331 * som.h (SELECT_SECTION): Delete.
26333 Sun Aug 8 15:13:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26335 * alias.c (init_alias_analysis): Wrap call to
26336 `prologue_epilogue_contains' within HAVE_prologue||HAVE_epilogue.
26338 1999-08-07 Bruce Korb <autogen@linuxbox.com>
26340 * fixinc/inclhack.def(irix_asm_apostrophe): IRIX 5.2's
26341 <sys/asm.h> contains an asm comment with an apostrophe
26342 * fixinc/inclhack.sh: regen
26343 * fixinc/fixincl.x: regen
26345 Sat Aug 7 19:37:07 1999 Richard Henderson <rth@cygnus.com>
26347 * function.c (init_function_start): Clear prologue & epilogue.
26348 (prologue_epilogue_contains): New function.
26349 * alias.c (init_alias_analysis): Use it.
26350 * rtl.h (prologue_epilogue_contains): Declare it.
26352 Sat Aug 7 19:32:16 1999 Richard Henderson <rth@cygnus.com>
26354 * jump.c (onlyjump_p): New function.
26355 * rtl.h: Declare it.
26356 * flow.c (delete_unreachable_blocks): Use onlyjump_p instead
26357 of condjump_p in calling tidy_fallthru_edge and merge_blocks.
26359 Sat Aug 7 17:09:36 1999 Richard Henderson <rth@cygnus.com>
26361 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_REG_SET
26362 to invert loops. Simplify block scanning.
26364 Sat Aug 7 02:11:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26366 * gcse.c (hash_scan_set): Treat SYMBOL_REFs like CONST_INTs.
26367 (cprop_insn): Treat SYMBOL_REFs like CONST_INTs.
26369 1999-08-07 Jonathan Larmour <jlarmour@cygnus.co.uk>
26371 * config/sparc/liteelf.h: New file to support sparclite-elf target
26372 * config/sparc/t-sp86x: New file to support sparc86x targets
26373 * config/sparc/sp86x-aout.h: New file to support sparc86x-aout target
26374 * config/sparc/sp86x-elf.h: New file to support sparc86x-elf target
26375 * configure.in: Support above target triplets
26376 * configure: Regenerated
26378 Sat Aug 7 01:39:27 1999 Philippe De Muyter <phdm@macqel.be>
26380 * fixinc/server.c (server_setup): Do not prefix function used as
26381 parameter with `&'.
26383 Sat Aug 7 00:21:20 1999 Richard Henderson <rth@cygnus.com>
26385 * alpha.md (movhi and movqi patterns): Correct predicate for !BWX.
26386 Remove fp reg alternatives.
26388 Sat Aug 7 00:06:54 1999 Jeffrey A Law (law@cygnus.com)
26390 * Makefiin (TAROUTOPTS): Kill.
26391 (install-headers-tar): Use "xpf" for tar headerfile extraction
26392 * i370/x-oe (TAROUTOPTS): Delete.
26393 * m68k/x-apollo68 (TAROUTOPTS): Delete.
26394 * m68k/x-hp320 (TAROUTOPTS): Delete.
26395 * m68k/x-hp320g (TAROUTOPTS): Delete.
26396 * gcc.texi: Update bug reporting text.
26398 1999-08-6 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
26400 * reg-stack.c (change_stack) Fixed problem with negative array index.
26402 Fri Aug 6 23:08:44 1999 Jeffrey A Law (law@cygnus.com)
26404 * extend.texi, install.texi: Fix spelling mistakes.
26406 * Makefile.in (PREMADE_ATTRTAB_MD, PREMADE_ATTRTAB): Delete.
26407 (s-attrtab); No longer try to use pre-made insn-attrtab file.
26408 * mips/t-bsd: Delete references to obsolete PREMADE_ATTRTAB and
26409 PREMADE_ATTRTAB_MD.
26410 * mips/t-ecoff: Likewise.
26411 * mips/t-elf: Likewise.
26412 * mips/t-mips: Likewise.
26413 * mips/t-osfrose: Likewise.
26414 * mips/t-r3900: Likewise.
26415 * mips/t-svr3: Likewise.
26416 * mips/t-svr4: Likewise.
26417 * mips/t-ultrix: Likewise.
26419 * gcc.texi: Document recommend means to provide software floating
26420 point libraries in libgcc.a
26422 1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
26424 * c-lex.c (yylex): We can have a number with no digits.
26426 Fri Aug 6 16:53:55 EDT 1999 John Wehle (john@feith.com)
26428 * jump.c (delete_prior_computation): New function, broken
26429 out of delete_computation. Check for side effects with
26430 side_effects_p instead of FIND_REG_INC_NOTE. Handle
26431 multi-word hard registers.
26432 (delete_computation): Use it. Check for side effects with
26433 side_effects_p instead of FIND_REG_INC_NOTE. Synthesize a
26434 missing REG_DEAD note for a register which is both set and
26437 Fri Aug 6 11:05:29 1999 Jeffrey A Law (law@cygnus.com)
26439 * elf.h (TEXT_SPACE_P, FUNCTION_NAME_P): Delete.
26440 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT): Likewise.
26441 (ASM_FILE_START): Import _mcount with the right type.
26442 (ASM_DECLARE_FUNCTION_NAME): Define.
26443 (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
26444 * pa.c (output_function_prologue): Always emit the function's label
26446 * pa.h (TEXT_SPACE_P): Define.
26447 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
26448 (ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT, ASM_GLOBALIZE_LABEL): Likewise.
26449 * som.h (TEXT_SPACE_P): Delete.
26450 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
26451 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT): Likewise.
26453 Thu Aug 5 19:29:39 1999 Jim Wilson <wilson@cygnus.com>
26455 * expr.c (emit_group_load): Allow src to be a CONCAT.
26457 Thu Aug 5 22:27:15 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26459 * config/sh/lib1funcs.asm (___movstrSI0): Change or r0,r0,r0 to nop.
26460 (___mulsi3): Use '!' comment character.
26462 Thu Aug 5 13:34:14 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26464 * reload1.c (maybe_fix_stack_asms): Also declare P as "const char *".
26466 Thu Aug 5 02:40:42 1999 Jeffrey A Law (law@cygnus.com)
26468 * gcc.c: Update URLs and mail addresses.
26469 * gcc.texi: Likewise.
26471 Thu Aug 5 01:14:13 1999 Daniel Jacobowitz <drow@false.org>
26473 * rs6000.c (current_file_function_operand): Return zero for
26475 (rs6000_encode_section_info): Do not set SYMBOL_REF_FLAG for
26477 * rs6000.h (ENCODE_SECTION_NIFO): Do not set SYMBOL_REF_FLAG
26480 Thu Aug 5 00:56:30 1999 Geoffrey Keating <geoffk@cygnus.com>
26482 * rs6000.c (rs6000_stack_info): For ABI_V4/ABI_SOLARIS -fpic, always
26483 allocate space in the stack frame for the PIC register.
26485 Thu Aug 5 00:20:47 1999 Jeffrey A Law (law@cygnus.com)
26487 * m68k.md (xordi3, anddi3): These patterns are not available on
26490 Wed Aug 4 23:39:20 1999 Mark Mitchell <mark@codesourcery.com>
26492 * real.c (GET_REAL): Don't violate ANSI/ISO aliasing rules.
26493 (PUT_REAL): Likewise.
26495 Wed Aug 4 20:45:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26497 * final.c (shorten_branches): Don't add an alignment for loops
26498 that have no label inside.
26500 Wed Aug 4 16:39:24 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26502 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp): Wrap
26503 prototypes in macro HAVE_cmpstrsi.
26505 * cpplib.c (cpp_get_token): Remove unused label `op3'.
26507 * emit-rtl.c (operand_subword): Remove unused variable
26510 * rtl.c (shallow_copy_rtx): Remove unused variable `format_ptr'.
26512 * tree.c (chainon): Wrap variable `t2' in macro ENABLE_CHECKING.
26514 Wed Aug 4 13:29:23 1999 Zack Weinberg <zack@bitmover.com>
26516 * cpphash.c (macroexpand): Delete leading whitespace when arg
26517 is concatenated before.
26518 (unsafe_chars): Correct test for whether + and - can extend a
26521 * cppinit.c (cpp_start_read): Do dependencies for
26522 -include/-imacros files also.
26524 * cpplib.c (cpp_scan_buffer): In no-output mode, don't bother
26525 tokenizing non-directive lines.
26526 (cpp_expand_to_buffer): Temporarily disable no-output mode.
26527 * cppmain.c: In no-output mode, just call cpp_scan_buffer for
26530 Wed Aug 4 12:53:44 1999 Jason Merrill <jason@yorick.cygnus.com>
26532 * expr.c (expand_expr, case PLUS_EXPR): Fix parallel case, too.
26534 * c-lex.c: Sync with C++ frontend.
26535 (linemode): New variable.
26536 (parse_float): imag, conversion_errno, and type are output only.
26537 (yylex): Adjust. Move initial '.' case into main switch.
26539 (handle_generic_pragma): Just deal with tokens.
26540 (readescape): Use ISXDIGIT and ISGRAPH.
26541 * c-parse.in: Add END_OF_LINE token.
26543 * c-lex.c (lang_init): Generalize.
26544 (nextchar): Remove. Replace uses with UNGETC.
26545 (skip_white_space): Handle linemode here. Optimize for cpplib.
26546 (skip_white_space_on_line): Remove.
26547 (extend_token_buffer_to): New fn.
26548 (extend_token_buffer): Use it.
26549 (read_line_number, check_newline): Just deal with tokens.
26550 (token_getch, token_put_back): New fns.
26551 (yylex): Use them. More cpplib optimizations. Simplify.
26553 Wed Aug 4 12:53:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
26554 Jason Merrill <jason@yorick.cygnus.com>
26556 * c-lex.c (init_parse): Set cpp_token to CPP_DIRECTIVE.
26557 (consume_string): Make this smart about USE_CPPLIB.
26558 (check_newline): Rewrite to be intelligent about USE_CPPLIB.
26559 (yylex): Rewrite to be intelligent about USE_CPPLIB.
26560 Also, clean up cases where we redundantly set token_buffer[0].
26561 (read_line_number): New fn.
26562 (ignore_escape_flag): New variable.
26564 Wed Aug 4 13:12:17 1999 Jeffrey A Law (law@cygnus.com)
26566 * a29k/t-a29kbare: Fix some comments.
26567 (LIB2FUNCS_EXTRA): Remove fp-bit.c and dp-bit.c
26568 (FPBIT, DPBIT): Define.
26569 * a29k/t-vx29k: Likewise.
26570 * arc/t-arc: Likewise.
26571 * arm/t-arm-elf: Likewise.
26572 * arm/t-bare: Likewise.
26573 * arm/t-pe: Likewise.
26574 * arm/t-pe-thumb: Likewise.
26575 * arm/t-semi: Likewise.
26576 * arm/t-thumb: Likewise.
26577 * arm/t-thumb-elf: Likewise.
26578 * arm/t-thumb-linux: Likewise.
26579 * h8300/t-h8300: Likewise.
26580 * i960/t-i960: Likewise.
26581 * i960/t-vxworks960: Likewise.
26582 * m32r/t-m32r: Likewise.
26583 * mips/t-ecoff: Likewise.
26584 * mips/t-elf: Likewise.
26585 * mips/t-r3900: Likewise.
26586 * pa/t-pro: Likewise.
26587 * rs6000/t-aix43: Likewise.
26588 * rs6000/t-beos: Likewise.
26589 * rs6000/t-newas: Likewise.
26590 * rs6000/t-ppccomm: Likewise.
26591 * rs6000/t-rs6000: Likewise.
26592 * rs6000/t-winnt: Likewise.
26593 * rs6000/t-xnewas: Likewise.
26594 * rs6000/t-xrs6000: Likewise.
26595 * sh/t-sh: Likewise.
26596 * sparc/t-elf: Likewise.
26597 * sparc/t-sparcbare: Likewise.
26598 * sparc/t-sparclite: Likewise.
26599 * sparc/t-splet: Likewise.
26600 * v850/t-v850: Likewise.
26601 * mn10200/t-mn10200: Fix comments.
26602 * mn10300/t-mn10300: Likewise.
26604 * pa.md (divsi3, udivsi3, modsi3, umodsi3 expanders): Clobber a new
26605 dummy operand. Allocate a new pseudo for the dummy operand.
26606 (divsi3, udivsi3, modis3, umodsi3 patterns): Corresponding changes.
26608 * pa.md (movqi, movhi patterns): Do not expose FP regs to regclass.
26610 Wed Aug 4 11:53:55 1999 Tom Tromey <tromey@cygnus.com>
26612 * configure: Rebuilt.
26613 * configure.in: Removed --enable-java-gc option and JAVAGC subst.
26615 Wed Aug 4 09:06:14 1999 Richard Earnshaw (rearnsha@arm.com)
26617 * recog.c (preproces_constraints): Zero recog_op_alt before
26618 processing the constraints.
26620 * arm.c (typedef minipool_node): Renamed from pool_node.
26621 (minipool_vector, minipool_size, minipool_vector_label): Similarly.
26622 (add_minipool_constant): New function.
26623 (dump_minipool): New function.
26624 (find_barrier): Remove special case for getting the insn size of
26625 an insn that references the constant pool.
26626 (minipool_fixup): New structure.
26627 (push_minipool_barrier): New function.
26628 (push_minipool_fix): New function.
26629 (note_invalid_constants): New function.
26630 (add_pool_constant, dump_table, fixit, broken_move): Delete.
26631 (arm_reorg): Rewrite code to fix up the constant pool into a
26632 series of mini-pools embedded in the insn stream.
26633 (arm_output_epilogue): New function, made mainly from the body
26634 of output_func_epilogue.
26635 (output_func_epilogue): Move insn generation part of epilogue code
26636 to arm_output_epilogue.
26637 * arm.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Delete.
26638 * arm.md (pool_range): New attribute.
26639 (zero_extendqidi2): Add attribute pool_range.
26640 (zero_extend_hisi_insn, load_extendqisi, extendhisi_insn,
26641 extendqihi_insn, extendqisi_insn, movdi, movsi_insn, pic_load_addr,
26642 pic_load_addr_based_insn, movhi_insn_arch4, movhi_insn_littleend,
26643 movhi_insn_bigend, loadhi_si_bigend, movsf_hard_insn, movsf_soft_insn,
26644 movdf_hard_insn, movdf_soft_insn, movxf_hard_insn): Likewise.
26645 (epilogue): New expand.
26646 (epilogue_insn): New insn. Call arm_output_epilogue.
26648 * arm.c (arm_poke_function_name): Undo change of July 17. Tidy up.
26649 * arm.h (TARGET_SWITCHES): Add missing doc string for TARGET_DEFAULT.
26651 Mon Aug 2 19:18:44 1999 Jason Merrill <jason@yorick.cygnus.com>
26653 * linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
26655 1999-08-04 Mark Elbrecht <snowball3@bigfoot.com>
26657 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Define.
26659 Wed Aug 4 02:15:32 1999 Richard Henderson <rth@cygnus.com>
26661 * jump.c (delete_insn): Delete the addr_vec when deleting a tablejump.
26663 Wed Aug 4 01:48:08 1999 Jim Kingdon <http://developer.redhat.com>
26665 * global.c: Fix comment.
26667 Wed Aug 4 01:43:01 1999 Ian Lance Taylor <ian@zembu.com>
26669 * gcc.c (access_check): New static function.
26670 (find_a_file): Use it when searching a directory list.
26671 * collect2.c (find_a_file): Don't accept directories found when
26672 searching a directory list.
26674 Wed Aug 4 01:40:43 1999 Philippe De Muyter <phdm@macqel.be>
26676 * tlink.c (symbol_hash_lookup): Do not prefix functions used as
26677 function parameters with `&'.
26678 (file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.
26680 Wed Aug 4 01:08:44 1999 Jeffrey A Law (law@cygnus.com)
26682 * flow.c (delete_unreachable_blocks): Do not call merge_blocks
26683 or tidy_fallthru_edge if the last insn in the block is not
26684 an unconditional jump or a simple conditional jump.
26686 Tue Aug 3 20:21:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26688 * Makefile.in (c-decl.o): Depends on defaults.h.
26690 Tue Aug 3 14:14:52 1999 Jeffrey A Law (law@cygnus.com)
26692 * pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for
26694 (CLASS_MAX_NREGS): Likewise.
26696 Tue Aug 3 03:51:20 1999 Jeffrey A Law (law@cygnus.com)
26698 * cse.c (cse_insn): Fix dumb thinko in last change.
26700 Tue Aug 3 10:36:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26702 * reload1.c (maybe_fix_stack_asms): Declare CONSTRAINTS as
26705 Mon Aug 2 23:45:45 1999 Hans-Peter Nilsson <hp@bitrange.com>
26707 * dwarf2out.c (add_location_or_const_value_attribute): Correct
26708 test for sizes of passed and declared parameter types.
26710 Tue Aug 3 00:03:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26712 * fixincludes: Fix the return type of bsearch, char* -> void*.
26714 * fixinc/inclhack.def: Likewise.
26716 Mon Aug 2 18:29:32 1999 Mark Mitchell <mark@codesourcery.com>
26718 * invoke.texi (-fdump-translation-unit): New option.
26720 Mon Aug 2 17:54:19 1999 Richard Henderson <rth@cygnus.com>
26722 * expr.h (PROMOTE_PROTOTYPES): Move ...
26723 * defaults.h: ... to here.
26724 * c-decl.c: Include defaults.h instead of expr.h.
26725 * c-typeck.c: Include defaults.h.
26727 Mon Aug 2 17:10:24 1999 Mark Mitchell <mark@codesourcery.com>
26729 * toplev.h (errorcount): Declare.
26730 (warningcount): Likewise.
26731 (sorrycount): Likewise.
26732 * c-lex.c (errorcount): Don't declare.
26733 * dwarf2out.c (errorcount): Don't declare.
26735 Mon Aug 2 17:02:08 1999 Jason Merrill <jason@yorick.cygnus.com>
26737 * config/libgloss.h: Add a note discouraging use with ELF.
26738 * configure.in: Don't use libgloss.h for ELF targets.
26739 Always use_collect2 on a.out targets.
26741 Mon Aug 2 16:27:42 1999 Jim Wilson <wilson@cygnus.com>
26743 * combine.c (force_to_mode, case LSHIFTRT): Add goto shiftrt.
26744 (force_to_mode, case ASHIFTRT): Add shiftrt label.
26746 Tue Aug 3 00:45:02 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26748 * loop.c (strength_reduce): When doing biv->giv conversion, update
26749 reg note of NEXT->insn.
26751 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
26753 * real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad.
26755 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
26757 * c-decl.c (get_parm_info, store_parm_decls): Change all uses of
26758 PROMOTE_PROTOTYPES, so that it tests it as a C expression.
26759 Ensure expr.h is included.
26760 * c-typecheck.c (convert_arguments): Ditto.
26762 * expr.h: Supply default for PROMOTE_PROTOTYPES (0).
26764 * config/arc/arc.h: Define PROMOTE_PROTOTYPES to 1.
26765 * config/convex/convex.h: Ditto.
26766 * config/dsp16xx/dsp16xx.h: Ditto.
26767 * config/fx80/fx80.h: Ditto.
26768 * config/gmicro/gmicro.h: Ditto.
26769 * config/i370/i370.h: Ditto.
26770 * config/i386/i386.h: Ditto.
26771 * config/m32r/m32r.h: Ditto.
26772 * config/m68k/m68k.h: Ditto.
26773 * config/m88k/m88k.h: Ditto.
26774 * config/mips/mips.h: Ditto.
26775 * config/pa/pa.h: Ditto.
26776 * config/pyr/pyr.h: Ditto.
26777 * config/tahoe/tahoe.h: Ditto.
26778 * config/we32k/we32k.h: Ditto.
26780 * config/sparc/sparc.h: Define PROMOTE_PROTOTYPES
26781 based on arch size.
26783 * config/i1750a/i1750a.h: Define PROMOTE_PROTOTYPES to 0.
26785 * config/i860/paragon.h: Remove PROMOTE_PROTOTYPES
26788 * tm.texi: Document new usage of PROMOTE_PROTOTYPES.
26790 1999-08-02 Richard Henderson <rth@cygnus.com>
26792 * m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set
26793 for the register spill block.
26794 (m32r_va_arg): New.
26795 * m32r.h (EXPAND_BUILTIN_VA_ARG): New.
26796 (EXPAND_BUILTIN_SAVEREGS): Delete #if 0 code.
26798 * m32r.h (INT8_P): Don't short-cut test with (unsigned).
26799 (INT16_P, CMP_INT16_P, UINT16_P): Likewise.
26800 (UPPER16_P, UINT24_P, INT32_P, UINT5_P): Likewise.
26802 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
26804 * config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef
26805 MAX_WCHAR_TYPE defined in sparc.h.
26806 * config/sparc/linuxaout.h: Likewise.
26807 * config/sparc/linux64.h: Likewise.
26808 Also default to -mvis if CPU is UltraSPARC.
26810 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
26812 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro.
26813 (RTX_OK_FOR_OLO10): Likewise.
26814 (GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable
26815 %lo(), allow it in addresses...
26816 (PRINT_OPERAND_ADDRESS): ... and print it appropriately.
26817 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo()
26818 does not make sense.
26819 * config/sparc/sparc.c (sparc_hard_reg_printed): New array.
26820 (sparc_output_scratch_registers): New function.
26821 (output_function_prologue, sparc_flat_output_function_prologue): Use
26823 * varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if
26825 * tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it.
26826 * configure.in: Add check for .register pseudo-op support in as and
26827 check for offsetable %lo().
26828 * acconfig.h: Add templates for the above checks.
26829 * configure: Regenerate.
26831 1999-08-02 Richard Henderson <rth@cygnus.com>
26833 * sparc/linux64.h (TARGET_DEFAULT): Remove MASK_APP_REGS.
26834 * sparc/sol2-sld-64.h (TARGET_DEFAULT): Likewise.
26835 * sparc/sol2.h (TARGET_DEFAULT): Likewise.
26837 Mon Aug 2 23:46:45 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26839 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
26842 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
26844 * config/float-sparc.h: New file.
26845 * configure.in: Use float_format=sparc for sparc-*-linux-gnulibc1,
26846 sparc-*-linux-gnu and sparc64-*-linux*.
26848 1999-08-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26850 * rs6000.c (rs6000_va_list): Type is an array.
26851 (rs6000_va_start): Don't doubly adjust for varargs.
26852 (rs6000_va_arg): Evaluate long long GPR adjustment.
26854 Mon Aug 2 16:15:57 1999 David Edelsohn <edelsohn@gnu.org>
26856 * rs6000/aix43.h (SUBTARGET_SWITCHES): Use -m64 and -m32 instead of
26857 -maix64 and -maix32.
26858 (ASM_SPEC, ASM_CPU_SPEC, CPP_SPEC, CPP_CPU_SPEC, LIB_SPEC,
26859 LINK_SPEC): Change appropriately.
26860 * rs6000/rs6000.c (short_cint_operand): Use CONST_OK_FOR_LETTER_P.
26861 (u_short_cint_operand): Likewise.
26862 * rs6000/rs6000.md (movdi splitters): Add TARGET_POWERPC64 support
26864 * rs6000/t-aix43 (MULTILIB): Change to -m64.
26866 * invoke.texi (RS/6000 Submodel): Document 64-bit processor options.
26868 Mon Aug 2 16:15:57 1999 Geoff Keating <geoffk@cygnus.com>
26870 * rs6000/rs6000.c (num_insns_constant_wide): Correct
26871 for type promotion.
26872 (add_operand): Get test correct for 64-bit HOST_WIDE_INT.
26873 (non_add_cint_operand): Likewise.
26874 (logical_operand): Likewise.
26875 (non_logical_cint_operand): Likewise.
26876 (print_operand): Correct printf()s for 64-bit HOST_WIDE_INT.
26877 (print_operand_address): Correct printf() for 64-bit HOST_WIDE_INT.
26878 (rs6000_select_rtx_section): Suppress warning.
26879 (small_data_operand): Suppress warning.
26880 (rs6000_got_register): Suppress warning.
26881 * rs6000/rs6000.md (andsi3): HOST_WIDE_INT is a signed
26882 type, so `J' is generally the wrong constraint for a SImode value;
26884 (andsi3_internal2): Likewise.
26885 (andsi3_internal3): Likewise.
26886 (iorsi3_internal1): Likewise.
26887 (xorsi3_internal1): Likewise.
26889 (movsf_softfloat): Likewise.
26890 (scc insns): Likewise.
26891 (movsi+2): Preserve sign bits of SImode constant.
26892 (floatsidf2_internal+1): Sign-extend SImode constant correctly.
26893 (movdf+1): Sign-extend properly.
26894 (movdi_32+1): Sign-extend properly.
26895 (scc insns): Sign-extend properly.
26897 * md.texi (RS/6000 EXTRA_CONSTRAINTS): Update documentation for J,
26900 1999-08-02 Richard Henderson <rth@cygnus.com>
26902 * alpha.c (override_options): Move ev6 alpha_tp frobbing out of
26903 -mcpu parsing code.
26904 (print_operand): Notice alpha_fptm not alpha_tp for sw completion.
26905 * alpha.md (all fp insns): Likewise.
26907 1999-08-02 Nick Clifton <nickc@cygnus.com>
26909 * config/v850/v850.h (STRICT_ALIGNMENT): Only define if not
26912 Mon Aug 2 03:38:33 1999 Jeffrey A Law (law@cygnus.com)
26914 * pa.c (legitimize_pic_address): Clarify comments. Do not call the
26915 pic_load_label generator directly.
26916 * pa.md (pic_load_label): Clarify comments. Remove modes on operands.
26917 No longer a named pattern.
26919 Mon Aug 2 09:38:10 1999 Nick Clifton <nickc@cygnus.com>
26921 * explow.c (force_reg): Call force_operand if X does not
26922 satisfy general_operand.
26924 Mon Aug 2 01:34:22 1999 Jeffrey A Law (law@cygnus.com)
26926 * fix-header.c (main): When testing for CONTINUED, use string
26927 equality, not pointer equality.
26929 Mon Aug 2 01:27:24 1999 Dan Nicolaescu <dann@ics.uci.edu>
26931 * sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.
26933 Sun Aug 1 22:46:42 1999 Jeffrey A Law (law@cygnus.com)
26935 * cse.c (cse_insn): Fix loop which deletes insns after a jump
26936 that has become an unconditional jump.
26938 * m68k.c (output_function_prologue): Fix typo in CPU32 case.
26939 (output_function_epilogue): Similarly.
26941 Sun Aug 1 20:14:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26943 * tree.h (init_dummy_function_start): Declare.
26945 Sun Aug 1 12:55:31 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26947 * stmt.c (emit_filename, emit_lineno, expr_stmts_for_value,
26948 last_expr_type, last_expr_value, block_start_count, block_stack,
26949 stack_block_stack, cond_stack, loop_stack, case_stack, nesting_stack,
26950 nesting_depth, goto_fixup_chain): Delete global vars; now allocated
26951 dynamically in stmt elt of struct function for each function.
26952 (struct nesting): Rename function_call_count elt to n_function_calls,
26953 target_temp_slot_level to block_target_temp_slot_level. All users
26955 (struct stmt_status): New structure definition.
26956 Add many accessor macros for stmt_status elements which previously
26957 were global variables.
26958 (init_stmt_for_function): Allocate stmt elt for current_function.
26959 Reflect that block_start_count was renamed to
26960 current_block_start_count.
26961 (save_stmt_status, restore_stmt_status): Delete functions.
26962 (preserve_subexpressions_p): Don't access loop_stack when outside
26964 (expand_start_bindings): Reflect that block_start_count was renamed to
26965 current_block_start_count.
26966 (expand_fixup): Likewise.
26967 (expand_decl): Don't access block_stack when outside a function.
26968 (expand_decl_cleanup): Likewise.
26969 (expand_dcc_cleanup): Likewise.
26970 (expand_dhc_cleanup): Likewise.
26971 (expand_anon_union_decl): Likewise.
26972 (set_file_and_line_for_stmt): New function.
26973 (in_control_zone_p): New function.
26975 * function.h (struct function): Add new elt stmt.
26976 Delete elts block_stack, stack_block_stack, cond_stack, loop_stack,
26977 case_stack, nesting_stack, nesting_depth, block_start_count,
26978 last_expr_type, last_expr_value, expr_stmts_for_value, emit_filename,
26979 emit_lineno, goto_fixup_chain.
26980 (save_eh_status, restore_eh_status, save_stmt_status,
26981 restore_stmt_status): Delete declarations.
26982 * function.c (push_function_context_to): Don't call save_stmt_status.
26983 (pop_function_context_to): Don't call restore_stmt_status.
26984 * tree.h (in_control_zone_p): Declare.
26985 * rtl.h (set_file_and_line_for_stmt): Declare.
26987 * emit-rtl.c (emit_line_note): Don't set emit_filename/emit_lineno;
26988 call set_file_and_line_for_stmt.
26990 Thu Jul 31 12:34:45 1999 Joe Buck <jbuck@synopsys.com>
26992 * gcc.texi: Use terms "GNU Compiler Collection" and "GCC".
26993 Also update copyright.
26995 Sat Jul 31 11:10:07 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26997 * c-pragma.c: Don't include "except.h".
26998 * emit-rtl.c: Likewise.
26999 * stor-layout.c: Likewise.
27000 * tree.c: Likewise.
27001 * varasm.c: Likewise.
27003 * flow.c: Include "function.h".
27004 * tree.h (init_dummy_function_start): Declare new function.
27006 * except.h (struct eh_status): New structure.
27007 (struct label_node, struct eh_entry): Declare even if tree.h hasn't
27009 (eh_return_stub_label, ehstack, catchstack, ehqueue,
27010 catch_clauses, false_label_stack, caught_return_label_stack,
27011 protect_list, current_function_ehc): Add accessor macros for the
27012 corresponding fields in current_function->eh; delete declarations
27013 for all items that used to be declared here.
27014 * except.c (eh_return_stub_label, ehstack, catchstack, ehqueue,
27015 catch_clauses, false_label_stack, caught_return_label_stack,
27016 protect_list, current_function_ehc): Delete variables.
27017 (init_eh_for_function): Allocate current_function->eh.
27018 (save_eh_status, restore_eh_status): Delete functions.
27020 * function.h (struct function): Add fields next_global and eh.
27021 Delete all exception handling related fields.
27022 * function.c (current_function): New variable.
27023 (all_functions): New variable.
27024 (push_function_context_to): Don't allocate a struct function,
27025 use current_function instead. Call init_dummy_function_start when
27026 outside a function. Clear current_function before returning.
27027 (pop_function_context_from): Restore current_function.
27028 Don't free the restored struct function.
27029 (prepare_function_start): New function.
27030 (init_dummy_function_start): New function.
27031 (init_function_start): Break out some code into prepare_function_start
27034 * stmt.c (save_stmt_status): Don't call save_eh_status.
27035 (restore_stmt_status): Don't call restore_eh_status.
27037 * Makefile.in: Update dependencies.
27039 Sat Jul 31 04:10:01 1999 Jeffrey A Law (law@cygnus.com)
27041 * pa.c (compute_frame_size): Use STARTINg_FRAME_OFFSET instead
27042 of depending on a magic constant value. Update comments.
27043 (hppa_expand_prologue): Similarly.
27045 * pa.md (reload_indi, reload_outdi): Allow any register for the
27046 original reload register.
27048 Fri Jul 30 19:41:35 1999 Jim Wilson <wilson@cygnus.com>
27050 * cccp.c (print_help): Change marcos to macros.
27052 1999-07-30 Richard Henderson <rth@cygnus.com>
27054 * c-typeck.c (initializer_constant_valid_p): Move ...
27055 * c-common.c (initializer_constant_valid_p): ... here. Use
27056 FOO_TYPE_P instead of tests against TREE_CODE. Allow subtraction
27057 of label addresses.
27058 * c-common.h (initializer_constant_valid_p): Declare.
27059 * c-tree.h (initializer_constant_valid_p): Remove.
27061 Fri Jul 30 16:33:42 1999 Mathias Froehlich <frohlich@na.uni-tuebingen.de>
27063 * config/i386/sol2-c1.asm: Align the stack.
27064 * config/i386/sol2-gc1.asm: Likewise.
27066 1999-07-30 Vladimir Makarov <vmakarov@loony.cygnus.com>
27068 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto
27069 -Asparclite for sparc86x.
27070 (CPP_CPU32_DEFAULT_SPEC, CPP_CPU_SPEC): Remove -D__sparc_v8__ for
27072 (ASM_CPU_SPEC): Use -Asparclite for sparc86x.
27074 Fri Jul 30 14:53:56 1999 Jakub Jelinek <jj@ultra.linux.cz>
27076 * config/sparc/linux64.h (CC1_SPEC): Preserve CPU specified by
27077 the user if using the non-default arch size in BI_ARCH configuration.
27078 * config/sparc/sol2-sld-64.h (CC1_SPEC): Ditto.
27080 * config/sparc/sparc.md (cmp_mul_set, cmp_udiv_cc_set):
27081 Fix patterns so that they actually match.
27082 (cmp_sdiv_cc_set): Ditto, also don't require g0 to be zero.
27083 (mulsidi3_sp64, const_mulsidi3_sp64): New patterns.
27084 (const_mulsidi3_sp32): Renamed from const_mulsidi3, only on
27086 (mulsidi3): Reflect this in the expand.
27087 (smulsi3_highpart): Only on TARGET_ARCH32.
27088 (umulsidi3_sp64, const_umulsidi3_sp64): New patterns.
27089 (const_umulsidi3_sp32): Renamed from const_umulsidi3.
27090 (umulsidi3): Reflect this in the expand.
27091 (umulsi3_highpart): Only on TARGET_ARCH32.
27092 (divsi3_sp32): Renamed from divsi3, only on TARGET_ARCH32,
27093 don't require g0 to be zero.
27094 (udivsi3_sp32): Renamed from udivsi3, only on TARGET_ARCH32.
27095 ({,u}divsi3): New expands.
27096 ({,u}divsi3_sp64): New patterns.
27097 (after lshrdi3_v8plus): Four new patterns to help combiner
27098 optimizing nested mixed mode shifts.
27100 * config/sparc/sparc.c (sparc_override_options): Use deprecated
27101 v8 instructions if optimizing for UltraSPARC I, II, IIi, as it
27102 speed things up. Don't use them by default on plain v9 in 64bit
27103 mode, according to what SPAMv9 sais.
27105 * config/sparc/sparc.h: Fix comments, e.g. Linux already preserves
27106 top 32 bits of %[og][0-7] in signal handlers.
27107 Also, TARGET_HARD_MUL32 now is only true for TARGET_ARCH32.
27109 Fri Jul 30 03:00:41 1999 Jeffrey A Law (law@cygnus.com)
27111 * pa.md (zvdep_imm32): Renamed from zvdep_imm.
27112 (ashlsi3): Corresponding changes.
27114 * pa.c (compute_zdepwi_operands): Renamed from compute_zdepi_operands.
27116 Thu Jul 29 18:37:13 1999 Jeffrey A Law (law@cygnus.com)
27118 * pa.h (FIRST_PARM_CALLER_OFFSET): Delete.
27120 Thu Jul 29 19:01:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27122 * arm.h (Hint): Delete macro.
27123 Substitute HOST_WIDE_INT for Hint in some prototypes.
27124 * arm.c: Substitute HOST_WIDE_INT for Hint in one prototype.
27126 Thu Jul 29 09:21:42 1999 Nick Clifton <nickc@cygnus.com>
27128 * builtins.c (expand_builtin_setjmp): Use force_operand to
27129 make sure that the buffer address is in a suitable form to be
27130 passed to force_reg.
27132 Wed Jul 28 12:50:48 1999 Geoff Keating <geoffk@cygnus.com>
27134 * config/mips/mips.c: system.h handles MIN and MAX, don't undefine
27137 Wed Jul 28 13:18:35 1999 Jeffrey A Law (law@cygnus.com)
27139 * pa.md (indirect_jump): Remove mode from match_operand. Verify
27140 proper mode in the condition string.
27141 (icacheflush, dcacheflush): Remove modes from match_operands.
27143 * pa.c (emit_move_sequence): Always convert scratch_reg to the
27144 proper mode before using it.
27146 * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
27149 * pa.c (store_reg): Do not call add_high_const generator directly.
27150 (load_reg, set_reg_plus_d): Likewise.
27151 * pa.md (add_high_const): No longer a named pattern.
27153 * pa.c (legitimize_address): Consistently use Pmode rather than
27154 SImode. Do not call gen_pic2_highpart directly anymore.
27155 * pa.md (pic2_highpart): No longer a named pattern.
27156 (pic2_lo_sum): Similarly. Reformat to make more readable.
27158 * pa.md (call, call_value): Use "word_mode" instead of "SImode" as
27163 Wed Jul 28 11:28:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
27165 * builtins.c (expand_builtin): Typo in call to expand_builtin_ffs.
27167 Wed Jul 28 11:23:48 1999 Richard Henderson <rth@cygnus.com>
27169 * pa.c (hppa_builtin_saveregs): Use get_varargs_alias_set
27170 and tag the spill mems.
27171 (hppa_va_start): New.
27172 (hppa_va_arg): New.
27173 * pa.h (EXPAND_BUILTIN_VA_START): New.
27174 (EXPAND_BUILTIN_VA_ARG): New.
27176 Wed Jul 28 11:22:21 1999 Richard Henderson <rth@cygnus.com>
27178 * mn10300.c (mn10300_builtin_saveregs): Use get_varargs_alias_set
27179 and tag the spill mems.
27180 (mn10300_va_start): New.
27181 (mn10300_va_arg): New.
27182 * mn10300.h (EXPAND_BUILTIN_VA_START): New.
27183 (EXPAND_BUILTIN_VA_ARG): New.
27185 Wed Jul 28 11:20:19 1999 Richard Henderson <rth@cygnus.com>
27187 * mn10200.c (mn10200_va_arg): New.
27188 * mn10200.h (EXPAND_BUILTIN_VA_ARG): New.
27190 Wed Jul 28 11:19:06 1999 Richard Henderson <rth@cygnus.com>
27192 * builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
27193 rather than play with TREE_INT_CST_LOW.
27195 1999-07-27 Philip Blundell <pb@nexus.co.uk>
27197 * config/arm/telf.h: Include dbxelf.h.
27198 (CPP_PREDEFINES): Only define if not already defined.
27199 (ASM_IDENTIFY_GCC): Likewise.
27200 (SUBTARGET_EXTRA_SECTIONS): Likewise.
27201 (SUBTARGET_EXTRA_SECTION_FUNCTIONS): Likewise.
27202 * config/arm/thumb.h (LINK_SPEC): Only define if not already
27204 (DBX_DEBUGGING_INFO): Don't define.
27205 * config/arm/linux-telf.h: New file.
27206 * config/arm/linux-tgas.h: New file.
27207 * config/arm/t-thumb-linux: New file.
27208 * config/arm/uclinux-elf.h: New file.
27209 * config/arm/uclinux-telf.h: New file.
27210 * configure.in (arm-*-uclinux, thumb-*-linux-gnu,
27211 thumb-*-uclinux): New targets.
27212 * configure: Regenerate.
27214 Tue Jul 27 23:20:21 1999 Jeffrey A Law (law@cygnus.com)
27216 * pa.md (post_store, pre_load): New expanders.
27217 (post_stwm, pre_ldwm): Renamed to post_stw and pre_ldw respectively.
27218 (post_ldwm, pre_stwm): Make these unnamed patterns since we never
27219 need to directly generate RTL for them.
27220 * pa.c (hppa_expand_prologue, hppa_expand_epilogue): Corresponding
27223 Tue Jul 27 16:05:52 1999 David Edelsohn <edelsohn@gnu.org>
27225 * aix43.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add rs64a and PPC630.
27226 * rs6000.c (processor_target_table): Add powerpc64, rs64a, and PPC630.
27227 (rs6000_cpu): Choose between 32-bit and 64-bit default processors.
27228 (secndary_reload_class): Make TARGET_ELF conditional compile.
27229 (print_operand_address): Similar.
27230 (output_toc): Print all values as hex.
27231 (get_issue_rate): Rearrange and add RS64A and PPC630.
27232 * rs6000.h (processor_type): Add RS64A and PPC630.
27233 (PROCESSOR_POWERPC64): New.
27234 (PROMOTE_MODE): Use word_mode.
27235 (RTX_COSTS): Add RS64A and PPC630.
27236 * rs6000.md (scheduling information): Add lmul and ldiv
27237 representing 64-bit integer multiply and divide. Add rs64a and
27238 PPC630 information.
27239 (ashldi3): Add support for "rldic" instruction.
27240 * sysv4.h (PROCESSOR_DEFAULT): Change to PROCESSOR_750.
27242 Tue Jul 27 15:31:53 1999 Vladimir Makarov <vmakarov@toad.to.cygnus.com>
27244 * config/sparc/sparc.c (sparc_override_options): Enable SPARCLITE
27245 instead of V8 for sparclite86x in cpu_table.
27247 Tue Jul 27 17:49:42 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27249 * config/arm/coff.h (ASM_FILE_START): If generating SDB output, call
27250 output_file_directive.
27252 Tue Jul 27 03:15:33 1999 Jason Merrill <jason@yorick.cygnus.com>
27254 * expr.c (expand_expr, case PLUS_EXPR): Get the mode from the
27255 tree for op1, not the rtl.
27257 Tue Jul 27 00:18:34 1999 Richard Henderson <rth@cygnus.com>
27259 * m88k.c (m88k_builtin_saveregs): Break out the constructor code
27260 to m88k_va_start, leaving only the register spill.
27261 (m88k_build_va_list): New.
27262 (m88k_va_start): New.
27263 (m88k_va_arg): New.
27264 * m88k.h (BUILD_VA_LIST_TYPE): New.
27265 (EXPAND_BUILTIN_VA_START): New.
27266 (EXPAND_BUILTIN_VA_ARG): New.
27268 Mon Jul 26 19:07:11 1999 Geoff Keating <geoffk@cygnus.com>
27270 * config/rs6000/rs6000.c (rs6000_expand_builtin_saveregs):
27271 Rename from expand_builtin_saveregs.
27272 * config/rs6000/rs6000.h (EXPAND_BUILTIN_SAVEREGS): Change caller.
27274 Mon Jul 26 22:52:47 1999 Richard Henderson <rth@cygnus.com>
27276 * i960.c (i960_setup_incoming_varargs): Use get_varargs_alias_set
27277 for the register spill block.
27278 (i960_build_va_list): New.
27279 (i960_va_start): New.
27280 (i960_va_arg): New.
27281 * i960.h (BUILD_VA_LIST_TYPE): New.
27282 (EXPAND_BUILTIN_VA_START): New.
27283 (EXPAND_BUILTIN_VA_ARG): New.
27284 * i960.md (store_multiple): Use change_address on individul mems.
27286 Mon Jul 26 22:43:12 1999 Richard Henderson <rth@cygnus.com>
27288 * builtins.c (stabilize_va_list): Don't INDIRECT_REF through
27290 (std_expand_builtin_va_start): Back out one word if !stdarg_p.
27291 (expand_builtin_va_end): Evaluate arg for side effects.
27292 * c-common.c (c_common_nodes_and_builtins): Construct a
27293 va_list_arg_type_node to handle array decomposition to pointer.
27295 Mon Jul 26 18:51:34 1999 Richard Henderson <rth@cygnus.com>
27297 * except.c (st_dynamic_cleanup): Use force_operand on the
27300 Mon Jul 26 16:43:26 1999 Richard Henderson <rth@cygnus.com>
27302 * c4x.h (EXPAND_BUILTIN_VA_ARG): New.
27303 * c4x.c (c4x_va_arg): New.
27305 Mon Jul 26 12:30:09 1999 Jason Merrill <jason@yorick.cygnus.com>
27307 * cpplib.c (cpp_get_token): Don't return a CPP_POP if the buffer
27308 has manual_pop set.
27310 1999-07-26 Nathan Sidwell <nathan@acm.org>
27312 * eh-common.h (__eh_matcher): Prototype correctly.
27314 Mon Jul 26 17:24:51 1999 Philip Blundell <pb@nexus.co.uk>
27316 * config/arm/thumb.h (THUMB_FLAG_SINGLE_PIC_BASE): Define.
27317 (TARGET_SINGLE_PIC_BASE): Likewise.
27318 (GOT_PCREL, NEED_GOT_RELOC, NEED_PLT_RELOC): Provide default
27320 (TARGET_CALLEE_INTERWORKING): Fix typo in comment.
27321 (TARGET_SWITCHES): Add -m{no-}single-pic-base.
27322 (TARGET_OPTIONS): Add -mpic-register=N.
27323 (OUTPUT_INT_ADDR_CONST): New macro.
27324 (INDEX_REGISTER_RTX_P, PIC_OFFSET_TABLE_REGNUM, FINALIZE_PIC,
27325 LEGITIMATE_PIC_OPERAND_P): Likewise.
27326 (LEGITIMIZE_ADDRESS, GOT_IF_LEGITIMATE_ADDRESS): Support PIC.
27327 (ASM_OUTPUT_INT): Use OUTPUT_INT_ADDR_CONST rather than calling
27328 output_addr_const directly.
27329 (PRINT_OPERAND_PUNCT_VALID_P): Accept `|' for compatibility with
27331 (thumb_pic_register, thumb_pic_register_string): Declare.
27333 * config/arm/thumb.c (symbol_mentioned_p): New function: Imported
27335 (label_mentioned_p): New function: Imported from arm.c.
27336 (legitimize_pic_address): New function: Imported from arm.c.
27337 (is_pic):New function: Imported from arm.c.
27338 (thumb_finalize_pic):New function: Imported from arm.c.
27339 (add_constant): Cope with PIC constants.
27340 (fixit): Cope with PIC constants.
27341 (output_return): Do not treat the PIC register as live if
27342 TARGET_SINGLE_PIC_BASE is true.
27343 (thumb_function_prologue): Do not treat the PIC register as live if
27344 TARGET_SINGLE_PIC_BASE is true.
27345 (thumb_expand_prologue): Do not treat the PIC register as live if
27346 TARGET_SINGLE_PIC_BASE is true.
27347 (thumb_unexpand_epilogue): Do not treat the PIC register as live if
27348 TARGET_SINGLE_PIC_BASE is true.
27349 (thumb_print_operand): Accept '|'.
27350 (thumb_override_options): Process PIC options.
27352 * config/arm/thumb.md (movsi): Support PIC.
27353 (call_insn): Change "i" constraint to "X".
27354 (call_value_insn): Likewise.
27355 (consttable_4, consttable_8, consttable_end): Set and clear
27356 "making_const_table" as appropriate.
27357 (pic_load_addr, pic_add_dot_plus_four): New insns.
27359 * invoke.texi (Thumb Options): Fix spelling. Document new
27360 options -msingle-pic-base and -mpic-register=.
27362 1999-07-26 Andrew Haley <aph@cygnus.com>
27364 * config/m32r/initfini.c (__init): Use a full word immediate for
27365 __fini: this allows it to be placed in any memory region.
27367 * config/m32r/t-m32r: Compile crtinit.o and crtfini.o for
27368 -mmodel=medium. This is OK for all memory models.
27370 Mon Jul 26 11:58:46 1999 Nick Clifton <nickc@cygnus.com>
27372 * config/arm/arm.c: Replace %R%s in asm_fprintf strings with %r.
27373 * config/arm/arm.h: Replace %R%s in asm_fprintf strings with %r.
27375 Mon Jul 26 10:23:36 1999 Nick Clifton <nickc@cygnus.com>
27377 * final.c (asm_fprintf): Accept ASM_FPRINTF_EXTENSIONS, if
27380 * tm.texi: Document ASM_FPRINTF_EXTENSIONS.
27382 Sun Jul 25 23:51:59 1999 Richard Henderson <rth@cygnus.com>
27384 * i860.h (EXPAND_BUILTIN_SAVEREGS): New.
27385 (BUILD_VA_LIST_TYPE): New.
27386 (EXPAND_BUILTIN_VA_START): New.
27387 (EXPAND_BUILTIN_VA_ARG): New.
27388 * i860.c (output_delayed_branch): Disable.
27389 (output_delay_insn): Likewise.
27390 (i860_saveregs): New.
27391 (i860_build_va_list): New.
27392 (i860_va_start): New.
27393 (i860_va_arg): New.
27394 * i860.md: Disable all peepholes using output_delayed_branch.
27395 * i860/sysv4.h (I860_SVR4_VA_LIST): New.
27397 Sun Jul 25 23:44:13 1999 Richard Henderson <rth@cygnus.com>
27399 * clipper.h (EXPAND_BUILTIN_SAVEREGS): Remove argument.
27400 (BUILD_VA_LIST_TYPE): New.
27401 (EXPAND_BUILTIN_VA_START): New.
27402 (EXPAND_BUILTIN_VA_ARG): New.
27403 * clipper.c (clipper_builtin_saveregs): Only dump registers.
27404 Return the address of the save area.
27405 (clipper_build_va_list): New.
27406 (clipper_va_start): New.
27407 (clipper_va_arg): New.
27409 Sun Jul 25 22:56:47 1999 Richard Henderson <rth@cygnus.com>
27411 * arc.h (EXPAND_BUILTIN_VA_START): New.
27412 (EXPAND_BUILTIN_VA_ARG): New.
27413 * arc.c (arc_setup_incoming_varargs): Set alias set of
27415 (arc_va_start): New.
27418 Sun Jul 25 22:45:55 1999 Richard Henderson <rth@cygnus.com>
27420 * alpha.h (EXPAND_BUILTIN_SAVEREGS): Delete.
27421 (BUILD_VA_LIST_TYPE): New.
27422 (EXPAND_BUILTIN_VA_START): New.
27423 (EXPAND_BUILTIN_VA_ARG): New.
27424 * alpha.c (alpha_builtin_saveregs): Delete.
27425 (alpha_build_va_list): New.
27426 (alpha_va_start): New.
27427 (alpha_va_arg): New.
27429 Sun Jul 25 21:40:33 1999 Jeffrey A Law (law@cygnus.com)
27431 * config/svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in
27433 (DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP): Likewise.
27434 (FINI_SECTION_ASM_OP, ASM_OUTPUT_SECTION_NAME): Likewise.
27436 * gcc.texi: More changes related to list conversion.
27437 * invoke.texi: Likewise.
27439 Sun Jul 25 18:15:39 1999 Richard Henderson <rth@cygnus.com>
27441 * builtins.c (expand_builtin_saveregs): Remove static, remove exp
27442 and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
27443 (expand_builtin_next_arg): Accept ARGLIST not EXP.
27444 (stabilize_va_list): New function.
27445 (std_expand_builtin_va_start): New function.
27446 (expand_builtin_va_start): New function.
27447 (get_varargs_alias_set): New function.
27448 (std_expand_builtin_va_arg): New function.
27449 (expand_builtin_va_arg): New function.
27450 (expand_builtin_va_end): New function.
27451 (expand_builtin_va_copy): New function.
27452 (expand_builtin): Call them.
27453 * c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list,
27454 __builtin_{varargs_start,stdarg_start,end,copy}.
27455 (build_va_arg): New function.
27456 * c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete.
27457 (build_va_arg): Declare.
27458 * c-decl.c (ptr_type_node, va_list_type_node): New.
27459 * c-parse.gperf (__builtin_va_arg): New.
27460 * c-parse.in (VA_ARG): New token.
27461 (unary_expr): Recognize it.
27462 * expr.c (expand_expr): Expand VA_ARG_EXPR.
27463 * expr.h (std_expand_builtin_va_start): Declare.
27464 (std_expand_builtin_va_arg): Declare.
27465 (expand_builtin_va_arg): Declare.
27466 (get_varargs_alias_set): Declare.
27467 * tree.def (VA_ARG_EXPR): New.
27468 * tree.h (BUILT_IN_VARARGS_START): New.
27469 (BUILT_IN_STDARG_START, BUILT_IN_VA_END): New.
27470 (ptr_type_node, va_list_type_node): Declare.
27471 * tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument.
27472 * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
27473 * m88k.h, m88k.c: Likewise.
27474 * mn10300.h, mn10300.c: Likewise.
27475 * pa.h, pa.c: Likewise.
27476 * rs6000.h, rs6000.c: Likewise.
27477 * sh.h, sh.c: Likewise.
27478 * sparc.h, sparc.c: Likewise.
27480 * emit-rtl.c (operand_subword): Copy alias set.
27481 (change_address): Likewise.
27483 Sun Jul 25 15:04:37 1999 Jeffrey A Law (law@cygnus.com)
27485 * pa.c (compute_frame_size): Scan all the used callee saved registers,
27486 not just the first one.
27488 Fri Jul 23 14:09:58 1999 Philip Blundell <pb@nexus.co.uk>
27490 * config/arm/arm.h (TARGET_SWITCHES): Add
27491 -m{no-}single-pic-base. Correct help string for -mshort-load-words.
27492 (TARGET_OPTIONS): Add -mpic-register=.
27493 (ARM_FLAG_SINGLE_PIC_BASE, TARGET_SINGLE_PIC_BASE): Define.
27494 (arm_pic_register_string): Declare.
27495 (NEED_PLT_GOT): Delete, replace with ...
27496 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. New macros.
27497 (OUTPUT_INT_ADDR_CONST): Replace NEED_PLT_GOT with NEED_GOT_RELOC.
27498 (ASM_OUTPUT_MI_THUNK): Replace NEED_PLT_GOT with NEED_PLT_RELOC.
27499 * config/arm/arm.c (arm_override_options): Add new option
27501 (arm_pic_register_string): New variable.
27502 (arm_finalize_pic): Respect TARGET_SINGLE_PIC_BASE.
27503 (output_func_prologue): If TARGET_SINGLE_PIC_BASE, treat the PIC
27504 register as never live. Use NEED_PLT_RELOC not NEED_PLT_GOT.
27505 (output_return_instruction): Likewise.
27506 * config/arm/elf.h (NEED_PLT_GOT): Delete, replace with ...
27507 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. Define to flag_pic.
27508 * config/arm/arm.md: Use NEED_PLT_RELOC in place of NEED_PLT_GOT.
27510 * invoke.texi (ARM Options): Fix spelling. Remove duplicate
27511 mention of -msched-prolog. Document new options -msingle-pic-base
27512 and -mpic-register=.
27514 Thu Jul 22 18:23:56 1999 Richard Henderson <rth@cygnus.com>
27516 * haifa-sched.c (reemit_notes): Tidy.
27517 * sched.c (reemit_notes): Duplicate 1998-08-31 patch to
27520 Thu Jul 22 18:21:04 1999 Richard Henderson <rth@cygnus.com>
27522 * explow.c (trunc_int_for_mode): New function.
27523 (plus_constant_wide): Use it.
27524 * combine.c (simplify_and_const_int): Likewise.
27525 (merge_outer_ops): Likewise.
27526 (simplify_shift_const): Likewise.
27527 * cse.c (simplify_unary_operation): Likewise.
27528 (simplify_binary_operation): Likewise.
27529 * emit-rtl.c (operand_subword): Likewise.
27530 * rtl.h: Declare it.
27532 Thu Jul 22 14:34:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27534 * config/arm/arm.c (arm_print_operand): Fix typo in 'M' case
27535 (use NUM_REGS instead of NUM_INTS).
27537 Thu Jul 22 11:25:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27539 * builtins.c: New file.
27540 * expr.c (saveregs_value, apply_args_value): Delete definition,
27541 moved into builtins.c.
27542 (string_constant): No longer static.
27543 (get_pointer_alignment, c_strlen, get_memory_rtx, expand_builtin,
27544 apply_args_size, apply_result_size, result_vector,
27545 expand_builtin_apply_args, expand_builtin_apply,
27546 expand_builtin_return): Delete functions, moved into builtins.c.
27547 (INCOMING_REGNO, OUTGOING_REGNO): Delete unused macros.
27548 * expr.h (saveregs_value, apply_args_value): Declare variables.
27549 (expand_builtin, string_constant): Declare functions.
27550 * Makefile.in: Update to build builtin.o.
27552 Wed Jul 21 00:46:58 1999 Mark P. Mitchell <mark@codesourcery.com>
27554 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro.
27555 * tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Define it.
27556 * dwarf2out.c (dwarf2out_init): Don't output a label to mark the
27557 start of the text section if DWARF2_GENERATE_TEXT_SECTION_LABEL is
27559 * config/mips/iris6.h (DWARF2_GENERATE_TEXT_SECTION_LABEL):
27562 1999-07-21 Michael Meissner <meissner@cygnus.com>
27564 * print-rtl.c (print_rtx): Print the names of the virtual
27567 Wed Jul 21 16:00:32 1999 Nick Clifton <nickc@cygnus.com>
27569 * config/arm/arm.h (INITIAL_ELIMINATION_OFFSET): Fix typo
27570 introduced in previous delta.
27572 Wed Jul 21 14:30:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27574 * c-lang.c (finish_file): Rename void_list_node to void_list_node_1
27575 to avoid name clash.
27577 Wed Jul 21 08:39:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
27579 * c-lex.c (yylex) : Correct the test for overflow when lexing
27582 Tue Jul 20 18:02:42 1999 Richard Henderson <rth@cygnus.com>
27584 * haifa-sched.c (insn_cost): FREE implies cost 0 and vice versa.
27585 (adjust_priority): Always call ADJUST_PRIORITY.
27586 (schedule_insn): Only put insns into the ready at cost 0.
27587 (schedule_block): Remove redundant initial sort. Give clock_var
27588 and can_issue_more to MD_SCHED_REORDER. Requeue if hazard cost
27590 * tm.texi (MD_SCHED_REORDER): Update docs.
27592 * sparc.h (MD_SCHED_REORDER): Update. Set CAN_ISSUE_MORE.
27593 * sparc.c (ultra_reorder_called_this_block): Delete.
27594 (ultrasparc_sched_init): Don't set it.
27595 (ultrasparc_sched_reorder): Don't check it.
27597 Tue Jul 20 17:07:54 1999 Richard Henderson <rth@cygnus.com>
27599 * rs6000.h (struct rs6000_args): Add sysv_gregno.
27600 * rs6000.c (init_cumulative_args): Init sysv_gregno.
27601 (function_arg_boundary): Align DFmode.
27602 (function_arg_advance): Restructure for ABI_V4; use sysv_gregno
27603 to get fp reg and stack overflow correct.
27604 (function_arg): Likewise.
27605 (function_arg_pass_by_reference): True for TFmode for ABI_V4.
27606 (setup_incoming_varargs): Restructure for ABI_V4; use
27607 function_arg_advance to skip final named argument.
27608 (expand_builtin_saveregs): Properly unskip the last integer arg
27609 when doing varargs. Adjust overflow location calculation.
27611 * ginclude/va-ppc.h (struct __va_list_tag): Make gpr and fpr
27612 explicitly unsigned.
27613 (__VA_FP_REGSAVE): Use new OFS argument instead of AP->fpr directly.
27614 (__VA_GP_REGSAVE): Similarly.
27615 (__va_longlong_p): Delete.
27616 (__va_arg_type_violation): New declaration.
27617 (va_arg): Restructure. Flag promotion errors. Align double.
27618 TFmode passed by reference.
27620 * rs6000.md (movdi_32+1): Use GEN_INT after arithmetic
27621 in the HOST_BITS_PER_WIDE_INT > 32 case.
27623 Tue Jul 20 12:37:30 1999 Hans-Peter Nilsson <hp@bitrange.com>
27625 * dwarf2out.c (output_abbrev_section): Terminate with a zero.
27627 Tue Jul 20 12:12:27 1999 Jason Merrill <jason@yorick.cygnus.com>
27629 * gcc.c (default_compilers, cpp-output): Pass -fpreprocessed.
27630 * toplev.c (documented_lang_options): Add -fpreprocessed.
27631 * cpplib.h (struct cpp_buffer): Add preprocessed.
27632 * cppinit.c (cpp_handle_option): Handle -fpreprocessed.
27633 (cpp_start_read): Don't expand macros or emit an initial #line
27634 directive if -fpreprocessed.
27636 Tue Jul 20 12:12:09 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
27638 * cpplib.h (struct cpp_buffer): Added manual_pop for
27639 better C++ tokenization.
27640 * cpplib.c (cpp_get_token): Return CPP_EOF if manual_pop.
27641 Also, support C++ tokenization for ->*, .*, <?, and >? operators.
27642 * c-common.c (cpp_token): Make non-static.
27644 Tue Jul 20 11:24:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27646 * c-common.h: New file.
27647 * c-common.c (permanent_obstack): Delete unused declaration.
27648 (c_global_trees): New array.
27649 (c_common_nodes_and_builtins): New function; split off common code
27650 from init_decl_processing in both c-decl.c and cp/decl.c.
27651 * c-tree.h: Delete lots of declarations of tree nodes; replaced by
27652 c_global_trees and accessor macros defined in c-common.h.
27653 Include c-common.h.
27654 * c-decl.c: Delete definitions for tree nodes that were replaced by
27656 (init_decl_processing): Build void_list_node.
27657 Call c_common_nodes_and_builtins; delete code to generate the common
27659 * objc/objc-act.c (build_module_descriptor): Rename variable
27660 void_list_node to avoid clash with c-common.h.
27662 * Makefile.in: Update dependencies.
27663 * objc/Make-lang.in: Likewise.
27665 Mon Jul 19 14:22:18 1999 Mark P. Mitchell <mark@codesourcery.com>
27667 * config/mips/iris6gld.h (MAKE_DECL_ONE_ONLY): Define.
27668 (UNIQUE_SECTION_P): Likewise.
27669 (UNIQUE_SECTION): Likewise.
27671 1999-07-19 Linas Vepstas <linas@linas.org>
27673 * config/i370/README: New file.
27674 * config/i370/linux.h: New file.
27675 * config/i370/mvs.h: New file.
27676 * config/i370/oe.h: New file.
27677 * config/i370/t-linux: New file.
27678 * config/i370/t-mvs: New file.
27679 * config/i370/t-oe: New file.
27680 * config/i370/x-oe: New file.
27681 * config/i370/xm-linux.h: New file.
27682 * config/i370/xm-mvs.h: New file.
27683 * config/i370/xm-oe.h: New file.
27685 * i370.c (label_node_t): Add first_ref_page, label_addr,
27686 label_first_ref, label_last_ref members.
27687 (mvs_need_base_reload): Renamed from mvs_label_emitted.
27688 (MAX_MVS_LABEL_SIZE): Define.
27689 (MAX_LONG_LABEL_SIZE): Define.
27690 (alias_node_t, alias_anchor, alias_number): New.
27691 (mvs_function_table): Reorder for EBCDIC.
27692 (ascebc, ebcasc): Unconditionally define.
27693 (i370_branch_dest, i370_branch_length): New functions.
27694 (i370_short_branch, i370_label_scan): New functions.
27695 (mvs_get_label): Renamed from mvs_add_label. Search for
27696 an existing label before creating a new one.
27697 (mvs_add_label): New function.
27698 (mvs_get_label_page): New function.
27699 (mvs_free_label_list): Renamed from mvs_free_label. Iterate
27700 over the entire list.
27701 (mvs_check_page) [TARGET_HLASM]: Use BASR not BALR.
27702 (mvs_check_page) [TARGET_ELF_ABI]: New function.
27703 (mvs_add_alias, mvs_need_alias): New functions.
27704 (mvs_get_alias, mvs_check_alias): New functions.
27705 (handle_pragma): New function.
27706 (mvs_function_check): New function.
27707 (unsigned_jump_follows_p): Search harder.
27708 (i370_function_prolog) [TARGET_HLASM]: Handle LE370. Scan labels.
27709 (i370_function_prolog) [TARGET_ELF_ABI]: New function.
27710 * i370.h (TARGET_VERSION): Delete.
27711 (CPP_SPEC, CPP_PREDEFINES): Delete.
27712 (mvs_label_emitted): Delete.
27713 (TARGET_EBCDIC): Delete.
27714 (MAP_CHARACTER): Define only if TARGET_EBCDIC.
27715 (HANDLE_PRAGMA): Define.
27716 (HARD_REGNO_NREGS): Handle complex modes.
27717 (HARD_REGNO_MODE_OK): Likewise.
27718 (CLASS_MAX_NREGS): Likewise.
27719 (RET_REG): Likewise.
27720 (EXTRA_CONSTRAINT): Define.
27721 (RETURN_IN_MEMORY): True for DImode.
27722 (TRAMPOLINE_TEMPLATE): Use gen_rtx instead of GEN_INT.
27723 (FUNCTION_PROFILER): Delete.
27724 (COUNT_REGS): Fail if REG_P but not REG_OK_FOR_BASE_P.
27725 (NOTICE_UPDATE_CC): Correct handling of MULT, DIV, logicals and shifts.
27726 (TARGET_ESC, TARGET_BELL): Conditionally define for TARGET_EBCDIC.
27727 (TARGET_BS, TARGET_TAB, TARGET_NEWLINE): Likewise.
27728 (TARGET_VT, TARGET_FF, TARGET_CR): Likewise.
27729 (ASM_FILE_START): Add "RMODE ANY".
27730 (ASM_OUTPUT_EXTERNAL): Check for aliases.
27731 (ASM_GLOBALIZE_LABEL): Likewise.
27732 (ASM_OUTPUT_LABELREF): Likewise.
27733 (ASM_OUTPUT_COMMON): Likewise.
27734 (PRINT_OPERAND): Handle 'K', 'W', default.
27735 (PRINT_OPERAND_ADDRESS): New.
27736 (Lots of defines): Add support for TARGET_ELF_ABI.
27737 * i370.md (attr length): New. Define for all patterns.
27738 (*): Lots of tweeks to assembly output and constraints.
27740 Mon Jul 19 15:09:29 1999 David Edelsohn <edelsohn@gnu.org>
27742 * rs6000.md (arithmetic, logical, and shift Rc combiner patterns):
27743 Disable patterns performing SImode comparisons with SImode values
27744 if TARGET_POWERPC64 and instruction does not sign-extend or does
27745 not mask to narrower than SImode, i.e. where bit 31 and bit 63 may
27746 differ for signed quantities.
27747 (indirect_jump): Add expander to choose RTL based on TARGET_64BIT.
27748 (tablejump): Patterns contingent on TARGET_64BIT not TARGET_POWERPC64.
27749 (decrement_and_branch_on_count): Add 64-bit variant.
27751 Mon Jul 19 09:36:27 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27753 * final.c (output_asm_insn): When searching for the matching string
27754 for a given dialect, don't run past the end of the list of
27755 alternatives if there are fewer alternatives in the template than
27758 1999-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
27760 * gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org.
27761 Removed paragraph about compression of files and size limitation,
27762 duplicated in the FAQ. Use gcc-patches for posting patches.
27763 * gcc.c (main): Updated URL with bug reporting instructions to
27764 gcc.gnu.org. Removed e-mail address.
27765 * system.h (abort): Likewise.
27767 1999-07-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27769 * Makefile.in (stmp-multilib-sub): Make the files extracted
27770 from $(LIBGCC1) writable.
27772 Sat Jul 17 14:25:46 1999 Nick Clifton <nickc@cygnus.com>
27774 * config/arm/aout.h: Reformat for improved readability.
27776 * config/arm/arm.h: Reformat for improved readability.
27777 Replace uses of fprintf with asm_fprintf where appropriate.
27778 (ARM_DECLARE_FUNCTION_NAME): New macro: Perform any generic ARM
27779 function declaration assembler actions.
27780 (NUM_INTS): New macro: Convert from bytes to words.
27781 (NUM_REGS): New macro: Compute number of registers required to
27782 hold a quanitity of tyep MODE.
27783 (NUM_REGS2): New macro: Like NUM_REGS but also copes with BLKmode
27785 (NUM_ARG_REGS): New macro: The number of argument registers
27787 (ARG_REGISTER): New macro: Compute the register number of the Nth
27789 (LAST_ARG_REGNUM): New macro: The number of the last argument
27791 (SP_REGNUM): New macro: Register number of the stack pointer.
27792 (FP_REGNUM): New macro: Register number of the frame pointer.
27793 (FUNCTION_ARG, FUNCTION_ARG_PARTIAL_NREGS, INIT_CUMULATIVE_AGS,
27794 FUNCTION_ARG_ADVANCE, SETUP_INCOMING_VARARGS): Change
27795 CUMULATIVE_ARGS so that it counts registers not bytes.
27797 * config/arm/arm.c: Rename TARGET_THUMB_INTERWORK to
27799 Replace uses of fprintf with asm_fprintf where appropriate.
27800 (output_ascii_pseudo_op): Replace with version from thumb.c
27802 * config/arm/coff.h (ASM_FILE_START): Emit ASM_APP_OFF.
27804 * config/arm/elf.h (CPP_PREDEFINES): Replace with
27805 SUBTARGET_CPP_SPEC.
27806 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
27807 (ASM_FILE_START): Emit ASM_APP_OFF.
27809 Fri Jul 16 13:48:09 1999 Jeffrey A Law (law@cygnus.com)
27811 * pa.c (compute_frame_size): Round frame according to
27812 STACK_BOUNDARY rather than a hardwired value.
27814 * pa.h (POINTER_SIZE, PARM_BOUNDARY): Define in terms of BITS_PER_WORD.
27816 * configure.in (hppa*-*-hpux11*): Use symbolic MASK_PA_11 instead
27818 * configure: Rebuilt.
27820 * configure.in (hppa*-*-linux*): New configuration.
27821 * configure: Rebuilt.
27822 * pa.h (MAX_OFILE_ALIGNMENT): Delete.
27823 * pa/som.h (MAX_OFILE_ALIGNMENT): Define.
27824 * pa/pa-linux.h: New file.
27825 * pa/t-linux: New file.
27826 * pa/xm-linux.h: New file.
27828 * pa.c (hppa_legitimize_address): Change references from SImode to
27829 either Pmode or word_mode as appropriate.
27830 (emit_move_sequence, store_reg, load_reg): Likewise.
27831 (set_reg_plus_d, hppa_expand_prologue): Likewise.
27832 (output_mul_insn): Likewise.
27833 * pa.h (PROMOTE_MODE): Likewise.
27834 (INITIALZE_TRAMPOLINE): Likewise.
27835 (Pmode): Define to word_mode.
27837 * pa.c (compute_frame_size): Use UNITS_PER_WORD instead of hardwired
27838 value of 4. Allocate 8 bytes for each FP register save.
27839 (hppa_expand_epilogue): Use UNITS_PER_WORD instead of harwarewired
27841 (hppa_expand_prologue): Likewise.
27842 * pa.h (PROMOTE_MODE): Likewise.
27843 (HARD_REGNO_MODE_OK, FUNCTION_ARG_SIZE): Likewise.
27844 (FUNCTION_ARG_BOUNDARY): Likewise.
27846 * invoke.texi (HPPA Options): Remove -mspace/-mno-space.
27848 * pa.c (out_of_line_prologue_epilogue): Delete.
27849 (override_options): Remove -mspace related code.
27850 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
27851 (compute_frame_size): Only allocate space for register that
27852 actually need to be saved.
27853 * pa.h (MASK_SPACE, TARGET_SPACE): Delete.
27854 (TARGET_SWITCHES): Remove -mspace, -mno-space
27855 * pa/t-pa (LIB2FUNCS_EXTRA): Remove ee.asm and ee_fp.asm
27856 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise. Remove -mspace multilib.
27857 * pa/ee.asm, pa/ee_fp.asm: Delete.
27859 * pa/elf.h (ASM_OUTPUT_DOUBLE_INT): Define.
27861 * config/svr4.h (CONST_SECTION_ASM_OP): Do not emit assembler
27862 directive in column zero.
27864 Fri Jul 16 01:39:57 1999 Jeffrey A Law (law@cygnus.com)
27866 * m68k.c (output_function_prologue): Fix computation of save mask
27867 when generating PIC code.
27869 Thu Jul 15 15:40:09 1999 Jim Wilson <wilson@cygnus.com>
27871 * tree.c (build_type_attribute_variant): Move current_obstack restore
27872 after build_qualified_type call.
27874 1999-07-15 Mark Mitchell <mark@codesourcery.com>
27876 * configure.in: Use t-iris6, even with GNU LD.
27877 * config/mips/iris6gld.h: Fix typo in linker spec.
27878 * config/mips/t-iris6gld: Remove.
27880 Thu Jul 15 15:15:43 1999 David Edelsohn <edelsohn@gnu.org>
27882 * rs6000.md (insv, extzv): Remove SImode dependence in named
27883 patterns. Explicitly generate DImode RTL if PowerPC64 and
27885 (insvdi): Reverse start and size in instruction template.
27887 1999-07-12 Joseph S. Myers <jsm28@cam.ac.uk>
27889 * invoke.texi: Typo fixes.
27891 Wed Jul 14 23:28:06 1999 Jeffrey A Law (law@cygnus.com)
27893 * emit-rtl.c (gen_realpart): Issue an error for cases GCC can not
27894 handle at this time instead of silently generating incorrect code.
27895 (gen_imagpart): Likewise.
27897 * reload.c (find_reloads): Emit a USE for a pseudo register without
27898 a hard register if we could not create an optional reload for the
27901 Wed Jul 14 23:45:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
27903 * c-typeck.c (output_init_element, process_init_element):
27904 When advancing constructor_unfilled_fields for a RECORD_TYPE,
27905 check for nameless bit fields.
27907 Wed Jul 14 01:57:39 1999 Richard Henderson <rth@cygnus.com>
27909 * regclass.c (scan_one_insn): Notice subregs that change the
27910 size of their operand.
27911 (record_reg_classes): Use that to obey CLASS_CANNOT_CHANGE_SIZE.
27913 Wed Jul 14 01:41:42 1999 Jeffrey A Law (law@cygnus.com)
27915 * configure.in (alpha*-*-*): Include alpha/t-ieee.
27916 * configure: Rebuilt.
27917 * alpha/t-ieee: New file.
27919 Tue Jul 13 10:45:58 1999 Jeffrey A Law (law@cygnus.com)
27921 * rs6000.c (find_addr_reg): Do not select r0 as an address
27924 Tue Jul 13 00:46:18 1999 Philippe De Muyter <phdm@macqel.be>
27926 * m68k/x-mot3300 (XCFLAGS): List of big files now includes `cse.o'.
27928 Mon Jul 12 14:29:15 1999 Jeffrey A Law (law@cygnus.com)
27930 * rs6000.md (movsf): Do not force easy FP constants into memory.
27932 * expr.c (expand_expr, case PLUS_EXPR): Pass constants through
27933 immed_double_const to ensure they are properly truncated then
27936 Mon Jul 12 10:40:01 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
27938 * config/arm/thumb.c (thumb_reorg): Call replace_symbols_in_block
27939 always unless NO_DEBUG is used. Compile this code
27941 (replace_symbols_in_block): Compile it unconditionally.
27943 Sun Jul 11 12:32:32 1999 Jeffrey A Law (law@cygnus.com)
27945 * configure.in (i?86-*-elf*): New target.
27946 * configure: Rebuilt.
27947 * i386/i386elf.h, i386/t-i386elf: New files.
27949 Fri Jul 9 22:39:44 1999 Jason Merrill <jason@yorick.cygnus.com>
27951 * toplev.c (main): Don't complain about saying -gdwarf.
27952 (rest_of_compilation): Remove redundant code.
27954 Fri Jul 9 19:08:55 1999 Jim Wilson <wilson@cygnus.com>
27956 * unroll.c (unroll_loops): Don't delete named CODE_LABELs.
27958 Fri Jul 9 18:54:18 1999 Felix Lee <flee@cygnus.com>
27960 * config/i960/i960.c (ret_label): Change asm label from "LR:" to
27961 "Li960R:", to avoid name clash.
27963 Fri Jul 9 10:48:28 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27965 * loop.c (check_dbra_loop): When reversing a loop, delete all
27966 REG_EQUAL notes referencing the reversed biv except those which are
27967 for a giv based on it.
27969 Fri Jul 9 03:51:52 1999 Jeffrey A Law (law@cygnus.com)
27971 * version.c: Drop "gcc-" prefix from version #.
27973 Thu Jul 8 18:06:30 1999 Jason Merrill <jason@yorick.cygnus.com>
27975 * dwarf2out.c (dwarf2out_line): Emit a line number comment after
27976 the label if we're being verbose.
27978 Thu Jul 8 14:18:46 1999 Richard Henderson <rth@cygnus.com>
27980 * m68k.c (output_function_prologue): Add pic register to mask
27981 if live and flag_pic.
27982 (output_function_epilogue): Likewise.
27984 Thu Jul 8 12:55:12 1999 Jeffrey A Law (law@cygnus.com)
27986 * dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Do not put assembler
27987 directives in column zero.
27989 * pa/elf.h (ASM_FILE_START): Define.
27990 * pa/som.h (ASM_FILE_START): Include .level directives.
27991 * pa/hpux10.h (ASM_FILE_START): Delete.
27992 * pa/hpux11.h (ASM_FILE_START): Delete.
27994 * pa/elf.h (BSS_SECTION_ASM_OP): Use .section .bss.
27996 Thu Jul 8 18:03:19 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
27998 * reload1.c (choose_reload_regs): Never call remove_adress_replacements
27999 when reload_out equals reload_in.
28001 Thu Jul 8 16:50:14 1999 Nick Clifton <nickc@cygnus.com>
28003 * invoke.texi (Spec Files): New node: Describe the contents of
28006 Thu Jul 8 10:28:25 1999 Craig Burley <craig@jcb-sc.com>
28008 * invoke.texi (DEC Alpha Options): Put @end table at
28009 beginning of line, to avoid confusing texi2html.
28011 Thu Jul 8 09:22:06 1999 Nick Clifton <nickc@cygnus.com>
28013 * config/arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Fixed typo
28014 introduced in previous delta.
28016 Wed Jul 7 02:00:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
28018 * reload1.c (gen_reload): When synthesizing a 3 operand add
28019 sequence, improve test for when to reload OP1 into the reload
28020 register instead of OP0.
28022 Wed Jul 7 01:38:03 1999 Jim Wilson <wilson@cygnus.com>
28024 * unroll.c (unroll_loop): Don't delete NOTE_INSN_DELETED_LABEL notes.
28026 1999-07-07 Manfred Hollstein <mhollstein@cygnus.com>
28028 * m88k/dguxbcs.h (CPP_SPEC): Add missing \ in multi-line
28031 Wed Jul 7 01:16:43 1999 Richard Henderson <rth@cygnus.com>
28033 * ginclude/varargs.h (__builtin_va_alist_t): New typedef.
28034 (va_dcl): Use __builtin_va_alist_t.
28036 Wed Jul 7 01:14:42 1999 Jason Merrill <jason@yorick.cygnus.com>
28038 * dwarf2out.c (gen_struct_or_union_type_die): Only remember types
28039 on the permanent_obstack.
28040 * dwarfout.c (output_type): Likewise.
28042 Tue Jul 6 15:25:32 1999 Gavin Romig-Koch <gavin@cygnus.com>
28044 * c-common.c (unsigned_type,signed_type,signed_or_unsigned_type) :
28045 Merged from c-typeck.c and cp/typeck.c.
28046 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
28047 Merged into c-common.
28049 Tue Jul 6 13:06:01 1999 Dave Brolley <brolley@cygnus.com>
28051 * c-lex.c (errorcount): Declare it.
28052 (finish_parse): Update errorcount when using CPPLIB.
28054 1999-07-06 Bruce Korb <ddsinc09@ix.netcom.com>
28056 * fixinc/inclhack.def(end_else_label): Double the backslash so
28057 sed gets a chance to see it.
28058 * fixinc/inclhack.sh: regen
28059 * fixinc/fixincl.x: regen
28061 Fri Jul 2 18:49:51 1999 Nick Clifton <nickc@cygnus.com>
28063 Add framework to support armv5 architecture when it becomes
28066 * config/arm/arm.c (FL_ARCH5): New processor capability flag.
28067 (arm_arch5): New variable.
28068 (all_architectures): Add armv5 line.
28069 * config/arm/arm.h (CPP_CPU_ARCH_SPEC): Define __ARM_ARCH_5__ if
28070 -march=armv5 is specified on the command line.
28071 (arm_arch5): Export this variable.
28072 * invoke.texi: Document new string accepted by -march= switch for
28075 * config/arm/arm.h: Replace use of constant 12 as a register
28076 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
28077 * config/arm/arm.c: Replace use of constant 12 as a register
28078 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
28080 * config/arm/elf.h: Tidy up.
28081 * config/arm/coff.h: Tidy up.
28083 Thu Jul 1 19:08:13 1999 Mark P. Mitchell <mark@codesourcery.com>
28085 * gcc/configure.in (mips-sgi-irix6*): Handle --with-gnu-ld.
28086 * gcc/config/mips/t-iris6gld: New file.
28087 * gcc/config/mips/iris6gld.h: Likewise.
28089 Fri Jul 2 13:23:39 1999 Gavin Romig-Koch <gavin@cygnus.com>
28091 * c-decl.c (widest_integer_literal_type_node,
28092 widest_unsigned_literal_type) : New.
28093 (init_decl_processing): Handle/use the two new types.
28094 * c-common.c (type_for_size,type_for_mode) : Same.
28095 * c-lex.c (yylex) : Same.
28096 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
28098 * c-tree.h (widest_integer_literal_type_node,
28099 widest_unsigned_literal_type) : New.
28101 Fri Jul 2 03:05:44 1999 Jeffrey A Law (law@cygnus.com)
28103 * dwarfout.c (field_byte_offset): Correctly compute the object's
28104 byte offset for the first bit of a field which crosses an alignment
28105 boundary on a !BYTES_BIG_ENDIAN target.
28107 Fri Jul 2 01:36:36 1999 Robert Lipe <robertlipe@usa.net>
28109 * fixinc.svr4: Fix <arpa/inet.h> by deleting protos for htons and
28112 Fri Jul 2 00:46:47 1999 Richard Henderson <rth@cygnus.com>
28113 Jeff Law <law@cygnus.com>
28115 * ginclude/varargs.h (va_dcl): Use word_mode for type of
28118 * except.c: Include intl.h.
28119 (expand_eh_return): Set current_function_cannot_inline.
28120 (save_eh_status, restore_eh_status): Twiddle eh_return_stub_label.
28121 * function.h (struct function): Add eh_return_stub_label.
28122 * flow.c (delete_unreachable_blocks): Don't merge across EH edges.
28123 * Makefile.in (except.o): Depend on intl.h.
28125 Fri Jul 2 00:04:23 1999 David Edelsohn <edelsohn@gnu.org>
28127 * rs6000.md (movdf_hardfloat32): Handle PRE_INC and PRE_DEC the
28128 same as offsettable in cases 1 and 2.
28130 Thu Jul 1 20:54:10 1999 Richard Henderson <rth@cygnus.com>
28132 * alpha.md (extqh): Define as 64-((R&7)*8) instead of 56-(((R-1)&7)*8).
28133 (extlh, extwh): Likewise.
28135 Thu Jul 1 11:05:25 1999 Gavin Romig-Koch <gavin@cygnus.com>
28137 * c-lex.c (yylex): Improve 'integer constant out of range' messages.
28139 Wed Jun 30 16:51:41 1999 Nick Clifton <nickc@cygnus.com>
28141 * configure.in: Add arm-pe and thumb-pe targets.
28142 * configure: Regenerate.
28144 * thumb.c (arm_naked_function_p): New function: Determines if
28145 a function is naked (has no gcc generated prologue/epilogue).
28146 (is_called_in_ARM_mode): Return true if the func has the
28147 interfacearm attribute.
28148 (output_return): Do not generate a return for naked functions.
28149 (thumb_function_prologue): Do not generate a prologue for
28151 (thumb_expand_prologue): Do not generate a prologue for naked
28153 (thumb_expand_epilogue): Do not generate an epilogue for naked
28155 (arm_valid_machine_decl_attribute): New function, copied from
28156 arm.c: Permit naked and interfacearm attributes.
28158 * config/arm/pe.c: New file: Support code for arm-pe target.
28159 * config/arm/pe.h: New file: Header file for arm-pe target.
28160 * config/arm/tpe.h: New file: Header file for thumb-pe target.
28161 * config/arm/t-thumb-pe: New file: Makefile fragment for
28164 1999-07-01 Mark Kettenis <kettenis@gnu.org>
28166 * config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if
28167 -fPIC or -fpic is specified.
28169 Wed Jun 30 03:31:54 1999 Jeffrey A Law (law@cygnus.com)
28171 * expr.c (emit_block_move): Use copy_to_mode_reg for
28172 !TARGET_MEM_FUNCTIONS case too.
28174 * configure.in (hppa*-*-*): Add som.h or elf.h to tm_file as
28176 * configure: Rebuilt.
28177 (hppa1.1-*-pro*, hppa1.1-*-rtems*): Define target_cpu_default.
28178 * pa.h: Include dbxelf.h. Delete various dbx/stabs related
28179 definitions made redundant by dbxelf.h inclusion. Delete
28180 lots of definitions related to assembly output that are
28181 specific to the SOM object format.
28182 * pa.c (output_function_prologue): Do not emit the function's
28184 * pa-pro-end.h (STARTFILE_SPEC): Undefine before redefining.
28185 * pa-pro.h: Deleted.
28186 * som.h: New file with SOM specific definitions.
28187 * elf.h: New file with ELF specific definitions.
28189 * elfos.h (const_section): Output a tab before assembler directives.
28190 (ctors_section, dtors_section): Likewise.
28191 (ASM_OUTPUT_SECTION_NAME): Likewise.
28193 * pa/pa1.h: Delete unused file.
28195 Tue Jun 29 01:37:53 1999 Jeffrey A Law (law@cygnus.com)
28197 * configure.in (hppa*-hp-hpux11*): New configuration.
28198 * configure: Rebuilt.
28199 * pa/pa-hpux11.h: New file.
28200 * pa.h (CPP_SPEC): Conditionally add -D__STDC_EXT__ to the cpp
28203 * mips.md (leasi, leadi): New patterns.
28205 * expr.c (emit_block_move): Properly handle case where one of the
28206 block move arguments has a queued increment or decrement.
28207 (clear_storage): Similarly. Fix formatting goof.
28209 1999-06-28 "David O'Brien" <obrien@NUXI.com>
28211 * fixinc/inclhack.def(stdio_va_list): This patch Removes a
28212 semicolon from the BSD VA_LIST replacement expression.
28214 * fixinc/inclhack.sh: regen
28215 * fixinc/fixincl.x: regen
28217 * fixinc/mkfixinc.sh: Have `i[34567]86-*-freebsd*' machines
28218 now use the fixincl program.
28220 Mon Jun 28 05:28:12 1999 Jeffrey A Law (law@cygnus.com)
28222 * m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA
28223 case. Also make the PIC register call_used.
28225 * m68k.h (FINALIZE_PIC): Delete.
28226 * m68k.c (finalize_pic): Delete.
28228 Mon Jun 28 05:16:35 1999 Richard Henderson <rth@cygnus.com>
28230 * m68k.h (PREFERRED_RELOAD_CLASS): Don't force any FP const_doubles
28233 Mon Jun 28 04:07:27 1999 David Edelsohn <edelsohn@gnu.org>
28235 * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.
28237 Sun Jun 27 02:39:08 1999 Richard Henderson <rth@cygnus.com>
28239 * jump.c (jump_optimize_1): Validate the cmov copy to a temporary.
28241 Sat Jun 26 17:18:18 1999 David Edelsohn <edelsohn@gnu.org>
28243 * rs6000.c (print_operand, case 'L'): Use plus_constant_for_output.
28245 Fri Jun 25 11:33:24 1999 Richard Henderson <rth@cygnus.com>
28247 * alpha.c (override_options): Add -mcpu=ev45 as an alias for ev4.
28249 Fri Jun 25 13:41:25 1999 David Edelsohn <edelsohn@gnu.org>
28251 * rs6000.c (output_toc): Always use hex values for floating-point
28252 constants. Store single-precision values in upper-half of TOC
28253 entry in 64-bit mode.
28254 * rs6000.md (floatsidf2, floatunssidf2): Add !TARGET_POWERPC64
28255 to final constraints.
28256 (fix_truncdfsi2 splitter): Change pattern matching fctiwz.
28257 (fctiwz): Improve accuracy of RTL for pattern.
28259 Fri Jun 25 11:26:38 1999 Gavin Romig-Koch <gavin@cygnus.com>
28261 * expr.c (expand_expr): Allow RTL_EXPR's through the
28262 MAX_INTEGER_COMPUTATION_MODE checks.
28264 Fri Jun 25 06:06:37 1999 Richard Henderson <rth@cygnus.com>
28266 * alpha.h (MASK_SUPPORT_ARCH, MASK_CPU_EV5, MASK_CPU_EV6): Define
28267 such that MASK_SUPPORT_ARCH is not negative.
28269 Fri Jun 25 05:35:44 1999 Jeffrey A Law (law@cygnus.com)
28271 * loop.c (verify_dominator): Properly handle ADDR_VEC and
28272 ADDR_DIFF_VEC insns that appear inside loops.
28274 Thu Jun 24 22:54:05 1999 David Edelsohn <edelsohn@gnu.org>
28275 Jeff Law <law@cygnus.com>
28277 * rs6000.md (movdf_hardfloat32): Revert previous patch.
28278 Handle LO_SUM the same as offsettable in cases 1 and 2.
28279 * rs6000.c (find_addr_reg): Revert previous patch.
28281 Thu Jun 24 22:43:12 1999 Philippe De Muyter <phdm@macqel.be>
28283 * system.h (strstr): New external function declaration.
28284 * acconfig.h (NEED_DECLARATION_STRSTR): New define slot.
28285 * configure.in (GCC_NEED_DECLARATIONS): Check for strstr.
28286 * config.in, configure: Rebuilt.
28288 1999-06-24 Tom Tromey <tromey@cygnus.com>
28290 * gcc.c (main): Read user-specified specs files after computing
28291 additional startfile_prefixes.
28293 Thu Jun 24 15:00:47 1999 Mark Mitchell <mark@codesourcery.com>
28295 Revert these two patches:
28297 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28298 * loop.c (strength_reduce): When doing biv->giv conversion, update
28299 reg note of NEXT->insn.
28301 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28302 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
28304 (recombine_givs): Set ix field after sorting.
28306 Wed Jun 23 21:26:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28308 * rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
28309 for the parts of an UNSPEC / UNSPEC_VOLATILE.
28311 1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com>
28313 *fixinc/inclhack.def: Add fix development commentary
28314 (read_ret_type): reactivate and add selection clause
28315 (zzz_*): tweak output file name to match what is used in hackshell.tpl
28316 *fixinc/{fixincl.x|inclhack.sh}: regen
28318 Wed Jun 23 00:48:21 1999 Jason Merrill <jason@yorick.cygnus.com>
28320 * expr.c (expand_expr): STRIP_NOPS before checking against
28321 MAX_INTEGER_COMPUTATION_MODE
28322 (check_max_integer_computation_mode): Likewise.
28324 Tue Jun 22 20:23:43 1999 Jim Wilson <wilson@cygnus.com>
28326 * md.texi (smul@var{m}3_highpart): Add missing 's' prefix.
28328 1999-06-22 Jim Wilson <wilson@cygnus.com>
28330 * expr.c (store_expr): When target is a promoted subreg, return a
28331 promoted subreg as a result.
28333 Tue Jun 22 17:14:58 1999 Michael Meissner <meissner@cygnus.com>
28335 * dwarf2out.c (dwarf2out_frame_debug_expr): Reformat to match GNU
28337 (dwarf2out_define): Mark unused parameters appropriately.
28338 (gen_unspecified_parameters_die): Ditto.
28339 (gen_subprogram_die): Fix signed/unsigned warnings.
28340 (gen_variable_die): Ditto.
28342 1999-06-22 Bruce Korb <ddsinc09@ix.netcom.com>
28344 * fixinc/inclhack.def(end_else_label): combined else_label
28345 and endif_label and fixed the sed expression.
28346 *fixinc/{fixincl.x|inclhack.sh}: regen
28348 Tue Jun 22 01:58:18 1999 Jeffrey A Law (law@cygnus.com)
28350 * rs6000.md (movdf_hardfloat32): Use %X instead of always emitting
28351 'x' when handling non-offsettable addresses
28353 Tue Jun 22 00:20:05 1999 Richard Earnshaw (rearnsha@arm.com)
28355 * final.c (shorten_branches): Don't try to split an insn that has
28358 Mon Jun 21 12:47:39 1999 Mark Mitchell <mark@codesourcery.com>
28360 * config/mips/mips.c (symbolic_expression_p): New function.
28361 (mips_select_rtx_section): Put symbolic expressions in the
28362 data section, not the read-only data section.
28364 Mon Jun 21 22:13:06 1999 Jeffrey A Law (law@cygnus.com)
28366 * rs6000.md (find_addr_reg): Handle LO_SUM addresses.
28368 Mon Jun 21 20:10:42 1999 Richard Henderson <rth@cygnus.com>
28370 * collect2.c (main): Log frame table count.
28371 (GCC_OK_SYMBOL) [ECOFF]: Accept stGlobal.
28372 (scan_prog_file) [COFF]: Handle frame tables.
28374 * alpha/alpha.h (UNALIGNED_SHORT_ASM_OP): Define.
28375 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Define.
28376 * alpha/elf.h: Undef them again.
28377 * alpha/vms.h: Remove their definitions.
28379 Tue Jun 22 03:17:53 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28381 * sh.c (machine_dependent_reorg): When fixing up fp pcloads,
28382 remove the clobber of r0 and change the REG_UNUSED note to
28385 1999-06-21 Jakub Jelinek <jj@ultra.linux.cz>
28387 * real.c (ereal_from_double): Fix for 64-bit big endian hosts.
28388 * emit-rtl.c (gen_lowpart_common): Add case for hosts where double
28389 fits in HOST_WIDE_INT and one uses union to access a long constant
28392 Mon Jun 21 17:18:25 1999 Richard Henderson <rth@cygnus.com>
28394 * sparc.c (sparc_override_options): Don't allow profiling for
28395 code models other than medlow.
28396 (sparc_function_profiler): New function from old FUNCTION_PROFILER
28397 macro. Use ASM_GENERATE_INTERNAL_LABEL and MCOUNT_FUNCTION.
28398 (sparc_function_block_profiler): Likewise. Use user_label_prefix.
28399 (sparc_block_profiler): Likewise.
28400 (sparc_function_block_profiler_exit): Likewise.
28401 * sparc.h (FUNCTION_PROFILER): Call new sparc.c function.
28402 (FUNCTION_BLOCK_PROFILER): Likewise.
28403 (BLOCK_PROFILER): Likewise.
28404 (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
28405 (MCOUNT_FUNCTION): New.
28406 * sparc/pbd.h (FUNCTION_PROFILER): Delete.
28407 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Delete.
28408 * sparc/sun4o3.h (FUNCTION_PROFILER): Delete.
28409 (MCOUNT_FUNCTION): New.
28410 * sparc/sysv4.h (FUNCTION_BLOCK_PROFILER): Delete.
28411 (BLOCK_PROFILER): Delete.
28412 (MCOUNT_FUNCTION): New.
28414 Mon Jun 21 14:11:29 1999 David Edelsohn <edelsohn@gnu.org>
28416 * rs6000.md (movdf_hardfloat32): Fix typo in case 2.
28418 Mon Jun 21 12:27:17 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
28420 * config/mips/elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28423 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28426 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28429 * config/arm/telf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28432 Mon Jun 21 14:58:42 1999 Nick Clifton <nickc@cygnus.com>
28434 * config/arm/arm.h: Add cpp support for ARM920 and ARM920T cpu
28437 Mon Jun 21 06:22:21 1999 Mark Elbrecht <snowball3@bigfoot.com>
28439 * i386/djgpp.h (LIB_SPEC): New.
28440 (STARTFILE_SPEC): New.
28442 * i386/xm-djgpp.h (NO_SYS_SIGLIST): Deleted. Now obsolete.
28444 Mon Jun 21 06:19:33 1999 Philippe De Muyter <phdm@macqel.be>
28446 * fixinc/Makefile.in (gnu-regex.o): Do not define STDC_HEADERS in
28449 * system.h (WSTOPSIG): New macro.
28451 Mon Jun 21 05:33:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
28453 * c-pragma.c (push_alignment): Don't ignore alignments greater than
28455 (insert_pack_attributes): Take into account member natural
28458 * i386/winnt.c (exports_head): New static variable.
28459 (i386_pe_record_exported_symbol): New function.
28460 (i386_pe_asm_file_end): Use.
28461 * i386/cygwin.h (ASM_OUTPUT_COMMON): Record the exported
28462 symbols to be emitted at end of assembly.
28463 (ASM_DECLARE_OBJECT_NAME): Likewise.
28464 (ASM_DECLARE_FUNCTION_NAME): Likewise.
28466 * i386/uwin.h (CPP_SPEC): Use -idirafter instead -iprefix and
28469 Mon Jun 21 04:44:31 1999 Jeffrey A Law (law@cygnus.com)
28471 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Fix paren error introduced
28474 Sun Jun 20 17:27:20 1999 Richard Henderson <rth@cygnus.com>
28476 * haifa-sched.c (sched_analyze_1): Use free_list instead of
28477 zapping reg_last_uses directly.
28478 (sched_analyze_2, sched_analyze_insn): Likewise.
28479 (sched_analyze): Likewise. Don't clear reg_last_uses on calls.
28481 Sun Jun 20 16:57:29 1999 David Edelsohn <edelsohn@gnu.org>
28483 * rs6000.md (movdf_hardfloat32): Use worst case insn length
28484 attributes for cases 1 and 2.
28486 Sat Jun 19 22:52:55 1999 Richard Henderson <rth@cygnus.com>
28488 * haifa-sched.c (sched_analyze): Mark call-user regs as clobbered
28491 Sat Jun 19 05:40:07 1999 Philip Blundell <pb@nexus.co.uk>
28493 * arm.c (arm_reload_in_hi): Invert sense of test on BYTES_BIG_ENDIAN.
28495 Sat Jun 19 05:25:05 1999 Richard Earnshaw (rearnsha@arm.com)
28497 * arm.h (CONDITIONAL_REGISTER_USAGE): If flag_pic, never use
28498 PIC_OFFSET_TABLE_REGNUM for general alloaction.
28499 (INITIAL_ELIMINATION_OFFSET): Count the fact that the PIC register
28500 must be stacked if it is used for PIC accesses.
28501 * arm.c (use_return_insn): Handle PIC register specially.
28502 (output_return_instruction): Likewise.
28503 (output_func_{prologue,epilogue}): Likewise.
28504 (output_expand_prologue): Likewise.
28506 * arm.md (*adddf_esfdf_df): Renamed from *adddf_df_esfdf.
28507 (*strsi_predec): Renamed from *strqi_predec.
28508 (*loadsi_shiftpreinc): Renamed from *loadqi_shiftpreinc.
28509 (*loadsi_shiftpredec): Renamed from *loadqi_shiftpredec.
28511 * arm.c (arm_override_options): Remove warning about PIC code
28512 not being supported.
28514 Fri Jun 18 23:47:06 1999 David Edelsohn <edelsohn@gnu.org>
28516 * rs6000.c (find_addr_reg): New function.
28517 * rs6000.h (find_addr_reg): Declare.
28518 (offsettable_addr_operand): Delete.
28519 * rs6000.md (movdf_hardfloat32): Handle non-offsettable loads
28520 from and stores to GPRs.
28522 Fri Jun 18 15:44:18 1999 Richard Henderson <rth@cygnus.com>
28524 * alpha.c (alpha_expand_block_move): Use get_insns rather than
28525 gen_sequence as argument to emit_no_conflict_block.
28527 Fri Jun 18 07:02 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28529 * fixinc/mkfixinc.sh: enable the fixincl program for DG/UX
28530 * fixinc/inclhack.def(dgux_int_varargs): script must end with \n
28531 *fixinc/fixincl.x: regen
28532 *fixinc/inclhack.sh: regen
28534 Thu Jun 17 15:06:10 PDT 1999 Don Lindsay <dlindsay@cygnus.com>
28536 * added support for -mpcrel (PC relative addressing for m68k)
28537 based on code done by Michael Tiemann <tiemann@axon.cygnus.com>.
28538 * invoke.texi (m68000 options): Add documentation for -mpcrel flag.
28539 * m68k.c (print_operand_address): Handle 32-bit PIC case.
28540 (comments for general_src_operand): Add some explanation
28541 about EXTRA_CONSTRAINTS.
28542 (OVERRIDE_OPTIONS): Enable -fPIC in combination with -mpcrel.
28543 * m68kelf.h (OVERRIDE_OPTIONS): Ditto.
28544 (LEGITIMATE_PIC_OPERAND_P): Fix typo.
28545 (LEGITIMATE_PIC_OPERAND_P): Re-derive from m68k.h case.
28546 * m68k.h (LEGITIMATE_PIC_OPERAND_P): Fix delete-o.
28547 (INDIRECTABLE_1_ADDRESS): Delete spurious '/' at end of macro.
28548 (OVERRIDE_OPTIONS): Change behavior so that -mpcrel implies -fpic
28549 if not already set.
28550 (OVERRIDE_OPTIONS): Merge in changes from m68k.h.
28551 * m68k.h (TARGET_PCREL): New target flag.
28552 (TARGET_SWITCHES): Add "pcrel" as a recognized switch.
28553 (OVERRIDE_OPTIONS): Add checks for -mpcrel.
28554 (LEGITIMATE_PIC_OPERAND_P): Don't normally accept anything that
28555 contains a SYMBOL_REF. Relax this constraint during reload, since
28556 we want to use the predicates, not reload's built-in concept of a
28557 valid memory address, to control what insns need reloading.
28558 (EXTRA_CONSTRAINT): Define constraints to accept pc-relative
28559 operands (essentially 'g', 'm', and 's' under normal circumstances).
28560 * m68k.c (print_operand): Cause printing of pc-relative addresses
28561 to include pc register.
28562 (print_operand_address): Ditto.
28563 (general_src_operand): Accept operands that are not only
28564 general_operands, but are also valid when used as a pc-relative
28566 (nonimmediate_src_operand): Similar, for nonimmediate_operands.
28567 (memory_src_operand): Similar, for memory_operands.
28568 (pcrel_address): New predicate to accept the special case of a
28569 pc-relative address.
28570 * m68k.md (many patterns): Rewrite common SImode, HImode, and
28571 QImode insns to accept *_src_operand instead of *_operand where
28572 pc-relative operands can fit. For example, a pc-relative operand
28573 can be used as a memory source operand for addsi3, but not as a
28574 memory destination.
28575 * hp320.h linux.h m68kv4.h (LEGITIMATE_PIC_OPERAND_P) as in m68k.h.
28577 Fri Jun 18 09:11:07 1999 Nick Clifton <nickc@cygnus.com>
28579 * config/arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS): New Marco: USe
28580 .thumb_set pseudo op to mark aliases of thumb functions.
28582 Wed Jun 16 18:19:13 1999 Nick Clifton <nickc@cygnus.com>
28584 * varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in
28585 preference to ASM_OUTPUT_DEF, if it is defined.
28587 * tm.texi: Document new, optional target macro
28588 ASM_OUTPUT_DEF_FROM_DECLS.
28590 Thu Jun 17 15:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28592 * fixincludes: ISCNTL patch
28593 * fixinc/inclhack.def (ioctl_fix_ctrl): Fix the definition of [_]*ISCTRL().
28594 (dgux_int_varargs): new for DG/UX
28595 * fixinc/{fixincl.x,inclhack.sh}: Regenerated.
28597 Thu Jun 17 21:34:24 1999 Jeff Law <law@cygnus.com>
28599 * invoke.texi (ia32 options): Fix typo.
28601 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28603 * loop.c (strength_reduce): When doing biv->giv conversion, update
28604 reg note of NEXT->insn.
28606 Thu Jun 17 14:25:08 1999 Jeffrey A Law (law@cygnus.com)
28608 * loop.c (move_movables): Note issues with replacing REGs with
28610 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Handle SUBREGs properly.
28612 Thu Jun 17 13:28:30 1999 David O'Brien <obrien@FreeBSD.org>
28614 * i386/freebsd-elf.h (LINK_SPEC): Fix typo.
28616 * i386/freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and
28617 the reference to `mcount' was not correct for the ELF on FreeBSD.
28619 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28621 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
28624 (recombine_givs): Set ix field after sorting.
28626 Thu Jun 17 02:54:30 1999 Jeffrey A Law (law@cygnus.com)
28628 * emit-rtl.c (operand_subword): Tighten checks for when it is safe
28629 to safe to extract a subword out of a REG.
28631 Thu Jun 17 01:45:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28633 * sh.md (mulsi3): Don't add a no-op move at the end.
28635 Wed Jun 16 20:29:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28637 * cse.c (cse_insn): Don't put hard register source into tables for
28638 the last insn of a libcall.
28640 Wed Jun 16 19:44:33 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28642 * loop.c (strength_reduce): Insert sets of derived givs at every
28643 biv increment, even if it's the only one.
28645 Wed Jun 16 10:33:02 1999 Jason Merrill <jason@yorick.cygnus.com>
28647 * dwarfout.c (add_incomplete_type): New fn.
28648 (output_type): Call it.
28649 (retry_incomplete_types): New fn.
28650 (dwarfout_finish): Call it.
28652 From Eric Raskin <ehr@listworks.com>:
28653 (output_type): Output types for bases.
28655 Tue Jun 15 12:51:23 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
28657 * mips.c (mips_output_conditional_branch): Add `break'
28658 between `default' label and `close braces'.
28660 Tue Jun 15 01:55:20 1999 David O'Brien <obrien@FreeBSD.org>
28662 * i386/freebsd-elf.h (LINK_SPEC): clean up the linking library
28663 specifications and make it realistic.
28664 (LIB_SPEC): Likewise.
28666 Mon Jun 14 15:38:43 1999 Jim Wilson <wilson@cygnus.com>
28668 * config/mips/mips.c (mips_secondary_reload_class): Check for
28669 (PLUS (SP) (REG)) and return appropriate register class.
28670 * config/mips/mips.md (reload_insi): Delete predicate for operand 1.
28671 Handle (PLUS (SP) (REG)).
28672 (tablejump): In mips16 code, use emit_insn instead of emit_jump_insn.
28673 (tablejump_mips161, tablejump_mips162): Use emit_jump_insn instead
28674 of emit_insn for tablejump.
28676 Mon Jun 14 17:26:40 1999 David Edelsohn <edelsohn@gnu.org>
28678 * rs6000.c (output_prolog): RS6000_CALL_GLUE must be
28679 asm_fprintf format string by itself.
28680 (output_function_profiler): Likewise.
28682 Mon Jun 14 12:57:38 1999 David Mosberger <davidm@hpl.hp.com>
28684 * combine.c (simplify_logical, case AND): Only call
28685 simplify_and_const_int if the mode is no wider than HOST_WIDE_INT
28686 or the constant is positive.
28688 Mon Jun 14 11:43:41 1999 Nick Clifton <nickc@cygnus.com>
28690 * configure.in: Fix typo in rs6000-ibm-aix4 case.
28691 * configure: Regenerate.
28693 Mon Jun 14 03:55:40 1999 Jeffrey A Law (law@cygnus.com)
28695 * configure.in (rs6000-ibm-aix4.3*, powerpc-ibm-aix4.3*): Do not
28696 require a sub-version #.
28697 * configure: Rebuilt.
28699 1999-06-14 Robert Lipe (robertlipe@usa.net)
28701 * svr4.h (DWARF2_DEBUGGING_INFO): Check for redefinition.
28703 Mon Jun 14 10:30:52 BST 1999 Nathan Sidwell <nathan@acm.org>
28705 * c-typeck.c (process_init_element): Detect excess elements in
28706 char array initializer.
28708 1999-06-14 Andreas Jaeger <aj@arthur.rhein-neckar.de>
28710 * gcc.texi: Mention gcc 2.96 instead of egcs 1.00.
28712 Sat Jun 12 22:29:48 EDT 1999 Jerry Quinn <jquinn@nortelnetworks.com>
28714 * invoke.texi (Option Summary): Add -fpermissive flag.
28716 Sat Jun 12 03:40:42 1999 Jeffrey A Law (law@cygnus.com)
28718 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Do nothing with operands
28719 that require PIC code sequences.
28721 Wed Jun 9 16:29:01 1999 Nick Clifton <nickc@cygnus.com>
28723 * configure.in: Add new target: thumb-elf.
28724 * configure: Regenerate.
28725 * config/arm/t-thumb-elf: New file: Makefile fragment for
28727 * config/arm/telf.h: New file: Header file for thumb-elf
28730 Fri Jun 11 03:17:51 1999 Jeffrey A Law (law@cygnus.com)
28732 * Makefile.in (libgcc2): Pass MAYBE_USE_COLLECT2 as an argument.
28733 * libgcc2.c (__CTOR_LIST, __DTOR_LIST); Do not provide
28734 initializers is some circumstances.
28736 * fixinc/inclhack.def (endif_label): Add additional selector for
28737 more bogus stuff after #endif statements.
28738 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
28740 Thu Jun 10 20:44:36 1999 Mumit Khan <khan@xraylith.wisc.edu>
28742 * i386/cygwin.h (SET_ASM_OP): Define.
28744 Thu Jun 10 20:37:57 1999 Mumit Khan <khan@xraylith.wisc.edu>
28746 * reg-stack.c (stack_reg_life_analysis): Find all the RETURN insns.
28748 Thu Jun 10 19:23:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28750 * sh.h (TARGET_HARWARD, TARGET_HARVARD): Changed the former to the
28753 * sh.md (ic_invalidate_line_i): Remove second alternative.
28755 Thu Jun 10 06:55 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28757 *fixinc/inclhack.def(sun_auth_proto): We do not know how to
28758 test for the presence of valid prototypes. Delete bypass expr.
28759 (ioctl_fix_ctrl): Correct the selection expression.
28760 (no_double_slash): Correct quoting rules
28761 *fixinc/fixincl.x: regen
28762 *fixinc/inclhack.sh: regen
28764 Thu Jun 10 15:08:15 1999 Nick Clifton <nickc@cygnus.com>
28766 * config/arm/arm.c (struct all_cores): Add ARM920 and ARM920t.
28768 Wed Jun 9 15:57:57 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
28770 * rs6000.md (movsi_got_internal_mem): Delete.
28771 * rs6000.h (CONDITIONAL_REGISTER_USAGE): Mark PIC_OFFSET_TABLE_REGNUM.
28772 (GOT_TOC_REGNUM): Delete.
28773 (PIC_OFFSET_TABLE_REGNUM): Define.
28774 (FINALIZE_PIC): Disable.
28775 * rs6000.c (rs6000_got_register): New code for fixed pic register.
28776 (rs6000_replace_regno): Delete.
28777 (rs6000_finalize_pic): Likewise.
28778 (output_prolog): Handle PIC_OFFSET_TABLE_REGNUM.
28780 Wed Jun 9 19:44:26 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28782 * loop.c (loop_insn_first_p): Don't compare LUIDs when P
28783 is a note; use <= for the compare; advance P while it is
28786 Wed Jun 9 13:12:24 1999 Jeffrey A Law (law@cygnus.com)
28788 * fixinc/inclhack.def (no_double_slash): Fix quoting for test.
28789 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh; Rebuilt.
28791 * varasm.c (remove_from_pending_weak_list): Verify t->name
28792 is non-NULL before passing it to strcmp.
28794 Wed Jun 9 06:50 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28796 *fixinc/inclhack.def(sun_auth_proto): bypass the patch if
28797 the typed arguments are not part of a comment
28798 (ioctl_fix_ctrl): Added a purpose comment
28799 *fixinc/fixincl.x: regenerate
28800 *fixinc/inclhack.sh: regenerate
28802 Wed Jun 9 22:57:02 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
28804 * invoke.texi: Add C4x invocation docs.
28806 Wed Jun 9 22:34:38 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
28808 * config/c4x/c4x.h (TARGET_EXPOSE_LDP, LEGITIMIZE_RELOAD_ADDRESS):
28810 * config/c4x/c4x.c (c4x_emit_move_sequence, src_operand): Use
28812 (c4x_legitimize_reload_address): New function.
28813 * config/c4x/c4x.md: Update docs.
28815 Wed Jun 9 04:14:48 1999 Jeffrey A Law (law@cygnus.com)
28817 * fixincludes: Avoid removing '.'.
28818 * fixinc/fixinc.svr4: Likewise.
28819 * fixinc/fixinc.winnt: Likewise.
28820 * fixinc/inclhack.tpl: Likewise.
28821 * fixinc/fixincl.sh, fixinc/inclhack.sh: Rebuilt.
28823 1999-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28825 * fixinc/inclhack.def (sun_catmacro): Escape parens in the select
28827 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
28829 Wed Jun 9 03:10:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
28831 * c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
28834 Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
28836 * configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
28837 * configure: Regenerate.
28839 Tue Jun 8 05:47:48 1999 Richard Earnshaw (rearnsha@arm.com)
28841 * optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute
28844 Mon Jun 7 22:30:37 1999 Jeffrey A Law (law@cygnus.com)
28846 * fixinc/inclhack.def (avoid_bool): Also catch
28847 "typedef [unsigned] int bool".
28848 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
28850 * m68k/x-hp3bsd44: Delete obsolete and incorrect file.
28851 * configure.in (m68k-hp-bsd4.4): No longer use x-hp3bsd44.
28852 * configure: Rebuilt.
28854 Mon Jun 7 22:05:03 1999 Mark Kettenis <kettenis@gnu.org>
28856 * config/i386/gnu.h: Include <gnu.h> right after <i386/linux.h>,
28857 such that we can override its definitions if necessary.
28858 (CPP_SPEC): New define. Support processor specific predefines via
28860 (CC1_SPEC): New define. Support processor specific compiler
28861 options via %(cc1_cpu).
28862 (STARTFILE_SPEC): New define. Use crt0.o instead of crt1.o for
28865 1999-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28867 * fixinc/inclhack.def (math_gcc_ifndefs): Insert whitespace
28868 between sed's -e flag, and the open-quote following it.
28869 * fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
28871 Mon Jun 7 20:34:20 1999 Robert Lipe <robertlipe@usa.net>
28872 Jeffrey A Law (law@cygnus.com)
28874 * varasm.c (assemble_start_function): Remove the function
28875 from the pending weak decls list when we define a function.
28876 (assemble_variable): Similarly for variables.
28877 (weak_finish): Ignore items on the list with a NULL name.
28878 (remove_from_ending_weak_list); New function to "remove" an item
28879 from the pending weak declarations list.
28881 Mon Jun 7 19:27:07 1999 Jerry Quinn <jquinn@nortelnetworks.com>
28883 * pa.md (fmpyfadd, fmpynfadd, fnegabs): New patterns.
28885 Mon Jun 7 14:07:39 1999 Dave Brolley <brolley@cygnus.com>
28887 * c-lex.c (GETC): Redefine to call getch.
28888 (UNGETC): Redefine to call put_back.
28889 (putback_buffer): New structure type.
28890 (putback): New static structure.
28891 (getch): New function.
28892 (put_back): New function.
28893 (yylex): Replace unused bytes from bad multibyte character.
28895 Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com>
28897 * cpplib.c (do_define): Cast `alloca' return value.
28898 (do_include, do_undef, do_pragma): Likewise.
28899 * cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return
28901 * cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values.
28902 * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value.
28904 Sun Jun 6 11:58:34 1999 Jakub Jelinek <jj@ultra.linux.cz>
28906 * sparc.md (abstf2): This should be an expand.
28907 (split after abstf2_notv9): Fix mode.
28908 (abstf2_hq_v9): New pattern.
28909 (abstf2_v9): Only use when no hard quad.
28910 (absdf2_v9): Fix if target is not the same as source.
28911 (ashrsi3_extend, ashrsi3_extend2, lshrsi3_extend, lshrsi3_extend2):
28912 Add correct output constraints.
28914 Sat Jun 5 17:04:16 1999 Craig Burley <craig@jcb-sc.com>
28916 From Dave Love to egcs-patches on 20 May 1999 17:38:38 +0100:
28917 * invoke.texi: Clarify text vis-a-vis Intel CPUs.
28919 Sat Jun 5 12:11:24 1999 Mark Mitchell <mark@codesourcery.com>
28921 * mips.h (mips_output_conditional_branch): New function.
28922 (mips_adjust_insn_length): Likewise.
28923 (ASSEMBLER_SCRATCH_REGNUM): New macro.
28924 (ADJUST_INSN_LENGTH): Likewise.
28925 * mips.c (print_operand): Add `F' and `W' for floating-point
28926 comparison opcodes.
28927 (machine_dependent_reorg): Adjust MIPS16 code; instruction-lengths
28929 (mips_adjust_insn_length): New function.
28930 (mips_output_conditional_branch): New function.
28931 * mips.md (length): Adjust attribute definition to handle
28932 conditional branches. Change lengths to bytes, rather than
28933 instructions throughout. Remove length attribute from
28934 instructions whose length is four bytes, and rely on the default
28936 (dslot): Fix typo in comment.
28937 Reword conditional branch patterns to use
28938 mips_output_conditional_branch.
28940 Fri Jun 4 13:30:27 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28942 * alpha/osf.h (CPP_SUBTARGET_SPEC): Handle -threads.
28943 (LIB_SPEC): Likewise.
28944 Link with -lprof1_r for -g/-pg.
28946 1999-06-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
28948 * loop.c (check_dbra_loop): Fix change of Jan 19.
28950 Fri Jun 4 00:12:40 1999 Marc Espie <espie@cvs.openbsd.org>
28952 * freebsd-elf.h (SWITCH_TAKES_ARG): Redefine, not define.
28953 (STARTFILE_SPEC): Define, override the svr4.h version.
28954 (ENDFILE_SPEC): Likewise.
28956 Thu Jun 3 23:58:55 1999 Jeffrey A Law (law@cygnus.com)
28958 * fixinc/inclhack.def (limits_ifndefs): Also apply to sys/limits.h
28959 * fixinc/fixincl.x: Regenerated.
28960 * fixinc/inclhack.sh: Regenerated.
28962 Fri Jun 4 05:42:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28964 * sh.c (barrier_align): Don't return early for normal branch/barrier
28965 when optimizing for SH2.
28967 Thu Jun 3 22:27:50 1999 Robert Lipe <robertlipe@usa.net>
28969 * i386/udk.h (LINK_SPEC): Correct linker search path for
28972 Fri Jun 4 03:20:40 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28974 * sh.c (fixup_addr_diff_vecs): Emit braf reference label.
28975 (braf_label_ref_operand): Delete.
28976 * sh.h (PREDICATE_CODES): Remove braf_label_ref_operand.
28977 * sh.md (casesi_jump_2): Operand1 is now the inside of a
28978 label_ref, and has no predicate.
28979 The patten has a predicate to guard against invalid substitutions.
28980 (dummy_jump): Delete.
28981 (casesi): Update use of casesi_jump_2.
28983 Thu Jun 3 07:48 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28985 *fixinc/inclhack.def(Io_Def_Quotes): corrected sed expression
28986 *fixinc/fixincl.x: regenerate
28987 *fixinc/inclhack.sh: regenerate
28989 Thu Jun 3 02:15:07 1999 Jason Merrill <jason@yorick.cygnus.com>
28991 * dwarf2out.c (add_incomplete_type): New fn.
28992 (gen_struct_or_union_type_die): Call it.
28993 (retry_incomplete_types): New fn.
28994 (dwarf2out_finish): Call it.
28996 Thu Jun 3 01:19:03 1999 Jeffrey A Law (law@cygnus.com)
28998 * gcse.c (insert_insn_end_bb): Correct placement of insns when the
28999 current block starts with a CODE_LABEL and ends with a CALL and
29000 we can not find all the argument setup instructions for the CALL.
29002 Wed Jun 2 15:44:15 1999 Mark Mitchell <mark@codesourcery.com>
29004 Revert this change:
29005 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
29006 something is a candidate for optimize_bit_field_compare.
29008 Wed Jun 2 21:53:05 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
29010 * sh.h (CONST_OK_FOR_I, CONST_OK_FOR_L): Cast VALUE to HOST_WIDE_INT.
29012 Wed Jun 2 12:25:55 1999 Richard Henderson <rth@cygnus.com>
29014 * alpha.c (override_options): Thinko in last patch.
29016 * alpha/osf.h (CPP_SUBTARGET_SPEC): Define.
29017 (LIB_SPEC): Recognize -pthread.
29019 Wed Jun 2 08:42:55 1999 Nick Clifton <nickc@cygnus.com>
29021 * config/arm/tcoff.h (USER_LABEL_PREFIX): Synchronise with
29022 definition in config/arm/coff.h
29023 * config/arm/coff.h: Add comment about USER_LABEL_PREFIX.
29025 Wed Jun 2 07:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
29027 * fixinc/fixincl.c(global def): Add FD_SHELL_SCRIPT to mark
29028 fixes that need "file=xxx\n" prepended before invocation
29029 (start_fixer - new): starting the fixer process is complex enough
29030 to warrent its own routine. It prepends the "file=xxx\n" stuff.
29031 (process): uses the new routine; omit usage of putenv()
29032 * fixinc/fixincl.tpl: mark shell scripts with FD_SHELL_SCRIPT
29033 * fixinc/fixincl.x: regenerate
29035 Wed Jun 2 02:29:07 1999 Jeffrey A Law (law@cygnus.com)
29037 * README, configure.in, gcc.1, gcc.texi: Update name (egcs -> gcc)
29038 and version #s (1.1 -> 2.96) as needed.
29039 * README.g77: Kill way out of date file in the toplevel directory.
29041 Wed Jun 2 00:52:34 1999 David O'Brien <obrien@FreeBSD.org>
29043 * configure.in (i[34567]86-*-freebsdelf): Don't include linux.h,
29044 i386/freebsd-elf.h no longer requires it. Instead include svr4.h.
29045 * configure: Rebuilt.
29046 * i386/freebsd-elf.h (DEFAULT_VTABLE_THUNKS): Define.
29047 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, SET_ASM_OP): Likewise.
29048 (PREFERRED_DEBUGGING_TYPE, WCHAR_UNSIGNED): Likewise.
29049 (SWITCH_TAKES_ARG): Likewise.
29050 * i386/freebsd.h: Remove FREEBSD_NATIVE support.
29051 * config/t-freebsd: Moved from config/i386/ so it can used for all
29054 Mon May 31 02:22:55 1999 Philippe De Muyter <phdm@macqel.be>
29056 * m68k/x-mot3300 (XCFLAGS): Fixed to match stb.o, not f/stb.o.
29058 Wed Jun 2 00:08:34 1999 Robert Lipe <robertlipe@usa.net>
29060 * configure.in (i[34567]86-*-udk*): Install headers with cpio.
29061 * configure: Rebuilt.
29063 Tue Jun 1 19:06:22 1999 David Edelsohn <edelsohn@gnu.org>
29065 * rs6000/aix41.h (RS6000_CALL_GLUE): Define.
29066 * rs6000/aix43.h (RS6000_CALL_GLUE): Likewise.
29067 * rs6000/rs6000.c (rs6000_file_start): Use putc.
29068 (rs6000_output_load_toc_table): Same.
29069 (output_prolog, output_mi_thunk): Same.
29070 * rs6000/rs6000.h (SELECT_SECTION): Formatting.
29071 (ASM_GLOBALIZE_LABEL): Use putc.
29073 Mon May 31 15:23:23 1999 Richard Henderson <rth@cygnus.com>
29075 * alpha.md (reload_*_help): New patterns and splitters.
29076 (reload_*): Use them.
29077 (mov[qh]i): Likewise.
29079 Mon May 31 11:48:07 1999 Mark Mitchell <mark@codesourcery.com>
29081 * cccp.c (handle_directive): Handle backslash-newlines in quoted
29084 Mon May 31 09:36:11 1999 Cort Dougan <cort@cs.nmt.edu>
29086 * rs6000/linux.h (LINK_SPEC): Use emulation elf32ppclinux.
29088 Mon May 31 11:40:20 EDT 1999 John Wehle (john@feith.com)
29090 * flow.c (mark_regs_live_at_end, insn_dead_p,
29091 mark_set_1, mark_used_regs): Only give FRAME_POINTER_REGNUM
29092 and HARD_FRAME_POINTER_REGNUM special treatment if reload
29093 hasn't run or the frame pointer is needed.
29094 * haifa-sched.c (attach_deaths): Likewise.
29095 * sched.c (attach_deaths): Likewise.
29097 Mon May 31 00:46:17 1999 Jeffrey A Law (law@cygnus.com)
29099 * jump.c (jump_optimize_1): Only set CAN_REACH_END if
29100 calculate_can_reach_end returns nonzero.
29102 * configure.in (native gas tests): Search for an assembler in the
29103 same manner that the installed compiler will.
29104 * configure: Rebuilt.
29105 * tm.texi (MD_EXEC_PREFIX): Note need to update configure.in too.
29107 * alias.c (find_base_term): Improve handling of addresses
29108 constructed from binary operations.
29110 Sun May 30 14:29:17 1999 Eric Raskin (ehr@listworks.com)
29112 * dgux.h (STARTFILE_SPEC): Fix incorrectly matched curly-braces.
29114 Sun May 30 14:19:13 1999 Jeffrey A Law (law@cygnus.com)
29116 * function.h (cleanup_label, frame_offset): Declare.
29117 (tail_recursion_label, tail_recursion_reentry): Likewise.
29118 (arg_pointer_save_area, rtl_expr_chain): Likewise.
29119 * stmt.c (cleanup_label, frame_offset): Delete extern declarations.
29120 (tail_recursion_label, tail_recursion_reentry): Likewise.
29121 (arg_pointer_save_area, rtl_expr_chain): Likewise.
29123 Sat May 29 19:08:10 1999 Philip Blundell <philb@gnu.org>
29125 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Only define if not already
29127 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Define.
29128 (MAX_OFILE_ALIGNMENT): Define.
29130 Fri May 28 21:40 1999 Robert Lipe <robertlipe@usa.net>
29132 * fixincl.c: Replace local include scheme with #includes of
29133 gansidecl.h and system.h.
29134 * procopen.c: Likewise.
29135 * server.c: Likewise.
29137 Fri May 28 03:47:03 1999 Eric Raskin (ehr@listworks.com)
29139 * i386/t-dgux (EXTRA_PARTS): Add crti.o
29140 (crti.o): Add build rule and dependencies.
29141 * fixinc/fixinc.dgux: Use modified _int_varargs.h
29143 Fri May 28 03:41:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
29145 * rs6000/sysv4.h (CC1_SPEC): Add support for -profile
29146 (LIB_LINUX_SPEC): Likewise.
29147 (LIB_LINUX_SPEC): Add support for -pthread
29148 (CPP_OS_LINUX_SPEC): Likewise.
29149 (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are
29152 Thu May 27 13:04:52 1999 H.J. Lu (hjl@gnu.org)
29154 * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for
29156 (notice_update_cc, output_float_compare): Enable TARGET_CMOVE support.
29157 (output_float_compare, output_fp_cc0_set): Fix the FLOAT comparison
29158 for IEEE math and CC_FCOMI.
29159 (put_jump_code): No IEEE if CC_FCOMI is set.
29161 1999-05-27 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
29163 * fold-const.c (fold_truthop): Make the field reference unsigned
29164 when converting a single bit compare.
29166 Thu May 27 02:40:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
29168 * loop.c (strength_reduce): Don't do biv->giv conversion on constants.
29170 Thu May 27 02:09:27 1999 Jeffrey A Law (law@cygnus.com)
29172 * varasm.c (STRIP_NAME_ENCODING): Remove default definition.
29173 * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
29176 * reload.c (push_reload): Do not call remove_address_replacements
29177 when presented with identical optional reloads.
29179 Wed May 26 14:18:05 1999 Richard Henderson <rth@cygnus.com>
29181 * alpha.h (MASK_FIX, TARGET_FIX): New.
29182 (MASK_*): Reorganize constants.
29183 (CPP_AM_FIX_SPEC): New.
29184 (TARGET_SWITCHES): Add FIX.
29185 (EXTRA_SPECS): Likewise.
29186 (CPP_CPU_EV6_SPEC): Use FIX, not CIX.
29187 (SECONDARY_MEMORY_NEEDED): Likewise.
29188 (REGISTER_MOVE_COST): Likewise.
29189 * alpha.c (override_options): Add FIX support. Always use
29190 ALPHA_TP_PROG for ev6.
29191 * alpha.md (sqrt and mov[sd]i patterns): Use FIX, not CIX.
29192 * alpha/elf.h (ASM_FILE_START): Look at FIX too.
29193 * configure.in (target_cpu_default2) [ev6]: Use FIX, not CIX.
29195 Wed May 26 09:53:05 1999 Mark Mitchell <mark@codesourcery.com>
29197 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
29198 something is a candidate for optimize_bit_field_compare.
29200 Wed May 26 09:40:02 1999 Mark Mitchell <mark@codesourcery.com>
29202 * gcc.texi (Passes): Document branch-shortening.
29203 * invoke.texi (Debugging Options): Document the fact that `-dp'
29204 outputs length information for instructions.
29206 Wed May 26 08:49:31 1999 Nick Clifton <nickc@cygnus.com>
29208 * flow.c: Revert previous delta.
29210 Wed May 26 06:05:10 1999 Nick Clifton <nickc@cygnus.com>
29212 * flow.c (insn_dead_p): Check against frame_pointer_rtx not
29213 FRAME_POINTER_REGNUM.
29214 (mark_set_1): Ditto.
29215 (mark_used_regs): Ditto.
29217 Wed May 26 02:19:31 1999 Philip Blundell <pb@nexus.co.uk>
29219 * arm.h (NEED_PLT_GOT): Fix mistake in last change.
29220 (GOT_PCREL): New macro. Define to 1 if not already defined.
29221 * arm/elf.h (GOT_PCREL): Define to 0.
29222 * arm.c (arm_finalize_pic): Take into account the setting of
29225 Tue May 25 14:06:06 1999 Jeffrey A Law (law@cygnus.com)
29227 * output.h (STRIP_NAME_ENCODING): Provide default definition.
29228 * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.
29230 * flow.c (mark_set_1): Do not record BLKmode stores as dead
29231 store elimination candidates.
29233 Tue May 25 08:55:57 1999 Gavin Romig-Koch <gavin@cygnus.com>
29235 * config/mips/mips.h (ASM_OUTPUT_DOUBLE_INT) : Use 'dword' if
29238 Mon May 24 20:30:08 1999 Jim Wilson <wilson@cygnus.com>
29240 * configure.in (rs6000-ibm-aix4.[12]*): Delete use of aix41-gld.h.
29241 Add use of x-aix41-gld.
29243 Mon May 24 16:44:09 1999 Jakub Jelinek <jj@ultra.linux.cz>
29245 * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
29246 (ASM_OUTPUT_DESTRUCTOR): Define.
29248 Mon May 24 14:35:24 1999 Jeffrey A Law (law@cygnus.com)
29250 * loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
29251 last CODE_LABEL in a loop if we have previously passed a jump
29252 to the top of the loop.
29254 Mon May 24 07:56:29 1999 Nick Clifton <nickc@cygnus.com>
29256 * config/arm/arm.h (OUTPUT_INT_ADDR_CONST): Fix blunder made when
29257 applying Philip's patch.
29259 Mon May 24 01:02:12 1999 Mark Mitchell <mark@codesourcery.com>
29261 * stmt.c (expand_end_bindings): Ignore any elements of VARS that
29264 Sun May 23 20:31:16 1999 Jeffrey A Law (law@cygnus.com)
29266 * loop.c (strength_reduce): Grow reg_single_usage as needed.
29268 Sun May 23 10:13:20 1999 David O'Brien <obrien@FreeBSD.org>
29270 * i386/freebsd-elf.h (LINK_SPEC): Change -static to -Bstatic.
29271 Also remove a useless comment.
29273 Sun May 23 10:05:23 1999 Jerry Quinn <jquinn@nortelnetworks.com>
29275 * pa.md (negdf2,negsf2): Use fneg instead of fsub on pa 2.0.
29277 Sat May 22 21:02:06 1999 David Edelsohn <edelsohn@gnu.org>
29279 * collect2.c (main): Only generate import or export file and add
29280 to link arguments if non-empty. Use xmalloc not alloca.
29281 (write_{export,import}_file): Delete.
29282 (write_aix_file): New function.
29283 (locatelib): Use xmalloc not malloc.
29284 (GCC_OK_SYMBOL): Do not check type if aix64.
29286 Sat May 22 09:35:51 1999 Philip Blundell <pb@nexus.co.uk>
29288 Based on patch by Scott Bambrough and Pat Beirne:
29289 * config/arm/arm.c (making_const_table): New variable.
29290 * config/arm/arm.h (making_const_table): Declare.
29291 (OUTPUT_INT_ADDR_CONST): Mark symbols as position independent if
29293 * config/arm/arm.md (consttable_4, consttable_8, consttable_end):
29294 Keep track of when we are building the constant table.
29296 Sat May 22 09:34:22 1999 Philip Blundell <pb@nexus.co.uk>
29298 * config/arm/arm.c (arm_override_options): Fix erroneous warning
29301 Sat May 22 09:06:33 1999 Nick Clifton <nickc@cygnus.com>
29303 * config/arm/arm.h (NEED_PLT_GOT): Only define if not already
29306 Sat May 22 07:17:05 1999 Nick Clifton <nickc@cygnus.com>
29308 * tm.texi (FUNCTION_ARG): Correct description of a stack element
29311 Sat May 22 01:27:49 1999 Mark Mitchell <mark@codesourcery.com>
29313 * expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.
29315 Fri May 21 21:19:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
29317 * rs6000.c (output_mi_thunk): Enable full support again.
29319 Fri May 21 20:09:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
29321 * sh.h (BRANCH_COST): Define.
29323 Thu May 20 10:00:42 1999 Stephen L Moshier <moshier@world.std.com>
29325 * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
29327 Thu May 20 09:58:57 1999 Jan Hubicka <hubicka@freesoft.cz>
29329 * function.c (assign_stack_local): Align stack slot propertly.
29330 (assign_outer_stack_local): Likewise.
29332 Thu May 20 10:38:43 1999 Mark Mitchell <mark@codesourcery.com>
29334 * expr.h (lang_expand_constant): Declare.
29335 * toplev.c (lang_expand_constant): Define it.
29336 * varasm.c (output_constant): Use it.
29338 Thu May 20 11:28:53 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29340 * optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
29341 Change function definitions to K&R style.
29343 Thu May 20 08:16:39 1999 Bruce Korb <ddsinc09@ix.netcom.com>
29345 * fixinc/fixincl.c: We must not ignore SIGCLD now.
29347 Thu May 20 07:06:39 1999 Alexandre Oliva <aoliva@acm.org>
29349 * fixinc/Makefile.in(gnu-regex.o): add $(INCLUDES) to compile options
29350 * fixinc/fixincl.c(wait_for_pid): K&R-ify arguments
29351 (several places): omit static initialization
29352 (process): use single fd, since only the read fd is used
29353 * fixinc/gnu-regex.c: define 'const' away, if not supported
29354 * fixinc/procopen.c(several places): omit static initialization
29355 * fixinc/server.c: define 'volitile' away, if not supported
29357 1999-05-20 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
29359 * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
29360 asm_fprintf and %L to generate the label name.
29361 * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
29362 (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.
29364 Thu May 20 01:40:55 1999 Jeffrey A Law (law@cygnus.com)
29366 * jump.c (can_reverse_comparison_p): Do not abort if the comparison
29367 insn for a conditional jump can not be found.
29369 Wed May 19 23:58:58 1999 Jeffrey A Law (law@cygnus.com)
29371 * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
29372 on variables in specific sections other than .sbss and .sdata.
29374 Wed May 19 03:56:56 1999 Mark Mitchell <mark@codesourcery.com>
29376 * stmt.c (expand_return): Call start_cleanup_deferral and
29377 end_cleanup_deferral around conditional code.
29379 Wed May 19 08:40:08 1999 Bruce Korb <ddsinc09@ix.netcom.com>
29381 * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
29382 filename lists. Utilizes new "krstr" AutoGen function.
29383 * fixinc/fixincl.x: Rebuilt.
29385 Wed May 19 02:47:11 1999 Jan Hubicka (hubicka@freesoft.cz)
29387 * i386.c (output_float_compare): Avoid GNU-C extensions.
29389 Wed May 19 00:34:40 1999 Jeffrey A Law (law@cygnus.com)
29391 * version.c: Bump to distinguish mainline tree from the
29394 See ChangeLog.1 for earlier changes.