1 2000-05-31 Richard Henderson <rth@cygnus.com>
3 * flow.c (propagate_block): Move initialization of mem_set_list ...
4 (init_propagate_block_info): ... here. Also track blocks with
5 no successors; don't scan insns if ! PROP_SCAN_DEAD_CODE.
7 2000-05-31 Richard Henderson <rth@cygnus.com>
9 * jump.c (jump_optimize_1): Revert 05-18 change.
11 2000-05-31 Mark Mitchell <mark@codesourcery.com>
13 * invoke.texi: Remove documentation for -fguiding-decls.
15 2000-05-31 Richard Henderson <rth@cygnus.com>
17 * configure.in: Fix typo last change.
19 2000-05-31 Philipp Thomas <pthomas@suse.de>
21 * configure.in (enable-nls): Enable if build == host, i.e. when
22 not building a canadian cross compiler.
23 (enable-maintainer-mode): Added for use with i18n.
24 * aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
25 cross section of ALL_LINGUAS and LINGUAS.
28 2000-05-31 Bruce Korb <bkorb@gnu.org>
30 * fixinc/check.tpl: rework to use test result tree
31 * fixinc/Makefile.in: change invocation of check script
32 * fixinc/check.diff: No longer needed
33 * fixinc/fixincl.x: regenerate
34 * fixinc/inclhack.def: add new tests
35 * fixinc/tests/base/arch/i960/archI960.h: New test result
36 * fixinc/tests/base/curses.h: modified test result
37 * fixinc/tests/base/stdio.h: ditto
38 * fixinc/tests/base/time.h: ditto
39 * fixinc/tests/base/sys/asm.h: ditto
40 * fixinc/tests/base/sys/stat.h: ditto
41 * fixinc/tests/base/sys/wait.h: ditto
43 Wed May 31 13:17:20 2000 Philippe De Muyter <phdm@macqel.be>
45 * except.c (clear_function_eh_region): Do not free NULL.
47 Wed May 31 08:07:52 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
49 * Makefile.in (c-decl.o): Depend on rtl.h and expr.h.
50 * alias.c (struct alias_entry): alias_set is HOST_WIDE_INT.
51 (REG_BASE_VALUE): Remove unneeded cast to unsigned.
52 (get_alias_set_entry): ALIAS_SET arg is HOST_WIDE_INT.
53 (find_base_decl): New function, from c_find_base_decl in c-common.c.
54 (new_alias_set): Moved from tree.c; return is HOST_WIDE_INT.
55 (get_alias_set): Likewise.
56 Major rework to do more things and allow language-specific code
57 to just handle special-cases.
58 (record_alias_subset): Args are HOST_WIDE_INT.
59 (record_component_alias): Local vars are HOST_WIDE_INT.
60 Don't handle COMPLEX_EXPR.
61 (get_varargs_alias_set): Moved from builtins.c.
62 (get_frame_alias_set): New function.
63 * builtins.c (expand_builtin_return_address): Use frame alias set.
64 (expand_builtin_setjmp, expand_builtin_longjmp): Use alias set
66 (get_memory_rtx): Rework to use set_mem_attributes.
67 (get_varargs_alias_set): Deleted from here.
68 * c-common.c (c_apply_type_quals_to_decl): Alias sets now HOST_WIDE_INT.
69 (c_find_base_decl): Deleted from here.
70 (c_get_alias_set): Remove many cases and rework to just handle
72 * c-common.h (c_get_alias_set): Returns HOST_WIDE_INT.
73 * c-decl.c (rtl.h, expr.h): Now included.
74 (init_decl_processing): Call record_component_aliases on array types.
75 (grokdeclarator): Likewise.
76 Set TREE_ADDRESSABLE for all fields that are not bitfields.
77 * c-typeck.c (common_type): Call record_component_aliases for array.
78 * caller-save.c (setup_save_areas): Rework register loop for unsigned.
79 Set all save areas to the frame alias set.
80 * calls.c (initialie_argument_information): Call set_mem_attributes.
81 (compute_argument_addresses, expand_call): Likewise.
82 * explow.c (set_mem_attributes): New function.
83 (stabilize): Use MEM_COPY_ATTRIBUTES and force_reg.
84 * expr.c (struct move_by_pieces): Remove {to,from}_{struct,readonly}.
85 LEN and OFFSET now HOST_WIDE_INT.
86 (clear_by_pieces): Similar changes.
87 (move_by_pieces): LEN now HOST_WIDE_INT; don't set deleted fields.
88 (move_by_pieces_ninsns): Now returns unsigned HOST_WIDE_INT.
89 (move_by_pieces_1): Don't use deleted fields, use MEM_COPY_ATTRIBUTES.
90 (clear_by_pieces_1): Likewise.
91 (emit_push_insn): Call set_mem_attributes.
92 (expand_expr, case INDIRECT_REF): Likewise.
93 (expand_expr, case VAR_DECL): Call change_address.
94 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE): Use host_integerp and
96 (get_varargs_alias_set, get_frame_alias_set): New decls.
97 (record_base_value, record_alias_subset, lang_get_alias_set): Likewise.
98 (new_alias_set, set_mem_attributes): Likewse.
99 * function.c (struct temp_slot): ALIAS_SET is HOST_WIDE_INT.
100 (assign_stack_temp_for_type): Likewise.
101 Can split slot even if alias set since can copy.
102 Set MEM_ALIAS_SET and MEM_SET_IN_STRUCT_P.
103 (assign_temp): Use host_integerp and tree_low_cst.
104 (put_var_into_stack): Properly handle SAVE_EXPR.
105 (put_addressof_into_stack): Likewise.
106 (assign_parms): Call set_mem_attributes.
108 (fix_lexical_address): Put reference to chain into frame alias set.
109 (expand_function_start): Call set_mem_attributes.
110 * integrate.c (expand_inline_function): Likewise.
111 * recog.c (adj_offsettable_operand): Use MEM_COPY_ATTRIBUTES.
112 * regmove.c (try_apply_stack_adjustment): Likewise.
113 * reload.c (push_reload, make_memloc): Likewise.
114 * reload1.c (alter_reg): Make alias sets for spilled pseudos.
115 * rtl.def (MEM): Update comment.
116 * rtl.h (MEM_ALIAS_SET): Now uses XCWINT.
117 (move_by_pieces): Change length to HOST_WIDE_INT.
118 (record_base_value, record_alias_subset): Delete from here.
119 * stmt.c (expand_decl): Call set_mem_attributes.
120 * stor-layout.c (finish_record_layout): Call record_component_aliases.i
121 * toplev.c (compile_file): Call init_alias_once earlier.
122 * tree.c (lang_get_alias_set, get_alias_set, new_alias_set): Deleted
123 from here: now in alias.c.
124 * tree.h (struct tree_type): alias_set is HOST_WIDE_INT.
125 (struct tree_decl): Likewise.
126 (get_alias_set, new_alias_set, lang_get_alias_set): Deleted from here.
127 * varasm.c (make_function_rtl, make_decl_rtl): Call set_mem_attributes.
128 (output_constant_def, force_const_mem): Likewise.
130 * flow.c (propagate_block): If block has no successors, stores to
131 frame are dead if not used.
133 2000-05-31 Nathan Sidwell <nathan@codesourcery.com>
135 * stmt (expand_end_case): Reorder conversion sequence for jump
136 table to avoid extra truncations.
138 Wed May 31 01:31:42 2000 Jeffrey A Law (law@cygnus.com)
140 * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
141 in the block is more than just a simple conditional branch.
142 (noce_process_if_block): Similarly.
144 Tue May 30 22:25:57 2000 Alexandre Oliva <aoliva@cygnus.com>
146 * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
149 2000-05-30 Michael Meissner <meissner@redhat.com>
151 * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
152 instructions. Treat LO_SUM operations as loading the full integer
155 2000-05-30 Richard Henderson <rth@cygnus.com>
157 * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
159 2000-05-30 Richard Henderson <rth@cygnus.com>
161 * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
163 2000-05-30 Bruce Korb <bkorb@gnu.org>
165 * fixinc/tests/*: Added expected result files for fixinc's make check
166 * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
168 2000-05-30 Richard Henderson <rth@cygnus.com>
170 * config/alpha/alpha.md (*setne_internal): Use match_operator
171 instead of working down from insn.
173 2000-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
175 * invoke.texi (-Wtraditional): Update WRT function macros.
177 Tue May 30 09:57:32 2000 Philippe De Muyter <phdm@macqel.be>
179 * except.c (free_exception_table): Do not free NULL.
181 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
183 * cpplib.c (do_if): Don't save and restore only_seen_white here.
184 * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
187 2000-05-29 Richard Earnshaw (rearnsha@arm.com)
189 * flow.c (mark_used_reg): If a register is unconditionally live,
190 remove any conditional death information.
192 2000-05-29 Richard Henderson <rth@cygnus.com>
194 * final.c (current_output_insn): New.
195 (final_scan_insn): Set it.
196 * output.h: Declare it.
198 2000-05-29 Richard Henderson <rth@cygnus.com>
200 * stor-layout.c (finalize_record_size): Fix typo.
202 * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
205 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
207 * cpplib.h (cpp_reader): Remove if_stack. Change
208 potential_control_macro to a cpp_hashnode *. Add skipping flag.
209 * cpphash.h (struct ihash): Change control_macro to a
210 cpp_hashnode * and shorten name to cmacro.
211 Add NEVER_REINCLUDE constant.
213 * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
214 Examine the cmacro node directly, no need to call cpp_defined.
215 (_cpp_execute_include, read_include_file): Set cmacro to
216 NEVER_REINCLUDE, not U"".
217 * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
218 (cpp_get_token): If pfile->skipping is true, discard text and
219 keep scanning until we hit a directive; don't expand macros.
221 * cpplib.c (struct if_stack): Remove if_succeeded, add
222 was_skipping. Change control_macro to a cpp_hashnode * and
223 shorten name to cmacro. Remove typedef IF_STACK.
224 (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
225 (conditional_skip, skip_if_group,
226 consider_directive_while_skipping): Delete.
227 (push_conditional): New.
228 (_cpp_handle_directive): Don't process directives other than
229 conditionals if we are skipping.
231 (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
232 Update to new scheme.
233 (validate_else): Skip rest of line here, unconditionally.
234 (_cpp_unwind_if_stack): The stack is per-buffer. Force
237 (all): Remove `scare quotes' from error messages.
239 2000-05-29 Richard Henderson <rth@cygnus.com>
241 * function.c (emit_return_into_block): New line_note arg; emit it.
242 (thread_prologue_and_epilogue_insns): Attempt to locate a line note
243 for the close brace to accompany HAVE_return. Move all line notes
244 following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
246 2000-05-29 Richard Henderson <rth@cygnus.com>
248 * longlong.h [__alpha] (count_leading_zeros): New.
249 (count_trailing_zeros): New.
250 (COUNT_LEADING_ZEROS_0): New.
252 * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
253 (alpha_split_conditional_move): New.
254 * config/alpha/alpha-protos.h: Prototype them.
255 * config/alpha/alpha.h (PREDICATE_CODES): Update.
256 (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
257 * config/alpha/alpha.md: Update ffs cix commentary.
259 (*nabssf2, *nabsdf2): New.
260 (*mov[qhsd]icc_internal): Use add_operand.
261 (if_then_else constant splitters): New.
262 (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
263 (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
265 2000-05-29 Richard Henderson <rth@cygnus.com>
267 * combine.c (force_to_mode) [MINUS]: Convert subtraction from
268 a constant to NEG or NOT when conditions allow.
270 * combine.c (combine_simplify_rtx): Don't create an if_then_else
271 unless both args are general_operand. Don't canonicalize plus
272 to ior unless it helps.
274 * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
275 instead track register_life_up_to_date. Toggle no_new_pseudos
278 2000-05-28 Geoff Keating <geoffk@cygnus.com>
280 * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
281 so output_operand doesn't see them.
283 Sun May 28 18:37:07 2000 Clinton Popetz <cpopetz@cygnus.com>
285 * lcm.c (make_preds_opaque): Fix comment.
286 (optimize_mode_switching): Use NORMAL_MODE instead of
287 MODE_USES_IN_EXIT_BLOCK. Change leftover instance of
288 FP_MODE_NONE to no_mode. Rename MODE_AT_ENTRY to NORMAL_MODE.
289 Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
290 * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
291 (MODE_USES_IN_EXIT_BLOCK): Delete.
292 (MODE_AT_ENTRY) Rename to NORMAL_MODE.
293 * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
294 (MODE_AT_ENTRY): Rename to NORMAL_MODE.
295 (MODE_NEEDED): Don't look for USE.
296 (EPILOGUE_USES): Define.
298 Sun May 28 23:26:59 2000 Philippe De Muyter <phdm@macqel.be>
300 * mklibgcc.in (all): Variable initialised to `libgcc'.
302 2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
304 * toplev.h (skip_leading_substring): New macro.
305 * toplev.c (decode_f_option): Use skip_leading_substring instead
307 (decode_W_option): Likewise.
309 2000-05-28 Nick Clifton <nickc@cygnus.com>
311 * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
314 2000-05-28 Richard Henderson <rth@cygnus.com>
316 * regclass.c (record_operand_costs): Protect reg_changes_size
317 with CLASS_CANNOT_CHANGE_SIZE.
319 * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
321 2000-05-28 Richard Henderson <rth@cygnus.com>
323 * function.c (diddle_return_value): A pcc-style struct return
326 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
328 * cppfiles.c: Read files in, using mmap if possible, then
329 prescan them separately.
330 (read_file, read_with_read): New functions.
331 * cpplex.c: Don't define UCHAR_MAX.
332 (_cpp_read_and_prescan): Rename to _cpp_prescan. Don't read
335 * cppinit.c (handle_option): Automatically define __cplusplus,
336 __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
337 the respective -lang switch.
339 * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
340 prototype): Move to...
341 * cpplib.h: ... here. Rename struct hashnode to struct
342 cpp_hashnode and give it a typedef. Rename _cpp_lookup to
343 cpp_lookup. Add 'fe_value' slot, a union tree_node *.
345 2000-05-27 Geoffrey Keating <geoffk@cygnus.com>
347 * config/rs6000/rs6000.md (movsi): Constify 'name'.
349 * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
350 (class_can_change_size): New variable.
351 (reg_changes_size): New variable.
352 (init_reg_sets_1): Initialise class_can_change_size.
353 (record_operand_costs): Remove subreg_changes_size.
354 Don't pass it around. Instead update reg_changes_size.
355 (regclass): Initialise and free reg_changes_size. If a register
356 changes size, don't preference it to a class that contains
357 registers that can't change size.
358 (record_reg_classes): Don't look at subreg_changes_size.
360 2000-05-27 Richard Henderson <rth@cygnus.com>
362 * print-rtl.c (reg_names): Remove const.
363 * regclass.c (reg_names): Likewise.
364 * regs.h (reg_names): Likewise.
365 * hard-reg-set.h (reg_names): Likewise.
367 2000-05-27 Richard Henderson <rth@cygnus.com>
369 * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
371 2000-05-27 Richard Henderson <rth@cygnus.com>
373 * config/alpha/alpha.c (alpha_does_function_need_gp): Test
374 TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
375 (alpha_expand_prologue): Emit prologue_mcount if needed.
376 * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
377 * config/alpha/alpha.md (prologue_mcount): New.
378 * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
379 (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
380 * config/alpha/netbsd.h: Likewise.
382 2000-05-27 Richard Henderson <rth@cygnus.com>
384 * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
385 change to config/elfos.h.
387 2000-05-27 Richard Henderson <rth@cygnus.com>
389 * Makefile.in (resource.o): Depend on except.h.
390 * except.h (output_exception_table_data): Prototype.
391 * genconfig.c (gen_peephole2): Prototype.
392 * genemit.c (main): Include ggc.h.
393 * genoutput.c: Revert parts of last change: include errors.h
394 (main): Set progname.
395 * recog.c: Include hard-reg-set.h before recog.h.
396 * resource.c: Include except.h.
398 * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
400 (alpha_write_linkage): Protect with BUFSIZ.
401 (alpha_need_linkage): Update prototype.
402 * config/alpha/alpha.c (function_arg): Move VMS code here.
403 (alpha_links_base): Remove.
405 (mark_alpha_links_node, mark_alpha_links): New.
406 (alpha_write_one_linkage): New.
407 (alpha_need_linkage): Use a splay tree. Build the linkage symbol.
408 (alpha_write_linkage): Use splay_tree_foreach.
409 * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
410 to get the linkage symbol.
411 (call_value_vms): Likewise.
412 * config/alpha/elf.h (output_file_directive): Remove decl.
413 (ctors_section, dtors_section): Prototype.
414 (sbss_section, sdata_section): Prototype.
415 * config/alpha/vms.h (FUNCTION_ARG): Remove.
416 (readonly_section, link_section, literals_section): Prototype.
417 (ctors_section, dtors_section): Prototype.
418 (vms_valid_decl_attribute_p): Remove decl.
419 (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
421 2000-05-27 Geoff Keating <geoffk@cygnus.com>
423 * reload.c (get_secondary_mem): Don't widen floating-point modes.
425 * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
426 substituting the REG in a (subreg:X (reg:Y ...)).
428 2000-05-28 Neil Booth <NeilB@earthling.net>
430 * cpplex.c (_cpp_lex_line): Merge vertical space. Flag
431 first token of a line BOL. Update EOF code for this.
432 Remove illegal directive check - it appears in the (not
433 yet committed) caller.
434 * cpplib.h (BOL): New flag.
436 2000-05-28 Neil Booth <NeilB@earthling.net>
438 * cpplex.c (_cpp_init_toklist): No comment space to initialise.
439 (_cpp_free_toklist): No comment space to free.
440 (expand_comment_space): Remove.
441 (save_comment_space): Place the comment in the current token and
442 not in a separate comment space.
443 (_cpp_lex_line): Save comments during plain code and #define
445 * cpplib.h (struct _cpp_toklist): Remove comment space.
447 2000-05-28 Neil Booth <NeilB@earthling.net>
449 * cppexp.c (parse_assertion): Supply extra argument to
451 * cpplib.c (do_assert, do_unassert): Similarly.
452 * cpphash.h (_cpp_init_toklist) Update.
453 (_cpp_expand_token_space): New.
454 (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
455 * cpplex.c (_cpp_init_toklist): New argument.
456 (parse_string2): New argument multiline_ok.
457 (spell_token): Take a const cpp_token *.
458 (INIT_NAME): Replace with INIT_TOKEN_NAME. Update tokens_used.
459 (SPELL_ macros): Replace with enum.
460 (expand_token_space): Replace with _cpp_expand_token_space.
462 (IS_DIRECTIVE): Update.
463 (_cpp_lex_line): Update token structure before parsing number.
464 Don't assume start at beginning of token list.
465 (save_comment): Use INIT_TOKEN_NAME.
467 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
469 * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
470 -Wmissing-prototypes.
471 * configure: Regenerate.
472 * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
474 * builtins.c, calls.c: Change all instances of gen_call_* or
475 gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
476 * calls.c (struct_value_size_rtx): Separate definition from
477 initialization to avoid unused variable warning.
479 * genflags.c (gen_macro): New function.
480 (gen_proto): Call it for gen_call_* and gen_sibcall_*.
481 (gen_nonproto): Delete.
482 (gen_insn): Put all insns on the same obstack.
483 (main): Generate prototypes for everything unconditionally.
485 * configure.in: Add AC_CHECK_TYPE(ssize_t). Remove commented
486 out check for wchar_t.
487 * acconfig.h: Add template for ssize_t. Remove @TOP@.
488 * system.h: Add infrastructure for defining missing
489 TYPE_MAX/TYPE_MIN macros. Use it to provide fallback
490 definitions of UCHAR_MAX and SSIZE_MAX.
491 * configure: Regenerate.
492 * config.in: Regenerate.
494 * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
495 Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
497 (clean): No need to delete libgcc1.a, libgcc1-asm.a,
498 libgcc2.a, or libgcc1.null.
500 2000-05-27 Richard Henderson <rth@cygnus.com>
502 * Makefile.in (recog.o): Don't depend on resource.h.
503 * recog.c: Don't include resource.h.
504 (recog_last_allowed_insn): Remove.
505 (recog_next_insn): Remove.
506 (struct peep2_insn_data): New.
507 (peep2_insn_data, peep2_current): New.
508 (peep2_next_insn): New.
509 (peep2_regno_dead_p, peep2_reg_dead_p): New.
510 (peep2_find_free_register): New.
511 (peephole2_optimize): Track life information by insn as we go.
512 * recog.h: Update declarations.
513 * resource.c (find_free_register, reg_dead_p): Remove.
514 * resource.h: Remove their declarations.
515 * toplev.c: Include hard-reg-set.h before recog.h.
517 * genconfig.c (max_insns_per_peep2): New.
518 (gen_peephole2): New.
520 * genemit.c (output_peephole2_scratches): Generate calls to
521 peep2_find_free_register; adjust surrounding code.
522 (main): Have insn-emit.c include hard-reg-set.h before recog.h.
523 * genrecog.c (change_state): Don't track last_insn.
524 (write_action): Write into *_pmatch_len before accepting.
525 (write_tree): Adjust peephole2_insns and subroutines to match.
527 * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
529 * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
530 (hard_int_register_operand): New.
531 * config/alpha/alpha-protos.h: Declare it.
532 * config/alpha/alpha.h (PREDICATE_CODES): Update.
533 * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
534 as needed; use peep2_reg_dead_p instead of dead_or_set_p.
536 2000-05-27 Richard Henderson <rth@cygnus.com>
538 * function.c (thread_prologue_epilogue_insns): Don't move the
539 line note at the head of the chain. Only force a lineno note
540 before the end of block 0.
542 2000-05-27 Richard Henderson <rth@cygnus.com>
544 * gensupport.c (collect_insn_data): Record the maximum number
545 of alternatives, not the last seen.
547 * genoutput.c: Don't include errors.h.
548 (struct data): Add lineno member.
550 (scan_operands): Use message_with_line instead of error.
551 (validate_insn_alternatives): Likewise.
552 (gen_insn): Accept and store the pattern's line number.
553 (gen_peephole, gen_expand, gen_split): Likewise.
554 (main): Don't set progname. Pass line_no to gen_foo.
556 2000-05-27 Richard Henderson <rth@cygnus.com>
558 * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
559 * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
560 * config/d30v/d30v.md (attr predicable): New.
561 (all insn patterns): Mark non-predicable patterns; use %: on the rest.
562 (andsi3*): Unify into one pattern.
563 (iorsi3*, xorsi3*): Likewise.
564 (peephole2 patterns): Use peep2_reg_dead_p; verify not a
566 (old cond_exec patterns): Remove.
567 (define_cond_exec): New.
569 Sat May 27 11:01:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
571 * tree.h (TREE_CODE_LENGTH): New macro.
572 * c-common.c (c_find_base_decl): Use it.
573 * expr.c (safe_from_p): Likewise.
574 * print-tree.c (print_node): Likewise.
575 * tree.c (make_node, copy_node, get_identifier): Likewie.
576 (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
577 (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
578 * fold-const.c (make_range): Likewise.
579 (fold): Likewise; also use first_rtl_op.
580 * c-iterate.c (collect_iterators): Use first_rtl_op.
581 * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
582 Use IS_EXPR_CODE_CLASS.
583 (preexpand_calls): Likewise.
584 * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
585 and TREE_CODE_LENGTH.
586 * stmt.c (warn_if_unused_value): If no operands, no unused value.
588 2000-05-26 Geoffrey Keating <geoffk@cygnus.com>
590 * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
592 (movdi_internal64): Likewise.
594 * config/rs6000/rs6000.md: Correct order of operands for DImode
597 * config/rs6000/rs6000.c (boolean_or_operator): New function.
598 * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
599 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
600 * config/rs6000/rs6000.md: Use boolean_or_operator instead of
601 boolean_operator for the boolean patterns without NOTs.
603 * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
604 from reg_or_u_cint_operand. Change comment and behaviour.
605 (logical_operand): Clean up, add assertion.
606 (non_logical_cint_operand): Also check for
607 reg_or_logical_cint_operand.
608 * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
609 * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
615 2000-05-26 Mark Mitchell <mark@codesourcery.com>
617 * tree.h (struct record_layout_info): Rename to (struct
618 record_layout_info_s).
619 * stor-layout.c (start_record_layout): Replace
620 `record_layout_info' with `record_layout_info_s'.
622 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
624 * flow.c (find_label_refs): New function.
625 (find_basic_blocks_1): Call it for each alternative of a call
628 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
630 * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
633 2000-05-25 Richard Henderson <rth@cygnus.com>
635 * config/alpha/alpha.c (alpha_comparison_operator): Don't be
636 so strict about DImode.
637 (alpha_swapped_comparison_operator): Likewise.
638 * config/alpha/alpha.md (*setne_internal): Name it. Allow
639 any integer output mode.
640 (*setcc_internal): Likewise.
641 (*setcc_swapped_internal): Likewise.
642 (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
643 (*mov[qhs]icc_internal): New.
644 (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
646 2000-05-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
648 * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
650 2000-05-25 Richard Henderson <rth@cygnus.com>
652 * bb-reorder.c (reorder_block_def): Reorder elements for size.
653 Remove add_jump; add next; replace flags with visited.
655 (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
656 (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
657 (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
658 (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
660 (reorder_index, reorder_last_visited): Remove.
661 (skip_insns_after_block): Rewrite to use a switch.
662 (get_common_dest): Remove.
663 (chain_reorder_blocks): Remove.
664 (record_effective_endpoints): Split out from reorder_basic_blocks.
665 (make_reorder_chain): Likewise. Loop until all blocks are placed.
666 (make_reorder_chain_1): Renamed from old make_reorder_chain.
667 Only construct the reorder chain, do not move insns. Try harder
669 (label_for_bb, emit_jump_to_block_after): New.
670 (fixup_reorder_chain): Use them. Do bulk block movement. Examine
671 and adjust the jump insns appropriately. Fixup basic_block_info.
672 (verify_insn_chain): Always define.
673 (relate_bbs_with_scopes): Call xmalloc, not xcalloc. Fix thinko
675 (make_new_scope): Don't write zeros to calloc'd space.
676 (build_scope_forest): Rely on xrealloc to DTRT.
677 (reorder_basic_blocks): Don't build loop nest. Don't fail if
678 profile_arc_flag. Streamline EH test.
680 * flow.c (redirect_edge_succ, redirect_edge_pred): New.
681 * basic-block.h: Declare them.
683 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
685 * emit-rtl.c (reset_used_decls): New function.
686 (unshare_all_rtl_again): Call it.
688 2000-05-25 Zack Weinberg <zack@wolery.cumb.org>
690 * cpplex.c (maybe_macroexpand): Warn about function-like
691 macros used in non-function context, if -Wtraditional.
693 2000-05-25 Mark Mitchell <mark@codesourcery.com>
695 * recog.c (peephole2_optimize): Use INSN_P.
697 2000-05-25 Richard Henderson <rth@cygnus.com>
699 * ifcvt.c (seq_contains_jump): New.
700 (noce_try_store_flag_constants): Use it to fail conversion.
701 (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
703 2000-05-25 Mark Mitchell <mark@codesourcery.com>
705 * except.h (can_throw): Declare it.
706 * except.c (can_throw): Give it external linkage.
707 * resource.c (find_dead_or_set_registers): Use can_throw.
709 2000-05-25 Richard Henderson <rth@cygnus.com>
711 * flow.c (mark_set_1): Don't record conditionally dead memory.
713 2000-05-25 Jan Hubicka <jh@suse.cz>
715 * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
716 and pc_set at the place of simplejump_p and condjump_p.
717 * cse.c (record_jump_equiv): Likewise.
718 * emit-rtl.c (emit): Likewise.
719 * explow.c (find_next_ref): Likewise.
720 * flow.c (tidy_fallthru_edge): Likewise.
721 (init_propagate_block_info): Likewise.
722 * gcse.c (delete_null_pointer_checks): Likewise.
723 * ifcvt.c (cond_exec_get_condition, noce_get_condition,
724 dead_or_predicable): Likewise.
725 * integrate.c (copy_insn_list): Likewise.
726 * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
727 for_each_insn_in_loop, check_dbra_loop, get_condition,
728 insert_bct, load_mems): Likewise.
729 * resource.c (find_dead_or_set_registers): Likewise.
730 * sibcalls.c (simplejump_p): Likewise.
731 * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
733 2000-05-25 David Edelsohn <edelsohn@gnu.org>
735 * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
736 to STRING case. Use doubleword STRING move for TARGET_POWERPC64
738 * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
739 (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
740 (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
741 * rs6000.md: Name various internal patterns.
743 2000-05-25 Jan Hubicka <jh@suse.cz>
745 * jump.c (invert_exp_1): Remove first argument, use pc_set
746 to get the expression.
747 (redirect_exp): Make static; redirect only the pc_set expression,
748 remove first argument.
749 (invert_exp): Remove first argument, make static.
750 (jump_optimize): Use any_condjump_p, any_uncondjump_p and
751 any_onlyjump at most places where we originaly did condjump_p
753 (jump_back_p, follow_jumps, thread_jumps): Likewise.
754 (delete_barrier_succesors): Use pc_set.
755 (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
756 calls of invert_exp and redirect_exp.
757 * rtl.h (redirect_exp, invert_exp): Remove.
758 * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
760 2000-05-25 Richard Henderson <rth@cygnus.com>
762 * stmt.c (expand_end_bindings): Fix thinko last change.
764 2000-05-25 Andrew MacLeod <amacleod@cygnus.com>
765 Andrew Haley <aph@cygnus.com>
767 * except.c (func_eh_entry): Add emitted field.
768 (new_eh_region_entry): Set emitted field to 0;
769 (output_exception_table_entry): Only emit previously un-emitted data,
770 and send it to the eh_data section.
771 (output_exception_table): Break out common parts. Output
772 exception table for entire compilation unit to eh_data section.
773 (output_exception_table_data): Common parts of output_exception_table.
774 Send output to eh_data section.
775 (output_function_exception_table): Output exception table data for
776 a single function to eh_data section.
777 (free_exception_table): New external to free the table.
778 * except.h (free_exception_table): Add prototype.
779 (output_function_exception_table): Add prototype.
780 * final.c (final_end_function): Output function exception table
781 for IA64_UNWIND_INFO.
782 (final_scan_insn): Emit any unwind directives for an insn.
784 * frame-dwarf2.c: New file containing all DWARF 2 specific code
786 * frame.c: Remove all DWARF 2 specific code.
787 * config/ia64/frame-ia64.c: New file.
788 (gthread_stuff): Make all gthread available with
790 (dwarf_fde): Define an IA64 struct for dwarf_fde.
791 (__register_frame_info, __register_frame): Move to common area of file.
792 (__register_frame_info_table, __register_frame_table): Move to common i
794 (__deregister_frame_info, __deregister_frame): Move to common area.
795 (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
796 (read_uleb128): New version for ia64.
797 (get_unwind_record): Read the next IA-64 unwind record.
798 (read_R_record): Read a region header record.
799 (process_a_b_reg_code): X record helper.
800 (read_X_record): Read an X format record.
801 (read_B_record): Read a B format record.
802 (P3_record_types): List of record types matching the P3 format.
803 (P7_record_types): List of record types matching the P7 format.
804 (P8_record_types): List of record types matching the P8 format.
805 (read_P_record): Read a P format record.
806 (init_ia64_reg_loc): Set default fields for a register.
807 (init_ia64_unwind_frame): Set defaults for all register records.
808 (execute_one_ia64_descriptor): Execute one descriptor record.
809 (rse_address_add): Calculate the position of a local reg in memory.
810 (normalize_reg_loc): Turn a location descriptor into a memory address.
811 (maybe_normalize_reg_loc): Only normalize a descriptor if it falls
812 within a specified PC offset range.
813 (get_real_reg_value): Given a register location, retrieve its value.
814 (set_real_reg_value): Change the value of a register location.
815 (copy_reg_value): Copy reg values, if needed.
816 (copy_saved_reg_state): Copy all registers that need to be copied.
817 (process_state_between): Normalize all frame register records that
818 fall within the specified PC range.
819 (frame_translate): Take a processed frame description, and turn
820 everything into addresses.
821 (build_ia64_frame_state ): Find and create frame state record for a PC.
822 (get_personality): Get the personality routine for a given frame.
823 (get_except_table): Get the exception table for a given frame.
824 (record_name): Unwind record names for debugging.
825 (print_record): Print and unwind record.
826 (print_all_records): Print an entire unwind image.
827 (__ia64_backtrace): Print a backtrace.
828 (ia64_backtrace_helper): New function.
829 (__register_frame_info_aux): New function.
830 * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
832 * frame.h (enum unw_record_type): New unwind record types.
833 (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
834 (struct unw_r_record, unwind_record): New unwind record structs.
835 (struct unwind_info_ptr): Unwind information layout.
836 (IA64_UNW_LOC_TYPE_*): Macros for different types for location
838 (struct ia64_reg_loc): Register location description.
839 (struct ia64_frame_state): Location of all registers in a frame.
840 (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
841 * libgcc2.c (__ia64_personality_v1): Personality routine.
842 (__calc_caller_bsp): Calculate the bsp register for the caller's
844 (ia64_throw_helper): Figure out who to return to and set up the
846 (__throw): Throw routine.
848 * output.h (assemble_eh_align, assemble_eh_label): New functions
849 to generate EH info where we want it.
850 (assemble_eh_integer): New function.
851 * toplev.c (compile_file): Output module level exception table for
853 (main): Set exceptions_via_longjump and flag_new_exceptions based
854 on IA64_UNWIND_INFO too.
856 * varasm.c (assemble_eh_label): Generate a label via
857 ASM_OUTPUT_EH_LABEL if it has been specified.
858 (assemble_eh_align): Generate an alignment directive via
859 ASM_OUTPUT_EH_ALIGN if it has been specified.
860 (assemble_eh_label): Generate an integer value via
861 ASM_OUTPUT_EH_type if they have been specified.
862 * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
863 (ia64_init_builtins): Add __builtin_ia64_bsp
864 and __builtin_ia64_flushrs.
865 (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
866 IA64_BUILTIN_FLUSHRS.
867 * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
868 IA64_BUILTIN_FLUSHRS.
870 * config/ia64/ia64.md (flushrs): New insn to flush the register
871 stack. Add to unspec list.
873 * config/ia64/crtbegin.asm (frame_object): Change size.
874 (__do_frame_setup_aux): New function.
875 * config/ia64/crtend.asm: call __do_frame_setup_aux.
876 * config/ia64/t-ia64 (LIB2ADDEH): Add.
877 * Makefile.in (LIB2ADDEH): Add.
878 (LIB2ADD): Use LIB2ADDEH.
880 2000-05-24 Richard Henderson <rth@cygnus.com>
882 * recog.c (offsettable_address_p): If mode size is zero, assume
885 2000-05-24 J. David Anglin <dave@hiauly.hia.nrc.ca>
887 * configure.in: Check for -Wno-long-long option support and improve
888 handling of warning CFLAGS for stages 1 and 2.
889 * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
890 * configure: Regenerate.
892 Wed May 24 19:37:53 2000 Jeffrey A Law (law@cygnus.com)
894 * gcc.texi: Remove contributor list. Instead include contrib.texi.
895 * contrib.texi: New file.
897 Thu May 25 02:27:22 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
899 * loop.c (basic_induction_var): Avoid double recording of an increment.
901 Thu May 25 02:19:27 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
903 * Back out this patch:
904 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
905 * loop.h (struct induction): Add multi_insn_incr.
906 * loop.c (basic_induction_var): New multi_insn_incr argument.
907 Set it if we search back through previous insns for the biv.
908 (record_biv): New multi_insn_incr argument; fill in struct induction.
909 (strength_reduce): Discard an iv with multiple bivs, any of
910 which require multiple insns to increment.
912 * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
914 Thu May 25 02:09:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
916 * rtl.h (loc_mentioned_in_p): Declare.
917 * reload.c (loc_mentioned_in_p): Moved from here...
918 * rtlanal.c (loc_mentioned_in_p): to here. No longer static.
919 Fix loop increment for 'E' handling.
920 * loop.c (strength_reduce): When doing biv->giv conversion,
921 take multi-insn biv increments into account.
923 2000-05-24 Jason Merrill <jason@casey.soma.redhat.com>
925 * stmt.c (expand_end_bindings): Look through NOTEs to find a
928 2000-05-24 Mark Mitchell <mark@codesourcery.com>
930 * calls.c (expand_call): Handle cleanups in tail-recursion
931 arguments analagously to cleanups in sibling calls.
933 2000-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
935 * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
938 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
940 * expr.c (expand_assignment, store_expr, expand_expr,
941 expand_expr_unaligned): Set in_check_memory_usage while emitting
942 chkr_check_addr libcall.
944 2000-05-24 Nick Clifton <nickc@cygnus.com>
946 * fold-const.c (extract_muldiv): When constructing a
947 multiplier/divisor, do not expect const_binop to correctly
948 determine if overflow has occured, so check explicitly.
950 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
952 * c-decl.c (build_enumerator): Don't modify the value's type,
955 2000-05-24 Andreas Jaeger <aj@suse.de>
957 * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
959 2000-05-24 Eric Christopher <echristo@cygnus.com>
961 * configure.in: Redefine inhibit_libc conditions.
962 * libgcc2.c: Remove inhibit_libc conditional define.
963 * configure: Regenerate.
965 2000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
967 * configure.in: For --enable-languages=LIST, check for empty LIST.
968 * configure: Regenerate.
970 2000-05-24 Lars Brinkhoff <lars@nocrew.org>
972 * pdp11.h (STACK_BOUNDARY): Define.
974 2000-05-24 Jakub Jelinek <jakub@redhat.com>
976 * ifcvt.c (if_convert): Update life info globally.
978 2000-05-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
980 * emit-rtl.c (unshare_all_decls): New function.
981 (unshare_all_rtl): Call it.
983 2000-05-23 Nick Clifton <nickc@cygnus.com>
985 * configure.in: Treat 'strongarm' as if it were 'arm' when
986 determining cpu type.
988 * configure: Regenerate.
990 * config/arm/arm.c: Change 'char *' to 'const char *' for cases
991 where constant strings are involved.
993 * config/arm/arm.h (arm_condition_codes): Change type to 'const
996 * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
997 cases where constant strings are involved.
999 Tue May 23 15:08:31 2000 Clinton Popetz <cpopetz@cygnus.com>
1001 * config/sh/sh.c (gen_far_branch, split_branches): Update
1002 to reflect new prototypes for redirect_jump and invert_jump.
1003 (sh_insn_length_adjustment): Get rid of const warnings.
1005 2000-05-23 Kazu Hirata <kazu@hxi.com>
1007 * invoke.texi (Options for Debugging Your Program or GCC): Update
1008 the names of dump files.
1010 Tue May 23 13:58:52 2000 Philippe De Muyter <phdm@macqel.be>
1012 * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
1013 * configure: Regenerated.
1015 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
1017 * simplify-rtx.c (SIGN_EXTEND): New macro.
1018 (simplify_unary_operation, simplify_binary_operation,
1019 simplify_relational_operation): Use SIGN_EXTEND. Make low
1020 halves of (low, high) pairs unsigned if they weren't already.
1021 (simplify_ternary_operation): Cast INTVAL to unsigned before
1022 comparing to a MODE_BITSIZE.
1024 2000-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1026 * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
1027 rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
1029 * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
1030 gcc_AC_NEED_DECLARATIONS.
1032 * dwarfout.c: Don't prototype time().
1034 * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
1036 * system.h: Likewise.
1038 * toplev.c: Likewise.
1040 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
1042 * c-decl.c (pushdecl): Invert sense of test for non-global types.
1044 Tue May 23 18:11:42 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1046 * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
1048 2000-05-23 Jonathan Larmour <jlarmour@redhat.co.uk>
1050 * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
1052 Tue May 23 06:50:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1054 * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
1055 (alpha_start_function): Never write ..ng label if VMS or NT.
1056 (alpha_align_insns): Remove GP_IN_USE arg.
1057 Alignment now unsigned.
1058 (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
1059 * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
1060 and two define_insn's.
1062 2000-05-22 Richard Henderson <rth@cygnus.com>
1064 * combine.c (simplify_comparison): Use trunc_int_for_mode.
1066 2000-05-22 Richard Henderson <rth@cygnus.com>
1068 * stor-layout.c (place_field): Change rli->size to rli->offset.
1070 2000-05-22 Richard Henderson <rth@cygnus.com>
1072 * function.c (thread_prologue_and_epilogue_insns): Make sure
1073 existing line number notes appear after the prologue.
1075 Mon May 22 21:49:00 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1077 * config/alpha/alpha.c (alpha_fnname): New static variable.
1078 (print_operand, case '~'): New case.
1079 (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
1080 (alpha_start_function): Set alpha_fnname.
1081 Write "ng" label if no ldgp; don't write ldgp insn.
1082 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
1083 * config/alpha/alpha.md (prologue_ldgp): New define_insn.
1085 Mon May 22 11:30:48 2000 Clinton Popetz <cpopetz@cygnus.com>
1087 * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
1090 2000-05-22 Zack Weinberg <zack@wolery.cumb.org>
1092 * varasm.c (eh_frame_section): Revert change to argument list.
1094 Mon May 22 13:14:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1096 * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
1097 (gen_extend_insn, can_fix_p, can_float_p): Likewise.
1099 * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
1100 dangling "else" that causes "break" to be conditional.
1101 Also remove unneeded code at start.
1103 Mon May 22 17:31:35 2000 Philippe De Muyter <phdm@macqel.be>
1105 * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
1106 * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
1107 * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
1109 2000-05-22 Jakub Jelinek <jakub@redhat.com>
1111 * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
1114 Mon May 22 06:57:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1116 * alias.c (record_component_aliases): New function.
1117 * tree.h: Clean up some declarations and comments.
1118 (record_component_aliases): New declaration.
1119 * tree.c (get_alias_set): If type and has alias set, use it.
1121 2000-05-22 Richard Henderson <rth@cygnus.com>
1123 * simplify-rtx.c (simplify_ternary_operation): Try to simplify
1124 IF_THEN_ELSE to a setcc form.
1125 * jump.c (can_reverse_comparison_p): Be prepared for insn null.
1127 2000-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1129 * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
1130 (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
1132 Sun May 21 16:42:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1134 * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
1137 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
1139 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
1140 * config/mn10300/mn10300.c (print_operand): Likewise.
1142 * final.c (split_double): Right shift of negative values is not
1145 * ifcvt.c (if_convert): Scan and kill dead code.
1147 * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
1149 2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
1151 * diagnostic.c: Eliminate implicit int.
1152 * except.c, gcc.c: Add static prototypes.
1153 * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
1154 * gensupport.c (process_rtx): Use XVEC to initialize vector
1157 * print-rtl.c: If DEBUG_REGISTER_NAMES, define static
1158 debug_reg_names instead of static reg_names. If not, define
1160 * regclass.c: Don't define global reg_names unless
1161 DEBUG_REGISTER_NAMES is defined.
1163 * reload1.c (order_regs_for_reload): Remove unused variable.
1164 * varasm.c: Include output.h after defaults.h. Define
1165 eh_frame_section as function of no args, not of unspecified args.
1167 * gcc.c: Constify argbuf; arguments to store_arg,
1168 process_command, main; elements of struct command and struct
1169 switchstr; local variables in execute, process_command, main.
1171 2000-05-20 Bruce Korb <bkorb@gnu.org>
1173 * fixinc/inclhack.def: many applications of c_fix=format + tests
1174 * fixinc/check.diff: regenerated
1175 * fixinc/fixincl.x: regenerated
1177 Sat May 20 09:30:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1179 * alias.c: Clarify some comments.
1180 (record_base_value): REGNO is unsigned.
1181 * rtl.h (record_base_value): Likewise.
1183 * alias.c (aliases_everything_p): Don't special-case QImode here.
1184 * c-common.c (c_get_alias_set): Do it here.
1185 Handle BIT_FIELD_REF by getting alias info for arg.
1188 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
1190 * mklibgcc.in: Restore rule to create ${dir}.
1192 Sat May 20 08:45:41 2000 H.J. Lu <hjl@gnu.org>
1194 * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
1195 GCC_FOR_TARGET used by MULTILIBS.
1196 * mklibgcc.in: Make sure each .o file depends on the
1197 directory it will be in.
1198 Make the multilib directory depends libgcc.
1200 Sat May 20 08:29:28 2000 H.J. Lu <hjl@gnu.org>
1202 * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
1204 Sat May 20 07:27:35 2000 Alexandre Oliva <aoliva@cygnus.com>
1206 * fold-const.c (make_range): Handle degenerated intervals.
1207 Fixes c-torture/execute/991221-1.c
1209 Fri May 19 18:16:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1211 * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
1212 * reload.c (find_equiv_reg): Likewise.
1213 * alias.c (init_alias_analysis): Likewise.
1214 Only call prologue_epilogue_contains on insns.
1215 * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
1216 * bb-reorder.c (hard-reg-set.h): Include earlier.
1217 * haifa-sched.c (hard-reg-set.h): Likewise.
1218 * ifcvt.c (hard-reg-set.h): Likewise.
1219 * local-alloc.c (hard-reg-set.h): Likewise.
1220 * loop.c (hard-reg-set.h): Likewise.
1221 * predict.c (hard-reg-set.h): Likewise.
1222 * regrename.c (hard-reg-set.h): Likewise.
1223 * flow.c (hard-reg-set.h): Likewise.
1224 (reg_set_to_hard_reg_set): New function.
1225 * bitmap.c (regs.h, basic-block.h): No longer include.
1226 (bitmap.h): Now include.
1227 * conflict.c (hard-reg-set.h): Include.
1228 * profile.c (hard-reg-set.h): Likewise.
1229 * print-rtl.c (hard-reg-set.h): Likewise.
1230 * sbitmap.c (hard-reg-set.h): Likewise.
1231 * toplev.c (hard-reg-set.h): Likewise.
1232 * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
1233 * hard-reg-set.h (reg_names): Now constant.
1234 * regs.h (reg_names): Likewise.
1235 * regclass.c (reg_names): Likewise.
1236 * loop.h (basic-block.h): No longer include.
1237 (bitmap.h): Now include.
1238 * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
1239 * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
1240 (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
1242 2000-05-19 Jan Hubicka <jh@suse.cz>
1243 Richard Henderson <rth@cygnus.com>
1245 * basic-block.h (struct edge_def): New field "count".
1246 (struct basic_block_def): Likewise.
1247 * flow.c (entry_exit_blocks): Add count fileds.
1248 (split_edge): Keep count information up-to-date.
1249 (dump_edge_info, dump_flow_info): Dump count fields.
1251 * final.c (count_instrumented_edges): Rename to edge from arc.
1252 (end_final): Update users.
1253 * profile.c: Include expr.h, basic-block.h.
1254 (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
1255 (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
1256 (ignore_next_note, return_label_execution_count): Kill.
1257 (bbg_file_name, da_file_name): Kill.
1258 (edge_info, bb_info): New structures.
1259 (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
1260 (count_instrumented_edges, total_num_edges): Rename to edge from arc.
1261 (total_num_edges_instrumented): Likewise.
1262 (init_arc, expand_spanning_tree): Kill.
1263 (fill_spanning_tree, tablejump_entry_p): Kill.
1264 (instrument_edges): Rewrite from instrument_arcs to use
1265 commit_edge_insertions infrastructure.
1266 (compute_branch_probabilities): Remove arguments; rewrite for
1267 CFG infrastructure; use rtl_dump_file directly.
1268 (branch_prob, find_spanning_tree): Likewise.
1269 (union_groups, find_group): New.
1270 (init_branch_prob): Make bbg_file_name and da_file_name local.
1271 (end_branch_prob): Use rtl_dump_file directly.
1272 (init_edge_profiler): Rename to edge from arc.
1273 (output_arc_profiler): Kill.
1274 (gen_edge_profiler): New.
1275 (output_func_start_profiler): Turn off profiling. Make the
1276 constructor static when we can.
1277 * rtl.h (branch_prob, end_branch_prob): Update prototypes.
1279 * toplev.c (DFI_flow): Remove.
1280 (DFI_cfg, DFI_life): New.
1281 (dump_file): Update accordingly.
1282 (compile_file): Call end_branch_prob if profile_arc_flag too.
1283 (rest_of_compilation): Move flow1 cfg creation to DFI_cfg. Do edge
1284 profiling after the CFG is built. Move flow1 life analysis to
1285 DFI_life. Always estimate remaining probabilities.
1287 2000-05-19 Richard Henderson <rth@cygnus.com>
1289 * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
1291 * flow.c (make_edges): The sibling call edge to exit is abnormal.
1293 2000-05-19 Richard Henderson <rth@cygnus.com>
1295 * jump.c (redirect_jump): Add delete_unused argument. Don't
1296 remove labels and code following when LABEL_NUSES goes to zero.
1297 (invert_jump): Likewise.
1298 (jump_optimize_1): Fix redirect/invert arguments.
1299 (do_cross_jump, thread_jumps): Likewise.
1300 * flow.c (split_edge): Likewise.
1301 * reorg.c (optimize_skip): Likewise.
1302 (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
1303 * profile.c (instrument_arcs): Likewise.
1304 * loop.c (find_and_verify_loops): Likewise. Fix indentation.
1305 * rtl.h: Update prototypes.
1307 Fri May 19 12:05:13 2000 Clinton Popetz <cpopetz@cygnus.com>
1309 * ssa.c (convert_from_ssa): Tell life_analysis we need death
1311 (make_regs_equivalent_over_bad_edges): Only look at abnormal
1314 2000-05-19 Zack Weinberg <zack@wolery.cumb.org>
1316 * cpphash.c (funlike_macroexpand): Make sure not to walk p1
1317 past l1 when deleting whitespace and markers.
1319 * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
1320 * cpplib.c (do_unassert): Put the list to compare against on
1323 2000-05-19 Bruce Korb <bkorb@gnu.org>
1325 * fixinc/README: cleaned up old documentation
1326 * fixinc/check.diff: regenerated & verified on OSR5 on ix86
1327 * fixinc/check.tpl: compute the list of needed directories
1328 emit "#if defined(name)" because of conflict
1329 omit machine name differences from output differences
1330 * fixinc/inclhack.def( m88k_multi_incl ): Use `wrap' function
1331 (machine_name): change test text to use `sed' markers
1332 * fixinc/fixincl.x: regen
1334 Fri May 19 06:49:35 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1336 * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
1339 2000-05-18 Chris Demetriou <cgd@sibyte.com>
1341 * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
1342 it to match the current practice.
1344 2000-05-18 Mark Mitchell <mark@codesourcery.com>
1346 * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
1348 2000-05-18 Richard Henderson <rth@cygnus.com>
1350 * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
1351 * rtl.h (insn_dependant_p): Declare it.
1352 * loop.c (strength_reduce): Use it.
1354 2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
1356 * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
1357 16-bit and 64-bit clean-up.
1359 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
1361 * configure.in (*-pc-msdosdjgpp): Set float_format to none.
1362 * configure: Rebuilt.
1364 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
1366 * genopinit.c: Use $ for escape sequences in optab patterns.
1367 Remove backslashes from optab patterns. Change $A, $B, $C to
1368 expand to (int) whatever instead of just whatever; remove
1369 explicit (int) from all optab patterns.
1371 * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
1372 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
1373 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
1374 genrecog.c: Remove private copies of xmalloc, xrealloc, and
1377 2000-05-18 Richard Henderson <rth@cygnus.com>
1379 * jump.c (jump_optimize_1): Base minimum insn count during
1380 find_cross_jump on BRANCH_COST.
1382 2000-05-18 Jakub Jelinek <jakub@redhat.com>
1384 * print-rtl.c (print_rtx): Only print note line number as string
1385 if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
1386 * final.c (final_scan_insn): Do nothing for note line number 0.
1388 2000-05-18 Jakub Jelinek <jakub@redhat.com>
1390 * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
1391 from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
1392 NOTE_INSN_DELETED_LABEL.
1394 2000-05-18 Nick Clifton <nickc@cygnus.com>
1396 * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
1397 uninitialised data in .rodata not .bss, and do not interpret an
1398 error in the initialisation value as meaning that the variable
1399 should be placed in the .bss section.
1401 Thu May 18 12:10:18 2000 Philippe De Muyter <phdm@macqel.be>
1403 * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
1404 not `$ac_cv_prog_cc_cc_c_o'.
1405 * configure: Regenerated.
1407 2000-05-18 Chris Demetriou <cgd@sibyte.com>
1408 Richard Henderson <rth@cygnus.com>
1410 * c-common.h (enum c_tree_index): Add g77 type entries.
1411 (g77_integer_type_node, g77_uinteger_type_node): New.
1412 (g77_longint_type_node, g77_ulongint_type_node): New.
1413 * c-decl.c (init_decl_processing): Initialize them.
1415 2000-05-18 Richard Henderson <rth@cygnus.com>
1417 * config/h8300/h8300.md (subs patterns): Use %G to negate.
1419 * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
1420 (small_power_of_two): Likewise; use exact_log2.
1421 (adds_subs_operand, one_insn_adds_subs_operand): Remove.
1422 (output_adds_subs): Remove.
1423 (two_insn_adds_subs_operand): New.
1424 (split_adds_subs): New.
1425 * config/h8300/h8300-protos.h: Update.
1426 * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
1427 (CONST_OK_FOR_L): Match strict adds operands.
1428 (CONST_OK_FOR_N): Match struct subs operands.
1429 * config/h8300/h8300.md (adds_subs insns): Remove.
1430 (addhi patterns): Output adds/subs directly.
1431 (addsi_h8300h): Likewise.
1432 (addhi/addsi splitters): New. Decompose two_insn_adds_subs_operand.
1434 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
1436 * cppexp.c (parse_assertion): New.
1437 (lex): Call it for CPP_HASH. Remove CPP_ASSERTION case.
1438 (_cpp_parse_expr): Remove case '#'. Don't set
1439 parsing_if_directive.
1440 * cpphash.c (collect_objlike_expansion,
1441 collect_funlike_expansion, collect_params,
1442 _cpp_create_definition): The list no longer has a trailing
1444 * cpphash.h (enum node_type): Add T_ASSERTION.
1445 (struct hashnode): Remove aschain, add pred.
1446 (struct predicate): New.
1449 * cpplex.c (expand_token_space): Handle both offset and
1451 (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
1452 (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
1453 _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
1454 _cpp_equiv_toklists): New.
1455 (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
1456 stop at any single-character token, not just newline.
1457 (_cpp_lex_token): Remove special cases for #define and #if.
1458 (cpp_get_token): Expect # as a separate token type. Remove
1460 (_cpp_get_directive_token): Remove DIRECTIVE case.
1461 (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
1463 * cpplib.c (_cpp_check_directive): Set dirno and
1464 SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
1465 (_cpp_handle_directive): Run # <number> through the same logic
1466 as normal directives.
1467 (do_define): Don't set parsing_define_directive. Use
1468 _cpp_scan_until. The list does not have a VSPACE at the end.
1469 (do_if): Save, clear, and restore only_seen_white around
1471 (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
1472 (do_assert, do_unassert): Rewrite.
1474 * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
1475 (LIST_OFFSET): New flag.
1476 (struct cpp_toklist): Replace dir_handler and dir_flags with
1478 (struct cpp_reader): Remove parsing_if_directive and
1479 parsing_define_directive.
1481 2000-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1483 * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
1484 following the cabs decl which terminate on the following line.
1485 Add the corresponding test_text case.
1487 2000-05-18 Neil Booth <NeilB@earthling.net>
1489 * cppinit.c (cpp_reader_init): Initialise col_adjust and
1490 default tab stop size.
1491 (no_num, OPT_ftabstop): New.
1492 (handle_option): Handle "ftabstop=" command-line option.
1493 (print_help): Document it.
1494 * cpplex.c (COLUMN): Remove.
1495 (handle_newline): Reset col_adjust.
1496 (skip_whitespace): Update col_adjust as tabs encountered.
1497 (_cpp_lex_line): Update to use col_adjust. Call
1498 skip_whitespace for all whitespace.
1499 * cpplib.h (struct cpp_options): New member tabstop.
1500 (struct cpp_reader): New member col_adjust.
1501 (CPP_BUF_COL): Update.
1502 (CPP_BUF_COLUMN): New.
1503 * cpp.texi: Document "-ftabstop=" command line option.
1505 Wed May 17 18:19:41 2000 Philippe De Muyter <phdm@macqel.be>
1507 * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
1509 * configure: Rebuilt.
1511 Wed May 17 18:06:12 2000 John David Anglin <dave@hiauly1.hia.nrc.ca>
1513 * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
1515 * tree.c (build_common_tree_nodes): Do not build TI nodes unless
1516 HOST_BITS_PER_WIDE_INT is >= 64.
1518 2000-05-17 Richard Henderson <rth@cygnus.com>
1520 * jump.c (jump_optimize_1): Remove inactive but real insns
1521 in jump-to-next-insn optimization.
1523 2000-05-17 Richard Henderson <rth@cygnus.com>
1525 * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
1526 unless OPTIMIZE_MODE_SWITCHING. Conditionally set no_new_pseudos.
1527 Don't call recompute_reg_usage if no_new_pseudos is true.
1528 * lcm.c (optimize_mode_switching): Move ifdefs outside function.
1529 Return true if we did work; update global life information.
1530 * basic-block.h (optimize_mode_switching): Update decl.
1532 2000-05-17 Neil Booth <neilb@earthling.net>
1534 * cpplex.c (expand_name_space): Don't use ptrdiff_t.
1536 2000-05-17 Zack Weinberg <zack@wolery.cumb.org>
1538 * cpplib.c: New feature, #pragma system_header.
1539 * cpp.texi: Document special treatment of system headers, and
1540 the various mechanisms to get a header that special treatment.
1542 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1544 * system.h (offsetof): Define at the very end, to ensure we prefer
1545 the platform's definition if available.
1547 2000-05-16 Bruce Korb <bkorb@gnu.org>
1549 * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
1550 * fixinc/server.c: likewise
1551 * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
1552 + #ifdef debugging code + use #def constant for
1554 * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
1555 on C++ math namespace
1557 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1559 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
1560 Don't check the return value of sprintf. Use asprintf to avoid
1563 Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
1565 * flags.h (warn_unused_function, warn_unused_label,
1566 warn_unused_parameter, warn_unused_variable, warn_unused_value):
1567 Replace ``warn_unused''.
1568 (set_Wunused): Add declaration.
1569 * toplev.c (set_Wunused): New function.
1570 (warn_unused_function, warn_unused_label, warn_unused_parameter,
1571 warn_unused_variable, warn_unused_value): New variables.
1572 (W_options): Add -Wunused-function, -Wunused-function,
1573 -Wunused-label, -Wunused-parameter, -Wunused-variable and
1574 -Wunused-value. Delete -Wunused. Handled in decode_W_option.
1576 * toplev.c (decode_W_option): Update -Wunused flags by calling
1578 * c-decl.c (c_decode_option): Ditto for -Wall.
1580 * stmt.c (expand_expr_stmt, expand_expr_stmt,
1581 warn_about_unused_variables): Replace warn_unused with more
1582 explicit warn_unused_value et.al.
1583 * function.c (expand_function_end): Ditto.
1584 * c-typeck.c (internal_build_compound_expr,
1585 internal_build_compound_expr): Ditto.
1586 * c-decl.c (poplevel, pop_label_level): Ditto.
1587 * toplev.c (check_global_declarations): Replace warn_unused with
1588 check for either warn_unused_function or warn_unused_variable.
1590 * gcc.1, invoke.texi (Warning Options): Document
1591 -Wunused-function, -Wunused-function, -Wunused-label,
1592 -Wunused-parameter, -Wunused-variable and -Wunused-value options.
1594 Wed May 17 10:28:12 2000 Philippe De Muyter <phdm@macqel.be>
1596 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
1597 $(srcdir), not in the current directory.
1599 2000-05-16 Richard Henderson <rth@cygnus.com>
1601 * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
1602 assembler supports it.
1603 (.fini, .init): Use a gp-relative indirect call.
1604 (__do_global_dtors_aux): Preserve the gp; rebundle.
1605 (__do_frame_setup): Likewise.
1606 * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
1607 (.init): Use a gp-relative indirect call.
1608 (__do_global_ctors_aux): Preserve the gp.
1610 2000-05-16 Richard Henderson <rth@cygnus.com>
1612 * flow.c (commit_one_edge_insertion): Be prepared for a return
1613 insn to be inserted on the edge with a normal jump.
1614 * jump.c (jump_optimize_1): Don't look to create return isns.
1616 * flow.c (flow_delete_insn): Don't adjust reference count of notes.
1617 * jump.c (jump_optimize_1): Likewise.
1618 (returnjump_p): Verify the argument is a JUMP_INSN.
1619 * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
1621 2000-05-16 Nick Clifton <nickc@cygnus.com>
1623 * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
1624 GET_RTX_CLASS (GET_CODE ()) == 'i'.
1625 (large_insn_p): Ditto.
1626 (m32r_is_insn): New function: Return true if the insn contains
1627 an executable instruction.
1628 (m32r_adjust_insn): Use m32r_is_insn.
1629 (m32r_sched_reorder): Use m32r_is_insn.
1630 (m32r_sched_variable_issue): Use m32r_is_insn.
1632 2000-05-16 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1634 * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
1637 * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
1639 * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
1640 according to given options.
1642 Tue May 16 12:17:31 2000 Jeffrey A Law (law@cygnus.com)
1644 * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
1645 if X has VOIDmode either.
1646 (LIMIT_RELOAD_CLASS): Similarly.
1648 * mn10200.md (indirect_jump, tablejump): Use "register_operand",
1649 not "general_operand" to match the processor's capabilities.
1651 2000-05-16 Bruce Korb <bkorb@gnu.org>
1653 * fixinc/README: corrected return address
1654 * fixinc/check.diff: regenerate, now that test works
1655 * fixinc/fixfixes.c(format_fix,format_write): reformatted
1656 (char_macro_def_fix,char_macro_use_fix): corrected and
1657 rewrote to use regex to parse the text
1658 * fixinc/inclhack.def: more testing
1659 * fixinc/fixincl.x: regenerated
1661 * fixinc/inclhack.def: added several "test_text" attributes
1662 changed several fixes to use `c_fix = format'
1663 re-alphabetized the fixes
1665 * fixinc/check.diff: regenerate
1666 * fixinc/fixincl.x: regenerate
1667 * fixinc/check.tpl: added `sparc' and `netinet' to the list
1671 2000-05-16 Alexandre Oliva <aoliva@cygnus.com>
1673 * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
1675 2000-05-15 Richard Henderson <rth@cygnus.com>
1677 * toplev.c (rest_of_compilation): Run full jump pass before
1678 find_basic_blocks of flow2.
1680 2000-05-15 Richard Henderson <rth@cygnus.com>
1682 * jump.c: Fix typos and clarify commentary from last change.
1683 (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
1684 (safe_to_remove_jump_p): Remove.
1685 (condjump_label): Use pc_set.
1687 2000-05-15 Richard Henderson <rth@cygnus.com>
1689 * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
1690 that get in the way after reload.
1691 (cond_exec_process_if_block): Skip a label heading THEN block.
1693 2000-05-15 Richard Henderson <rth@cygnus.com>
1695 * varasm.c (output_constant_pool): Abort instead of converting
1696 (improperly) deleted labels to zero.
1698 2000-05-16 Neil Booth <NeilB@earthling.net>
1700 * cpplex.c (parse_string2): Update comment.
1701 (cpp_lex_line): No special assertion treatment for '('.
1702 * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
1703 * cpplib.h (SYNTAX_ASSERT): Remove.
1705 Mon May 15 21:45:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
1707 * jump.c (condjump_p): Mark as depreached.
1708 (any_condump_p): New.
1709 (any_uncondump_p): New.
1711 (safe_to_remove_jump_p): New.
1712 * rtl.h (any_condump_p, any_uncondjump_p, pc_set
1713 safe_to_remove_jump_p): Declare.
1715 Mon May 15 21:07:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
1717 * calls.c: Re-install both patches reverted by last patch.
1718 (struct arg_data): New field tail_call_reg.
1719 (initialize_argument_information): Initialize tail_call_reg
1720 (load_register_parameters): New argument flags, use
1721 tail_call_reg when emiting tail call sequence.
1722 (expand_call): Update call of load_register_parameters;
1723 copy unadjusted_args_size to adjusted_args_size.
1725 Mon May 15 19:01:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
1727 * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
1728 and bct_p parameters to flags.
1729 * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
1730 * rtl.h (loop_optimize): Update prototype.
1731 * toplev.c (rest_of_compilation): Update call of loop_optimize.
1733 2000-05-15 Jakub Jelinek <jakub@redhat.com>
1735 * calls.c (expand_call): Move expand_start_target_temps call after
1738 2000-05-15 Neil Booth <NeilB@earthling.net>
1740 * cpphash.c (trad_stringify, warn_trad_stringify,
1741 collect_params): Make some pointers pointers to const.
1742 * cpplex.c (auto_expand_name_space) Guaranteed to always
1743 expand by at least one character.
1744 (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
1745 (struct token_spelling): Use const U_CHAR * rather than PTR.
1746 (expand_name_space): Fix up token pointers if name space
1747 is moved when expanding.
1748 (INIT_NAME, cpp_scan_line, parse_name, parse_number,
1749 parse_string2, save_comment, spell_token, cpp_output_list):
1750 Update so the routines handle tokens with a direct pointer to
1751 their text, rather than an offset into the token's list's namebuf.
1752 (_cpp_lex_line): Rearrange for clarity.
1754 * cpplib.c (_cpp_check_directive): Similarly.
1755 (do_define): Make SYM a pointer to const.
1756 * cpplib.h (struct cpp_name): Replace offset with direct pointer.
1757 (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
1758 (TOK_OFFSET): Delete.
1761 2000-05-14 Geoffrey Keating <geoffk@cygnus.com>
1763 * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
1766 * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE
1768 (logical_u_operand): Delete.
1769 (non_logical_cint_operand): Rewrite to take MODE into account.
1770 (non_logical_u_cint_operand): Delete.
1771 (boolean_operator): New function.
1772 (print_operand): Add new %q operand.
1773 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
1774 remove logical_u_operand and non_logical_u_cint_operand,
1775 update logical_operand and non_logical_cint_operand.
1776 * config/rs6000/rs6000.md: Rewrite the patterns for performing
1777 logical operations to use %q.
1779 * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
1780 (movdi): Make similar to movsi.
1781 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
1782 is no such thing as a DImode CONST_DOUBLE.
1783 * config/rs6000/rs6000.c (output_toc): Likewise.
1785 * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
1786 codes when old mnemonics are in use. Print register names
1787 for cc registers when requested.
1789 * optabs.c (expand_float): Don't allow mode widening that causes
1792 * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
1793 flags to their current names -maix64 and -maix32.
1795 2000-05-14 Bruce Korb <bkorb@gnu.org>
1797 * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
1798 and/or after current text of file
1799 * fixinc/fixlib.c(must_malloc):
1800 * fixinc/fixlib.h(must_malloc): + reformatting
1801 * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
1802 with usages of ``c_fix = wrap;''
1803 Add several tests and use the ``c_fix = format'' fixer more.
1804 * fixinc/fixincl.x: regen
1805 * fixinc/check.diff: regen
1806 * fixinc/check.tpl: emit the associated header with the missing
1809 Sun May 14 17:58:59 2000 Hans-Peter Nilsson <hp@axis.com>
1811 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
1812 variables $src and $dst.
1814 2000-05-13 Gabriel Dos Reis <gdr@codesourcery.com>
1816 * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
1817 (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
1818 (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
1819 (struct output_buffer: emitted_prefix_p, prefixing_rule): New
1821 (set_message_prefixing_rule): Declare.
1823 * diagnostic.c: (current_prefixing_rule): New variable.
1824 (set_message_prefixing_rule): Define.
1825 (output_set_prefix): Adjust buffer->emitted_prefix_p.
1826 (init_output_buffer): Adjust Initialization.
1827 (output_emit_prefix): Rewrite. Take prefixing rules into account.
1829 Sat May 13 11:05:47 2000 Philippe De Muyter <phdm@macqel.be>
1831 * ifcvt.c (if_convert): Do not free NULL.
1833 2000-05-12 Nick Clifton <nickc@cygnus.com>
1835 * config/fr30/fr30.c (fr30_move_double): New function: Emit code
1836 to move a double word value.
1837 (di_operand): New function: Return true if the operand is suitbale
1838 for a double word move operation.
1839 (nonimmediate_di_operand): New function: Return true if the
1840 operand is a DImode register or MEM.
1842 * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
1843 nonimmediate_di_operand.
1845 * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
1846 nonimmediate_di_operand.
1848 * config/fr30/fr30.md (movdi): New pattern. Required because
1849 other patterns generate DImode results.
1850 (movdi_insn): New pattern.
1852 2000-05-12 Richard Henderson <rth@cygnus.com>
1854 * config/alpha/alpha.c (struct shadow_summary): Define
1855 bitfields as type unsigned int.
1857 Sat May 13 00:09:59 2000 Denis Chertykov <denisc@overta.ru>
1859 * config/avr/t-avr: Added definition of FLOAT while generates
1862 * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
1863 peepholes for tst+jump = sbrs/sbrc optimization.
1865 Fry May 12 20:03:00 CEST 2000 Jan Hubicka <jh@suse.cz>
1867 * expr.c (emit_push_insn): Do not adjust stack pointer when
1870 Fri May 12 19:03:58 2000 Philippe De Muyter <phdm@macqel.be>
1872 * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
1873 * system.h (offsetof): ... to here.
1875 2000-05-12 Richard Henderson <rth@cygnus.com>
1877 * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
1878 * final.c (final_end_function): Use app_disable. Rearrange note
1879 handling into a switch. Emit deleted labels.
1880 (output_asm_label): Generate label strings for deleted labels.
1881 * flow.c (tail_recursion_label_list): New.
1882 (find_basic_blocks_1): Set label_value_list directly. Collect list
1883 of tail recursion labels from call_placeholders. Don't add deleted
1884 labels to the label value list.
1885 (cleanup_cfg): Use free_EXPR_LIST_list.
1886 (flow_delete_insn_chain): Turn non-removable labels into notes.
1887 (flow_delete_block): Don't disable deleting the block because of
1888 a non-removable label.
1889 (tail_recursion_label_p): New.
1890 (merge_blocks_move_predecessor_nojumps): Don't disable the merge
1892 (merge_blocks_move_successor_nojumps): Likewise. Also move a
1894 (merge_blocks): Disable a merge because of tail recursion labels.
1895 * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
1896 Use a more accurate measure of not merging the join block.
1897 (find_if_block): Don't disable conversion because of a label.
1898 (find_if_case_1, find_if_case_2): Likewise.
1899 * jump.c (duplicate_loop_exit_test): Preserve the kind of list
1900 element when copying.
1901 (squeeze_notes): Also leave EH notes.
1902 (mark_jump_label): Ignore deleted labels. Use an INSN_LIST for
1904 (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
1906 * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
1907 NOTE_INSN_DELETED_LABEL. Print `[# deleted]' for a label_ref
1908 referring to a deleted label. Convert tail handling to a switch.
1909 * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
1910 for NOTE_INSN_DELETED_LABEL.
1911 (NOTE): Fix commentary.
1912 * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
1913 (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
1914 (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
1915 (LABEL_NUSES, LABEL_REFS): Likewise.
1916 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
1918 2000-05-12 Bruce Korb <bkorb@gnu.org>
1920 * fixinc/fixfixes.c(format_write): buglet & relaxed rules
1921 * fixinc/check.diff: updated
1922 * fixinc/inclhack.def: corrected & added some test_text-s
1923 * fixinc/genfixes: removed unneeded options to autogen invocation
1924 * fixinc/fixincl.tpl: Specified the output file
1925 * fixinc/fixfixes.c: visual appearance
1926 * fixinc/fixincl.x: regenerate
1928 2000-05-12 Zack Weinberg <zack@wolery.cumb.org>
1930 * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
1931 CTRL_defn_fix): Delete.
1932 (fix_char_macro_defines, fix_char_macro_uses): Rename to
1933 char_macro_def_fix and char_macro_use_fix, respectively. Put
1934 them into the FIXUP_TABLE. Get the string to search for from
1937 (format_write): New function.
1938 (format_fix): Use it.
1940 (FIX_PROC_HEAD): Constify text parameter.
1941 (machine_name_fix): Constify all char *s.
1942 * fixtests.c (skip_quote): Remove double static.
1944 * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
1945 ctrl_use_quotes): Update for new scheme.
1946 * fixincl.x: Regenerate.
1948 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
1950 * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
1952 (DWARF2_ASM_LINE_DEBUG_INFO): Define.
1953 (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
1955 2000-05-11 Robert Lipe <robertlipe@usa.net>
1957 * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
1958 * fixincl.x: Regenerate.
1960 2000-05-11 Richard Henderson <rth@cygnus.com>
1962 * calls.c: Revert both 05-09 patches.
1964 2000-05-11 Alexandre Oliva <aoliva@cygnus.com>
1966 * config/mn10300/mn10300.c (print_operand): Print FP constants in
1968 * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
1971 * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
1972 and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
1974 2000-05-11 Jason Merrill <jason@casey.cygnus.com>
1976 * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
1978 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
1980 * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
1982 Thu May 11 22:28:05 2000 Denis Chertykov <denisc@overta.ru>
1984 * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
1985 * config/avr/avr.c (jump_over_one_insn_p): New function.
1986 * config/avr/avr.md: New peepholes added. Output test and
1987 conditional jump to "sbrc" or "sbrs" command.
1989 2000-05-11 Mark Elbrecht <snowball3@bigfoot.com>
1991 * cppmain.c (main): Use IS_DIR_SEPARATOR.
1993 2000-05-11 Jakub Jelinek <jakub@redhat.com>
1995 * except.c (find_exception_handler_labels_1): New function.
1996 (find_exception_handler_labels): Split into two functions, dive
1997 into CALL_PLACEHOLDERs when looking for exception handler labels.
1999 2000-05-11 Stan Cox <scox@cygnus.com>
2001 * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
2002 * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
2003 * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
2005 2000-05-11 Bruce Korb <bkorb@gnu.org>
2007 * fixinc/fixfixes.c (double_slash_fix): obsolete
2008 (else_endif_label_fix): obsolete
2009 (format_fix): new, unused as yet
2011 * fixinc/fixlib.h: added fix description struct for use by format_fix
2012 * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
2013 * fixinc/Makefile.in: compile fixfixes.c and fixtests.c as separate
2014 modules. Removed the vestiges of the script version.
2015 Added support for "make check".
2016 * fixinc/check.diff: base diff file (needs work!!)
2017 * fixinc/check.tpl: quiet the fixup output
2018 * fixinc/fixtests.c (main): obsolete
2019 * fixinc/fixincl.sh: don't bother copying fixincl to ..
2020 * fixinc/fixincl.tpl: provide for arguments to c_fix routines
2022 Thu May 11 11:57:02 MET DST 2000 Jan Hubicka <jh@suse.cz>
2024 * toplev.c (rest_of_compilation): Remove dead code after
2027 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
2029 * cpphash.c (collect_funlike_expansion): Make "# is not
2030 followed by a macro argument name" a pedwarn, not an error.
2031 Preserve the # in the output. Suppress the warning if lang_asm.
2033 Thu May 11 01:19:31 2000 Jeffrey A Law (law@cygnus.com)
2035 * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
2036 * configure: Rebuilt.
2038 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
2040 * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
2042 2000-05-10 Kazu Hirata <kazu@hxi.com>
2044 * combine.c (try_combine): Fix a typo.
2046 Wed May 10 21:31:44 2000 Jim Wilson <wilson@cygnus.com>
2048 * config/ia64/ia64.md (insv): Add comment.
2050 2000-05-10 Richard Henderson <rth@cygnus.com>
2052 * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
2053 * mklibgcc.in: Rewrite to not use functions. Don't shortcut
2054 dependancies on FPBIT and DPBIT.
2056 2000-05-10 Nick Clifton <nickc@redhat.com>
2058 * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
2059 when optimising for size.
2060 (mark_used_regs:) Ditto.
2061 (try_pre_increment_1): Ditto.
2063 2000-05-10 Zack Weinberg <zack@wolery.cumb.org>
2065 * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
2066 Make error message friendlier.
2068 * cpphash.h (struct hashnode): Use struct hack for name
2070 * cpphash.c (struct hashdummy): New.
2071 (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
2072 (make_HASHNODE): No need to set ->name pointer. Correct
2074 (cpp_lookup): Make 'dummy' a struct hashdummy. Tidy up a bit.
2076 2000-05-10 Richard Henderson <rth@cygnus.com>
2078 * flow.c (find_basic_blocks_1): Remove any spare bb_note
2081 2000-05-10 Bruce Korb <bkorb@gnu.org>
2083 * fixinc/gnu-regex.c: reg_syntax_t re_syntax_options must be static
2085 2000-05-10 Eric Schweitz <schweitz@nortelnetworks.com>
2087 * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
2088 after we enter .debug.
2090 2000-05-10 Jason Merrill <jason@casey.cygnus.com>
2092 * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
2093 abstract instance of a nested inline function.
2095 * stor-layout.c (finish_record_layout): finalize_type_size
2096 before laying out the pending_statics.
2098 Wed 10 May 09:36:47 2000 Neil Booth <NeilB@earthling.net>
2100 * cpplex.c (spell_token): New function.
2101 (spell_string, spell_comment, spell_name): fold into
2104 (E, H): Remove macros.
2105 (save_comment): Save comment opening characters too.
2106 (_cpp_lex_file): Update to use spell_token. Tidy up comment
2108 * cpplib.h (I, S): Add macros.
2109 (E, H): Remove macros.
2110 (TTYPE_TABLE): Update entries for new speller.
2111 (SYNTAX_ASSERT): Remove.
2113 Wed 10 May 09:08:30 2000 Neil Booth <NeilB@earthling.net>
2115 * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
2116 when removing escaped newlines. Reverse sense of test for
2119 2000-05-09 Richard Henderson <rth@cygnus.com>
2121 * flow.c (find_basic_blocks_1): Do not delete the first
2122 bb_note we run across.
2123 (create_basic_block): Use reorder_insns to move an existing
2124 bb_note to the correct place.
2126 2000-05-09 Richard Henderson <rth@cygnus.com>
2128 * calls.c (expand_call): Increment currently_expanding_call
2129 before calling optimize_tail_recursion.
2131 Tue May 9 18:54:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2133 * reload1.c (reload_combine): Fix errors in last change.
2135 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
2137 * gcc.c (used_arg): Skip over a semicolon at the end of the
2138 split-up loop; don't break out of it.
2140 * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
2141 (tree.o): Depend on output.h.
2143 * c-decl.c (pending_invalid_xref_file,
2144 current_function_prototype_file): Constify.
2145 (pushdecl): Constify a local char *.
2146 (define_label): Constify filename parameter.
2147 * c-lex.c (init_parse): Constify parameter and return value.
2148 * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
2149 * c-tree.h: Update prototypes.
2150 * c-parse.in: Constify filename member of %union, and if_stmt_file.
2151 * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
2152 objc/objc-parse.c: Regenerate.
2154 * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
2155 * dwarfout.h: Update prototypes.
2156 * expr.c (expand_expr): Constify a local char *.
2157 * flags.h: Constify main_input_filename.
2158 * function.c (expand_function_end): Constify filename parameter.
2159 * genrecog.c (make_insn_sequence): Use a character array for
2161 (main): Remove unused variables.
2162 * input.h: Constify input_filename, main_input_filename, and
2163 file_stack.name. Update prototypes.
2164 * output.h: Declare first_global_object_name and
2165 weak_global_object_name here, as const char *.
2166 * stmt.c (expand_asm_operands): Constify filename parameter.
2167 * toplev.c (compile_file, push_srcloc, debug_start_source_file):
2168 Constify filename parameter.
2169 (input_filename, main_input_filename): Constify.
2170 * toplev.h: Update prototypes.
2171 * tree.c: Include output.h. Don't declare
2172 first_global_object_name or weak_global_object_name. Clean up string
2173 bashing in get_file_function_name_long.
2174 * tree.h (struct tree_decl): Constify filename member.
2175 (input_filename): Constify.
2177 * varasm.c (first_global_object_name, weak_global_object_name):
2179 (assemble_start_function, assemble_variable): Clean up string bashing.
2181 * gcc.c: Constify all spec-related strings initialized,
2182 transitively, from string constants. Constify all strings
2183 and string variables related to multilibs.
2184 (set_spec, read_specs): Cast argument to free to PTR.
2185 (used_arg): Do not modify multilib_matches. Use strncmp plus
2186 length comparison to compare multilib switches.
2187 * genmultilib: Constify everything declared in multilib.h.
2189 Tue May 9 22:28:03 2000 Denis Chertykov <denisc@overta.ru>
2191 * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
2194 Tue May 9 20:52:43 2000 Denis Chertykov <denisc@overta.ru>
2196 * config/avr/avr-protos.h (extra_constraint): change a type of
2197 second argument from char to int to avoid warnings.
2198 (asm_output_byte): Likewise.
2200 * config/avr/avr.c (MAX_LD_OFFSET) New macro.
2201 (initial_elimination_offset): Handle elimination from
2202 FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
2203 (legitimate_address_p): Use MAX_LD_OFFSET.
2204 (legitimize_address): Likewise.
2205 (out_movqi_r_mr): Likewise.
2206 (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
2207 (out_movsi_r_mr): Use MAX_LD_OFFSET.
2208 (out_movsi_mr_r): Likewise.
2209 (out_movqi_mr_r): Likewise.
2210 (out_movhi_mr_r): Likewise.
2211 (notice_update_cc): Correct CC for the ashrqi3 with the shift
2212 count as CONST_INT != 6.
2213 (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
2214 shift count is a CONSTANT_P, but not a CONST_INT.
2215 (ashlhi3_out): Coding style modifications.
2216 (ashlsi3_out): Likewise.
2217 (ashrhi3_out): Likewise.
2218 (ashrsi3_out): Likewise.
2219 (lshrhi3_out): Likewise.
2220 (lshrsi3_out): Likewise.
2221 (ashrqi3_out): Generate shift for any known constant count without
2222 scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
2223 but not a CONST_INT.
2224 (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
2225 shift count is a CONSTANT_P, but not a CONST_INT.
2226 (extra_constraint): change a type of
2227 second argument from char to int to avoid warnings.
2228 (asm_output_byte): Likewise.
2229 (asm_file_end): Output size generated commands count as a hex
2232 * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
2234 * config/avr/avr.md (addhi3): Fragment commented by &&0 is
2236 (ashlqi3): Values of "length" attribute changed. Shift count
2237 uses constraints 'n' instead of 'i'.
2238 (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
2239 shifts without clobber register.
2240 (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
2241 (call_insn): Correct test for which_alternative == 1 (was 0).
2242 (call_value_insn): Likewise.
2244 * config/avr/t-avr: Remove definition of FLOAT while generates
2247 2000-05-09 Bruce Korb <bkorb@gnu.org>
2249 * fixinc/check.tpl: Template for checking fixes
2250 * fixinc/inclhack.def: Added 'test_text' for many fixes
2251 disable hpux8_bogus_inlines on SCO
2252 * fixinc/fixinc.sco: Oh, yes, we don't need this any more.
2254 Tue May 9 16:30:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
2256 * calls.c (expand_call): Reorganize somewhat in order
2257 to avoid unnecesary recalculation inside loop and make
2258 tail call failure code cleaner.
2260 Tue May 9 06:30:20 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2262 * alias.c (nonlocal_reference_p): Minor reformatting.
2263 * reload.c (find_equiv_reg): Simplify logic for
2264 CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
2265 some some reformatting.
2266 * reload1.c (reload_combine): Don't assume everything in
2267 CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
2269 2000-05-08 Richard Henderson <rth@cygnus.com>
2271 * final.c (current_insn_predicate): New.
2272 (final_scan_insn): Set it.
2273 * output.h (current_insn_predicate): Declare.
2275 * ifcvt.c (cond_exec_process_insns): New argument prob_val.
2276 Attach it to call insns.
2277 (cond_exec_process_if_block): Track probability for true and
2279 (dead_or_predicable): Likewise.
2281 * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
2282 (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
2283 (PROB_VERY_LIKELY, PROB_ALWAYS): New.
2284 (estimate_probability, expected_value_to_br_prob): Use them.
2286 * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
2287 * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
2288 (ia64_expand_prediction): New.
2289 (emit_insn_group_barriers): Don't look at notes. Emit barriers
2290 as needed after calls.
2291 (ia64_epilogue_uses): Mark b0 used.
2292 * config/ia64/ia64.md (beq_true, beq_false): Remove.
2293 (bne_true, bne_false): Remove.
2294 (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
2295 (br_true, br_false): New. Use predicate_operator and
2296 ia64_expand_prediction.
2297 (return_true, return_false): Likewise.
2298 (call_internal): Use ia64_expand_prediction. Don't emit stop bit.
2299 (call_internal1, call_value_internal): Likewise.
2300 (call_value_internal1, call_multiple_values_internal1): Likewise.
2302 * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
2304 * config/ia64/ia64.md (extendsfdf2): Split only after reload.
2306 2000-05-08 Richard Henderson <rth@cygnus.com>
2308 * rtlanal.c (may_trap_p): Consider old-style and volatile
2311 Mon May 8 17:16:48 2000 Jim Wilson <wilson@cygnus.com>
2313 * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
2315 2000-05-08 Richard Henderson <rth@cygnus.com>
2317 * config/ia64/ia64.h (predicate_operator): Declare.
2319 * config/ia64/ia64.md (extendsfdf2): Split the nop case out
2322 * gensupport.c (process_rtx): Copy and post-process each member
2323 of the define_insn rtvec individually.
2325 Mon 8 May 22:17:35 2000 Neil Booth <NeilB@earthling.net>
2327 * cpplex.c (spell_token): New function.
2328 (TOKEN_LEN): Add 1 for whitespace.
2329 (_cpp_lex_file): Update to use spell_token.
2330 * cpplib.h (E): Remove.
2331 (TTYPE_TABLE): Update CPP_VSPACE entry.
2333 2000-05-08 Richard Henderson <rth@cygnus.com>
2335 * flow.c (init_propagate_block_info): Watch out for conditional
2336 branch to next instruction, and thus one outgoing edge.
2338 * config/ia64/ia64.c (ia64_encode_section_info): Exit early
2339 for global register variables; don't special case __[CD]TOR_LIST__;
2340 mind ggc_p for string allocation.
2342 2000-05-08 Nick Clifton <nickc@cygnus.com>
2344 * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
2346 2000-05-08 Bruce Korb <bkorb@gnu.org>
2348 * fixinc/mkfixinc.sh: fixinc.sco is no longer used
2349 i?86-*-msdosdjgpp* no longer uses fixincludes
2350 * fixinc/genfixes: inclhack.sh and fixincl.sh are no longer generated
2351 * fixinc/inclhack.sh: deleted
2352 * fixinc/hackshell.tpl: deleted
2353 * fixinc/inclhack.tpl: deleted
2354 * fixinc/Makefile.in: Remove dependencies on above
2355 * fixinc/fixincl.sh: "DO NOT EDIT" text modified
2357 2000-05-08 Andreas Jaeger <aj@suse.de>
2359 * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
2362 2000-05-07 Zack Weinberg <zack@wolery.cumb.org>
2364 * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
2367 Sun 7 May 08:43:53 2000 Neil Booth <NeilB@earthling.net>
2369 * cpplex.c: Move new lexer definitions and prototypes
2370 to top. Conditional include these and the code if
2371 NEW_LEXER is defined. Rename functions whose names
2372 clash if this code included.
2374 Sun May 7 00:54:57 EDT 2000 John Wehle (john@feith.com)
2376 * rtl.def (COND_EXEC): Clarify.
2378 * i386.md (extendsidi2): Clobber (reg:CC 17) in the
2379 same fashion as zero_extendsidi2.
2381 2000-05-06 Richard Henderson <rth@cygnus.com>
2383 * config/ia64/ia64.c (predicate_operator): New.
2384 (ia64_print_operand): Handle 'J'.
2385 (rtx_needs_barrier): Handle COND_EXEC.
2386 * config/ia64/ia64.h (BRANCH_COST): Define.
2387 (PREDICATE_CODES): Update.
2388 * config/ia64/ia64.md: Docuement used unspec values.
2389 (attr predicable): New.
2390 (movxf, movxf_internal): New.
2391 (extendsfdf2): Don't comment out nop.
2392 (floatdidf2): Remove.
2393 (truncxfsf2, truncxfdf2, floatdixf2): New.
2394 (abssi2, absdi2): Put the neg in the "true" slot.
2395 (conditional branch instructions): Mark not predicable.
2396 (cmov*_internal): Use predicate_operator. Split to cond_exec.
2397 (abs*_internal): Likewise.
2398 (alloc, set_bsp): Mark not predicable.
2399 (barrier, insn_group_barrier, flush_cache): Likewise.
2400 (define_cond_exec): New.
2402 2000-05-06 Richard Henderson <rth@cygnus.com>
2404 * c-decl.c: Include "tm_p.h".
2406 * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
2407 (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
2408 (ia64_expand_op_and_fetch): Declare.
2409 * config/ia64/ia64.c: Include "toplev.h". Kill trailing whitespace.
2410 (setjmp_operand): Constify variables for XSTR.
2411 (ia64_encode_section_info): Likewise.
2412 (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
2414 (ia64_asm_output_external): Constify name.
2415 (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
2416 (process_for_unwind_directive): Provide switch default.
2417 (ia64_expand_compare_and_swap): Remove unused variables.
2418 (ia64_expand_builtin): Likewise.
2419 * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
2422 * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
2423 (symbolic_operand, function_operand, setjmp_operand): Likewise.
2424 (shift_count_operand, shift_32bit_count_operand): Likewise.
2425 (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
2426 (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
2427 (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
2428 (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
2429 (ia64_expand_builtin): Likewise.
2430 (call_multiple_values_operation): Make dest_regno unsigned.
2432 2000-05-06 Richard Henderson <rth@cygnus.com>
2434 * rtl.def (DEFINE_COND_EXEC): New.
2435 * md.texi: Document it.
2437 * gensupport.c (input_file): Remove.
2438 (struct queue_elem): Add lineno.
2439 (rtx_ready_queue): Remove.
2441 (predicable_default): New.
2442 (predicable_true, predicable_false): New.
2443 (define_attr_queue, define_attr_tail): New.
2444 (define_insn_queue, define_insn_tail): New.
2445 (define_cond_exec_queue, define_cond_exec_tail): New.
2446 (other_queue, other_tail): New.
2447 (queue_pattern): New.
2448 (process_rtx): Add patterns to the appropriate queues.
2449 (is_predicable, identify_predicable_attribute): New.
2450 (n_alternatives, collect_insn_data): New.
2451 (alter_predicate_for_insn, alter_test_for_insn): New.
2452 (shift_output_template, alter_output_for_insn): New.
2453 (process_one_cond_exec, process_define_cond_exec): New.
2454 (init_md_reader): Read the entire file. Process define_cond_exec.
2455 (read_md_rtx): Return elements from the queues.
2457 2000-05-06 Richard Henderson <rth@cygnus.com>
2459 * flow.c (mark_set_1): Don't update conditional life info
2460 if the register is not_dead.
2462 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
2464 * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
2465 (mostlyclean): Also delete fixincl, fixinc.sh, and
2466 specs.ready, and make clean in the fixinc subdir.
2468 2000-05-06 Richard Henderson <rth@cygnus.com>
2470 * Makefile.in (gensupport.o): Compile for the host.
2471 (host-prefix gensuuprt.o): Remove.
2472 (genflags.o): Depend on gensupport.h and OBSTACK_H.
2473 (genattrtab.o): Likewise.
2474 (gencodes.o): Depend on gensupport.h.
2475 (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
2476 (genpeep.o, genattr.o, genoutput.o): Likewise.
2478 * gensupport.c (obstack, rtl_obstack): New.
2479 (init_md_reader): Initialize rtl_obstack.
2480 * gensupport.h (rtl_obstack): Declare.
2481 (message_with_line): Declare.
2483 * genattr.c: Remove all traces of obstack manipulation.
2484 * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
2485 * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
2487 * genattrtab.c (obstack, rtl_obstack): Remove.
2488 (main): Don't init rtl_obstack.
2489 * genflags.c: Likewise.
2491 * genrecog.c (message_with_line): Move ...
2492 * gensupport.c: ... here.
2494 2000-05-06 Richard Henderson <rth@cygnus.com>
2496 * c-typeck.c (build_c_cast): Remove dead code.
2498 2000-05-06 Richard Henderson <rth@cygnus.com>
2500 * flow.c (split_edge): Don't allocate global_live_at_start for
2501 the new block unless the old blocks had them as well.
2503 * flow.c (mark_set_1): Respect not_dead when updating reg_live.
2505 * ifcvt.c (noce_process_if_block): Don't use an insn_b from
2506 test_bb if a or b uses x.
2508 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
2510 * cpphash.h: Remove conditional #define of __extension__.
2511 * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
2512 RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
2513 (ENABLE_RTL_CHECKING only).
2514 * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
2515 CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
2516 (ENABLE_TREE_CHECKING only).
2517 * varray.h: Add __extension__ to VARRAY_CHECK macro
2518 (ENABLE_CHECKING only).
2520 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2522 Use new tail-calling mechanism on ARM.
2523 * arm.md (sibcall, sibcall_value): New expands.
2524 (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
2525 (tailcalling peepholes): Delete.
2526 (push_multi): Simplify.
2527 * arm.c (lr_save_eliminated): Delete definition.
2528 (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
2529 (output_return_instruction): Remove checks on lr_save_eliminated.
2530 (output_arm_prologue): Remove old tail-calling code.
2531 (arm_output_epilogue): New parameter, really_return. All callers
2532 changed. Handle tail-calling epilogues.
2533 * arm.h (lr_save_eliminated): Delete declaration.
2534 (frame_pointer_needed): Delete declaration.
2535 * arm-protos.h (arm_output_epilogue): Adjust prototype.
2537 * arm.md (is_thumb): Examine symbol thumb_code, not expression
2539 * arm.c (thumb_code): Define it.
2540 (arm_override_options): Set it.
2541 * arm.h (thumb_code): Declare it.
2543 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2545 * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
2547 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2549 * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
2550 bogus clobber to insns.
2551 (load_multiple_operation, store_mulitple_operation): Don't check
2553 * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
2555 * arm.md (and_scc, ior_scc): Add missing mode.
2557 * arm.md (call_value_symbol): Remove predicate from op2.
2559 * arm.h (SPECIAL_MODE_PREDICATES): Define.
2561 Sat May 6 06:25:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2563 * expr.c (get_subtarget): New function.
2564 (force_operand, expand_expr, do_store_flag): Use it.
2566 * toplev.c (compile_file): Don't take strlen of NAME if null.
2568 2000-05-06 David Edelsohn <edelsohn@gnu.org>
2570 * xcoffout.c (xcoff_current_include_file,
2571 xcoff_current_function_file, xcoff_lastfile): Constify char *.
2572 (xcoffout_source_file, xcoffout_source_line): Make filename 'const
2574 (xcoffout_declare_function): Make name 'const char *'.
2575 (xcoffout_end_epilogue): Make fname 'const char *'
2576 * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
2577 xcoffout_declare_function, xcoffout_source_line): Match above.
2579 * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
2581 * rs6000.c (print_operand): Fix lossage typo.
2582 (output_cbranch): Remove "cr" decoration for now.
2583 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'.
2585 Sat May 6 06:55:32 2000 Denis Chertykov <denisc@overta.ru>
2587 * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
2590 2000-05-05 Bruce Korb <bkorb@gnu.org>
2592 * fixinc/genfixes: Improve the matching for make target names
2594 2000-05-05 Catherine Moore <clm@cygnus.com>
2596 * c-common.c (decl_attributes): For TYPE_DECLs attach the
2597 attribute to the decl.
2598 * c-decl.c (pushdecl): Propagate the USED attribute to the
2601 2000-05-05 Richard Henderson <rth@cygnus.com>
2603 * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
2604 same way emit_group_load does.
2606 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
2608 * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
2610 * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
2613 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
2615 * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
2617 Fri May 5 10:29:21 2000 Marc Espie <espie@cvs.openbsd.org>
2619 * config/openbsd.h (LINK_SPEC): pass correct flags to ld
2620 to support -shared, on platforms with dynamic libraries.
2622 Fri May 5 10:27:06 2000 Philippe De Muyter <phdm@macqel.be>
2624 * system.h (S_ISBLK): Provide fallback definition.
2626 2000-05-05 Geoff Berry <geoffb@bops.com>
2628 * extend.texi (Extended Asm): Document inability to give asm
2629 statements access to condition codes.
2631 2000-05-05 Marek Michalkiewicz <marekm@linux.org.pl>
2633 * varasm.c (asm_emit_uninitialised): Use 0, not NULL
2634 as arg 2 of UNIQUE_SECTION.
2636 Fri May 5 10:11:41 2000 Jeffrey A Law (law@cygnus.com)
2638 * predict.c: Remove May 4 change.
2639 * bb-reorder.c (make_reorder_chain): Do not perform block movement
2640 if we have predicted the branch at 50-50 probability.
2642 2000-05-05 Richard Henderson <rth@cygnus.com>
2644 * flow.c (init_propagate_block_info): Fix merge error
2645 in HAVE_conditional_execution code.
2647 Fri May 5 07:43:50 2000 Denis Chertykov <denisc@overta.ru>
2649 * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
2650 shift cycle for unknown shift count. Also generates dec + brpl.
2651 (ashlqi3_out): Don't generate dec + brpl which now generates by
2652 `out_shift_with_cnt'.
2653 (ashlhi3_out): Likewise.
2654 (ashlsi3_out): Likewise.
2655 (ashrqi3_out): Likewise.
2656 (ashrhi3_out): Likewise.
2657 (ashrsi3_out): Likewise.
2658 (lshrqi3_out): Likewise.
2659 (lshrhi3_out): Likewise.
2660 (lshrsi3_out): Likewise.
2662 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
2664 * gcc.c (free_split_directories): Correct typo in explanation
2665 of make_relative_prefix.
2667 2000-05-04 Geoff Keating <geoffk@cygnus.com>
2669 * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
2670 comparison codes to branch_comparison_operator.
2672 2000-05-04 Richard Henderson <rth@cygnus.com>
2674 * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
2676 2000-05-04 Richard Henderson <rth@cygnus.com>
2678 * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
2679 (DPBIT_FUNCS): Remove _sf_to_usi.
2680 (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
2682 * ifcvt.c (noce_process_if_block): Fail if A or B modified
2683 between condition and jump.
2685 * libgcc2.c (near eh_context_specific): Comment #endif string.
2686 * longlong.h: Don't use strings with embedded newlines.
2688 2000-05-04 Geoff Keating <geoffk@cygnus.com>
2690 * config/rs6000/rs6000-protos.h: Add output_cbranch.
2691 * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
2692 (print_operand): Delete %t and %T codes.
2693 (output_cbranch): New function. Support branch prediction.
2694 * config/rs6000/rs6000.md: Use output_cbranch for
2695 conditional branches and returns.
2697 2000-05-04 Jason Merrill <jason@casey.cygnus.com>
2699 * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
2700 * stor-layout.c (place_field): Likewise.
2701 * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
2702 * expr.c (store_expr): Make align unsigned.
2703 * explow.c (plus_constant_wide): Make low words unsigned.
2704 * expmed.c (choose_multiplier): Likewise.
2705 * fold-const.c (fold): Likewise.
2706 * tree.h (build_int_2): Likewise.
2707 * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
2708 * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
2709 (init_emit): Change cast to unsigned char*.
2710 * varasm.c (compare_constant_1): Add cast to char*.
2711 * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
2712 * reload1.c (reload): Likewise.
2714 * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
2716 Thu May 4 14:37:23 2000 Jeffrey A Law (law@cygnus.com)
2718 * predict.c (estimate_probability): If no prediction was found, then
2719 predict the successor that is the next physical block (if such a
2722 2000-05-04 Richard Henderson <rth@cygnus.com>
2724 * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
2726 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2728 * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
2730 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
2732 * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
2733 attribute macros from here ...
2734 (CPP_SPEC): to here.
2735 * i386/mingw32.h (CPP_PREDEFINES): Likewise.
2736 (CPP_SPEC): Likewise.
2737 * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
2739 * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
2740 (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
2742 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2744 * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
2746 * diagnostic (vbuild_message_string, build_message_string,
2747 build_location_prefix, output_get_prefix, init_output_buffer,
2748 output_notice, vline_wrapper_message_with_location,
2749 v_message_with_decl, default_print_error_function): De-constify.
2750 (set_real_maximum_length): Prototype.
2752 * diagnostic.h (struct output_buffer, init_output_buffer,
2753 output_get_prefix, output_set_prefix): De-constify.
2755 * function.c (init_function_start): Constify.
2757 * gensupport.c (remove_constraints, process_rtx): Prototype.
2759 * gthr-posix.h: Indent uses of #pragma.
2761 * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
2764 * predict.c (find_expected_value): Delete prototype.
2765 (expected_value_to_br_prob): Initialize variable `ev_reg'.
2767 * sbitmap.h (debug_sbitmap): Prototype.
2769 * ssa.c (compute_coalesced_reg_partition): Prototype.
2771 * stor-layout.c (debug_rli): Prototype.
2773 * tree.h (round_down): Prototype.
2774 (init_function_start): Constify.
2776 2000-05-04 Zack Weinberg <zack@wolery.cumb.org>
2778 * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
2779 (overly conservative). Change extern inline wrappers to
2780 static inline, define them always, use PARAMS properly.
2781 * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
2782 whitespace warnings for \f and \v at the beginning of a line.
2784 Thu May 4 10:03:50 2000 Jeffrey A Law (law@cygnus.com)
2786 * haifa-sched.c (schedule_insns): Free the flow edge list when it
2789 2000-05-04 Bruce Korb <bkorb@gnu.org>
2791 * fixincl/inclhack.def: added broken_cabs -
2792 Remove `extern double cabs' declarations from math.h
2793 * fixincl/inclhack.sh: regen
2794 * fixincl/fixincl.x: regen
2795 * fixincl/fixincl.c: Remove BOGOSITY code
2796 * fixincl/mkfixinc.sh: Remove code for installing "shell" version
2798 Thu May 4 09:45:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2800 * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
2802 * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
2803 when calling MEM_COPY_ATTRIBUTES.
2804 * emit-rtl.c (operand_subword, change_address): Likewise.
2805 * explow.c (stabilize): Likewise.
2806 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
2807 * integrate.c (copy_rtx_and_substitute): Likewise.
2808 * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
2809 when calling MEM_COPY_ATTRIBUTES.
2810 (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
2812 * cse.c (gen_lowpart_if_possible): Likewise.
2813 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
2814 * optabs.c (gen_move_insn): Likewise.
2815 * recog.c (validate_replace_rtx_1): Likewise.
2816 * simplify-rtx.c (add_mem_for_addr): Likewise.
2817 * stmt.c (expand_anon_union_decl): Likewise.
2818 * config/arm/arm.md: Likewise.
2819 * config/h8300/h7300.c (fix_bit_operand): Likewise.
2820 * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
2821 (block_move_no_loop, block_move_sequence): Likewise.
2822 * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
2823 * config/alpha/alpha.c (get_aligned_mem): Likewise.
2824 Clear MEM_ALIAS_SET.
2825 * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
2826 MEM_COPY_ATTRIBUTES.
2828 2000-05-03 Robert Lipe <robertlipe@usa.net>
2830 * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
2831 to suppress libgcc1.
2832 (i[34567]86-*-sco3.2v5*) Likewise.
2833 (i[34567]86-*-sco3.2v4*) Likewise.
2834 (i[34567]86-*-sco) Likewise.
2835 (i[34567]86-*-solaris2) Likewise.
2836 (i[34567]86-*-sysv5*) Likewise.
2837 (i[34567]86-*-sysv4*) Likewise.
2838 (i[34567]86-*-udk*) Likewise.
2839 (i[34567]86-*-sysv*) Likewise.
2841 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
2843 * cpphash.h (U): New define, to correct type of string constants.
2844 (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
2845 routines, to do casts when passing unsigned strings to libc.
2846 * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
2848 * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
2849 * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
2850 * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
2851 * cpplex.c (parse_ifdef, parse_include, validate_else): Make
2852 second argument an U_CHAR *.
2854 * cppinit.c (builtin_array): Make name and value U_CHAR *, add
2855 length field, clean up initializer.
2856 (ISTABLE): Add __extension__ to designated-
2857 initializers version.
2858 * cpplex.c (CHARTAB): Likewise.
2860 * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
2861 case so the file won't be empty.
2863 Wed May 3 21:01:46 2000 Jason Eckhardt <jle@cygnus.com>
2865 * bb-reorder.c (struct reorder_block_def): Member succ removed.
2866 (REORDER_BLOCK_SUCC): Removed.
2867 (enum reorder_skip_type): Removed.
2868 (skip_insns_between_block): Renamed to skip_insns_after_block.
2869 Removed second argument. Removed dead code and cleaned up.
2870 (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
2871 (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
2872 second parameter to skip_insns_after_block.
2874 Wed May 3 13:29:54 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2876 * tree.c (staticp, case LABEL_DECL): New case.
2878 2000-05-03 Richard Henderson <rth@cygnus.com>
2880 * Makefile.in (start.encap): Do not depend on LIBGCC1.
2882 * mklibgcc1.in: Fix typo last change.
2884 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
2886 * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
2887 (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
2888 (GCC_CFLAGS): Use it.
2889 (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
2890 * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
2891 objc/Make-lang.in: Use it.
2893 2000-05-03 Jason R Thorpe <thorpej@zembu.com>
2895 * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
2897 2000-05-03 Richard Henderson <rth@cygnus.com>
2899 * mklibgcc.in: Restrict OLDCC=GCC test to native. Equate
2900 LIBGCC1 empty with libgcc1.null.
2902 Wed May 3 12:55:46 2000 Jim Wilson <wilson@cygnus.com>
2904 * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
2907 2000-05-03 Greg McGary <gkm@gnu.org>
2909 * tree.h (tree_common): Add bounded_flag member. Remove
2910 inaccurate comment about number of remaining bits.
2911 (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
2912 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
2913 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
2914 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
2915 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
2916 (TYPE_QUAL_BOUNDED): New constant.
2917 (TYPE_QUALS): Handle bounded qualifier.
2918 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
2919 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
2920 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
2921 TYPE_AMBIENT_BOUNDEDNESS): New macros.
2922 (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
2923 (tree_type): Add pointer_depth member. Remove
2924 inaccurate comment about number of remaining bits.
2925 (DECL_POINTER_DEPTH): Add macro.
2926 (tree_decl): Add pointer_depth member.
2928 Wed May 3 22:52:53 2000 Denis Chertykov <denisc@overta.ru>
2930 * config/avr/avr-protos.h (test_hard_reg_class): Declared.
2931 * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
2932 (lshrhi3_out): Likewise.
2933 (ashrsi3_out): bugfix in shift by 8.
2934 (test_hard_reg_class): New function.
2935 * config/avr/avr.md: Bugfix inside conditions in peepholes.
2936 (ashlhi3): removed define_expand of this pattern.
2937 (*ashlhi3_insn): renamed to ashlhi3.
2938 (ashlsi3): removed define_expand of this pattern.
2939 (*ashlsi3_insn): renamed to ashlsi3.
2940 (ashrqi3): removed define_expand of this pattern.
2941 (*ashrqi3_insn): renamed to ashrqi3.
2942 (ashrhi3): removed define_expand of this pattern.
2943 (*ashrhi3_insn): renamed to ashrhi3.
2944 (ashrsi3): removed define_expand of this pattern.
2945 (*ashrsi3_insn): renamed to ashrsi3.
2946 (lshrhi3): removed define_expand of this pattern.
2947 (*lshrhi3_insn): renamed to lshrhi3.
2948 (lshrsi3): removed define_expand of this pattern.
2949 (*lshrsi3_insn): renamed to lshrsi3.
2951 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
2953 * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
2954 inclusion of "system.h".
2956 Wed May 3 11:43:53 2000 Jim Wilson <wilson@cygnus.com>
2958 * config/ia64/ia64.c (ia64_encode_section_info): Add check for
2961 2000-05-03 David Mosberger <davidm@hpl.hp.com>
2963 * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
2964 if -mauto-pic is on.
2965 (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
2966 -mconstant-gp is in effect and function-descriptors are being used
2967 to make indirect calls.
2968 * config/ia64/ia64.h (MASK_CONST_GP): New macro.
2969 (MASK_AUTO_PIC): Ditto.
2970 (TARGET_CONST_GP): Ditto.
2971 (TARGET_AUTO_PIC): Ditto.
2972 (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
2973 (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
2974 -mno-pic is in effect.
2975 (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
2976 * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
2977 -mauto-pic is in effect.
2978 (gprel64_offset): New pattern.
2979 (load_gprel64): Ditto.
2980 (call): Handle -mauto-pic like -mno-pic (don't use fptr). If
2981 -mconstant-gp is in effect, no need to preserve gp around direct
2983 (call_value): Ditto.
2984 * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
2985 (FUNCTION_PROFILER): Define.
2986 * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
2987 @fptr() directive when -mno-pic or -mauto-pic is in effect.
2988 (ASM_OUTPUT_DESTRUCTOR): Ditto.
2990 2000-05-03 Richard Henderson <rth@cygnus.com>
2992 * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
2993 (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
2994 (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
2995 (mklibgcc, libgcc.mk): New targets.
2996 (libgcc.a): Use libgcc.mk.
2997 (stmp-multilib): Likewise.
2998 (stmp-multilib-sub): Remove.
2999 (mostlyclean): Don't delete libgcc2 temp files.
3000 * configure.in (AC_PROG_CC_C_O): Add.
3001 (NO_MINUS_C_MINUS_O): Substitute it.
3002 (all_outputs): Add mklibgcc.
3003 * mklibgcc.in: New file.
3005 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
3007 * cppexp.c (op_t): Make an int.
3009 * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
3011 * varasm.c (initializer_constant_valid_p): Fix parenthesis.
3013 * gensupport.c (process_rtx): Fix macros used.
3015 2000-05-03 Richard Henderson <rth@cygnus.com>
3017 * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
3018 call-clobbered registers of a call.
3020 Wed May 3 12:40:53 2000 Clinton Popetz <cpopetz@cygnus.com>
3022 * gensupport.c: New file.
3023 * gensupport.h: New file.
3024 * Makefile.in (HOST_RTL): Depend on gensupport.
3025 (gensupport.o) New rule.
3026 * genattr.c: Use gensupport for reading .md files.
3027 * genattrtab.c: Ditto.
3028 * gencodes.c: Ditto.
3029 * genconfig.c: Ditto.
3031 * genextract.c: Ditto.
3032 * genflags.c: Ditto.
3033 * genopinit.c: Ditto.
3034 * genoutput.c: Ditto.
3036 * genrecog.c: Ditto.
3037 * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
3038 * md.texi (Insn Splitting): Document define_insn_and_split.
3040 Tue May 2 00:20:30 2000 Jason Eckhardt <jle@cygnus.com>
3042 * flow.c (verify_flow_info): Added two more sanity checks. The
3043 first checks that the blocks are numbered consecutively. The second
3044 checks that n_basic_blocks is actually equal to the number of
3045 basic blocks in the insn chain.
3047 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
3049 * cpplib.h: Add accessor macros for token lists.
3050 * cpplib.c, cpphash.c, cpplex.c: Use them.
3052 Wed May 3 09:29:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3054 * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
3055 memory usage if not in a function.
3056 * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
3057 return address if static.
3059 Wed May 3 13:14:49 MET DST 2000 Jan Hubicka <jh@suse.cz>
3061 * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
3062 whether address may trap.
3064 Tue May 2 23:38:37 2000 Jason Eckhardt <jle@cygnus.com>
3066 * bb-reorder (chain_reorder_blocks): Changed code to test for
3067 EDGE_FALLTHRU rather than making erroneous assumption that the
3068 first outgoing edge is the fall-through edge.
3070 Tue May 2 18:20:31 2000 Donald Lindsay <dlindsay@hound.cygnus.com>
3072 * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
3073 ABI for varargs, across all MIPS. This is incompatible because the
3074 va_list (__builtin_va_list) structure is different, so a compilation
3075 unit passing a va_list and a compilation unit being passed one, should
3076 both be compiled with the same ABI. (The old structure had two
3077 pointers, now it has three.)
3079 Tue May 2 19:18:43 2000 Jason Eckhardt <jle@cygnus.com>
3081 * bb-reorder.c (struct reorder_block_def): Remove members end,
3082 block_begin, and block_end.
3083 (REORDER_BLOCK_OLD_END): Delete.
3084 (REORDER_BLOCK_BEGIN): Delete.
3085 (REORDER_BLOCK_END): Delete.
3086 (chain_reorder_blocks): Remove dead code.
3088 Tue May 2 17:06:53 2000 Jason Eckhardt <jle@cygnus.com>
3090 * bb-reorder.c (remove_scope_notes): Check for both types of scope
3091 notes as the end of a basic block before deleting.
3093 2000-05-02 Mumit Khan <khan@xraylith.wisc.edu>
3095 * final.c (final_start_function): Fix spelling of "necessary".
3097 2000-05-02 Jason Merrill <jason@casey.cygnus.com>
3099 * toplev.c (debug_ignore_block): Return int.
3100 * dwarf2out.c (dwarf2out_ignore_block): Likewise.
3101 * toplev.h, dwarf2out.h: Adjust.
3102 * emit-rtl.c (remove_unnecessary_notes): Test return value.
3104 * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
3105 * toplev.c, final.c, rtl.h: Adjust.
3107 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
3109 * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
3110 * configure.in: Look for makeinfo in the unified tree, then
3111 for a system makeinfo which is sufficiently new.
3112 * Makefile.in: If configure says makeinfo is too old, don't
3113 build or install Info documentation.
3115 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
3117 * cpphash.c (collect_params): Fix off-by-one error.
3118 (dump_hash_helper): Dump all four macro nodetypes.
3120 2000-05-02 Jakub Jelinek <jakub@redhat.com>
3122 * cpphash.c (trad_stringify): Adjust p after stringification as
3125 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
3127 * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
3128 (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
3130 * cppfiles.c (file_cleanup): Delete.
3131 * cpphash.c (macro_cleanup): Delete.
3132 (collect_objlike_expansion, collect_funlike_expansion,
3133 macarg, scan_arguments): Remove CPP_POP case.
3135 * cpplex.c (null_cleanup): Delete.
3136 (cpp_pop_buffer): Do the work that was done in the cleanups
3137 here. Call _cpp_unwind_if_stack from here.
3138 (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
3139 cpp_scan_buffer): Run until we see CPP_EOF and the top of
3140 stack is the buffer _below_ the one we stacked.
3141 (cpp_get_token): Always pop an exhausted buffer. Return
3142 CPP_EOF unless it's a macro buffer. Don't call _cpp_handle_eof.
3143 * cpplib.c (skip_if_group): Don't call cpp_get_token to
3144 increment the line number.
3145 (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
3147 * fix-header.c (read_scan_file) [parsing getchar()]: Run until
3148 we see CPP_EOF and the top of stack is the buffer _below_ the
3150 * scan-decls.c: Likewise.
3152 2000-05-02 Andrew Haley <aph@cygnus.com>
3154 * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
3155 where this function is called for the second time on a decl that
3156 has had its section info changed in such a way as to move it out
3158 * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
3160 2000-05-01 Richard Henderson <rth@cygnus.com>
3162 * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
3163 the sequence we're moving, not to merge_bb->head.
3165 2000-05-01 Richard Henderson <rth@cygnus.com>
3167 * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
3168 reference to alpha/t-linux.
3169 (alpha*-*-linux-gnu*): Likewise.
3170 * configure: Rebuild.
3172 * calls.c (expand_call): Don't emit reg notes for a sibcall.
3174 * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
3177 * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
3179 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
3181 * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
3184 2000-05-01 Richard Henderson <rth@cygnus.com>
3186 * ifcvt.c (noce_emit_cmove): Conditionally compile call to
3187 emit_conditional_move.
3189 2000-05-01 Jakub Jelinek <jakub@redhat.com>
3191 * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
3192 as the dynamic linker.
3194 2000-05-01 Zack Weinberg <zack@wolery.cumb.org>
3196 * cppfiles.c (open_include_file): Open file in blocking mode.
3197 (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
3198 Only exclude block devices and directories.
3200 * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
3201 static. Allocate the hashnode and its string in the same
3203 (del_HASHNODE): Don't free h->name.
3204 (_cpp_lookup): If there is no entry for this string, create
3205 one, of type T_VOID.
3206 (_cpp_lookup_slot): Delete.
3207 * cpphash.h: Update prototypes.
3209 * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
3211 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
3212 do_unassert, cpp_defined): Use _cpp_lookup. Don't create a
3213 node here, just fill in the value field properly. "Delete"
3214 entries by setting the value field to T_VOID. Check for
3215 hp->type == T_VOID, not hp == NULL.
3217 * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
3218 * cpperror.c, cppexp.c, cpplex.c, cpplib.c: Don't include
3221 2000-05-01 Alexandre Oliva <aoliva@cygnus.com>
3223 * config/mn10300/mn10300.c (print_operand_address): Do not add
3226 * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
3227 adjusted by less than 256 bytes, use ret regardless of having any
3228 callee-saved register to restore.
3230 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
3232 * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
3234 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
3236 * config/i386/djgpp.h (INT_ASM_OP): Define.
3237 (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
3238 (ASM_WEAKEN_LABEL): Define.
3239 (MASK_BNU210): Define.
3240 (SUBTARGET_SWITCHES): Define.
3241 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
3242 (MAKE_DECL_ONE_ONLY): Define.
3243 (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
3245 2000-05-01 Mumit Khan <khan@xraylith.wisc.edu>
3247 * i386/cygwin.h (INT_ASM_OP): Define.
3249 Mon May 1 18:20:06 2000 Denis Chertykov <denisc@overta.ru>
3251 * config/avr/avr.c (address_cost): renamed to avr_address_cost.
3252 * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
3254 Mon May 1 17:50:44 2000 Denis Chertykov <denisc@overta.ru>
3256 * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
3257 __tmp_reg__ and __zero_reg__ initialization.
3259 2000-04-30 Richard Henderson <rth@cygnus.com>
3261 * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
3263 * ifcvt.c (noce_process_if_block): Fail the conversion if X is
3264 referenced bewteen the condition and the jump. Don't delete
3265 anything but the jump.
3267 Sun Apr 30 22:48:24 2000 Jason Eckhardt <jle@cygnus.com>
3269 * bb-reorder.c (scope_def): New struct.
3270 (scope_forest_info): New struct.
3271 (struct reorder_block_def): New member "scope".
3272 (REORDER_BLOCK_SCOPE): New macro.
3273 (relate_bbs_with_scopes): New function and prototype.
3274 (make_new_scope): Likewise.
3275 (build_scope_forest): Likewise.
3276 (remove_scope_notes): Likewise.
3277 (insert_intra_1): Likewise.
3278 (insert_intra_bb_scope_notes): Likewise.
3279 (insert_inter_bb_scope_notes): Likewise.
3280 (rebuild_scope_notes): Likewise.
3281 (free_scope_forest_1): Likewise.
3282 (free_scope_forest): Likewise.
3283 (dump_scope_forest): Likewise.
3284 (dump_scope_forest_1): Likewise.
3285 (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
3286 Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
3288 (reorder_basic_blocks): Added calls to build_scope_scope_forest
3289 and remove_scope_notes before reordering is done. Added calls to
3290 rebuild_scope_notes, free_scope_forest, and reorder_blocks after
3291 after reordering is done.
3293 2000-40-30 Bruce Korb <bkorb@gnu.org>
3295 * fixinc/inclhack.def: Added definitions needed by OSR5,
3296 removed two stale entries (defined away with OLD_CPP).
3297 * fixinc/inclhack.sh: regen
3298 * fixinc/fixincl.x: regen
3300 2000-04-30 Richard Henderson <rth@cygnus.com>
3302 * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
3303 from the last insn in the sequence.
3305 2000-04-30 Zack Weinberg <zack@wolery.cumb.org>
3307 * cpplex.c (cpp_idcmp): New function.
3308 * cpplib.h: Prototype it.
3309 * scan_decls.c (scan_decls): Use it to inspect token names.
3310 * fix-header.c (read_scan_file): Likewise. Set system_header_p on
3311 the file being run through the preprocessor.
3312 (check_macro_names): Provide length of token to cpp_defined.
3314 * Makefile.in: Remove stale warning message.
3316 * cppfiles.c (redundant_include_p): Provide length of token to
3318 * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
3319 values are unsigned int.
3320 (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
3321 (_cpp_lookup_slot): Do not calculate the hash, either.
3322 * cpphash.h: Update prototypes.
3323 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
3324 Hashes are unsigned int. Calculate hash here, pass by value
3325 to _cpp_lookup_slot.
3327 2000-04-30 Bernd Schmidt <bernds@cygnus.co.uk>
3329 * simplify-rtx.c (check_value_useless): Delete function.
3330 (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
3332 (cselib_invalidate_regno): Likewise.
3333 (cselib_invalidate_mem_1): Likewise.
3334 (references_value_p): Recognize useless values by the fact that they
3336 (discard_useless_values): Likewise.
3337 (cselib_record_set): This may turn a useless value
3340 2000-04-30 Richard Henderson <rth@cygnus.com>
3342 * config/d30v: New port.
3344 * configure.in (d30v-*): Set fp format.
3345 * configure: Rebuild.
3347 2000-04-30 Richard Henderson <rth@cygnus.com>
3349 * ifcvt.c: New file.
3350 * Makefile.in (OBJS): Add it.
3351 (ifcvt.o): New target.
3352 * jump.c (jump_optimize_1): Remove all code related to if-conversion,
3353 and conditional arithmetic.
3354 (find_insert_position): Remove.
3355 * timevar.def (TV_IFCVT, TV_IFCVT2): New.
3356 * toplev.c (DFI_ce, DFI_ce2): New.
3357 (dump_file): Add ce and ce2 dumps.
3358 (rest_of_compilation): Run if_convert a couple o times. Set
3359 cse_not_expected after cse2. Don't set no_new_pseudos until
3360 after sched1 or recompute_reg_usage.
3362 2000-04-30 Richard Henderson <rth@cygnus.com>
3364 * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
3365 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
3367 2000-04-30 Richard Henderson <rth@cygnus.com>
3369 * flow.c (struct reg_cond_life_info): New.
3370 (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
3371 (init_propagate_block_info): Initialize them.
3372 (free_propagate_block_info): Destruct them.
3373 (mark_set_1): Consider conditional life before killing a register.
3374 (mark_regno_cond_dead): New.
3375 (free_reg_cond_life_info): New.
3376 (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
3377 (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
3378 (mark_used_reg): Record conditional life.
3380 * haifa-sched.c (schedule_insns): Disable death counting
3381 sanity check for HAVE_conditional_execution.
3383 2000-04-30 Richard Henderson <rth@cygnus.com>
3385 * Makefile.in (TIMEVAR_H): New.
3386 (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
3387 (timevar.h): Remove rule.
3389 2000-04-29 Richard Henderson <rth@cygnus.com>
3391 * config/alpha/crtend.asm: Use C comments instead of #.
3392 * config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
3394 * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
3396 2000-04-29 Zack Weinberg <zack@wolery.cumb.org>
3398 * cpphash.h (enum node_type: Take out T_MCONST.
3399 (union hashval): Move into struct hashnode.
3400 (struct hashnode): Pack tighter. Remove file, line, col
3402 * cpphash.c: Constify most of the macro-definition structures.
3403 (struct definition): Replace by struct object_defn
3404 and struct funct_defn. Put file, line, column information
3405 here. All users updated to match.
3406 (_cpp_create_definition, _cpp_macroexpand): Remove special
3407 case for #define WORD OTHERWORD.
3408 * cpplib.c (do_undef): Remove T_MCONST case.
3410 * cpphash.h: Move struct reflist, struct definition, and the
3411 DEFINITION typedef to cpphash.c. Use 'struct definition *' in
3412 union hashval. _cpp_free_definition takes a HASHNODE pointer.
3413 * cpphash.c (_cpp_free_definition): Free data pointed to by
3414 MCONST, XCONST, MACRO, and FMACRO nodes properly.
3415 (_cpp_create_definition, del_HASHNODE): Just call
3416 _cpp_free_definition to clear out a hashnode.
3417 * cpplib.c (do_pragma_poison): Likewise.
3419 Sat Apr 29 12:25:17 2000 Alexandre Oliva <aoliva@cygnus.com>
3421 * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
3422 LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
3423 FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
3424 (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
3425 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
3426 REGNO_AM33_P): Redefine in terms of the new macros.
3427 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3428 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
3429 STRUCT_VALUE): Likewise.
3430 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
3431 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
3433 Sat Apr 29 01:18:45 MET DST 2000 Jan Hubicka <jh@suse.cz>
3435 * regmove.c (struct record_stack_memrefs_data): New.
3436 (record_stack_memrefs): New function.
3437 (combine_stack_adjustments_for_block): Use it.
3439 Sat Apr 29 01:15:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
3441 * calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
3442 use special_function_p to detect alloca.
3444 Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
3446 * gcc.texi: Fixes for makeinfo 4.0 --html.
3448 2000-04-28 Zack Weinberg <zack@wolery.cumb.org>
3450 * pcp.h: Delete file.
3452 2000-04-28 Kazu Hirata <kazu@hxi.com>
3454 * h8300.c (function_epilogue): Clean up flags when the last insn
3455 in a function is a barrier.
3457 2000-04-28 Chris Demetriou <cgd@sibyte.com>
3459 * configure.in (sparc-hal-solaris2*): protect [] glob from
3461 (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
3462 rather than hard-coded constants in target_cpu_default2.
3463 * configure: Regenerate.
3465 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
3467 * tree.c (get_callee_fndecl): Extract the initial value from
3470 2000-04-28 Richard Henderson <rth@cygnus.com>
3472 * varasm.c (record_constant_1): Record the CODE_LABEL when
3473 taking the address of a LABEL_REF.
3475 2000-04-28 Richard Henderson <rth@cygnus.com>
3476 Jan Hubicka <jh@suse.cz>
3478 * calls.c (combine_pending_stack_adjustment_and_call): Return the
3479 adjustment; don't do the stack adjust.
3480 (expand_call): Call compute_argument_block_size right before
3481 allocating the block; update comment; don't do alignment sanity
3482 checking for sibling call; use args_size instead of
3483 unadjusted_args_size before args_size is adjusted. Use
3484 combine_pending_stack_adjustment_and_call to compute stack adjust
3485 for must_preallocate case.
3487 * expr.c (push_block): Remove shadow `temp' in inner scope.
3489 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
3491 * toplev.c (rest_of_compilation): Call
3492 note_deferral_of_defined_inline_function even if the function
3495 2000-04-28 Scott Bambrough <scottb@netwinder.org>
3497 * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
3499 2000-04-28 Richard Henderson <rth@cygnus.com>
3501 * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
3503 2000-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3505 * timevar.c (init_timevar): DeANSIfy function definition.
3507 2000-04-27 Alex Samuel <samuel@codesourcery.com>
3509 * Makefile.in (timevar.o): Depend on flags.h.
3510 * timevar.c (unused_stack_instances): New variable.
3511 (timevar_push): Take a timevar_stack_def from
3512 unused_stack_instances if available.
3513 (timevar_pop): Push the popped timevar_stack_def onto
3514 unused_stack_instances.
3515 (TIMEVAR_ENABLE): New macro.
3516 (timevar_def): Make standalone a 1-bit field. Add field used.
3517 (get_time): Rename parameter to now. Return after clearing it if
3519 (init_timevar): Do nothing if not TIMEVAR_ENABLE.
3520 (timevar_pop): Likewise.
3521 (timevar_stop): Likewise.
3522 (timevar_push): Likewise. Mark the timing variable as used.
3523 (timevar_start): Likewise.
3524 (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
3525 timevars that were never used.
3527 2000-04-27 Mark Mitchell <mark@codesourcery.com>
3529 * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
3530 always TREE_READONLY.
3532 2000-04-27 Ulrich Drepper <drepper@cygnus.com>
3534 * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
3535 for call instruction with mode QImode.
3537 2000-04-27 Alex Samuel <samuel@codesourcery.com>
3539 * Makefile.in (OBJS): Add timevar.o.
3540 (toplev.o): Depend on timevar.h.
3541 (ggc-simple.o): Likewise.
3542 (ggc-page.o): Likewise.
3543 (timevar.o): New rule.
3544 (timevar.h): New rule.
3546 * timevar.h: New file.
3547 * timevar.c: Likewise.
3548 * timevar.def: Likewise.
3550 * toplev.h (gc_time, parse_time, varconst_time): Remove.
3551 * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
3553 (TIMEVAR): Remove macro.
3554 (gc_time, parse_time, varconst_time, integration_time, jump_time,
3555 cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
3556 flow_time, combine_time, regmove_time, sched_time,
3557 local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
3558 sched2_time, dbr_sched_time, reorder_blocks_time,
3559 rename_registers_time, shorten_branch_time, stack_reg_time,
3560 to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
3562 (compile_file): Don't initialize time variables. Call
3563 init_timevar and start TV_TOTAL timer. Call timevar_print instead
3564 of many calls to print_time.
3565 (rest_of_compilation): Add timing for reload_cse_regs.
3566 (get_run_time): Removed to timevar.c.
3567 (print_time): Likewise.
3568 (get_run_time): Implement using TV_TOTAL time variable.
3569 (print_time): Get total run time from get_run_time.
3570 * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
3571 computing elapsed time explicitly.
3572 * ggc-simple.c (ggc_collect): Likewise.
3573 (gc_time): Remove declaration.
3575 2000-04-27 Mark Mitchell <mark@codesourcery.com>
3577 * calls.c (combine_pending_stack_adjustment_and_call): New function.
3578 (expand_call): Use it.
3580 2000-04-27 Jan Hubicka <jh@suse.cz>
3582 * flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
3585 Thu Apr 27 12:47:00 2000 Alexandre Oliva <aoliva@cygnus.com>
3587 * config/mn10300/mn10300.md (movhi): Simplify. Prefer data
3590 Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
3592 * function.c (epilogue_done): Pass whole insn to record_insns.
3594 Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
3596 * cse.c (CSE_ADDRESS_COST): Remove.
3597 (find_best_addr): Add new parameter "MODE", use address_cost instead
3599 (address_cost): New.
3600 (fold_rtx): Update call of find_best_addr.
3601 * rtl.h (address_cost): Declare.
3602 * loop.c (general_induction_var): Add new parameter "MODE", use
3603 address_cost instead of ADDRESS_COST
3604 (init_loop): Use address_cost instead of ADDRESS_COST.
3605 (check_insn_for_givs): Update call of general_induction_var.
3606 (find_mem_givs): Likewise.
3607 (consec_sets_giv): Likewise.
3608 * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
3609 * i386.c (ix86_address_cost): New.
3610 * i386-protos.h (ix86_address_cost): Declare.
3612 Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
3614 * config/mn10300/mn10300.md (movqi): Simplify. Prefer data
3617 Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
3619 * expr.c (store_expr): Use clear_storage instead of direct memset
3622 Thu Apr 27 10:36:51 2000 Alexandre Oliva <aoliva@cygnus.com>
3624 * config/mn10300/mn10300.c (mn10300_address_cost): Test
3625 ASHIFT, AND and LABEL_REF.
3627 Thu Apr 27 15:08:46 MET DST 2000 Jan Hubicka <jh@suse.cz>
3629 * invoke.texi (-foptimize-sibling-calls): Fix.
3631 Thu Apr 27 14:54:22 MET DST 2000 Jan Hubicka <jh@suse.cz>
3633 * loop.c (load_mems) Don't use hard registers for the hoisting.
3635 * unroll.c (unroll_loop): Avoid overflow in the n_iterations
3636 calculation; rename const_equiv array in the preconditioning code
3637 from loop_unroll to loop_unroll_precondition
3639 2000-04-27 Richard Henderson <rth@cygnus.com>
3641 * flow.c (struct propagate_block_info): Remove new_dead, new_live;
3643 (propagate_one_insn): Clear it. Don't update reg_live here.
3644 (init_propagate_block_info): Update for pbi member changes.
3645 (free_propagate_block_info): Likewise.
3646 (mark_set_1): Know that zero_extract, sign_extract, and
3647 strict_low_part don't kill their argument. Alter hard subregs.
3648 Update new_set for non-CLOBBER sets. Update reg_live.
3649 (find_auto_inc): Update reg_live, not new_dead.
3650 (mark_used_reg): Update reg_live, not new_live. Examine new_set
3651 to determine if the reg in question was set this insn. Only update
3652 reg info with PROP_REG_INFO.
3654 2000-04-26 Richard Henderson <rth@cygnus.com>
3656 * flow.c (allocate_reg_life_data): Set max_regno here ...
3657 (life_analysis): ... not here.
3659 * flow.c (calculate_global_regs_live): Force stack pointer
3662 2000-04-26 Richard Henderson <rth@cygnus.com>
3664 * jump.c (redirect_exp_1): Rework from old redirect_exp. Never
3665 commit change group changes.
3666 (invert_exp_1): Similarly.
3667 (redirect_exp, invert_exp): Use them.
3668 (redirect_jump_1): New.
3669 (invert_jump_1): New.
3670 (jump_optimize_1): Remove code subsumed by condexec.c.
3671 * rtl.h (invert_jump_1, redirect_jump_1): Declare.
3673 2000-04-26 Richard Henderson <rth@cygnus.com>
3675 * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
3677 * genconfig.c (main): Set all HAVE_foo to 1.
3679 * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
3681 2000-04-26 Alex Samuel <samuel@codesourcery.com>
3683 * invoke.texi: Document -fssa flag.
3685 2000-04-26 Richard Henderson <rth@cygnus.com>
3687 * flow.c (count_reg_sets_1): Remove.
3688 (count_reg_sets, count_reg_references): Remove.
3689 (recompute_reg_usage): Implement with update_life_info.
3690 Reallocate life data.
3692 2000-04-26 Richard Henderson <rth@cygnus.com>
3694 * flow.c (update_life_info): Consider blocks null to mean the
3696 (calculate_global_regs_live): Likewise.
3697 (life_analysis): Do that instead of collecting all_blocks.
3699 2000-04-26 Richard Henderson <rth@cygnus.com>
3701 * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
3702 a still-valid conditional jump.
3704 2000-04-26 Richard Henderson <rth@cygnus.com>
3706 * jump.c (invert_jump): Always invert REG_BR_PROB. Do it correctly.
3708 * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
3709 * flow.c (calculate_loop_depth): Remove.
3710 * output.h (calculate_loop_depth): Don't declare.
3711 * toplev.c (rest_of_compilation): Expand calculate_loop_depth
3712 inline; run estimate_probability at the same time.
3714 2000-04-26 Neil Booth <NeilB@earthling.net>
3716 * cpplib.h: "~=" is not a single pp-token.
3717 * cpplex.c: Correct commentary.
3719 2000-04-26 Richard Henderson <rth@cygnus.com>
3721 * flow.c (mark_set_1): New arguments code and flags; update all
3722 callers. Track regno_first and regno_last; do HARD_REGNO_NREGS
3723 test in one place. Tidy flags tests. Don't bias REG_N_REFS by
3724 loop_depth when optimizing for size. Do new_dead update after
3725 emitting REG_UNUSED notes. Merge mark_set_reg code.
3726 (mark_set_reg): Remove.
3727 (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
3728 arrange to not emit REG_UNUSED notes.
3730 2000-04-26 Richard Henderson <rth@cygnus.com>
3732 * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
3733 * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
3735 2000-04-26 Richard Henderson <rth@cygnus.com>
3737 * flow.c (propagate_one_insn): Break out from propagate_block.
3738 (init_propagate_block_info): Likewise.
3739 (free_propagate_block_info): Likewise.
3740 (propagate_block): Use them. Export.
3741 * basic-block.h: Declare them all.
3743 2000-04-26 Richard Henderson <rth@cygnus.com>
3745 * basic-block.h (life_analysis): Declare here ...
3746 * output.h: ... not here.
3747 * flow.c (life_analysis): Remove nregs parameter; replace
3748 remove_dead_code with flags. Remove ssa dead code check.
3749 Only init alias analysis if we'll use it.
3750 * reg-stack.c (reg_to_stack): Update life_analysis arguments.
3751 * ssa.c (convert_to_ssa): Likewise.
3752 (convert_from_ssa): Likewise.
3753 * toplev.c (rest_of_compilation): Likewise.
3755 2000-04-26 Richard Henderson <rth@cygnus.com>
3757 * flow.c (flow_delete_block): Rename from delete_block. Export.
3758 * basic-block.h (flow_delete_block): Declare.
3760 2000-04-26 David S. Miller <davem@redhat.com>
3762 * optabs.c (emit_libcall_block): Verify insns with INSN_P before
3763 taking a PATTERN of it.
3765 2000-04-26 <NeilB@earthling.net>
3767 * cpplex.c (spell_other, spell_char): Remove.
3769 (token_spelling, trigraph_map): Use unsigned chars.
3770 (_cpp_lex_line): Tidy up the switch statement.
3771 * cpplib.h: Implement spell_char with spell_string.
3774 2000-04-26 <RodneyBrown@pmsc.com>
3776 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3777 * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3779 2000-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3781 * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
3782 reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
3783 dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
3784 dwarf2out_return_save, dwarf2out_return_reg,
3785 dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
3786 add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
3787 gen_compile_unit_die, dwarf2out_init): Constify a char*.
3789 * dwarf2out.h (dwarf2out_init): Likewise.
3791 * dwarfout.c (filename_entry, primary_filename, last_filename,
3792 type_tag, output_compile_unit_die, dwarfout_init): Likewise.
3794 * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
3795 dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
3796 dwarf2out_return_reg): Likewise.
3798 2000-04-26 Andreas Jaeger <aj@suse.de>
3800 * extend.texi (Function Attributes): Fix description of pure
3803 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
3805 * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
3806 before calling rest_of_compilation.
3808 2000-04-26 Andreas Jaeger <aj@suse.de>
3810 * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
3813 2000-04-25 Richard Henderson <rth@cygnus.com>
3815 * cse.c (cse_insn): Emit barrier after unconditional jump.
3817 * calls.c (expand_call): Disable tail call generation once
3818 rtx_equal_function_value_matters is false.
3820 * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
3823 2000-04-25 Jason Merrill <jason@casey.cygnus.com>
3825 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
3827 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
3829 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
3830 is the primary DIE for a member function.
3831 (gen_decl_die): Call set_decl_origin_self here.
3832 * dwarfout.c (output_decl): And here.
3833 * integrate.c (output_inline_function): Not here.
3834 Don't clear DECL_INLINE until after calling rest_of_compilation.
3835 (set_decl_origin_self): No longer static.
3836 * tree.h: Add prototype.
3837 * toplev.c (note_deferral_of_defined_inline_function): Only write
3838 out abstract instance for actual inlines.
3840 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
3842 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
3843 EXTENDED_REGS only if TARGET_AM33.
3844 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
3845 SP_REGS to register allocation and reloading unless absolutely
3847 (movsi3): Remove special-case of adding non-constants to SP.
3849 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3851 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
3852 INCLUDES to search and does not provide any of its own. Also it
3853 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
3854 parameters. Also it does not call AC_DEFINE.
3855 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
3856 AC_DEFINE and provides for automatic entries for autoheader.
3857 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
3859 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
3860 so we can pass -I flags and include gansidecl.h/system.h in this
3863 * acconfig.h: Delete all NEED_DECLARATION_* entries.
3865 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3867 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3868 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3869 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
3871 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3872 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3873 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
3874 for these macros. Clean up spacing and linewraps.
3876 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
3878 * calls.c (expand_call): Use get_callee_fndecl.
3880 * print-tree.c (print_node): Print the chain of an _EXPR.
3882 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
3883 Jim Wilson <wilson@cygnus.com>
3884 Andrew Haley <aph@cygnus.com>
3886 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
3887 and gp save/restore problems.
3888 * config/ia64/crtend.asm: Add IA-64 unwind support.
3889 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
3890 in fr_pad_size calculation.
3891 (save_restore_insns): Move PR save area. Correct uses of
3892 RTX_FRAME_RELATED_P.
3893 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
3894 (ia64_expand_epilogue): Add eh_epilogue support.
3895 (ia64_function_prologue): Emit .prologue directive.
3896 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
3897 (ia64_override_options): Set init_machine_status and
3898 mark_machine_status.
3899 (rtx_needs_barrier): Handle bsp reads and writes.
3900 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
3901 New static variables.
3902 (process_set, process_for_unwind_directive): New functions.
3903 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
3904 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
3905 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
3907 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
3908 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
3909 (struct machine_function): Define.
3910 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
3912 2000-04-25 Bruce Korb <bkorb@gnu.org>
3914 * fixinc/Makefile.in: make the removal of old programs more
3916 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
3917 install-bin and install-sh
3919 2000-04-25 Nick Clifton <nickc@cygnus.com>
3921 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
3922 defined, define to return zero.
3923 (function_cannot_inline_p): If a function has any target
3924 specific attributes, then use the macro
3925 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
3926 whether it can be inlined. If it cannot, issue a suitable
3929 * tm.texi: Add a new node 'Inlining' to document the new macro
3930 FUNCTION_ATTRIBUTE_INLINABLE_P.
3932 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
3934 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
3937 2000-04-25 Neil Booth <NeilB@earthling.net>
3939 Restore previous patch, plus the following fixes:
3941 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
3942 flags, not CPP_OPEN_PAREN.
3943 * cpplex.c (expand_token_space, init_token_list,
3944 cpp_free_token_list): Put the dummy token at list->tokens[-1].
3945 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
3947 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3949 * config/i386/freebsd.h (INT_ASM_OP): Define.
3951 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
3953 * loop.c (strength_reduce): Fix typo in the last checkin.
3955 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3957 * stor-layout.c (finalize_record_size): Simplify to use existing
3959 (compute_record_mode): No longer static.
3960 * tree.h (compute_record_mode): New declaration.
3962 2000-04-25 Neil Booth <NeilB@earthling.net>
3964 * Revert my patch below until cause of build failures
3967 2000-04-25 Richard Henderson <rth@cygnus.com>
3969 * combine.c (combine_instructions): Add missing argument
3972 * toplev.c (rest_of_compilation): Delay sibcall optimization
3973 until after emit_eh_context.
3975 2000-04-24 Nick Clifton <nickc@redhat.com>
3977 * combine.c (combine_instructions): Do not try to combine a
3978 sequence of insns when the second insn has been replaced by a
3981 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
3983 * gcc.c (load_specs): New static function.
3984 (read_specs): Use it.
3986 * gcc.c (lookup_compiler): Make multiple passes for case
3987 insensitive filesystems.
3989 2000-04-24 Neil Booth <NeilB@earthling.net>
3991 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
3992 * cpphash.h (_cpp_check_directive): new.
3993 * cpplex.c (handle_newline, cpp_free_token_list,
3994 init_trigraph_map, trigraph_ok, trigraph_replace,
3995 backslash_start, skip_block_comment, skip_line_comment,
3996 skip_whitespace, parse_name, parse_number, parse_string,
3997 copy_comment, _cpp_lex_line, spell_char, spell_string,
3998 spell_comment, spell_name, spell_other, _cpp_lex_file,
3999 _cpp_output_list): new.
4000 (expand_name_space): take length argument.
4001 (init_token_list): add comment list initialisation.
4002 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
4003 instead of HSPACE_BEFORE.
4005 * cpplib.c (_cpp_check_directive): new
4006 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
4007 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
4008 (HSPACE_BEFORE): delete.
4009 (TTYPE_TABLE): rearrange.
4010 (struct cpp_toklist): update.
4012 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4014 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
4015 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
4016 argument form of AC_DEFINE.
4018 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
4019 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
4020 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
4021 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
4022 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
4024 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
4026 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4028 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
4029 deduced.h): Use -isystem, not -I, for including system headers.
4031 2000-04-24 Nick Clifton <nickc@cygnus.com>
4033 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
4034 the source register is the frame pointer or arg pointer.
4035 (addsi3_small_int): Disallow if source register is the frame
4036 pointer or arg pointer.
4038 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4040 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
4041 call to AC_MSG_RESULT.
4043 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4045 * invoke.texi: Correct grammatical errors, document
4046 -fno-gnu-keywords as identical to -fno-asm for C++.
4048 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4050 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
4051 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
4052 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
4053 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
4054 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
4056 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
4057 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
4058 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
4059 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
4062 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
4064 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
4065 (pop_alignment): Likewise.
4066 (handle_pragma_token): Likewise.
4068 2000-04-24 Robert Lipe <robertlipe@usa.net>
4070 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
4072 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
4074 * combine.c (try_combine): Update reg_nonzero_bits of
4075 newi2pat before newpat.
4077 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
4079 * loop.c (strength_reduce): Simplify test to INSN_P.
4080 (record_giv): Attempt to simplify the add value, use CONSTANT_P
4081 expressions instead of CONST_INT.
4082 (express_from_1): Likewise.
4084 2000-04-24 Mark Mitchell <mark@codesourcery.com>
4086 * regs.h (reg_n_max): Don't declare.
4087 * flow.c (reg_n_max): Don't define.
4088 * regclass.c (renumber): Don't initialize to zero.
4089 (regno_allocated): Likewise.
4090 (reg_n_max): Define.
4091 (allocate_reg_info): Don't initialize unnecessarily.
4093 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
4095 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
4096 and blockage_p in the newly allocated attribute.
4098 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
4100 * config/mn10300/mn10300.md (addsi): `inc4' on address
4101 registers does not modify cc, but `inc' on an extended
4104 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
4106 * reload.c (find_equiv_reg): Checks all valueno regs
4107 as a reload_reg_p regs.
4109 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
4111 * cpphash.c (collect_objlike_expansion): Add sanity check.
4112 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
4113 the buffer is the empty string, return. Mark __DATE__ and
4114 __TIME__ as XCONST nodes, not MCONST.
4115 (_cpp_macroexpand): Avoid pushing an empty buffer.
4116 (funlike_macroexpand): Don't pop token_buffer here.
4118 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
4120 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
4121 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
4122 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
4123 (REGNO_OK_FOR_BASE_P): Define in terms of them.
4124 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
4125 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
4126 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
4128 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
4130 * loop.c (simplify_giv_expr): Be more agressive on simplifying
4133 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
4135 * cpphash.h (struct definition): Move file, line, col members...
4136 (struct hashnode): ... here. Also add 'disabled' flag.
4137 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
4138 T_IDENTITY. Remove T_DISABLED.
4141 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
4142 (collect_expansion): Split into collect_objlike_expansion and
4143 collect_funlike_expansion.
4144 (_cpp_macroexpand): Split out scan_arguments, stringify, and
4145 funlike_macroexpand.
4146 (_cpp_compare_defs): Rename compare_defs, make static.
4147 (_cpp_make_hashnode): Initialize hp->disabled.
4148 (macro_cleanup): Adjust for new token types. Clear
4150 (_cpp_create_definition): Move code here to determine what
4151 sort of macro it is, and code to check for redefinitions, from
4152 do_define. Implement a few simple cases without creating a
4154 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
4155 Handle the simple cases.
4156 (push_macro_expansion): Set buf->has_escapes and hp->disabled
4159 * cppinit.c (builtin_array): Change MCONST to XCONST
4161 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
4162 fix check for disabled and function-like macros.
4163 * cpplib.c (do_define): Move most logic to
4164 _cpp_create_definition.
4165 (do_undef): Handle new special token types.
4167 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
4169 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
4170 of CONSTANT_P for mult_val; always use validate_change to update insn.
4172 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
4174 * cpphash.c (trad_stringify, add_pat): New functions.
4175 (collect_expansion): Restore support for -traditional syntax.
4176 Use trad_stringify and add_pat.
4177 (_cpp_macroexpand): Restore support for -traditional semantics.
4178 * cpplex.c (_cpp_scan_line): Don't change space_before if we
4179 get a COMMENT token.
4180 (_cpp_lex_token): Provide COMMENT tokens to caller if
4181 traditional and parsing_define_directive.
4182 (skip_comment): Warn about // comments if -Wtraditional.
4183 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
4185 (do_undef): Don't warn about undefining EMPTY nodes.
4187 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
4189 * loop.c (strength_reduce): Fix biv removal code.
4191 2000-04-22 Richard Henderson <rth@cygnus.com>
4193 * predict.c (estimate_probability): Examine both sides of
4194 a branch for no exits. Use 90% not 50% for predict taken.
4195 Reorg for one copy of note generation code.
4197 2000-04-22 Richard Henderson <rth@cygnus.com>
4199 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
4201 2000-04-22 Richard Henderson <rth@cygnus.com>
4203 * diagnostic.c (init_output_buffer): Don't initialize format_args.
4204 (output_clear): Likewise.
4205 (output_printf): Use va_copy.
4206 (vline_wrapper_message_with_location): Likewise.
4207 (v_message_with_decl): Likewise.
4208 (line_wrapper_printf): VA_START infor buffer.format_args directly.
4209 * system.h (va_copy): Provide default implementation.
4211 2000-04-22 Richard Henderson <rth@cygnus.com>
4213 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
4214 the collected condition is not a constant.
4216 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
4218 * diagnostic.h: New file.
4220 * Makefile.in (diagnostic.o): Depends on diagnostic.h
4222 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
4223 various function prototypes.
4224 (diagnostic.h): #include.
4225 (struct output_buffer): Move into diagnostic.h.
4226 (get_output_prefix): Rename to output_get_prefix. Export.
4227 (init_output_buffer): Export. Break out. Ajust intialization.
4228 (output_space_left, output_append): Export.
4229 (output_newline): Rename to output_add_newline. Export.
4230 (output_clear): Nullify additional output_buffer fields.
4231 (output_puts): Rename to output_add_string. Export.
4232 (dump_output): Rename to output_flush_on. Export.
4233 (build_location_prefix): Constify return-type.
4234 (emit_output_prefix): Rename to output_emit_prefix. Export.
4235 (set_real_maximum_length): New function.
4236 (output_set_maximum_length): Ditto
4237 (output_clear): Ditto.
4238 (output_add_character): Ditto.
4239 (output_add_integer): Ditto.
4240 (output_add_space): Ditto.
4241 (output_format): Ditto.
4242 (output_printf): Adjust buffer initialization.
4243 (vline_wrapper_message_with_location): Ditto.
4244 (v_message_with_decl): Ditto. Adjust call to output_puts
4245 and get_output_prefix.
4246 (default_print_error_function): Adjust buffer intialization.
4248 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4250 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
4253 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
4255 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
4258 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
4260 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
4261 accurate data about SP moves.
4263 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
4265 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
4266 aliases to AM33 registers.
4268 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
4270 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
4271 to all EXTENDED bitmaps.
4273 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
4275 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
4276 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
4277 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
4279 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
4281 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
4282 the operand is not constant.
4284 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
4286 * reload.c (find_equiv_reg): Checks all valueno and regno regs
4287 as a call-clobbered regs.
4289 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4291 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
4293 * rtl.def: Update comment.
4294 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
4295 * integrate.c (expand_inline_function): Likewise.
4296 * profile.c (branch_prob): Likewise.
4297 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
4298 * print-rtl.c (print_rtx): Likewise.
4299 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
4300 (reemit_notes): Likewise; also use enum insn_note.
4302 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
4303 (place_field): Properly compute know and actual alignment.
4305 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
4308 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
4311 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
4313 * cpphash.c (struct arg, struct arglist): Const-ify strings.
4314 (warn_trad_stringify, duplicate_arg_p): New helper functions.
4315 (collect_expansion): Rewrite to scan over a token list.
4316 Remove -traditional support.
4317 (collect_formal_parameters): Rename to collect_params; rewrite
4318 to scan over a token list.
4319 (_cpp_create_definition): Adjust to scan a token list.
4320 (_cpp_macroexpand): Remove -traditional support.
4321 (_cpp_compare_defs): Whitespace is now canonicalized.
4322 (comp_def_part): Delete function.
4324 * cpphash.h: Update prototypes.
4325 * cpplex.c (init_token_list): Don't set lineno if there is no
4327 (pedantic_whitespace): New function.
4328 (_cpp_scan_line): Mark tokens that had hspace before. Don't
4329 consume a newline. Use pedantic_whitespace.
4330 (_cpp_lex_token): Remove support for -traditional macros.
4331 (_cpp_get_define_token): Delete.
4332 (_cpp_get_directive_token): Do the real work here. Use
4333 pedantic_whitespace.
4334 (_cpp_init_input_buffer): Initialize pfile->directbuf.
4336 * cpplib.c (get_macro_name): Delete.
4337 (do_define): Read the entire line into pfile->directbuf, then
4338 feed the token list to _cpp_create_definition.
4339 * cpplib.h (HSPACE_BEFORE): new define.
4340 (struct cpp_reader): Add a toklist member, "directbuf".
4342 * predict.c (estimate_probability): New heuristic: if a jump
4343 branches around a block with no successors, predict it taken.
4344 Disentangle control flow.
4346 2000-04-20 Richard Henderson <rth@cygnus.com>
4348 * loop.c (emit_iv_add_mult): Revert last change.
4350 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
4352 * cpplib.h (enum cpp_ttype): Add token types for all
4353 punctuators. Distinguish pp-numbers from valid C numbers.
4354 Give some tokens better names. Initialize from macro.
4355 (struct cpp_name, cpp_token, cpp_toklist): New data
4358 * cpplex.c (bump_column, expand_name_space,
4359 expand_token_space, init_token_list, cpp_output_list,
4360 _cpp_scan_line): New functions.
4361 (output_line_command): Add third argument, new line number.
4362 * cpphash.h: Update prototypes.
4363 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
4366 2000-04-20 Richard Henderson <rth@cygnus.com>
4368 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
4370 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
4372 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
4375 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
4377 * loop.c (emit_iv_add_mult): Simplify it's input and emit
4378 REG_EQUAL note explaining the calculated value.
4380 * calls.c (expand_call): Avoid unnecesary precalculation
4381 and outgoing parameters space guarding for sibling calls.
4382 (store_one_arg): Likewise.
4384 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4386 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
4387 (rest_of_compilation): Write sibling dump file and account
4388 for time as jump time.
4389 * invoke.texi: Update documentation on dump flags.
4391 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
4393 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
4395 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
4397 * cpphash.c (special_symbol): Represent an empty macro with
4398 "\r \r " not just "\r ".
4399 (_cpp_macroexpand): Correct condition for the foo ( ) special
4401 (unsafe_chars): Handle EOF as second argument.
4402 (push_macro_expansion): Simplify test for removing escape at
4403 end. Do not trim both escapes if there is no text in between.
4405 2000-04-19 Jim Blandy <jimb@redhat.com>
4407 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
4408 of PTR_SIZE, when appropriate.
4410 2000-04-19 Mark Mitchell <mark@codesourcery.com>
4412 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
4413 (USE_ENUM_BITFIELDS): Fix typo.
4415 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4417 * stor-layout.c (place_field): Set rli->offset_align properly.
4419 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4421 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
4422 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
4423 PARM_BOUNDARY): Remove unnecessary casts.
4425 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
4427 * calls.c (precompute_arguments): Remove must_preallocate and
4429 (expand_call): Update call of precompute_arguments.
4431 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
4432 check_insn_for_givs): Break out from ...
4433 (strength_reduce) ... here; use for_every_insn_in_loop to call
4434 check_insn_for_givs.
4435 * loop.h (for_every_insn_in_loop): Declare.
4436 (loop_insn_callback): New type.
4438 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
4440 * cpplib.c (do_pragma_poison): Strings in the token buffer are
4443 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
4445 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
4448 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
4450 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
4452 * configure.in: Delete --disable-cpplib option and all
4453 references to cpp_main.
4454 * configure: Regenerate.
4455 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
4456 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
4457 cccp.o, cccp, or cppmain. Link cppmain.o straight to
4458 cpp$(exeext). Add --no-headers to makeinfo command line when
4459 generating INSTALL. Install and uninstall cpp.1 manpage, not
4461 * install.texi: Delete all references to cexp.y/cexp.c.
4462 Delete ancient instructions for compiling GCC on 3b1.
4463 * INSTALL: Regenerate.
4465 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
4466 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
4467 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
4469 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
4470 which is no longer tested anywhere.
4472 * cppinit.c (handle_option): Don't run error message through
4475 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4477 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
4478 * cpperror.c (hashtab.h): Now include.
4479 * cppexp.c (hashtab.h): Likewise.
4480 * cpplex.c (hashtab.h): Likewise.
4481 * cppfiles.c (hashtab.h): Likewise.
4482 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
4483 to htab_find_slot_with_hash.
4484 * cpphash.c (hashtab.h): Now include.
4485 (_cpp_lookup_slot): INSERT is now enum insert_option.
4486 * cpphash.h (_cpp_lookup_slot): Likewise.
4487 * cppinit.c (hashtab.h): Include earlier.
4488 (initialize_builtins): Pass enum to htab_find_slot.
4489 * cpplib.c (hashtab.h): Now include.
4490 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
4491 (do_pragma_poison, do_assert): Likewise.
4492 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
4493 htab_find_slot_with_hash.
4494 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
4495 * tree.c (type_hash_add): Likewise.
4496 (build1): Minor cleanup.
4498 * ggc-common.c: Add missing blanks.
4499 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
4500 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
4502 * stmt.c (mark_case_node): New function.
4503 (mark_case_nesting): Call it.
4505 * expmed.c (emit_store_flag): If comparing two-word integer
4506 with zero, can optimize NE, EQ, GE, and LT.
4508 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
4509 * conflict.c: Minor cleanups.
4510 * optabs.c: Add blank line
4511 * simplify-rtx.c: Minor cleanups.
4513 2000-04-18 Stan Cox <scox@cygnus.com>
4515 * gengenrtl.c (genlegend): Fix misspelling.
4517 2000-04-18 Robert Lipe <robertlipe@usa.net>
4519 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
4520 bitfields of the host compiler are not signed quantities.
4521 * config.in: Regenerate.
4522 * configure: Regenerate.
4523 * system.h (USE_ENUM_BITFIELDS): Added.
4524 (ENUM_BITFIELDS): Added.
4525 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
4526 (SHORT_ENUM_BUG): Deleted.
4527 * tree.h (tree_common): Members `code', `mode', `built_in_class',
4529 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
4530 (CODE_FIELD_BUG): Likewise.
4531 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
4533 * config/m68k/x-ccur (X_CFLAGS): Likewise.
4535 2000-04-18 Mark Mitchell <mark@codesourcery.com>
4537 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
4540 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
4542 * cppexp.c (lex): Don't assume tokens are NUL terminated.
4543 * cpplib.c (do_include, do_import, do_include_next,
4544 read_line_number, detect_if_not_defined): Likewise.
4545 * cpphash.c (collect_expansion): Likewise.
4546 (special_symbol, _cpp_macroexpand): Check return from
4548 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
4549 macros. Delete all uses.
4551 * gcc.dg/cpp-mi.c: Add two more test cases.
4552 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
4554 2000-04-17 Richard Henderson <rth@cygnus.com>
4556 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
4557 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
4559 2000-04-17 Mark Mitchell <mark@codesourcery.com>
4561 * function.c (expand_function_start): Use hard_function_value to
4562 compute the RTL to use for DECL_RESULT.
4564 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
4566 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
4567 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4568 x86_memory_mismatch_stall): New global variables.
4569 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
4570 alloved; fix load penalties for Athlon.
4571 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4572 x86_memory_mismatch_stall): Declare.
4573 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
4574 TARGET_MEMORY_MISMATCH_STALL): New.
4575 * i386.md (athlon scheduling parameters): Fix latencies according to
4576 Athlon Optimization Manual.
4577 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
4579 (fsqrt instruction patterns): Set athlon_decode to direct.
4580 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
4581 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
4582 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
4583 and TARGET_PARTIAL_REGISTER_STALL machines.
4584 (pushdf_nointeger): New pattern.
4585 (pushdf_integer): Rename from pushdf.
4586 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
4587 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
4589 2000-04-17 Richard Henderson <rth@cygnus.com>
4591 * loop.c (canonicalize_condition): Add WANT_REG argument.
4592 Stop the search if we match it.
4593 * expr.h (canonicalize_condition): Update decl.
4594 * predict.c (expected_value_to_br_prob): Use it. Track last
4595 expected value note.
4596 (find_expected_value): Remove.
4598 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
4600 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
4602 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
4603 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
4605 * configure.in: Call AC_FUNC_MMAP_FILE.
4606 * configure: Regenerate.
4607 * config.in: Regenerate.
4609 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
4610 * fixinc/fixincl.c: Likewise.
4612 2000-04-17 Richard Henderson <rth@cygnus.com>
4614 * builtins.c (expand_builtin_expect): New.
4615 (expand_builtin): Call it.
4616 * builtins.def (BUILT_IN_EXPECT): New.
4617 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
4618 * extend.texi: Document it.
4620 * predict.c (expected_value_to_br_prob): New.
4621 (find_expected_value): New.
4622 * basic-block.h (expected_value_to_br_prob): Declare.
4623 * toplev.c (rest_of_compilation): Invoke it.
4625 * rtl.h (NOTE_EXPECTED_VALUE): New.
4626 (NOTE_INSN_EXPECTED_VALUE): New.
4627 * rtl.c (note_insn_name): Update.
4628 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
4629 cases; handle NOTE_INSN_EXPECTED_VALUE.
4631 2000-04-17 Jakub Jelinek <jakub@redhat.com>
4633 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
4634 leaf sibcall delay slot if flag_pic.
4635 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
4637 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4639 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
4641 * fixproto: If fix-header fails, exit with an error.
4643 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
4645 * cse.c (struct check_depdendence_data): New.
4646 (check_dependence): New function.
4647 (invalidate): Use check_depdenence.
4649 2000-04-16 Mark Mitchell <mark@codesourcery.com>
4651 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
4652 UNITS_PER_WORD is unsigned.
4654 * tree.h (struct tree_common): Remove misleading comment.
4656 2000-04-16 Dave Pitts <dpitts@cozx.com>
4658 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
4659 message in quotes. Otherwise, IBM's make program treats the '#' as the
4660 start of a comment and ignores the remainder of the line.
4662 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
4664 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
4665 * cexp.y (initialize_random_junk): Likewise.
4666 * cppfiles.c (find_include_file): Cast alloca return value.
4667 * cppinit.c (initialize_standard_includes): Likewise.
4668 * cpplib.c (cpp_define, cpp_undef): Likewise.
4669 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
4670 * final.c (output_asm_insn): Allow for holes in EBCDIC.
4671 * fold-const.c (CHARMASK): New.
4672 (real_hex_to_f): Use it.
4673 * real.c (CHARMASK): New.
4674 (etoasc, asctoeg): Use it.
4675 (asctoeg): EBCDIC lower case characters preceed upper case.
4677 * i370.c (mvs_add_label): Change spacing for coding conventions.
4678 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
4679 outputing case vectors.
4680 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
4681 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
4682 since vector in in the data CSECT.
4683 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
4684 * i370.md (Many patterns): Put the length in the XL directives.
4685 (movdi): Put back STM and MVC in definition.
4686 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
4687 pattern using the TCA.
4688 * oe.h (CPP_SPEC): Added to allow trigraphs.
4689 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
4690 not support the "long long" type.
4692 2000-04-16 Mark Mitchell <mark@codesourcery.com>
4694 * config/mips/mips-protos.h (mips_legitimate_address_p): New
4696 (mips_reg_mode_ok_for_base_p): Likewise.
4697 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
4698 (REG_OK_FOR_INDEX_P): Define unconditionally.
4699 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
4700 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
4701 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
4702 that GET_MODE_SIZE is unsigned.
4703 (mips_reg_mode_ok_for_base_p): Define.
4704 (mips_legitimate_address_p): Likewise. Adjust now
4705 that GET_MODE_SIZE is unsigned.
4706 (block_move_loop): Make the number of bytes unsigned.
4707 (expand_block_move): Likewise.
4708 (function_arg): Make the loop counter unsigned to match the
4711 2000-04-16 Richard Henderson <rth@cygnus.com>
4713 * rtl.h (enum insn_note): New enumeration. Subsume
4714 NOTE_INSN_DELETED and friends.
4715 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
4716 * rtl.c (note_insn_name): Tweak string order.
4718 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
4720 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
4723 * cpplex.c (output_line_command): Remove debugging prints.
4724 (cpp_output_tokens): Don't write out a zero-length buffer or
4725 try to see if it has a newline in it.
4726 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
4727 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
4728 the end of the loop. Use memmove. Don't read past the end of
4729 the buffer. Remove trailing newlines from error messages.
4731 2004-04-16 Neil Booth <NeilB@earthling.net>
4733 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
4734 * cpplib.c: Add new syntax flags to directive table, and
4737 2000-04-15 Ulrich Drepper <drepper@redhat.com>
4739 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
4742 2000-04-15 David Edelsohn <edelsohn@gnu.org>
4744 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
4745 * haifa-sched.c: Update -fsched-verbose comments to use "=".
4747 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4749 * Makefile.in (ggc-page.o): Now includes toplev.h.
4750 * ggc-page.c (toplev.h): Now included.
4751 (gc_time): Remove declaration.
4752 (ggc_collect): TIME now long.
4753 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
4755 * toplev.h (gc_time, parse_time, gc_time): New declarations.
4757 * toplev.c: Make *_time variable long to reduce chance of overflow.
4758 (TIMEVAR): Likewise for `otime'.
4759 (print_time): Arg is now long; compute percentage in FP and round.
4760 * toplev.h (print_time): Arg is long.
4762 * tree.c: Minor whitespace changes.
4764 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
4765 * configure: Rebuilt.
4766 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
4767 (__fixunsxfDI): Renamed from __fixunsxfdi.
4768 (__fixunsdfDI): Renamed from __fixunsdfdi.
4769 (__fixunssfDI): Renamed from __fixunssfdi.
4770 (__floatdisf): Use proper type in REP_BIT macro.
4771 (__fixunsxfSI): Renamed from __fixunsxfsi.
4772 (__fixunsdfSI): Renamed from __fixunsdfsi.
4773 (__fixunssfSI): Renamed from __fixunssfsi.
4774 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
4775 Change location of macros and upper-case some names as above.
4776 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
4777 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
4779 * varasm.c (assemble_variable): Add cast to remove warning.
4780 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
4782 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
4783 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
4784 region number to -1.
4786 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
4788 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
4789 call unshare_all_rtl.
4791 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
4793 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
4795 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
4796 Use .s1 not .s0 for all FP instructions.
4798 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
4800 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
4802 (safe_fwrite, output_line_command): New static functions.
4803 (cpp_expand_to_buffer): Now private to cpplib.
4804 (cpp_scan_buffer): Take a printer.
4806 * cpphash.h: Update prototypes.
4807 * cpplib.h: Update prototypes.
4809 (cpp_buffer): Remove last_nominal_fname.
4810 (cpp_reader): Remove lineno.
4812 * cppmain.c: Use a cpp_printer.
4813 * fix-header.c: No need to inhibit line commands. Call
4814 cpp_start_read with no printer.
4816 * cpperror.c (cpp_notice_from_errno): Provide default name.
4817 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
4818 (find_include_file, cpp_read_file): Use make_IHASH.
4819 (file_cleanup): Set control_macro and clear
4820 input_stack_listing_current here.
4821 (_cpp_execute_include): Don't output entering-file marker.
4822 * cpphash.c (special_symbol): Look for the line number in the
4823 buffer, not the reader.
4824 (_cpp_macroexpand): No need to disable line commands.
4825 (_cpp_dump_definition): No need to generate line commands.
4826 (dump_hash_helper): Remove excess newline from output.
4827 * cppinit.c (dump_special_to_buffer): No need to generate line
4829 (cpp_printer_init): New.
4830 (cpp_start_read): Take a printer, and start it up if it's not
4831 NULL. No need to generate line commands.
4832 (cpp_finish): Expect no buffers stacked at all. Take a
4833 printer argument, and flush the output buffer if it's not
4835 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
4836 Don't put two hashes at the beginning of an assertion.
4837 (cpp_get_token): Don't increment pfile->lineno or emit line
4838 commands here. Return EOF if there's no buffer when we get
4840 * cpplib.c (do_define, skip_if_group):
4841 No need to disable line commands.
4842 (_cpp_output_line_command): Delete function.
4843 (do_line): Don't emit line commands here, but set things up so
4844 they will be emitted if necessary. Use _cpp_fake_ihash to
4845 make unique nominal_fnames if necessary.
4846 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
4847 with 0 for column, not -1.
4848 (_cpp_handle_eof): Don't set the control macro here. Don't
4849 clear input_stack_listing_current here. Don't emit line
4852 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4854 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
4855 always, use the default SVR4 start address.
4857 * config/rs6000/linux.h (LINK_SPEC): Don't define.
4858 (LINK_SHLIB_SPEC): Define.
4859 (LINK_START_DEFAULT_SPEC): Define.
4860 (LINK_OS_DEFAULT_SPEC): Define.
4862 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
4864 * config/rs6000/eabi.asm (__eabi): Call __init rather than
4865 __do_global_ctors to handle constructors.
4866 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
4867 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
4868 (STARTFILE_MVME_SPEC): Likewise.
4869 (STARTFILE_SIM_SPEC): Likewise.
4870 (ENDFILE_ADS_SPEC): Use crtend.
4871 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
4872 (ENDFILE_MVME_SPEC): Likewise.
4873 (ENDFILE_SIM_SPEC): Likewise.
4874 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
4875 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
4876 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
4877 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
4878 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
4879 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
4880 (CRTSTUFF_T_CFLAGS_S): Define.
4881 * config/rs6000/eabi-ctors.c: Delete.
4883 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
4886 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
4890 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
4892 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
4893 plus mask size is smaller or equal to the mode size.
4895 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4897 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
4900 * expr.c (reload.h): Now included.
4901 (emit_block_move): Set volatile_ok when checking for movstr.
4902 (emit_move_1): Check for replacements in addresses in multi-word case.
4903 * Makefile.in (expr.o): Now includes reload.h.
4905 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
4906 Never have a LIBCALL end a basic block.
4907 (find_basic_blocks_1): Likewise.
4908 Reorganize CALL_INSN cases.
4910 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
4912 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
4914 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
4915 completers from mov.ret instruction.
4917 2000-04-14 Richard Henderson <rth@cygnus.com>
4919 * fold-const.c (extract_muldiv): Don't distribute and widen
4920 multiply across plus for non-sizetype unsigned types.
4922 2000-04-14 Richard Henderson <rth@cygnus.com>
4924 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
4925 If the original source is dead in the incr insn, it's dead now.
4927 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4929 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
4930 see if DECL_BIT_FIELD needs to still be set.
4932 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
4934 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
4935 print_int_cst_octal with something that's not an INTEGER_CST.
4937 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
4938 and not a SUBREG to a FLOAT rtl.
4940 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
4942 * emit-rtl.c (try_split): Avoid infinite loop if the split
4943 results in a sequence that contains the original insn.
4945 2000-04-13 Andreas Jaeger <aj@suse.de>
4947 * config/mips/mips.c (expand_block_move): Pass alignment
4948 argument to move_by_pieces in bits, not bytes.
4950 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
4951 __pic__ for little endian.
4953 2000-04-13 Andreas Jaeger <aj@suse.de>
4955 * config/i386/i386-protos.h: Add prototype for
4956 uno_comparison_operator.
4958 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
4960 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
4961 * calls.c (ECF_PURE): New flag.
4962 (emit_call_1): Handle ECF_PURE calls.
4963 (initialize_argument_information): Unset ECF_PURE flag too.
4964 (precompute_arguments): Precompute for ECF_PURE too.
4965 (expand_call): Handle ECF_PURE calls too.
4966 (emit_library_call_value_1): Rename no_queue argument to fn_type,
4967 accept value of 2 as pure function.
4968 (emit_library_call_value, emit_library_call): Rename no_queue argument
4970 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
4972 * tree.h (DECL_IS_PURE): New macro.
4973 (struct tree_decl): Add pure_flag.
4974 * c-common.c (enum attrs): Add attribute "pure".
4975 (init_attributes): Initialize attribute "pure"
4976 (decl_attributes): Handle attribute "pure".
4977 * extend.texi (Attribute "pure"): Document.
4978 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
4980 (flags_from_decl_or_type): Support attribute "pure".
4982 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
4984 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
4985 the token except for numbers and identifiers.
4987 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
4989 * i386.c (ix86_expand_binary_operator,
4990 ix86_expand_unary_operator): Check no_new_pseudos
4991 instead of reload_in_progress and reload_completed.
4992 (ix86_split_ashldi, ix86_split_ashrdi,
4993 ix86_split_lshrdi): Check no_new_pseudos instead
4994 of reload_completed.
4996 2000-04-12 Jeffrey A Law (law@cygnus.com)
4998 * function.c (purge_addressof): Unshare any shared rtl created by
4999 purge_addressof and its children.
5001 2000-04-12 Mark Mitchell <mark@codesourcery.com>
5003 * function.c (aggregate_value_p): VOID_TYPE nodes are never
5006 2000-04-05 Andreas Jaeger <aj@suse.de>
5008 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
5009 not compiling PIC code, add flags for mabi=64.
5010 (SUBTARGET_CPP_SIZE_SPEC): New.
5011 (SUBTARGET_CPP_SPEC): New.
5012 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
5013 for MIPS/Linux and lots of code needs these defines.
5015 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
5017 * reorg.c (fill_slots_from_thread): Check side_effects_p when
5018 trying the "opposite arithmetic" approach.
5020 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5022 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
5023 (struct sh_args): Add new field force_mem.
5024 (INIT_CUMULATIVE_ARGS): Initialize it.
5025 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
5027 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
5029 * calls.c (expand_call): Do not reverse args in "equal from" field.
5030 (emit_library_call_value_1): Emit_libcall_block for const and pure
5033 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5035 * reload1.c (reload_combine): Don't enable optimization for fixed
5036 registers when encountering a BARRIER.
5038 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
5040 * builtins.c (expand_builtin_memcmp): Do expansion even with
5041 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
5043 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
5044 stack is propertly aligned; add sanity checking for aligned
5046 (expand_library_call_value_1): Add sanity checking for aligned
5049 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
5051 * calls.c (emit_library_call_value_1): Change 3rd arg to
5052 locate_and_pad_parm to disregard the setting of partial.
5054 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5056 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
5058 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
5059 CALL_INSN from the normal case.
5061 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
5063 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
5064 New global variables.
5065 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
5067 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
5069 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
5070 TARGET_ADD_ESP_8): New macros.
5071 * i386.md: Add peep2s to convert esp adjustments to push and pop
5073 (pushsi_prologue, popsi_epilogue): New patterns.
5075 2000-04-12 Jakub Jelinek <jakub@redhat.com>
5077 * real.c (toe64): Remove stale #endif from the last change.
5079 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
5081 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
5082 * real.c (toe64): Revert previous change.
5084 2000-04-12 Jakub Jelinek <jakub@redhat.com>
5086 * objc/objc-act.c: Include ggc.h.
5087 (objc_tree_index, objc_global_trees): Convert most of the
5088 static tree variables into a static array with previous names
5090 (objc_ellipsis_node): New variable.
5091 (lang_init): Call objc_act_parse_init and c_parse_init.
5092 Create objc_ellipsis_node.
5093 (build_selector_translation_table): Use objc_ellipsis_node instead
5095 (hack_method_prototype): Likewise.
5096 (get_arg_type_list): Likewise.
5097 (start_method_def): Likewise.
5098 (continue_method_def): Likewise.
5099 (gen_method_decl): Likewise.
5100 (ggc_mark_imp_list): New function.
5101 (ggc_mark_hash_table): New function.
5102 (objc_act_parse_init): New function.
5103 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
5104 * c-parse.in (c_parse_init): For objc add roots of objc specific
5105 local tree variables.
5106 * objc/objc-parse.y: Rebuilt.
5107 * objc/objc-parse.c: Rebuilt.
5108 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
5110 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
5112 * cse.c (delete_trivially_dead_insns): Also delete insns
5113 that copy a register to itself where the destination is
5116 2000-04-11 Richard Henderson <rth@cygnus.com>
5118 * flow.c (struct propagate_block_info): Add new_dead, new_live.
5119 (propagate_block): Initialize them. Use them in parallel instead
5120 of one tmp variable, ie revert much of the 0408 and 0407 functional
5121 changes, but keep the structural changes.
5122 (mark_set_regs): Take new_dead from propagate_block_info instead.
5123 (mark_set_1, mark_set_reg): Likewise.
5124 (mark_used_regs): Likewise with new_live.
5125 (mark_used_reg): Likewise. Revert 0408 change.
5127 2000-04-11 Nick Clifton <nickc@cygnus.com>
5129 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
5131 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
5133 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5135 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
5136 const section to output a CONSTRUCTOR based on the same conditions
5139 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
5141 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
5142 * pa/pa-protos.h (output_call): Add additional argument indicating
5143 if the call is a sibling/tail call.
5144 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
5145 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
5146 (function_arg, function_arg_partial_nregs): Likewise
5147 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
5148 (emit_move_sequence): Zero extend certain constants as needed
5150 (compute_zdepdi_operands, output_64bit_and): New functions.
5151 (output_64bit_ior, function_arg): Likewise.
5152 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
5153 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
5154 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
5155 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
5156 (output_bvb): Likewise.
5157 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
5158 (output_call): New argument 'sibcall'. Generate sibcall sequences
5160 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
5161 (ouput_arg_descriptor): Do not emit argument descriptors for
5163 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
5165 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
5166 (FUNCTION_OK_FOR_SIBALL): Define.
5167 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
5168 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
5169 (CPP_SPEC): Use new spec infrastructure.
5170 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
5171 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
5172 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
5173 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
5174 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
5175 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
5176 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
5177 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
5178 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
5179 (FUNCTION_ARG); Call out to C code.
5180 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
5181 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
5182 (MIN_UNITS_PER_WORD): Likewise.
5183 * pa/pa.md (cmpdi): New expander.
5184 (scc patterns, movstrsi): Not available for TARGET_64BIT.
5185 (64bit conditional arithmetic): New patterns.
5186 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
5187 (movsicc): Not available if modes on all the operands to not match.
5188 (movdicc): New expander and associated patterns.
5189 (64bit branches): New patterns.
5190 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
5191 (pre_ldd, post_std): New patterns.
5192 (64bit addil, load low part): New patterns.
5193 (special movsf constant): Not available for TARGET_64BIT.
5194 (movsf, movdf expanders): Force constants into memory.
5195 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
5196 (64bit movdf/movdi patterns): New patterns.
5197 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
5199 (extendqidi2, extendhidi2, extendsidi2): Similarly.
5200 (adddi3 expander): Allow "arith_operand" for second input.
5201 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
5202 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
5203 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
5204 (muldi3): New expander for TARGET_64BIT.
5205 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
5207 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
5208 patterns for TARGET_64BIT.
5209 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
5210 patterns for TARGET_64BIT.
5211 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
5212 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
5213 (sibcall_epilogue): New expander.
5214 (casesi): Tweak for TARGET_64BIT.
5215 (call expanders): Set & use the outgoing argument pointer. Use the
5216 64bit call patterns as needed. Add additional arg to output_call.
5217 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
5218 (sibcall, sibcall_internal_symref): New expanders.
5219 (sibcall_value, sibcall_value_internal_symref
5220 (interspace_jump): Turn into an expander + matching patterns.
5221 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
5222 * pa/pa64-regs.h: Eliminate trigraph sequences.
5223 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
5225 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
5227 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
5228 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
5229 cpp_token with cpp_ttype everywhere.
5230 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
5231 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
5232 CPP_BUF_COL. Line and column numbers are unsigned int, not
5234 * cpplex.c (cpp_buf_line_and_col): Delete.
5235 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
5236 'long lineno' to 'unsigned int lineno'.
5237 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
5239 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5241 * extend.texi: ISO C99 is not a draft anymore.
5242 * invoke.texi: ISO C++ is not a draft anymore.
5243 * cpp.texi: __cplusplus is required by the ISO standard.
5245 * extend.texi (-fthis-is-variable): Undocument.
5246 * flags.h (warn_template_debugging): Remove declaration.
5247 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
5248 -Wenum-clash, -Wtemplate-debugging): Undocument.
5250 2000-04-10 Nick Clifton <nickc@cygnus.com>
5252 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
5254 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
5256 (ARM_SIGN_EXTEND): Use HOST_UINT.
5257 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
5258 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
5259 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
5260 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
5262 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
5263 (arm_gen_constant): Use HOST_UINT.
5264 (arm_canonicalize_constant): Use HOST_UINT.
5265 (arm_reload_in_hi): Use HOST_UINT.
5266 (arm_reload_out_hi): Use HOST_UINT.
5267 (output_multi_immediate): Use HOST_UINT.
5268 (int_log2): Use HOST_UINT.
5269 (arm_poke_function_name): Use HOST_UINT.
5270 (arm_output_epilogue): Use arm_volatile_func().
5271 (output_thumb_prologue): Use arm_strip_name_encoding().
5273 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5275 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
5276 of sequence point problems.
5278 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
5280 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
5282 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
5284 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5286 * sbitmap.h: Whitespace changes and use upper-case macro args.
5287 (struct simple_bitmap_def): All sizes now unsigned.
5288 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
5289 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
5290 (sbitmap_vector_alloc): Parms and local vars now unsigned.
5291 (sbitmap_zero): Cast bzero arg to PTR.
5292 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
5293 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
5294 loop to make structure clearer.
5295 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
5296 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
5297 (sbitmap_a_and_b_or_c): Likewise.
5298 (sbitmap_intersection_of_succs): Minor cleanups.
5299 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
5300 (sbitmap_union_of_preds): Likewise.
5301 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
5302 (debug_sbitmap): New function.
5304 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
5305 * c-typeck.c (convert_for_assignment): Likewise.
5307 * expmed.c (init_expmed): Don't free objects we make.
5308 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
5310 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
5311 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
5313 * gcse.c (expr_hash_table_size): Now unsigned.
5314 (compute_ae_gen): Local variable `i' now unsigned.
5315 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
5316 (compute_transout, hoist_code): Likewise.
5317 (compute_local_properties): Likewise, also hash_table_size.
5318 (alloc_expr_hash_table): N_INSNS now unsigned.
5319 (delete_null_pointer_checks): Mark arg F as unused.
5321 * regrename.c: Minor cleanups, including chang some variables
5324 2000-04-10 Neil Booth <NeilB@earthling.net>
5326 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
5328 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
5330 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5332 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
5333 __classof__, and __headof__ from the list of gnu keywords.
5334 (-ansi): Remove -foperator-names from list of implied options.
5335 Do not call it ANSI C++.
5336 (-foperator-names): Document as -fno-operator-names.
5338 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
5340 * cpphash.c (timestamp): Delete.
5341 (del_HASHNODE): If type is T_MCONST, free value.cpval.
5342 (special_symbol): Remove unnecessary braces. Remove
5343 T_VERSION. Treat T_STDC like T_CONST unless
5344 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
5345 when one is encountered, then convert them into T_MCONST
5347 * cppinit.c (builtin_array): version_string is T_MCONST.
5348 __STDC__ has a "1" in its cpval. Don't have a terminator
5349 entry. Clean up which entries are dumped.
5350 (initialize_builtins): Only __STDC__ gets the special
5351 -traditional treatment. Count the length of builtin_array.
5352 Render version_string here.
5353 * cpphash.h: Remove T_VERSION. Add T_MCONST.
5354 * cpplib.h (struct cpp_reader): Remove timebuf.
5356 2000-04-09 Richard Henderson <rth@cygnus.com>
5358 * genrecog.c (pred): Update comparison_operator for the unordered
5361 * config/i386/i386.c (no_comparison_operator): Disallow unordered
5363 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
5364 (uno_comparison_operator): New.
5365 (put_condition_code): Handle UNORDERED/ORDERED.
5366 (unsigned_comparison): Likewise.
5367 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
5368 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
5369 (ix86_expand_fp_compare): Use them. Take scratch as argument,
5370 update all callers. Handle all 8 unordered operators.
5371 (ix86_expand_setcc): Lose the unordered argument, update all callers.
5372 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
5373 * config/i386/i386.h (PREDICATE_CODES): Update.
5374 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
5375 (ix86_expand_branch, ix86_expand_setcc): Update.
5376 * config/i386/i386.md (sunordered, sordered): New.
5377 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
5378 (bunordered, bordered): New.
5379 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
5380 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
5381 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
5383 2000-04-09 Philip Blundell <philb@gnu.org>
5385 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
5387 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
5389 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
5390 fix_truncxfhi2): New patterns.
5391 * i386.c (output_fix_trunc): Handle converting to HImode.
5393 2000-04-08 Alex Samuel <samuel@codesourcery.com>
5395 * ssa.c (convert_to_ssa): Eliminate dead code when calling
5397 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
5398 (for_each_successor_phi): Change parameter to basic_block.
5399 (coalesce_regs_in_successor_phi_nodes): Likewise.
5400 (coalesce_regs_in_copies): Likewise.
5401 (compute_coalesced_reg_partition): Use basic_block instead of index.
5402 * rtl.h (convert_to_ssa): Delete.
5403 (convert_from_ssa): Likewise.
5404 (successor_phi_fn): Likewise.
5405 (for_each_successor_phi): Likewise.
5406 (in_ssa_form): Likewise.
5407 * basic-block.h (convert_to_ssa): Moved from rtl.h.
5408 (convert_from_ssa): Likewise.
5409 (successor_phi_fn): Likewise.
5410 (in_ssa_form): Likewise.
5411 (for_each_successor_phi): Likewise. Change parameter to basic_block.
5412 * flow.c (calculate_global_regs_live): Pass a basic_block to
5413 for_each_successor_phi.
5415 2000-04-08 Richard Henderson <rth@cygnus.com>
5417 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
5418 was modified in the current insn.
5420 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
5422 * arm/thumb.md: Delete.
5423 * arm/thumb-protos.h: Delete.
5425 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
5427 Merge changes from merged-arm-thumb-backend-branch onto trunk.
5429 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
5431 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
5434 * arm.md (nop): Use the standard RTL expression. Don't code as a
5436 (*arm_nop, *thumb_nop): Delete.
5438 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
5439 constants. Use casts instead.
5440 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
5441 output_multi_immediate, arm_poke_function_name): Likewise.
5442 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
5443 MASK_RETURN_ADDDR): Likewise.
5445 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
5447 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
5450 * arm.md (eh_epilogue): New function.
5451 * arm.h (struct machine_function): Move to here ...
5452 * arm.c: ... from here.
5453 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
5454 (thumb_exit): Extra parameter eh_ofs. All callers changed.
5455 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
5457 2000-03-30 Nick Clifton <nickc@cygnus.com>
5459 * config/arm/semi.h (ASM_SPEC): Restore definition.
5460 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5462 * config/arm/elf.h (ASM_SPEC): Restore definition.
5463 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5465 * config/arm/arm.h (ASM_SPEC): Remove definition.
5466 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
5468 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
5470 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
5472 2000-03-24 Nick Clifton <nickc@cygnus.com>
5474 Various formating tidyups, elimination of compile time
5475 warnings and synchronisation with internal sources:
5477 * config/arm/arm-protos.h (assemble_align): Add prototype.
5478 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5479 (gen_comapre_reg): Rename to arm_gen_compare_reg.
5480 (arm_return_addr_rtx): Rename to arm_return_addr.
5482 * config/arm/arm.c: Include except.h.
5483 Define shorter typenames for strict minipool_node and struct
5485 (arm_return_in_memory): For WinCE return all structures <= 32 bits
5487 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5488 (gen_comapre_reg): Rename to arm_gen_compare_reg.
5490 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
5492 (ASM_SPEC): Define if not already defined.
5493 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5495 * config/arm/arm.md: Rename references to gen_rotated_half_load to
5496 arm_gen_rotated_half_load, and references to gen_comapre_reg to
5497 arm_gen_compare_reg.
5498 (indirect_jump): Only accept register operands.
5499 (load_indirect_jump): Keep this pattern since combine can generate
5502 * config/arm/coff.h: Include aout.h.
5503 (MULTILIB_DEFAULTS): Only define if not already defined.
5505 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
5506 into arm.h (so that COFF ports can support thumb based aliases).
5507 (ASM_SPEC): Move definition into arm.h
5509 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
5510 redundant apcs spec.
5511 (ASM_SPEC): Move definition to arm.h
5513 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
5515 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
5516 for entries in the .bss section
5518 2000-03-23 Nick Clifton <nickc@cygnus.com>
5520 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
5521 to thumb_far_jump_used_p.
5523 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
5524 single integer parameter.
5526 * config/arm/arm.c (struct machine_function): Add two new
5527 fields, 'far_jump_used' and 'arg_pointer_live'.
5528 (thumb_far_jump_used_p): Once the decision has been made that
5529 far jumps might be used, always return true.
5530 If being called from the initial elimination offset macro then
5531 do not bother to perform the test if the arg pointer is not
5533 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
5534 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
5536 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
5538 * arm.c (output_return_instruction): Handle more cases where we can
5539 return from a function with an ldr instruction.
5540 (arm_output_epilogue): Likewise.
5542 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
5543 if we need to push a large stack frame and there are no callee-saved
5546 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
5547 in ARM code if the frame pointer has been eliminated.
5549 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
5550 unspec_volatile arguments to avoid duplicates.
5551 (consttable_1, consttable_2): Fixes for big-endian mode.
5553 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
5556 Re-write constant pool code.
5557 * arm.c (minipool_node, minipool_fix): New types.
5558 (minifix): Delete type.
5559 (arm_add_minipool_constant): Delete.
5560 (arm_compute_minipool_offsets, arm_find_barrier,
5561 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
5562 (get_jump_table_size): Now returns HOST_WIDE_INT.
5563 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
5565 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
5566 (assign_minipool_offsets, arm_print_value): Likewise.
5567 (dump_minipool): Rewrite.
5568 (arm_barrier_cost): New function.
5569 (create_fix_barrier): New function.
5570 (push_minipool_barrier): New function.
5571 (push_minipool_fix): Record additional information about the fixup
5573 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
5574 check the mode of what needs fixing.
5575 (arm_reorg): Rewrite.
5577 2000-03-08 Nick Clifton <nickc@cygnus.com>
5579 * config/arm/arm.md (indirect_jump): Force constant addresses into
5582 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
5584 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
5586 2000-02-24 Nick Clifton <nickc@cygnus.com>
5588 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
5589 adjust is word aligned.
5590 (thumb_expand_epilogue): Make sure that stack adjust is word
5593 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
5595 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
5597 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
5598 pointer relative addresses.
5600 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
5602 * arm.c (find_barrier): Find the last barrier within the allowed
5605 2000-02-09 Nick Clifton <nickc@cygnus.com>
5607 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
5609 2000-02-09 Nick Clifton <nickc@cygnus.com>
5611 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
5612 ARM_FUNCTION_PROFILER.
5614 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
5615 ARM_FUNCTION_PROFILER.
5617 * config/arm/linux-oldld.h: Imported from mainline sources.
5619 2000-02-07 Nick Clifton <nickc@cygnus.com>
5621 * config/arm/lib1funcs.asm: Merge in thumb functions from
5624 * config/arm/lib1thumb.asm: Delete.
5626 2000-02-04 Nick Clifton <nickc@cygnus.com>
5628 * config/arm/arm.c: Sychronised with current Red hat local
5630 * config/arm/arm.h: Ditto.
5631 * config/arm/arm-protos.h: Ditto.
5633 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
5635 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
5637 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
5640 2000-02-02 Nick Clifton <nickc@cygnus.com>
5642 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
5644 * config/arm/arm.md (epilogue): Fix rtl checking abort because
5645 (return) was emited using an emit_insn() call.
5647 2000-01-31 Nick Clifton <nickc@cygnus.com>
5649 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
5651 (thumb_exit): Move frame pointer back into hard frame pointer
5652 register if backtracing is being used.
5654 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
5656 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
5659 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
5661 * config/arm/arm.md (neg_pool_offset): Provide default for new
5663 (arm_movsi_insn): Add neg_pool_offset attribute.
5664 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
5665 rtx for the insn that starts the scan and an unsigned long for its
5666 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
5667 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
5668 instructions in *PINSERTED.
5669 (struct minipool_fixup): Add MIN_ADDRESS elt.
5670 (sort_fixups): Compute it.
5671 (arm_reorg): Changes to support inserting pools before the insn to be
5674 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
5676 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
5677 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
5678 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
5680 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
5682 * config/arm/semi.h (TARGET_VERSION): Do not define if already
5684 (TARGET_DEFAULT): Do not define if already defined.
5686 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
5688 * config/arm/arm.md (anddi3): Allow disjoint source operands.
5689 (iordi3): Allow disjoint source operands.
5690 (xordi3): Allow disjoint source operands.
5691 (negdi2): Permit construction for ARM and Thumb.
5692 (arm_negdi2): Renamed version of old negdi2 pattern.
5693 (thumb_negdi2): New pattern: Only permit non-overlapping
5694 source and destination.
5696 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
5698 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
5699 scratch low register so that it will not be deleted.
5701 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
5703 * config/arm/pe.h (ARM_PE): Define.
5705 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
5706 interfacearm attribute if this is a PE toolchain.
5707 (output_return_instruction): Do not emit anything if the function
5708 has the naked attribute set.
5709 (is_called_in_ARM_mode): If the function has the interfacearm
5710 attribute then return true.
5711 (thumb_expand_prologue): Do not generate a prologue for naked
5713 (thumb_expand_epilogue): Do not generate an epilogie for a naked
5715 (output_thumb_prologue): Do not bother if the function is naked.
5716 Strip PE encoding from function name before emitting.
5718 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
5720 * arm.md (pic_load_addr): Fix constraints.
5722 * arm.md (casesi_insn): Fix mis-applied patch.
5724 * arm.md ("core" function unit): Add rules for single- and
5726 (All TARGET_THUMB patterns): Add "type" attribute information
5728 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
5729 the following insn is a CALL.
5731 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
5733 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
5734 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
5735 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
5737 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
5739 * config/arm/linux-gas.h: oops - this file was missed out when the
5740 branch was created...
5742 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
5744 * thumb.c: Deleted. Move contents to ...
5746 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
5748 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
5751 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
5752 declare a prototype for asm_output_align();
5754 * arm.c (thumb_condition_code): Delete.
5755 (arm_print_operand): Always use arm_condition_code array.
5757 * arm.c (thumb_return_addr_rtx): Delete.
5758 (arm_save_machine_status, arm_restore_machine_status): Delete.
5759 (arm_init_machine_status, arm_mark_machine_status): New functions.
5760 (arm_init_expanders): Update accordingly.
5761 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
5762 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
5763 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
5765 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
5767 * configure.in : Fix arm-*-aout target to use new t-arm-aout
5769 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
5772 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
5774 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
5775 stack backtrace structure.
5777 * config/arm/arm-protos.h: Add prototypes for functions defined in
5780 * config/arm/arm.c (arm_override_options): Fix selection of
5781 attributes of default processor.
5783 * config/arm/coff.h: Delete needless #include.
5785 * config/arm/pe.c: Delete unused code.
5787 * config/arm/pe.h (CPP_DEFINES): Delete
5788 (SUBTARGET_CPP_SPEC): Define.
5789 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
5791 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
5793 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
5795 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
5797 (CAN_DEBUG_WITHOUT_FP): Define.
5798 (FIXED_REGISTERS): Make r11 call-saved.
5799 (CALL_USED_REGISTERS): Likewise.
5800 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
5801 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
5802 frame-pointer is required.
5803 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
5804 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
5805 if the target normally needs a stack frame in non-leaf functions.
5806 (use_return_insn): Correct logic for determining when a return
5807 instruction can be used.
5808 (output_return_instruction): Handle the frame-pointer register as
5809 a normal register when not TARGET_APCS_FRAME.
5810 (arm_output_prologue): Likewise.
5811 (arm_output_epilogue): Likewise.
5812 (output_func_epilogue): Likewise.
5813 (arm_expand_prologue): Likewise.
5814 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
5816 * arm.c (use_return_insn): No need to check floating point regs if
5818 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
5819 the code of value stored in the minipool array.
5820 (arm_add_minipool_constant): Likewise.
5822 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5824 * basic-block.h (conflict_graph_enum_fn): K&R fix.
5826 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5828 * tree.c (tree_expr_nonnegative_p): New function.
5830 * tree.h (tree_expr_nonnegative_p): Declare.
5832 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
5833 elide some sign_compare warnings.
5834 (build_conditional_expr): Likewise.
5836 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
5838 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
5840 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
5841 * i386.c (print_operand): Use the proper suffix for a 387 HImode
5842 operand. Abort if a 387 operand has an unsupported size.
5844 2000-04-08 Neil Booth <NeilB@earthling.net>
5846 * cppexp.c (parse_charconst): Null does not end character
5848 * cppinit.c (ISTABLE): Null character handled as whitespace.
5849 * cpplex.c (null_warning): new function.
5850 (skip_string): Emit warning if nulls encountered.
5851 (_cpp_skip_hspace): Emit warning if nulls encountered.
5852 (_cpp_lex_token): Emit warning if nulls encountered. Drop
5856 2000-04-07 Richard Henderson <rth@cygnus.com>
5858 * flow.c (loop_depth): Remove.
5859 (reg_next_use, cc0_live, mem_set_list): Replace with ...
5860 (struct propagate_block_info): New.
5861 (life_analysis): Don't allocate reg_next_use.
5862 (propagate_block_delete_insn): Break out of propagate_block.
5863 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
5864 (propagate_block_delete_libcall): Likewise.
5865 (propagate_block): Create a propagate_block_info struct to pass
5866 to subroutines. Allocate one not two temporary regsets. Don't
5867 clobber memory for const calls. Look for clobbers in
5868 CALL_INSN_FUNCTION_USAGE.
5869 (mark_set_regs): Recognize COND_EXEC.
5870 (mark_set_reg): Break out of mark_set_1.
5871 (mark_used_reg): Break out of mark_used_regs.
5872 (mark_used_regs): Recognize COND_EXEC.
5873 (insn_dead_p): Use propagate_block_info struct.
5874 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
5875 (find_auto_inc, try_pre_increment_1): Likewise.
5876 (print_rtl_with_bb): Dump regs live at end too.
5877 (count_reg_sets_1): Pass in loop_depth.
5878 (count_reg_sets, count_reg_references): Likewise.
5879 (recompute_reg_usage): Provide it.
5881 2000-04-07 Richard Henderson <rth@cygnus.com>
5883 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
5886 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
5888 * cpplib.c (do_elif): Skip the rest of the line if we're
5889 not going to bother evaluating it.
5890 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
5891 to avoid pointless calls to the lexer.
5893 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
5895 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
5897 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
5899 * calls.c (expand_call): emit_queue if we're trying a sibcall.
5901 2000-04-07 Jakub Jelinek <jakub@redhat.com>
5903 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
5905 2000-04-06 Geoff Keating <geoffk@cygnus.com>
5907 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
5908 crtend so they can be multilibbed.
5909 (STAGESTUFF): Remove s-crt and s-crtS.
5911 2000-04-07 Richard Henderson <rth@cygnus.com>
5913 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
5914 if we discover we need a pseudo and no_new_pseudos is true.
5915 * config/alpha/alpha.md (ne:DI insn): New.
5916 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
5918 2000-04-07 Richard Henderson <rth@cygnus.com>
5920 * rtl.def (COND_EXEC): New.
5921 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
5922 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
5924 * genconfig.c (have_cond_arith_flag): Remove.
5925 (have_cond_exec_flag): New.
5926 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
5927 (main): Print HAVE_conditional_execution.
5929 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
5930 (sched_analyze_insn, print_pattern): Likewise.
5931 * reload.c (find_equiv_reg): Likewise.
5932 * rtlanal.c (reg_referenced_p): Likewise.
5933 (note_stores, dead_or_set_regno_p): Likewise.
5934 (reg_overlap_mentioned_p): Rewrite to use a switch.
5936 * ggc.h (struct rtx_def): Forward declare.
5938 * print-rtl.c (debug_rtx_range): New.
5939 * rtl.h (debug_rtx_range): Declare.
5941 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
5943 * gcse.c (gcse_main): Don't rebuild the CFG here.
5944 (delete_null_pointer_checks): Likewise.
5945 * ssa.c (convert_to_ssa): Likewise.
5946 * toplev.c (rest_of_compilation): Do it here instead. Combine
5947 sequential calls to TIMEVAR. Consistently use `insns' instead of
5948 `get_insns()'. Always split insns after reload when optimizing.
5950 * basic-block.h (merge_blocks_nomove): Declare.
5951 (tidy_fallthru_edge): Declare.
5952 * flow.c (merge_blocks_nomove): Document as merging into previous
5953 blocks. Remove cruft from between blocks; remove all edges out of A.
5954 (tidy_fallthru_edge): Export.
5956 2000-04-06 Alex Samuel <samuel@codesourcery.com>
5958 * ssa.c (compute_conservative_reg_partition): Declare with
5960 * toplev.c (clean_dump_file): Remove previously-deleted function
5961 inadvertantly merged back in.
5962 * conflict.c (conflict_graph_add): Use a single call to
5963 htab_find_slot to look up and insert.
5965 2000-04-06 Richard Henderson <rth@cygnus.com>
5967 * genrecog.c (*): Rename _last_insn to last_insn.
5968 (make_insn_sequence): Set the position of the peephole2 C test
5969 to be at the last insn.
5971 2000-04-06 Richard Henderson <rth@cygnus.com>
5973 * flow.c (compute_flow_dominators): Free worklist.
5975 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
5977 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
5979 2000-04-06 Alex Samuel <samuel@codesourcery.com>
5981 * rtl.h (INSN_P): New macro.
5982 (successor_phi_fn): New typedef.
5983 (for_each_successor_phi): New prototype.
5984 (in_ssa_form): New variable.
5985 (PHI_NODE_P): Likewise.
5986 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
5987 phi nodes in successors.
5988 (mark_used_regs): Add PHI case.
5989 (set_phi_alternative_reg): New function.
5990 (life_analysis): Assert that dead code elimination is not selected
5992 * toplev.c (to_ssa_time): New variable.
5993 (from_ssa_time): Likewise.
5994 (compile_file): Zero to_ssa_time and from_ssa_time.
5995 Print time to convert to and from SSA.
5996 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
5997 (print_time): Compute percent fraction as integer.
5998 * ssa.c (PHI_NODE_P): Moved to rtl.h.
5999 (convert_to_ssa): Check if we're already in SSA.
6000 Don't eliminate dead code in life_analysis.
6001 Rerun flow and life analysis at bottom.
6002 (eliminate_phi): Use canonical regnos when adding nodes.
6003 (mark_reg_in_phi): New function.
6004 (mark_phi_and_copy_regs): Likewise.
6005 (convert_from_ssa): Rerun life analysis at top.
6006 Use coalesced partition.
6007 Check for removing a phi node at the end of the block.
6008 (compute_coalesced_reg_partition): New function.
6009 (coalesce_regs_in_copies): Likewise.
6010 (coalesce_reg_in_phi): Likewise.
6011 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
6012 (for_each_successor_phi): Likewise.
6013 (rename_context): New struct.
6014 (rename_block): Use a rename_context with rename_insn_1. When
6015 renaming sets of a subreg, emit a copy of the entire reg first.
6016 (rename_insn_1): Treat data as a rename_context *. Save current
6018 (rename_set_data): Add field set_insn.
6019 * Makefile.in (HASHTAB_H): Move up in file.
6020 (OBSTACK_H): New macro.
6021 (collect2.o): Use OBSTACK_H in dependencies.
6022 (sdbout.o): Likewise.
6023 (emit-rtl.o): Likewise.
6024 (simplify-rtx.o): Likewise.
6025 (fix-header.o): Likewise.
6026 (OBJS): Add conflict.o.
6027 (conflict.o): New rule.
6028 * basic-block.h: Include partition.h.
6029 (conflict_graph): New typedef.
6030 (conflict_graph_enum_fn): Likewise.
6031 (conflict_graph_new): New prototype.
6032 (conflict_graph_delete): Likewise.
6033 (conflict_graph_add): Likewise.
6034 (conflict_graph_conflict_p): Likewise.
6035 (conflict_graph_enum): Likewise.
6036 (conflict_graph_merge_regs): Likewise.
6037 (conflict_graph_print): Likewise.
6038 (conflict_graph_compute): Likewise.
6039 * conflict.c: New file.
6041 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
6043 * tlink.c (read_repo_files): Don't look for .rpo info for
6046 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6048 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
6050 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6052 * config/sh/lib1funcs.asm (___udivsi3_i4):
6053 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
6054 only depends on FMOVD_WORKS.
6056 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6058 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
6059 make double constant 8-byte aligned.
6061 2000-04-06 Jakub Jelinek <jakub@redhat.com>
6063 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
6064 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
6065 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
6066 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
6067 Accept storing GENERAL_REGS into offsetable memory.
6068 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
6069 building a TFmode constant other than 0.0L into GENERAL_REGS.
6071 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
6073 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
6075 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
6077 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
6078 (macro_cleanup): No need to cast pbuf->macro.
6079 (collect_expansion): Use _cpp_get_define_token. Goto done if
6080 it returns VSPACE. Remove check for trailing space after
6082 (_cpp_create_definition): Don't diddle flags here. Return
6084 (unsafe_chars): Handle c1 being EOF.
6085 (push_macro_expansion): Use unsafe_chars for both accidental-paste
6086 checks. Don't push the buffer till after we're done with
6088 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
6089 (PEEKN, FORWARD, GETC, PEEKC): Use them.
6090 (cpp_push_buffer): Don't set new->alimit. Set new->mark
6092 (_cpp_parse_assertion): Don't NUL terminate.
6093 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
6094 hspace before calling _cpp_parse_assertion. Remove all sets
6095 of only_seen_white. Treat '\f' as hspace. Don't do anything
6096 special with '\n' here.
6097 (maybe_macroexpand): Handle T_EMPTY hash entries without
6098 pushing a buffer at all.
6099 (cpp_get_token): Handle clearing only_seen_white here. Handle
6100 incrementing the line number here. Clear
6101 potential_control_macro as well as only_seen_white, if
6103 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
6104 (_cpp_get_define_token): New function, basically like
6105 _cpp_get_directive_token was but doesn't eat horizontal space.
6106 Don't do anything with only_seen_white here.
6107 (_cpp_get_directive_token): Just call _cpp_get_define_token
6108 repeatedly till it returns non-hspace.
6110 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
6111 (conditional_skip, skip_if_group): Return int.
6112 (DIRECTIVE_TABLE): Change origin of all conditional directives
6114 (TRAD_DIRECT_P): New macro.
6115 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
6116 an error for a bogus directive, unless -lang-asm. Use
6117 TRAD_DIRECT_P. Loop calling handler functions till one returns
6119 (get_macro_name): Don't diddle flags here.
6120 (do_define): Diddle flags here. Use _cpp_get_directive_token.
6121 Create T_EMPTY nodes for #define macro /* nothing */.
6122 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
6123 Use hp->name when calling pass_thru_directive.
6124 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
6125 Return the result of conditional_skip and/or skip_if_group.
6126 Don't call _cpp_output_line_command.
6127 (consider_directive_while_skipping): Use _cpp_get_directive_token.
6128 Issue -Wtraditional warnings as appropriate. Don't complain
6129 about unrecognized directives. If we are to stop skipping,
6130 return the number of the directive that ended the skip.
6131 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
6132 expansion and line commands while skipping. Return the result
6133 of consider_directive_while_skipping, if nonzero.
6134 (do_endif): Just set potential_control_macro here.
6135 (validate_else): Use _cpp_get_directive_token.
6136 (do_assert, do_unassert): Don't save pointers into the
6137 token_buffer across calls to the lexer. Use
6138 _cpp_get_directive_token.
6140 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
6141 pointer, not an offset. Replace 'data', which was a generic
6142 pointer, with 'macro', which points to a struct hashnode.
6143 (cpp_reader): Add 'potential_control_macro' pointer.
6144 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
6145 (CPP_BUF_GET, CPP_FORWARD): Delete.
6146 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
6147 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
6148 ACTIVE_MARK_P): Update.
6149 (_cpp_get_define_token): New internal function.
6150 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
6152 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
6154 * configure.in: And here.
6155 * configure: Regenerate.
6156 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
6157 --enable-libstdcxx-v3 is passed at configure time.
6158 * config.h.in: Regenerate.
6160 2000-04-05 Mark Mitchell <mark@codesourcery.com>
6162 * final.c (final): Use xcalloc to allocate line_note_exists.
6163 * function.c (free_after_compilation): Free the temp_slots.
6164 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
6165 (combine_temp_slot): Free temp_slots when they get combined.
6166 (purge_addressof): Fix typo in comment.
6167 * stmt.c (mark_goto_fixup): Mark the fixup itself.
6168 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
6170 * ggc.h: Include varray.h.
6171 (ggc_pending_trees): Declare.
6172 (ggc_mark_tree_children): Remove declaration.
6173 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
6174 * ggc-common.c (ggc_pending_trees): New variable.
6175 (ggc_mark_roots): Call ggc_mark_trees.
6176 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
6177 the ggc_pending_trees.
6178 * Makefile.in (GGC_H): New variable. Use it throughout in place
6181 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6183 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
6186 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6188 * sh.c (sh_insn_length_adjustment): New function.
6189 * sh-protos.h (sh_insn_length_adjustment): Declare.
6190 * sh.h (ADJUST_INSN_LENGTH): Use it.
6192 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
6194 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
6195 from the insn where REG_RETVAL is added.
6196 (emit_no_conflict_block): Ditto.
6198 * md.texi (Standard Names): Clarify when movX is needed.
6200 * combine.c (simplify_comparison) [MINUS]: Do not replace
6201 all (op (minus A B) 0) with (op A B).
6203 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
6204 J"orn Rennecke <amylaar@cygnus.co.uk>
6206 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
6207 (block_lump_real): Likewise.
6209 2000-04-05 Chris Demetriou <cgd@netbsd.org>
6211 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
6212 remaining non-zero debugging masks.
6214 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
6216 * basic-block.h (verify_flow_info): Declare.
6217 (flow_loop_outside_edge_p): Declare.
6218 * flow.c (verify_flow_info): Remove declaration.
6219 (clear_log_links, flow_loop_outside_edge_p): Likewise.
6221 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
6223 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
6226 2000-04-05 Jakub Jelinek <jakub@redhat.com>
6228 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
6229 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
6230 seqdi_zero_trunc+1): Allow splits only if registers are
6233 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
6235 * acconfig.h: Add HAVE_GAS_HIDDEN.
6236 * config.in: Regenerated.
6237 * configure.in: Add test for .hidden pseudo-op in gas.
6238 * configure: Regenerated.
6239 * crtstuff.c: Include auto-host.h.
6240 Emit additional .hidden pseudo-op for __dso_handle if the
6241 assembler knows about it.
6243 2000-04-04 Philippe De Muyter <phdm@macqel.be>
6245 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
6246 before freeing argnames.
6247 * cpplib.c (do_ifndef): Cast return value of xstrdup.
6249 2000-04-05 Michael Meissner <meissner@redhat.com>
6251 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
6252 Walton <jonboy@gordian.com> to make memory references with update
6253 work wtih -mregnames.
6255 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6257 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
6258 (regrename_optimize): Rename variables `def_uses' and
6259 `ext_basic_blocks' to avoid conflicts with similarly named
6260 typedefs in traditional C.
6262 * calls.c (initialize_argument_information): Fix typo in previous
6265 2000-04-04 Richard Henderson <rth@cygnus.com>
6267 * regrename.c (consider_available): Test fixed_regs not
6268 PIC_OFFSET_TABLE_REGNUM.
6270 2000-04-04 Geoff Keating <geoffk@cygnus.com>
6272 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
6274 (CRTSTUFF_T_CFLAGS_S): Delete definition.
6275 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
6276 (ENDFILE_LINUX_SPEC): Always use crtend.
6277 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
6278 (powerpc-*-linux-gnu): Likewise.
6279 * configure: Regenerate.
6281 * config/rs6000/eabi.h: Don't include sysv4.h.
6282 (MULTILIB_DEFAULTS): Don't define.
6283 * config/rs6000/eabiaix.h: Don't include eabi.h.
6284 * config/rs6000/eabile.h: Delete.
6285 * config/rs6000/eabilesim.h: Delete.
6286 * config/rs6000/eabisim.h: Don't include eabi.h.
6287 * config/rs6000/linux.h: Don't include sysv4.h.
6288 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
6289 (MULTILIB_DEFAULTS): Don't redefine.
6290 * config/rs6000/rtems.h: Don't include eabi.h.
6291 * config/rs6000/sol2.h: Don't include sysv4le.h.
6292 * config/rs6000/sysv4le.h: Don't include sysv4.h.
6293 * config/rs6000/t-ppc: Delete.
6294 * config/rs6000/t-ppcgas: Correct comment.
6295 * config/rs6000/t-ppcos: Correct comment. Don't build
6296 multilibs for -fPIC, rather use -fPIC -mstrict-align
6298 * config/rs6000/t-ppc: Delete.
6299 * config/rs6000/vxppc.h: Don't include sysv4.h.
6300 * config/rs6000/vxppcle.h: Delete.
6301 * configure.in: Use multiple header files for p2pc ELF targets
6302 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
6303 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
6304 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
6305 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
6306 always available for these platforms.
6308 2000-04-04 Richard Henderson <rth@cygnus.com>
6310 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
6312 2000-04-04 Stan Cox <scox@cygnus.com>
6314 * Makefile.in: Add rules for regrename.o
6315 * regrename.c: New file.
6316 * rtl.h (regrename_optimize): Add prototype.
6317 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
6318 (compile_file, decode_d_option): Add support for -frename-registers.
6319 (rest_of_compilation): Call regrename_optimize.
6320 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
6323 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
6325 * Makefile (gccbug): New target.
6326 (doc): Depend on it.
6327 * gcc.texi (Bugs): Link subnodes.
6329 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
6330 Document severities, priorities, and classes in bug form.
6332 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
6334 * cpplex.c (trigraph_map, speccase): Combine into single
6336 (NORMAL, NONTRI): New macros.
6337 (_cpp_read_and_prescan): Change to use unified table. Use
6338 is_hspace to test for whitespace.
6340 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
6341 definition that doesn't provoke the "empty body in an
6342 if-statement" warning.
6344 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
6346 * builtins.c (expand_builtin_strlen): Force the source to
6347 be a memory address.
6349 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6351 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
6353 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
6355 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
6356 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
6357 (ECF_IS_CONST): Rename to ECF_CONST.
6358 (special_function_p): Make static, change interface.
6359 (flags_from_decl_or_type, try_to_integrate): Break out from ...
6360 (expand_call) ... here; convert number of variables to flags.
6361 (emit_library_call_vlue_1): Likewise.
6362 (setjmp_call_p): New function.
6363 (initialize_argument_information): Accepts flags as argument;
6365 (precompute_arguments): Likewise.
6366 * tree.h (special_function_p): Remove.
6367 (setjmp_call_p): Add prototype.
6369 2000-04-04 Jakub Jelinek <jakub@redhat.com>
6371 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
6372 so that addresses are offsetable by up to 16 bytes.
6373 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
6374 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
6377 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
6378 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
6379 (movsf): Don't force any constant to memory if target is integer
6381 Move fp_zero_operand check below the const0_rtx check.
6382 (movtf): Likewise. Also allow fp_zero_operand for stores into
6384 (movdf): Likewise. Also allow fp_zero_operand for stores into
6385 memory and into integer hard registers.
6386 (clear_df, clear_dfp, movdf_const_intreg_sp32,
6387 movdf_const_intreg_sp64): Remove.
6388 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
6390 (movdf_no_e_insn_v9_sp32): New pattern.
6391 (movdf_insn_v9only): Remove.
6392 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
6393 (movdf_insn_sp64): Remove.
6394 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
6395 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
6396 (following splits): Rewrite conditions. Add two new splits
6397 for storing 0.0 into memory and registers.
6398 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
6399 (movtf_insn_sp32): Redo constraints and conditions.
6400 (movtf_insn_vis_sp32): New pattern.
6401 (movtf_no_e_insn_sp32): Redo constraints and conditions.
6402 (movtf_insn_hq_sp64): Likewise.
6403 (movtf_insn_hq_vis_sp64): New pattern.
6404 (movtf_insn_sp64): Redo constraints and conditions.
6405 (movtf_insn_vis_sp64): New pattern.
6406 (movtf_no_e_insn_sp64): Redo constraints and conditions.
6407 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
6409 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
6410 -mvis or -m64 to take down the number of various reload patterns.
6412 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
6414 * pa/pa-64.h: New file.
6415 * pa/pa64-regs.h: New file.
6416 * pa/pa64-start.h: New file.
6417 * pa/t-pa64: New file.
6418 * pa/xm-pa64hpux.h: New file.
6420 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6422 * sparc.c (output_restore_regs): Prototype.
6423 (sparc_emit_float_lib_cmp): Constification.
6425 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
6427 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
6430 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
6431 (get_value_hash, hash_rtx): Likewise.
6433 * ssa.c (compute_conservative_reg_partition): Prototype.
6435 * tree.c (mark_hash_entry): Prototype.
6437 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
6439 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
6440 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
6441 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
6443 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
6444 * objc/lang-specs.h: Likewise.
6446 2000-04-03 Neil Booth <NeilB@earthling.net>
6448 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
6449 and SYNTAX_ERROR2. Replace `' in messages with ''.
6450 (op_to_str): Make re-entrant.
6451 (_cpp_parse_expr): Implement new error macros. Use | rather
6452 than || to logically or 2 boolean integers. Simply expression
6453 checking we have a left operand iff needed.
6455 2000-04-03 Nick Clifton <nickc@cygnus.com>
6457 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
6459 2000-04-03 Philip Blundell <philb@gnu.org>
6461 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
6463 2000-04-03 Felix Lee <flee@cygnus.com>
6465 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
6466 (run_shell): Use it.
6468 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
6470 * Makefile.in (stmp-int-hdrs): Make include subdir here...
6471 (stmp-fixproto): ...rather than here.
6473 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
6475 * pa.c (print_operand): Compute 'base' only inside the code paths
6478 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
6480 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
6483 2000-04-03 Philipp Thomas <pthomas@suse.de>
6485 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
6487 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
6489 * Makefile.in (alias.o): Depend on $(TREE_H).
6491 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
6493 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
6495 * cpplib.c (_cpp_handle_directive): Improve warnings for
6496 traditional C and indented directives.
6498 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
6499 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
6500 fixinc/inclhack.def: Indent the # of #include_next one space.
6501 * cp/rtti.c: Un-indent #if and #endif.
6503 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
6504 syntax error, but an error has already been printed.
6505 * cpplex.c (_cpp_parse_assertion): Give a more specific error
6506 message when called with nothing remaining on the line.
6507 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
6508 OTHER token, not an ASSERTION.
6509 * cpplib.c (do_assert): When we create a 'base' node, clear
6510 its aschain pointer.
6512 2000-04-02 Neil Booth <NeilB@earthling.net>
6514 * cppexp.c: New typedef op_t. struct operation and struct
6515 token updated to use it.
6516 (op_to_str): New function.
6517 (_cpp_parse_expr): Error messages modified to use op_to_str.
6519 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6521 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
6522 before checking MUST_PASS_IN_STACK.
6524 2000-04-02 Neil Booth <NeilB@earthling.net>
6526 * cppexp.c: New FINISHED dummy token. Combine operator initial
6527 flags and initial priority into a single constant. New
6528 EQUALITY macro. New operator flag SHORT_CIRCUIT.
6529 (_parse_cpp_expr): Implement new constants. Take left operand
6530 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
6531 parse indicated by reducing FINISHED token. Remove new lines
6532 from cpp_error messages.
6534 2000-04-01 Mark Mitchell <mark@codesourcery.com>
6536 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
6539 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
6541 * cpplib.c: Include symcat.h. Add 'origin' field to struct
6542 directive. Add origin values to DIRECTIVE_TABLE. Generate
6543 the strings and function names on the fly. Take the #sccs
6544 entry out of the table if SCCS_DIRECTIVE is not defined.
6545 (_cpp_handle_directive): Decide if the # was at the beginning
6546 of the line here. Issue -pedantic warnings for extended
6547 directives here. Warn about K+R directives with the #
6548 indented, and C89/extended directives with the # not indented,
6550 (do_import, do_include_next, do_warning, do_ident, do_sccs,
6551 do_assert, do_unassert): Don't issue pedantic warning here.
6553 * cpphash.h: Add CPP_WTRADITIONAL macro.
6554 * cpplib.h (struct cpp_options): Rename warn_stringify to
6555 warn_traditional; update comments.
6556 * cppinit.c (handle_option): Set warn_traditional not
6558 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
6559 CPP_WTRADITIONAL (pfile).
6560 * cpplex.c (_cpp_lex_token): Don't decide if directives should
6561 be ignored in -traditional mode here.
6563 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
6564 to initialize speccase[] and trigraph_map[]. Delete all
6565 references to pfile->input_speccase. Always treat '?' as a
6566 special character. Remove table-initialization code from
6567 _cpp_init_input_buffer.
6569 * cpplib.h (struct cpp_reader): Remove input_speccase field.
6570 * cppinit.c (cpp_cleanup): Don't free input_speccase.
6572 2000-04-01 Richard Henderson <rth@cygnus.com>
6574 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
6575 (mostlyclean): Likewise.
6577 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
6578 (struct dump_file_info, enum dump_file_index, dump_file): New.
6579 (open_dump_file): Take a dump_file_index not a suffix, and a decl
6580 not a string. Clean out file if we havn't yet done so. Do nothing
6581 if the dump isn't enabled.
6582 (close_dump_file): Do nothing if the dump isn't open. Dump
6583 graph data if requested.
6584 (dump_rtl, clean_dump_file): Remove.
6585 (compile_file): Don't clean the dump files. Only finalize .bp dump
6586 if flag_test_coverage or flag_branch_probabilities. Only finalize
6587 .combine dump if optimizing. Iterate over dump_file to finalize the
6589 (rest_of_compilation): Update for open_dump_file/close_dump_file.
6590 Convert all uses of dump_rtl.
6591 (decode_d_option): Iterate over dump_file to implement 'a' and to
6592 locate pass-specific dumps.
6594 2000-04-01 Neil Booth <NeilB@earthling.net>
6596 * cppexp.c: Redefine priority constants.
6597 (_cpp_parse_expr): Replace left and right priority scheme with
6598 single priority logic. Move LOGICAL to same place as COMPARE.
6599 Remove bogus check for multiple unary +/- operators.
6601 2000-04-01 Neil Booth <NeilB@earthling.net>
6603 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
6604 within the switch statement. Binary operations break out of
6605 the switch naturally. '(' tokens handled by forcing
6606 immediate shift. ')' handled by forcing immediate reduce to
6607 the previous '('. New error messages.
6609 2000-03-31 Geoff Keating <geoffk@cygnus.com>
6611 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
6612 part', it's already in use. Use %K instead. Add a return at the
6613 end of what is now %K.
6614 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
6616 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
6618 * builtins.c (expand_builtin_apply): Pass proper parameters to
6619 allocate_dynamic_stack_space.
6620 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
6621 update stack_pointer_delta; do not update arg_size_so_far.
6622 (compute_argument_block_size): Use stack_delta instead of
6623 stack_pointer_pending and arg_size_so_far.
6624 (expand_call): Add sanity checking for stack_pointer_delta;
6625 save and restore stack_pointer_delta for SIB, use
6626 stack_pointer_delta for alignment; do not update arg_space_so_far.
6627 (emit_library_call_value): Use stack_pointer_delta for alignment.
6628 (store_one_arg): Do not update arg_space_so_far.
6629 * explow.c (adjust_stack, anti_adjust_stack): Update
6630 stack_pointer_delta.
6631 (allocate_dynamic_stack_space): Add sanity checking for
6632 stack_pointer_delta.
6633 * expr.c (init_expr, clear_pending_stack_adjust): Clear
6634 stack_pointer_delta.
6635 (emit_push_insn): Update stack_pointer_delta.
6636 * function.h (struct expr_status): Add x_stack_pointer_delta;
6637 remove x_arg_space_so_far.
6638 (arg_space_so_far): Remove.
6639 (stack_pointer_delta): New macro.
6641 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
6643 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
6644 Reorder struct cpp_options and struct cpp_reader for better
6645 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
6646 takes two args. Change all 'char' flags to 'unsigned char'.
6647 Move show_column flag into struct cpp_options. Don't
6648 prototype cpp_options_init.
6649 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
6650 cppinit.c, cpplex.c, cpplib.c:
6651 Replace CPP_OPTIONS (pfile)->whatever with
6652 CPP_OPTION (pfile, whatever), and likewise for
6653 opts = CPP_OPTIONS (pfile); ... opts->whatever;
6655 * cppinit.c (merge_include_chains): Take a cpp_reader *.
6656 Extract CPP_OPTION (pfile, pending) and work with that
6658 (cpp_options_init): Delete.
6659 (cpp_reader_init): Turn on on-by-default options here.
6660 Allocate the pending structure here.
6661 (cl_options, enum opt_code): Define these from the same table,
6662 kept in a large macro. Add -fshow-column and -fno-show-column
6665 * cpperror.c (v_message): If show_column is off, don't print
6668 * cppmain.c: Update for new interface.
6669 * fix-header.c: Likewise.
6671 2000-03-30 Geoff Keating <geoffk@cygnus.com>
6673 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
6675 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
6676 are passed to any invocation of AR_FOR_TARGET.
6677 (AR_CREATE_FOR_TARGET): New macro.
6678 (AR_EXTRACT_FOR_TARGET): New macro.
6679 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
6680 AR_EXTRACT_FOR_TARGET.
6681 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
6682 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
6683 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
6684 AR_EXTRACT_FOR_TARGET to sub-makes.
6686 2000-03-31 Neil Booth <NeilB@earthling.net>
6688 * cppexp.c: Delete SKIP_OPERAND. Correct priority
6690 (_cpp_parse_expr): Check for multiple unary +/- operators.
6691 Correct priorities of ':' and '?'. Treat ')' as having a
6692 value. Ensure conditional expression is not void.
6694 2000-03-31 Mark Mitchell <mark@codesourcery.com>
6696 * alias.c (canon_rtx): Make it global.
6697 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
6699 * cse.c (struct table_elt): Add canon_exp.
6701 (invalidate): Canonicalize expressions only once.
6702 * rtl.h (canon_rtx): Declare.
6704 2000-03-30 Mark Mitchell <mark@codesourcery.com>
6706 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
6707 * alias.c (reg_known_value): Add comments.
6708 (init_alias_analysis): Likewise.
6709 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
6711 (cse_basic_block): Fix typo in comment.
6712 * emit-rtl.c: Include hashtab.h.
6713 (const_int_htab): New variable.
6714 (const_int_htab_hash): New function.
6715 (const_int_htab_eq): Likewise.
6716 (rtx_htab_mark_1): Likewise.
6717 (rtx_htab_mark): Likewise.
6718 (gen_rtx_CONST_INT): Cache all CONST_INTs.
6719 (unshare_all_rtx): Fix formatting.
6720 (init_emit_once): Initialize const_int_htab.
6721 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
6723 * rtl.texi: Document the fact that all CONST_INTs with the same
6726 2000-03-30 Richard Henderson <rth@cygnus.com>
6728 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
6730 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
6732 * configure.in: Comment out --enable-c-cpplib stanza.
6733 * configure: Regenerate.
6735 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6737 * expr.c (store_constructor): Properly compute displacement and
6738 alignment when offset is variable.
6740 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
6741 cases of alignment in bytes.
6743 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
6745 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
6746 since it is used to generate c-parse.y.
6747 * objc-parse.c, objc-parse.y: Regenerated.
6749 * function.c (expand_function_end): Pass alignment argument to
6750 emit_block_move in bits, not bytes.
6752 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6754 * expr.c (move_by_pieces_ninsns): Fix one more missing align
6757 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
6759 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
6760 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
6761 * function.c (assign_parms): Likewise.
6762 * integrate.c (expand_inline_function): Likewise.
6763 * stmt.c (expand_decl): Likewise.
6764 (copy_rtx_and_substitute): Likewise.
6765 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
6766 (clear_by_pieces): Fix error in last change.
6767 * emit-rtl.c (init_emit): Set known registers alignment in bits.
6768 * function.h (regno_pointer_align): Now unsigned.
6769 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
6771 * config/i386/i386.c (aligned_operand): Likewise.
6772 * config/sparc/sparc.c (mem_min_alignment): Likewise.
6773 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
6774 (unaligned_memory_operand): Likewise.
6775 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
6776 Also make alignments and sizes unsigned and some whitespace cleanup.
6777 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
6779 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
6780 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
6781 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
6782 (expand_builtin_memset): Likewise, but to clear_storage.
6783 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
6784 (restore_fixed_argument_area): Likewise.
6785 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
6786 (load_register_parameters): Likewise, to emit_group_load.
6787 (expand_call): Likewise, to emit_group_store and emit_block_move.
6788 (emit_library_call_value_1): Likewise, to emit_block_move.
6789 (store_one_arg): Likewise, and to emit_push_insn.
6790 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
6791 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
6792 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
6793 (emit_block_move, emit_group_load, emit_group_store): Likewise.
6794 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
6795 (expand_assigment, store_expr, store_constructor_field): Likewise.
6796 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
6797 (store_constructor, store_field, get_inner_reference): Likewise.
6798 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
6799 (expand_expr, case COMPONENT_REF): Likewise.
6800 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
6801 and positions; reindent code.
6802 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
6803 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
6804 (assign_parms): Likewise to emit_group_store.
6805 * optabs.c (prepare_cmp_insn): Alignment is in bits.
6806 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
6807 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
6808 (expand_return): Likewise to {extract,store}_bit_field.
6809 * stor-layout.c (get_mode_alignment): Minor cleanup.
6810 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
6811 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
6813 2000-03-29 Nick Clifton <nickc@cygnus.com>
6815 * config/arm/arm.h: Undo effects of previous delta:
6816 (ASM_SPEC): Do not define.
6817 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
6819 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
6822 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
6824 * cppinit.c (cpp_start_read): Call initialize_dependency_output
6825 only after reading in the primary source file.
6827 2000-03-29 Geoff Keating <geoffk@cygnus.com>
6829 * c-common.c (c_common_nodes_and_builtins): The first parameter to
6830 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
6831 or a reference to a va_list.
6832 * builtins.c (stabilize_va_list): Simplify now we don't have to
6833 work around C array address decay.
6834 * c-typeck.c (convert_for_assignment): Handle assignment to
6835 a reference parameter by taking the address of the RHS.
6836 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
6837 (va_copy): Likewise.
6838 (__va_copy): Likewise.
6839 * ginclude/varargs.h (va_start): Likewise.
6840 (__va_copy): Likewise.
6842 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
6844 * i386/djgpp.h: Remove extraneous "+".
6846 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
6848 * calls.c (expand_call): Fix typo in last change.
6850 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
6852 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
6855 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6857 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
6858 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
6859 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
6860 * tree.c (bit_position, byte_position): Likewise.
6861 * tree.h: Declare new functions.
6863 2000-03-29 Nick Clifton <nickc@cygnus.com>
6865 * config/arm/arm.c: Minor formatting changes/
6866 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
6868 (ASM_SPEC): Define if not already defined.
6870 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
6872 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
6875 2000-03-29 Jakub Jelinek <jakub@redhat.com>
6877 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
6878 value, don't output it as unsigned.
6880 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
6882 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
6884 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6886 * c-common.c (c_common_nodes_and_builtins): Don't special case
6887 cplus_mode when declaring builtin bzero/bcmp, always avoid
6888 prototype arguments.
6890 2000-03-29 Bruce Korb <bkorb@gnu.org>
6892 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
6895 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
6897 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
6898 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
6899 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
6900 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
6901 (save_fixed_argument_area, restore_fixed_argument_area):
6902 conditionize by #ifdef REG_PARM_STACK_SPACE only.
6903 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
6904 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
6905 (precompute_register_parameters): Avoid #ifdefs on
6906 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
6907 (stire_one_args): Likewise.
6908 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
6909 (emit_library_call_value_1): Likewise.
6910 (compute_argument_block_size): Align to STACK_BOUNDARY only for
6911 ACCUMULATE_OUTGOING_ARGS.
6912 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
6914 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
6915 (use_crosses_set_p): Likewise.
6916 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
6917 #define ACCUMULATE_OUTGOING_ARGS 1.
6918 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
6920 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
6922 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
6923 (TARGET_SWITCHES): Add push-args, no-push-args,
6924 accumulate-outgoing-args and no-accumulate-outgoing-args.
6925 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
6926 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
6927 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
6929 (emit_push_insn): Likewise.
6930 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6931 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
6932 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6933 (STACK_DYNAMIC_OFFSET): Define correctly for both
6934 ACCUMULATE_OUTGOING_ARGS and normal mode.
6935 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
6936 * tm.texi (PUSH_ARGS): Document.
6937 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
6939 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
6941 * flags.h (flag_optimize_sibling_calls): Declare.
6942 * calls.c (expand_call): Fail sibcall when
6943 !flag_optimize_sibling_calls
6944 * invoke.texi (flag_optimize_sibling_calls): Document.
6945 * toplev.c (flag_optimize_sibling_calls): New global variable.
6946 (f_options): Add flag_optimize_sibling_calls.
6947 (rest_of_compilation): Conditionize
6948 optimize_sibling_and_tail_recursive_calls by
6949 flag_optimize_sibling_calls.
6950 (main): Set flag_optimize_sibling_calls for -O2.
6951 * stmt.c (expand_return): Conditionize tail recursion by
6952 flag_optimize_sibling_calls.
6954 2000-03-29 Richard Henderson <rth@cygnus.com>
6956 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
6957 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
6959 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
6961 * except.c (add_eh_table_entry): Mark type_info's as referenced.
6963 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6965 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
6967 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
6968 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
6969 * config/rs6000/aix.h: then modified likewise.
6971 2000-03-28 Richard Henderson <rth@cygnus.com>
6973 * rtl.h: Redistribute enum reg_note documentation.
6974 Kill trailing whitespace.
6975 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
6976 Kill trailing whitespace.
6978 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
6980 * cppfiles.c (hash_IHASH): Just return i->hash.
6981 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
6982 htab_find_with_hash.
6983 (cpp_read_file): Likewise.
6984 (find_include_file): Likewise. Properly initialize
6985 ih->nshort. Share ih->name and ih->nshort if possible.
6986 * cpphash.c (_cpp_calc_hash): New function.
6987 (hash_HASHNODE): Just return h->hash.
6988 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
6989 htab_find_with_hash.
6990 * cpphash.h: Prototype _cpp_calc_hash.
6991 * cppinit.c (initialize_builtins): Provide a valid hash
6992 to _cpp_make_hashnode, using _cpp_calc_hash.
6994 * cpphash.c (collect_expansion): # is not a special character
6995 in object-like macros. In -traditional mode, /**/ is not
6996 token paste at the beginning or end of the line.
6997 * cpplib.c (do_include, do_import, do_include_next): If
6998 parse_include fails, return immediately.
7000 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
7002 * config/arm/arm.md (return peepholes): Update to reflect the new
7004 * config/arm/arm.c (arm_volatile_func): Also check
7005 current_function_nothrow.
7006 (output_return_instruction, output_func_prologue): Use it.
7007 (arm_output_epilogue, arm_expand_prologue): Likewise.
7009 2000-03-27 Tom Tromey <tromey@cygnus.com>
7011 * gcc.c (handle_braces): In {x*...} case, break out of loop if
7014 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7016 * expr.c (store_constructor): SIZE now signed.
7017 For EXPR_SIZE, don't evaluate size; just needed if constant.
7018 * fold-const.c (fold): Fix a number of cases when folded tree is
7020 * function.c (flush_addressof): Reenable.
7021 * tree.h (flush_addressof): Likewise.
7022 * toplev.c (independent_decode_option): Look at strings_processed.
7023 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
7025 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
7027 * sibcall.c (indentify_call_return_value): Find last call in the chain;
7028 Allow stack adjustment after function call.
7030 * regmove.c (struct csa_memlist): Make mem field rtx *.
7031 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
7032 (try_apply_stack_adjustment): Replace whole MEM rtx.
7033 (combine_stack_adjustments_for_block): Update calls
7034 to record_one_stack_ref.
7036 2000-03-28 Neil Booth <NeilB@earthling.net>
7038 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
7039 '\\' rather than a null character, so nulls are not special. Fix
7040 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
7041 speed trigraph conversion.
7042 (_cpp_init_input_buffer): Initialize trigraph map.
7044 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7046 * config/i386/i386.c (output_387_binary_op): Correct intel
7047 mode assembly output, and add spaces after commas in AT&T
7048 output. Correct Unixware assembler comment. Document input
7049 constraints. Comment fp operations. Reduce profligate buffer
7050 size. Remove extraneous abort. Localize temp var.
7051 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
7052 (output_fix_trunc): Add spaces after commas in assembly output.
7054 2000-03-27 Richard Henderson <rth@cygnus.com>
7056 * i386-protos.h (ix86_match_ccmode): Declare.
7057 * i386.c (ix86_match_ccmode): New.
7058 (ix86_expand_fp_compare): Update for pattern renames.
7059 (ix86_expand_strlensi_unroll_1): Likewise.
7060 * i386.h (EXTRA_CC_MODES): Add CCZ.
7061 (SELECT_CC_MODE): Use it for EQ/NE zero.
7062 * i386.md (cmpsi_ccz_1): New.
7064 (*testsi_ccz_1): New.
7065 (testqi_ccz_1): New.
7066 (cmpsi_ccno_1): Rename from cmpsi_0.
7067 (testsi_ccno_1): Rename from testsi_1.
7068 (testqi_ccno_1): Rename from testqi_1.
7069 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
7070 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
7071 (*cmphi_0): Use ix86_match_ccmode.
7072 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
7073 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
7074 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
7075 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
7076 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
7077 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
7078 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
7079 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
7080 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
7081 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
7082 (appropriate peepholes): Likewise.
7083 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
7084 (*subsi_3, *subhi_3, *subqi_3): Remove.
7085 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
7086 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
7087 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
7088 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
7089 (x86_shift_adj_1): Use CCZ.
7090 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
7092 2000-03-27 Stan Cox <scox@cygnus.com>
7094 * resource.h (mark_resource_type): New.
7095 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
7096 find_free_register): Use mark_resource_type.
7097 (mark_set_resources): Change include_delayed_effects
7098 to mark_resource_type.
7099 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
7100 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
7101 Use mark_resource_type.
7103 2000-03-27 Richard Henderson <rth@cygnus.com>
7105 * i386.md (call_pop_0, call_value_pop_0): New.
7106 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
7107 (call_value_pop_1): Likewise.
7108 (call_0, call_value_0): New.
7109 (call_1, call_value_1): Remove constraint from unused arg.
7111 2000-03-27 Nick Clifton <nickc@cygnus.com>
7113 * invoke.texi (Spec Files): Document new spec % command created by
7114 Tom Tromey's recent patch.
7116 2000-03-27 Jakub Jelinek <jakub@redhat.com>
7118 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
7121 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7123 * expr.c (expand_assignment): Fix typo in last change.
7125 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
7127 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7129 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
7130 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
7131 and DECL_INLINE if FUNCTION_DECL.
7132 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
7133 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
7134 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
7135 (combine_parm_decls): Likewise.
7136 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
7137 * print-tree.c (print_node): Likewise.
7138 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
7139 DECL_TRANSPARENT_UNION on proper decl types.
7140 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
7141 * stor-layout.c (layout_decl): Only check DECL_PACKED and
7142 DECL_BIT_FIELD of FIELD_DECL.
7143 * tree.h (DECL_RESULT_FLD): New macro.
7145 * expr.c (expand_assignment): Add code to handle variable-sized
7148 2000-03-26 Richard Henderson <rth@cygnus.com>
7150 * calls.c (expand_call): Pass parms not original exp to
7151 optimize_tail_recursion. Mind return value instead of looking
7153 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
7154 call_expr. Move checks for call_expr and current_function_decl ...
7155 (expand_return): ... here.
7157 2000-03-26 Tom Tromey <tromey@cygnus.com>
7159 * gcc.c (handle_braces): Recognize `%{<S}' construct.
7160 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
7162 (process_command): Use them.
7163 (check_live_switch): Likewise.
7164 (give_switch): Skip ignored switches.
7166 2000-03-26 Jan Hubicka <jh@suse.cz>
7168 * jump.c (jump_optimize_1): Fix typo in elide optimizations
7169 for minimal jump pass test.
7171 2000-03-26 Mark Mitchell <mark@codesourcery.com>
7173 * integrate.c (function_cannot_inline_p): Do inline functions that
7176 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7178 * stor-layout.c (layout_type, set_sizetype): early_type_list is
7179 now a list of TREE_LIST entries, not types.
7180 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
7182 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
7183 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
7185 * config/mips/mips.c (function_arg): Likewise; also remove cast
7186 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
7187 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
7188 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
7189 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
7190 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
7191 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
7192 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
7193 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
7194 num_adjusts now unsigned.
7195 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
7196 * config/sparc/sparc.c (struct function_arg_record_value_parms):
7198 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
7199 as is BITPOS variable; use host_integerp and int_bit_position.
7200 (function_arg_record_value_2): Likewise.
7201 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
7202 Variable REGNO now unsigned.
7203 (function_arg_record_value): NREGS now unsigned.
7205 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
7207 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
7209 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7211 * Rework fields used to describe positions of bitfields and
7212 modify sizes to be unsigned and use HOST_WIDE_INT.
7213 * alias.c (reg_known_value_size): Now unsigned.
7214 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
7215 (really_start_incremental_init): Use bitsize_zero_node.
7216 (push_init_level, pop_init_level, output_init_element): Likewise.
7217 Use bitsize_unit_node and bitsize_one_node.
7218 (output_pending_init_elements, process_init_element): Likewise.
7219 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
7220 (make_extraction): Position and length HOST_WIDE_INT and unsigned
7221 HOST_WIDE_INT, respectively.
7222 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
7223 (num_sign_bit_copies): Returns unsigned.
7224 BITWIDTH now unsigned; rework arithmetic.
7225 Remove recursive call from arg to MAX.
7226 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
7227 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
7229 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
7230 (find_split_point, expand_compound_operation, make_extraction): LEN
7231 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
7232 (make_field_assignment): Likewise.
7233 (combine_simplify_rtx): Add cast.
7234 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
7235 (force_to_mode): WIDTH now unsigned; add cast.
7236 (if_then_else_cond): SIZE now unsigned.
7237 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
7238 (extended_count): Now returns unsigned.
7239 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
7240 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
7241 (simplify_comparison): MODE_WIDTH now unsigned.
7242 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
7243 (mark_used_regs_combine): Likewise; rework arithmetic.
7244 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
7245 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
7246 (record_promoted_value): REGNO now unsigned.
7247 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
7248 (get_last_value): REGNO now unsigned.
7249 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
7250 (reg_dead_regno, reg_dead_endregno): Now unsigned.
7251 (remove_death): Arg REGNO now unsigned.
7252 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
7253 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
7255 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
7256 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
7257 (struct cse_reg_info): REGNO now unsigned.
7258 (cached_regno): Now unsigned.
7259 (REGNO_QTY_VALID_P): Add cast.
7260 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
7261 (remove_invalid_regs): Likewise.
7262 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
7263 as are variables END and I.
7264 (get_cse_reg_info, insert): Likewise.
7265 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
7266 (canon_hash): Likewise.
7267 (insert_regs, lookup_for_remove): REGNO now unsigned.
7268 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
7270 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
7271 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
7272 * emit-rtl.c (subreg_realpart_p): Add cast.
7273 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
7274 (operand_subword_force): Arg I is now unsigned.
7275 * except.c (eh_regs): Variable I is now unsigned.
7276 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
7277 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
7278 length is unsigned HOST_WIDE_INT; likewise for internal variables.
7279 (store_split_bit_field, extract_fixed_bit_field): Likewise.
7280 (extract_split_bit_field, store_bit_field, extract_bit_field):
7282 * expr.c (store_constructor_fields, store_constructor, store_field):
7283 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
7284 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
7285 (do_jump): Likewise.
7286 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
7287 MAX_SIZE is now unsigned.
7288 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
7289 (emit_group_store): Likewise.
7290 (emit_move_insn): I now unsigned.
7291 (store_constructor): Use host_integerp, tree_low_cst, and
7293 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
7294 Rework all calculations to use trees and new fields.
7295 * expr.h (promoted_input_arg): Regno now unsigned.
7296 (store_bit_field, extract_bit_field): Adjust types of pos and size.
7297 (mark_seen_cases): Arg is HOST_WIDE_INT.
7298 * flow.c (verify_wide_reg_1): REGNO now unsigned.
7299 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
7300 precisions and alignments are unsigned.
7301 (optimize_bit_field_compare, fold_truthop): Likewise.
7302 (int_const_binop): Adjust threshold for size_int_type_wide call.
7303 (fold_convert): Likewise.
7304 (size_int_type_wide): Make table larger and fix thinko that only
7305 had half of table used.
7306 (all_ones_mask_p, fold): Precisions are unsigned.
7307 * function.c (put_reg_info_stack): REGNO is unsigned.
7308 (instantiate_decl): Size is HOST_WIDE_INT.
7309 (instantiate_virtual_regs): I is unsigned.
7310 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
7311 (promoted_input_arg): REGNO is unsigned.
7312 * function.h (struct function): x_max_parm_reg is now unsigned.
7313 * gcse.c (max_gcse_regno): Now unsigned.
7314 (struct null_pointer_info): min_reg and max_reg now unsigned.
7315 (lookup_set, next_set): REGNO arg now unsigned.
7316 (compute_hash_table): REGNO and I now unsigned.
7317 (handle_avail_expr): regnum_for_replacing now unsigned.
7318 (cprop_insn): REGNO now unsigned.
7319 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
7320 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
7321 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
7322 * hard-reg-set.h (reg_class_size): Now unsigned.
7323 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
7324 * jump.c (mark_modified_reg): I now unsigned; add cast.
7325 (rtx_equal_for_thread_p): Add cast.
7326 * loop.c (max_reg_before_loop): Now unsigned.
7327 (struct_movable): REGNO now unsigned.
7328 (try_copy_prop): REGNO arg unsigned.
7329 (regs_match_p): XN and YN now unsigned.
7330 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
7331 (strength_reduce): Likewise; NREGS also unsigned.
7332 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
7333 * loop.h (struct iv_class): REGNO now unsigned.
7334 (max_reg_before_loop, first_increment_giv, last_increment_giv):
7336 * machmode.h (mode_size, mode_unit_size): Now unsigned.
7337 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
7338 * optabs.c (expand_binop): I and NWORDS now unsigned.
7339 (expand_unop): I now unsigned.
7340 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
7341 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
7342 * real.c (significand_size): Now returns unsigned.
7343 * real.h (significand_size): Likewise.
7344 * regclass.c (reg_class_size): Now unsigned.
7345 (choose_hard_reg_mode): Both operands now unsigned.
7346 (record_reg_classes): REGNO and NR now unsigned.
7347 (reg_scan): NREGS now unsigned.
7348 (reg_scan_update): old_max_regno now unsigned.
7349 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
7350 * reload.c (find_valid_class): BEST_SIZE now unsigned.
7351 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
7352 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
7353 Likewise for variable R.
7354 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
7355 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
7356 (find_equiv_reg): Add casts.
7357 (regno_clobbered_p): Arg REGNO now unsigned.
7358 * reload.h (struct reload): NREGS now unsigned.
7359 (refers_to_regno_for_reload_p): Regno args are unsigned.
7360 (regno_clobbered_p): Likewise.
7361 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
7362 (compute_use_by_pseudos): REGNO now unsigned.
7363 (find_reg): I and J now unsigned, new variable K, and change loop
7364 variables accordingly; THIS_NREGS now unsigned.
7365 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
7366 (spill_hard_reg): REGNO arg now unsigned; add casts.
7367 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
7368 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
7369 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
7370 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
7371 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
7372 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
7373 (emit_reload_insns): REGNO now unsigned.
7374 (reload_cse_move2add): Add cast.
7375 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
7377 * resource.c (mark_referenced_resources, mark_set_resources): New
7378 variable R; REGNO and LAST_REGNO now unsigned.
7379 (mark_target_live_regs): J and REGNO now unsigned.
7380 * rtl.c (mode_size, mode_unit_size): Now unsigned.
7381 * rtl.h (union rtunion_def): New field rtuint.
7382 (XCUINT): New macro.
7383 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
7384 (operand_subword, operand_subword_force): Word number is unsigned.
7385 (choose_hard_reg_mode): Operands are unsigned.
7386 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
7387 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
7388 (regno_use_in, combine_instructions, remove_death): Likewise.
7389 (reg_scan, reg_scan_update): Likewise.
7390 (extended_count): Return is unsigned.
7391 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
7392 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
7393 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
7394 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
7395 (reg_reg_last_1): FIRS and LAST now unsigned.
7396 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
7397 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
7399 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
7400 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
7401 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
7402 (replace_regs): Arg NREGS now unsigned.
7403 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
7404 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
7405 (simplify_binary_operation): Likewise.
7406 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
7407 THIS_LAST now unsigned.
7408 (cselib_record_set): Add cast.
7409 * ssa.c (ssa_max_reg_num): Now unsigned.
7410 (rename_block): REGNO now unsigned.
7411 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
7413 (all_cases_count): Just return -1 not -2.
7414 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
7415 Rework tests to use trees whenever possible.
7416 Use host_integerp and tree_low_cst.
7417 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
7418 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
7419 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
7420 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
7421 (smallest_mode_for_size): Likewise.
7422 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
7423 KNOWN_ALIGN is now an alignment, so simplify code.
7424 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
7425 (start_record_layout): Renamed from new_record_layout_info.
7426 Update to new fields.
7427 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
7429 (place_union_field): Renamed from layout_union_field.
7430 Update to use new fields in rli.
7431 (place_field): Renamed from layout_field.
7432 Major rewrite to use new fields in rli; pass alignment to layout_decl.
7433 (finalize_record_size): Rework to use new fields in rli and handle
7435 (compute_record_mode): Rework to simplify and to use new DECL fields.
7436 (finalize_type_size): Make rounding more consistent.
7437 (finish_union_layout): Deleted.
7438 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
7439 (layout_type, case RECORD_TYPE): Call new function names.
7440 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
7441 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
7442 (get_best_mode): UNIT is now unsigned; remove casts.
7443 * tree.c (bit_position): Compute from new fields.
7444 (byte_position, int_byte_position): New functions.
7445 (print_type_hash_statistics): Cast to remove warning.
7446 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
7447 (build_index_type): Likewise; make subtype of sizetype.
7448 (build_index_2_type): Pass sizetype to build_range_type.
7449 (build_common_tree_nodes): Use size_int and bitsize_int to
7450 initialize nodes; add bitsize_{zero,one,unit}_node.
7451 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
7452 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
7453 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
7454 (DECL_FIELD_BITPOS): Deleted.
7455 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
7456 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
7457 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
7458 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
7459 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
7460 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
7461 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
7462 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
7463 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
7464 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
7465 (DECL_ALIGN): Adjust to new field in union.
7466 (DECL_OFFSET_ALIGN): New field.
7467 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
7468 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
7469 (union tree_decl): Add struct for both aligns.
7470 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
7471 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
7472 (struct record_layout_info): Rework fields to have offset
7473 alignment and byte and bit position.
7474 (start_record_layout, place_field): Renamed from old names.
7475 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
7476 (byte_position, int_byte_position): Likewise.
7477 (get_inner_reference): Change types of position and length.
7478 * unroll.c (unroll_loop): New variable R; use for some loops.
7479 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
7480 (calculate_giv_inc): Arg REGNO now unsigned.
7481 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
7482 * varasm.c (assemble_variable): Clean up handling of size using
7483 host_integerp and tree_low_cst.
7484 (decode_addr_const): Use byte, not bit, position.
7485 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
7486 use tree_low_cst and int_bit_position.
7487 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
7489 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
7491 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
7492 (reorder_block_def): New members eff_head and eff_end.
7493 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
7494 (verify_insn_chain): New function.
7495 (skip_insns_between_block): Add code to skip deleted insns.
7496 Check for note before using.
7497 (chain_reorder_blocks): Replace calls to skip_insns_between_block
7498 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
7499 Check for note before using.
7500 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
7501 (fixup_reorder_chain): Restructure, clean up, defect removal.
7502 (reorder_basic_blocks): Remove last_insn and references to it.
7503 Moved insn chain verification code into a new function (see above).
7504 Delete defective code that sets last insn.
7505 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
7508 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7510 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
7512 2000-03-24 Richard Henderson <rth@cygnus.com>
7514 * tree.c (lang_safe_for_unsave): Remove.
7515 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
7516 allowing for two levels of unsafeness. Remove lang hook.
7517 * tree.h: Update declarations.
7518 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
7519 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
7520 Always fail sibcalls when there are pending cleanups.
7522 2000-03-24 Geoff Keating <geoffk@cygnus.com>
7524 * flow.c (propagate_block): When we delete an ADDR_VEC,
7525 also delete the BARRIER following it if there is one.
7527 2000-03-24 Richard Henderson <rth@cygnus.com>
7529 * builtins.c (expand_builtin_bzero): Convert `length' argument
7532 2000-03-24 Jakub Jelinek <jakub@redhat.com>
7534 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
7535 comparison if regno's are equal.
7536 * calls.c (initialize_argument_informat): Add ecf_flags argument.
7537 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7538 (expand_call): Update caller.
7539 Avoid making a sibling call if argument size of the callee is larger
7540 than argument size of the caller.
7541 Call hard_function_value with outgoing set if in sibcall pass.
7542 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7544 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
7545 Change LEAF_REGISTERS from an array initializer to actual array
7546 identifier. Move static global variable into the function.
7547 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
7548 sequences for leaf functions.
7549 * global.c (global_alloc): Likewise.
7550 * tm.texi (LEAF_REGISTERS): Update documentation.
7552 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
7553 TARGET_FLAT leaf disabling hack.
7554 (LEAF_REGISTERS): Changed from an array initializer to actual array
7555 identifier to avoid duplication and remove the above hack.
7556 (FUNCTION_OK_FOR_SIBCALL): Define.
7557 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
7558 always like call attribute.
7559 (eligible_for_sibcall_delay): New attribute.
7560 (sibcall): New delay type.
7561 (sibcall, sibcall_value, sibcall_epilogue): New expands.
7562 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
7563 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
7564 * config/sparc/sparc.c (sparc_leaf_regs): New array.
7565 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
7567 (output_function_epilogue): Move part of the code into
7568 output_restore_regs.
7569 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
7571 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
7574 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
7575 until infrastructure is finished.
7577 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
7579 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
7580 (save_parm_insns): Not here.
7582 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7584 * builtins.c (expand_builtin_bzero): New function.
7585 (expand_builtin): Handle bzero.
7587 * builtins.def: Add BUILT_IN_BZERO.
7589 * c-common.c (c_common_nodes_and_builtins): Provide builtin
7590 prototype & function for bzero.
7592 2000-03-23 Michael Meissner <meissner@redhat.com>
7594 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
7595 change adding TARGET_FP to the TF floating point insns, except for
7596 trunctfsf2, which generates direct calls to truncdfsf2.
7598 2000-03-23 Geoff Keating <geoffk@cygnus.com>
7600 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
7601 try to protect against middle-end changes that break binary
7603 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
7605 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7607 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
7609 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7611 * calls.c (expand_call): If TARGET is passed by reference and
7612 is readonly, write a CLOBBER.
7614 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7616 * builtins.c (expand_builtin): Handle bcmp.
7618 * builtins.def: Add BUILT_IN_BCMP.
7620 * c-common.c (c_common_nodes_and_builtins): Provide builtin
7621 prototype & function for bcmp.
7623 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
7625 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
7626 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
7627 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
7629 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
7631 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
7632 alternative when using -fp64 -gp32.
7634 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
7636 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
7637 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
7638 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
7640 * frame.h (frame_state): Revert last change.
7641 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
7642 * libgcc2.c (throw_helper): Revert last change.
7644 2000-03-22 Richard Henderson <rth@cygnus.com>
7646 * stmt.c (expand_asm_operands): Don't promote the temporary.
7648 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7650 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
7651 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
7652 c_get_alias_set): Likewise.
7653 * c-decl.c (duplicate_decls): Likewise.
7654 * c-typeck.c (default_conversion,build_unary_op): Likewise.
7655 * calls.c (initialize_argument_information): Likewise.
7656 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
7658 * dwarfout.c (decl_class_context,output_type): Likewise.
7659 * expr.c (get_inner_reference): Likewise.
7660 * fold-const.c (simple_operand_p,fold): Likewise.
7661 * function.c (aggregate_value_p): Likewise.
7662 * stmt.c (expand_asm_operands): Likewise.
7663 * varasm.c (named_section): Likewise.
7665 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
7667 Implement dwarf2 exception handling for the ARM.
7668 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
7669 (DWARF_FRAME_RETURN_COLUMN): Define.
7670 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
7671 REG_FRAME_RELATED_EXPR note.
7672 (emit_sfm): Likewise.
7673 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
7674 * dwarf2out.c (reg_save): Handle saving a register to itself.
7675 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
7676 * except.c (eh_regs): Don't use the static chain reg if it's
7678 * frame.h (frame_state): Add cfa_saved field.
7679 * frame.c (execute_cfa_insn): Set it.
7680 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
7682 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
7684 (instantiate_virtual_regs): Adjust.
7686 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7687 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7688 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
7690 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
7691 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
7693 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7695 * builtins.def: New file.
7697 * Makefile.in (TREE_H): Depend on builtins.def.
7699 * builtins.c (built_in_names): Use builtins.def.
7701 * tree.h (built_in_function): Likewise.
7703 2000-03-22 Mark Mitchell <mark@codesourcery.com>
7705 * tree.c (size_in_bytes): Return size_zero_node, not
7708 2000-03-22 Geoff Keating <geoffk@cygnus.com>
7710 * config/fp-bit.c (pack_d): Correct the case when a denormal
7711 is rounded up and stops being denormal.
7713 2000-03-21 Richard Henderson <rth@cygnus.com>
7715 * config/alpha/alpha.c (function_arg): Check for void_type_node
7716 before using MUST_PASS_IN_STACK.
7718 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
7720 * regmove.c (combine_stack_adjustments_for_block): Check that
7721 the stack pointer is a valid memory address.
7723 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
7725 * calls.c: re-install Mar 16 emit_library_call merge.
7727 2000-03-21 Jakub Jelinek <jakub@redhat.com>
7729 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
7730 we cannot be sure that if reload_completed base register will
7731 be properly aligned.
7733 2000-03-21 Richard Henderson <rth@cygnus.com>
7735 * flow.c (delete_block): Fix typo last change.
7737 2000-03-21 Mark Mitchell <mark@codesourcery.com>
7739 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
7740 not COMPLETE_TYPE_P, to check the type of the expression.
7742 2000-03-21 Michael Meissner <meissner@redhat.com>
7744 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
7745 all floating point insns that just tested the macro
7746 TARGET_HAS_XFLOATING_LIBS.
7747 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
7748 used to only use the gprs.
7750 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
7752 * tree.h (COMPLETE_TYPE_P): New macro.
7753 (COMPLETE_OR_VOID_TYPE_P): New macro.
7754 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
7755 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
7756 * c-aux-info.c (gen_type): Use them.
7757 * c-common.c (c_expand_expr_stmt): Likewise.
7758 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
7759 grokdeclarator, grokparms, finish_struct, start_function,
7760 store_parm_decls, combine_parm_decls): Likewise.
7761 * c-parse.y (cast_expr): Likewise.
7762 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
7763 c_size_in_bytes, c_alignof, build_component_ref,
7764 build_indirect_ref, build_array_ref, convert_arguments,
7765 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
7766 * calls.c (initialize_argument_information): Likewise.
7767 * convert.c (convert_to_integer): Likewise.
7768 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
7769 * dwarfout.c (location_or_const_value_attribute,
7770 output_enumeration_type_die, output_structure_type_die,
7771 output_union_type_die, output_type): Likewise.
7772 * expr.c (safe_from_p, expand_expr): Likewise.
7773 * function.c (assign_parms): Likewise.
7774 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
7775 * tree.c (build_array_type, build_function_type,
7776 build_method_type, build_offset_type, build_complex_type): Likewise.
7777 * c-parse.c, c-parse.h: Regenerated.
7779 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7781 * config/c4x/rtems.h: Include config/rtems.h.
7783 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
7785 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
7786 decl is a FUNCTION_DECL
7788 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
7790 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
7791 function uses output registers. Don't save RP for leaf functions.
7792 Do save RP even if no epilogue.
7793 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
7794 (CALL_USED_REGISTERS): Unmark in registers.
7795 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
7798 2000-03-20 Geoff Keating <geoffk@cygnus.com>
7800 * config/rs6000/rs6000.md (bunordered): New expander.
7801 (bordered): New expander.
7802 (buneq): New expander.
7803 (bunge): New expander.
7804 (bungt): New expander.
7805 (bunle): New expander.
7806 (bunlt): New expander.
7807 (bltgt): New expander.
7809 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
7810 (ccr_bit_negated_p): New function.
7811 (print_operand): For %C, generate appropriate cror for UNEQ,
7812 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
7814 2000-03-20 Andreas Jaeger <aj@suse.de>
7816 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
7819 * tree.h (safe_for_unsave): Prototype.
7821 2000-03-20 Richard Henderson <rth@cygnus.com>
7823 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
7824 (combine_stack_adjustments_for_block): Don't allow sp references
7825 in the side of a set we're not fixing up.
7826 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
7827 after life_analysis.
7829 2000-03-20 Richard Henderson <rth@cygnus.com>
7831 * calls.c (expand_call): Don't bother generating tail call
7832 sequences if there are pending cleanups. Use
7833 expand_start_target_temps/expand_end_target_temps to elide
7834 cleanups created during sibcall expansion.
7836 2000-03-20 Geoff Keating <geoffk@cygnus.com>
7838 * configure.in: Set $IFS to a value if it doesn't already have one
7839 in the --enable-checking handling.
7840 * configure: Regenerate.
7842 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7844 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
7845 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
7848 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
7850 * jump.c (delete_noop_moves): Remove code attempting to
7851 combine stack adjustments.
7853 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7855 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
7856 * except.c (emit_cleanup_handler): Use them.
7857 (expand_end_all_catch): Likewise.
7858 * function.c (fixup_var_refs): Likewise.
7859 (expand_function_end): Clear catch_clauses_last.
7860 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
7861 * except.h (struct eh_status): New field x_catch_clauses_last.
7862 (catch_clauses_last): New define.
7864 * Makefile.in (tree.o): Depend on HASHTAB_H.
7865 * tree.c: Include hashtab.h.
7866 (struct type_hash): Remove next field.
7867 (TYPE_HASH_SIZE): Remove.
7868 (TYPE_HASH_INITIAL_SIZE): New define.
7869 (type_hash_table): Change type to htab_t.
7870 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
7871 mark_hash_entry): New functions.
7872 (init_obstacks): Allocate type hash.
7873 (type_hash_lookup): Use htab functions.
7874 (type_hash_add, mark_type_hash): Likewise.
7875 (dump_tree_statistics): Call print_type_hash_statistics.
7877 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7879 * rs6000/t-aix41: New file.
7881 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
7883 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
7885 * tm.texi (Driver): Fix typos and tweak entry for
7887 Move misplaced STRUCT_FORCE_BLK entry ...
7888 (Storage Layout): ... to here.
7889 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
7891 2000-03-19 Richard Henderson <rth@cygnus.com>
7893 * flow.c (delete_block): Delete the addr_vec along with the block.
7894 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
7897 * fold-const.c (extract_muldiv): Apply type check for defined
7898 overflow to multiply as well as divide.
7900 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
7902 2000-03-18 Mark Mitchell <mark@codesourcery.com>
7904 * emit-rtl.c (remove_unncessary_notes): Check that all
7905 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
7906 associated NOTE_BLOCK.
7907 * function.h (identify_blocks): Update comments.
7908 (reorder_blocks): Declare.
7909 * function.c (identify_blocks): Don't take paramters.
7910 (reorder_blocks): Don't take parameters.
7911 * loop.h (find_loop_tree_blocks): Remove.
7912 (unroll_block_trees): Likewise.
7913 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
7914 reorder_blocks instead of unroll_block_trees.h
7915 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
7916 * stmt.c (find_loop_tree_blocks): Remove.
7917 (unroll_block_trees): Likewise.
7918 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
7919 in whole-function mode.
7920 * tree.h (reorder_blocks): Remove declaration.
7922 * expr.c: Include intl.h.
7923 * Makefile.in (expr.o): Depend on intl.h.
7925 2000-03-18 Richard Henderson <rth@cygnus.com>
7927 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
7929 2000-03-18 Mark Mitchell <mark@codesourcery.com>
7931 * tree.h (tree_index): Remove enumerals for integer types.
7932 (integer_type_kind): New type.
7933 (integer_types): New variable.
7934 (char_type_node): Adjust.
7935 (signed_char_type_node): Likewise.
7936 (unsigned_char_type_node): Likewise.
7937 (short_integer_type_node): Likewise.
7938 (short_unsigned_type_node): Likewise.
7939 (integer_type_node): Likewise.
7940 (unsigned_type_node): Likewise.
7941 (long_integer_type_node): Likewise.
7942 (long_unsigned_type_node): Likewise.
7943 (long_long_integer_type_node): Likewise.
7944 (long_long_unsigned_type_node): Likewise.
7945 * tree.c (integer_types): New variable.
7946 (init_obstacks): Register it as a root.
7948 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
7950 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
7951 NEXT_INSN. Update last insn in chain.
7953 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
7955 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
7956 with TYPE_DECL_SUPPRESS_DEBUG set.
7958 2000-03-18 Richard Henderson <rth@cygnus.com>
7960 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
7962 2000-03-18 Richard Henderson <rth@cygnus.com>
7964 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
7965 care for HALF_PIC_P.
7966 (expander_call_insn_operand): Remove.
7967 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
7968 * i386.h (PREDICATE_CODES): Update.
7969 * i386.md (all call expanders): Remove predicates, remove special
7970 handling for half-pic.
7971 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
7972 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
7973 (sibcall_epilogue): New.
7975 2000-03-17 Richard Henderson <rth@cygnus.com>
7977 * rtlanal.c (single_set): Reject if the parallel has anything
7978 except SET or USE or CLOBBER.
7980 2000-03-17 Jeff Law <law@cygnus.com>
7981 Richard Henderson <rth@cygnus.com>
7983 * Makefile.in (OBJS): Add sibcall.o.
7985 * sibcall.c: New file.
7986 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
7987 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
7988 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
7989 Emit sibcall patterns when requested. Update all callers.
7990 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
7991 elimination seems feasable.
7992 * final.c (leaf_function_p): Sibling calls don't discount being
7994 * flow.c (HAVE_sibcall_epilogue): Provide default.
7995 (find_basic_blocks_1): Sibling calls don't throw.
7996 (make_edges): Make edge from sibling call to EXIT.
7997 (propagate_block): Don't remove sibcall_epilogue insns.
7998 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
7999 (sibcall_epilogue): New.
8000 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
8001 (identify_blocks_1): Likewise. Break out from ...
8002 (identify_blocks): ... here.
8003 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
8004 (reorder_blocks): ... here.
8005 (init_function_for_compilation): Zap prologue/epilogue as varrays.
8006 (record_insns): Extend a varray instead of mallocing new memory.
8007 (contains): Read a varray not array of ints.
8008 (sibcall_epilogue_contains): New.
8009 (thread_prologue_and_epilogue_insns): Emit and record
8010 sibcall_epilogue patterns.
8011 (init_function_once): Allocate prologue/epilogue varrays.
8012 * genflags.c (gen_insn): Treat sibcall patterns as calls.
8013 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
8015 (save_for_inline_nocopy): ... here.
8016 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
8018 (expand_inline_function): ... here.
8019 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
8020 (subst_constants): Handle 'n' formats.
8021 * jump.c (jump_optimize_minimal): New.
8022 (jump_optimize_1): New arg `minimal'; update callers. Elide most
8023 optimizations if it's set.
8024 * rtl.c (copy_rtx): Do copy jump & call for insns.
8025 * rtl.h (struct rtx_def): Document use of jump and call for insns.
8026 (SIBLING_CALL_P): New.
8027 (sibcall_use_t): New.
8028 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
8029 Invoke optimize_sibling_and_tail_recursive_calls.
8030 * tree.c (lang_safe_for_unsave): New.
8031 (safe_for_unsave): New.
8032 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
8034 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
8035 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
8036 (*sibcall_osf_1, *sibcall_value_osf_1): New.
8038 2000-03-17 Mark Mitchell <mark@codesourcery.com>
8040 * objc/objc-act.c (encode_method_prototype): Pass types, not
8041 PARM_DECLs, to int_size_in_bytes.
8043 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
8045 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
8047 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8048 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
8050 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8052 * Clean up usages of TREE_INT_CST_LOW.
8053 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
8054 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
8056 * c-tree.h (min_precision): Move declaration to here.
8057 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
8058 (build_unary_op, add_pending_init): Use bit_position.
8059 (pending_init_member, process_init_element): Likewise.
8060 (really_start_incremental_init, push_init_level, pop_init_level):
8061 Don't make copies of nodes or modify them in place, use consistent
8062 types when tracking positions, and use tree routines computations.
8063 (set_init_index, output_init_element): Likewise.
8064 (output_pending_init_elements, process_init_element): Likewise.
8065 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
8066 tree_low_cst and int_bit_position; also minor cleanup.
8067 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
8068 (print_cst_octal): Precision is unsigned.
8069 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
8070 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
8071 (simple_type_align_in_bits): Result is unsigned int.
8072 Use tree_int_low_cst and host_integerp.
8073 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
8074 (field_byte_offset): Result is HOST_WIDE_INT.
8075 Change types of internal variables so alignments are unsigned int,
8076 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
8077 Use host_integerp, tree_low_cst, and int_bit_position.
8078 (add_bit_offset_attribute): Likewise.
8079 (add_data_member_location_attribute): Use tree_cst_low.
8080 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
8081 (add_bit_size_attribute): Use tree_low_cst.
8082 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
8083 * dwarfout.c: Similar changes to dwarf2out.c.
8084 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
8085 * genoutput.c (n_occurences): Return -1 for null string.
8086 (strip_whitespace): Accept null string and make into function.
8087 (scan_operands): Reflect above changes.
8088 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
8089 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
8090 * ssa.c (rename_registers): Add missing cast of arg to bzero.
8091 * tree.c (int_size_in_bytes): Check for too big to represent.
8092 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
8093 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
8095 (min_precision): Delete from here.
8096 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
8097 and int_bit_position.
8098 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
8099 (encode_method_def): Likewise.
8100 (build_ivar_list_initializer): Use int_bit_position.
8101 (generate_shared_structures): Convert size.
8102 (encode_type, encode_complete_bitfield): Use integer_zerop.
8103 (encode_bitfield): Use tree_low_cst and int_bit_position.
8105 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8107 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
8109 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8111 * call.c (special_function_p): It is only malloc if it returns
8114 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8116 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
8117 (C33_FLAG, TARGET_C3X): Add macros.
8118 (TARGET_SWITCHES): Add -m33 option.
8119 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
8121 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8123 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
8124 (PARALLEL_PACK_FLAG): Delete.
8125 (TARGET_SWITCHES): Update.
8126 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
8128 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8130 * fold-const.c (fold): Fix a few cases when the returned result
8131 is not of the same type as the input.
8133 2000-03-16 Nick Clifton <nickc@cygnus.com>
8135 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
8138 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8140 * libgcc2.h: Move prototypes above macros with the same name.
8141 Wrap some function prototypes in the conditional which indicates
8142 whether they are supported, i.e. "BITS_PER_UNIT == 8".
8144 2000-03-16 Richard Henderson <rth@cygnus.com>
8146 * calls.c: Revert last two changes.
8148 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
8150 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
8151 has exponent 0 is a zero.
8153 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
8154 HASH may already be nonzero. Add code/mode into hash value
8155 immediately after repeat label.
8156 (cselib_lookup): Don't leave the hash table in an inconsistent
8157 state before a hash lookup operation.
8159 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
8161 * i386.md (all HI and QI mode non-move patterns): Conditionize
8162 by TARGET_[HQ]IMODE_MATH.
8163 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
8164 x86_promote_qi_regs): Declare.
8165 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
8166 TARGET_PROMOTE_QI_REGS): New macros.
8167 (PROMOTE_MODE): New macro.
8168 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
8169 x86_promote_qi_regs): New global variables.
8171 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
8173 * calls.c (emit_library_call_value_1): Break out from ...; handle
8174 VOIDmode function calls too.
8175 (emit_library_call_value): ... here.
8176 (emit_library_call): Implement by calling emit_library_call_value_1.
8178 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
8180 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
8181 Update arg_space_so_far on stack adjustments.
8182 (emit_library_call, emit_library_call_value): Likewise; take into
8183 account arg_space_so_far and pending_stack_adjust when calculcating
8186 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
8188 * flow.c: Move all basic block reordering code into its own file.
8189 (create_basic_block): Externalize.
8190 * bb-reorder.c: New file. Copy all basic block reordering code from
8191 flow.c to this file.
8192 (reorder_basic_blocks): Fix fencepost error in for-loop.
8193 (reorder_basic_blocks): Remove braces from single statement for-loops.
8194 * basic-block.h: Add declaration for create_basic_block.
8195 * Makefile.in: Add rules for bb-reorder.o.
8197 2000-03-16 Neil Booth <NeilB@earthling.net>
8199 * cppinit.c (handle_option): Implement #unassert directive
8200 as -A- command line option.
8201 (print_help): Update.
8202 * cpptexi.c: Update.
8204 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
8206 * md.texi (Standard Names): Document `jump'.
8208 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
8210 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
8213 2000-03-15 Geoff Keating <geoffk@cygnus.com>
8215 Merge changes from newppc-branch onto trunk.
8217 2000-03-15 Geoff Keating <geoffk@cygnus.com>
8219 * rs6000.c (toc_hash_table): Update for new hash table functions.
8220 (toc_hash_function): Likewise.
8221 (toc_hash_eq): Likewise.
8222 (toc_hash_mark_entry): Likewise.
8223 (toc_hash_mark_table): Likewise.
8224 (output_toc): Likewise.
8225 (rs6000_add_gc_roots): Likewise.
8227 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8229 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
8230 (AR_FLAGS_FOR_TARGET): here. New macro.
8232 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
8234 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
8235 fpmem_operand) Delete.
8237 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
8238 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
8239 (rs6000_save_machine_status, rs6000_restore_machine_status,
8240 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
8241 references to above variables.
8242 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
8243 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
8244 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
8245 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
8246 (XER_REGNO_P, XER_REGNO): New.
8247 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
8248 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
8249 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
8251 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
8252 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
8253 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
8255 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8257 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
8258 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
8259 * rs6000.h: from here.
8261 * rs6000-protos.h (rs6000_select_section): Provide prototype.
8262 (rs6000_select_rtx_section): Likewise.
8263 (rs6000_encode_section_info): Likewise.
8264 (sdata_section): Likewise.
8265 (sdata2_section): Likewise.
8266 (sbss_section): Likewise.
8267 * sysv4.h (rs6000_select_section): Delete prototype.
8268 (rs6000_select_rtx_section): Likewise.
8269 (rs6000_encode_section_info): Likewise.
8270 (sdata_section): Likewise.
8271 (sdata2_section): Likewise.
8272 (sbss_section): Likewise.
8273 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
8275 * sysv4.h: Delete various unnecessary #undef's and put a comment
8276 on the remaining ones.
8277 Change various comments according to coding standard.
8279 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
8281 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
8282 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
8283 (CR0_REGNO_P) Remove.
8284 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
8285 setup_incoming_varargs, mtcrf_operation, print_operand,
8286 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
8287 Use the above macros.
8289 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
8291 * config/rs6000/rs6000.md: Added a new alternative for each
8292 pattern that had a 'x' alternative but no 'y' alternative.
8293 Added a new split for each of the above patterns.
8295 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8297 * aix41.h (ASM_CPU_SPEC): Delete.
8298 (CPP_CPU_SPEC): Delete.
8300 * aix.h (RS6000_OUTPUT_BASENAME): Define.
8301 (ASM_OUTPUT_LABEL): Define.
8302 (ASM_GLOBALIZE_LABEL): Define.
8303 (STRIP_NAME_ENCODING): Define.
8304 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
8305 (STRIP_NAME_ENCODING): Don't define.
8306 (ASM_OUTPUT_LABEL): Don't define.
8307 (ASM_GLOBALIZE_LABEL): Don't define.
8308 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
8309 names, and ASM_OUTPUT_LABEL to output labels, rather than
8311 (ASM_OUTPUT_LABEL): Define.
8312 (ASM_OUTPUT_INT): Use assemble_name.
8313 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
8314 (STRIP_NAME_ENCODING): Don't undefine first.
8315 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
8317 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
8318 specified with 'asm' even with -fleading-underscore.
8319 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
8320 (output_epilog): Likewise.
8321 (output_toc): Likewise.
8322 * tramp.asm: Handle -fleading-underscore correctly.
8324 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
8326 (nonlocal_goto_receiver): Delete.
8327 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
8329 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
8330 (SET_ASM_OP): Define.
8331 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
8333 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
8336 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
8337 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
8339 * rs6000.h: Add 'u' to more constants.
8341 2000-02-18 David Edelsohn <edelsohn@gnu.org>
8343 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
8345 2000-02-15 David Edelsohn <edelsohn@gnu.org>
8347 * rs6000.c (reg_or_u_cint_operand): New function.
8348 (logical_operand): Handle 64-bit hosts.
8349 (logical_u_operand): New function.
8350 (non_logical_cint_operand): Handle 64-bit hosts.
8351 (non_logical_u_cint_operand): New function.
8352 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
8353 (PREDICATE_CODES): Define new functions.
8354 * rs6000-protos.h: Declare new functions.
8355 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
8356 (movdi_64): Bracket code intended for 64-bit hosts. Create
8357 CONST_DOUBLE for 32-bit values.
8358 (scc insns): Generate DImode compares.
8359 (mfcr insns): Create DImode versions.
8360 (sge matchers): New patterns.
8362 2000-02-15 Gabriel Paubert <paubert@iram.es>
8364 * rs6000.md: Correct instructions length attributes and
8365 constraints on unsigned compare instructions.
8366 (*ne0): Disable for PowerPC64.
8368 2000-02-11 Geoff Keating <geoffk@cygnus.com>
8370 * rs6000.c (output_function_profiler): Use .long for a 32-bit
8371 quantity, fix profile1.C test failure under -fPIC.
8373 * rs6000.c: Add 'u' to many constants to suppress warnings.
8374 (constant_pool_expr_1): Make static.
8375 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
8376 * rs6000.h: Add 'u' to many constants to suppress warnings.
8378 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
8379 for the start of the TOC, instead of LCTOC..0.
8380 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
8382 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
8383 (load_toc_aix_di): Use LCTOC..1.
8385 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
8386 * rs6000.c (rs6000_legitimize_address): New function from
8387 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
8388 symbols in the constant pool that really are TOC references.
8389 (print_operand_address): For ELF, write TOC offsets under
8390 -fPIC as subtractions in the insn.
8391 (output_toc): For ELF, define symbols in TOC as normal labels,
8393 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
8394 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
8395 (create_TOC_reference): Prototype only when RTX_CODE is defined.
8396 * rs6000.md (movsi): Only use create_TOC_reference on
8397 symbols in the constant pool that really are TOC references.
8399 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
8400 * rs6000.c (rs6000_reorg): Delete.
8401 * rs6000-protos.h (rs6000_reorg): Delete.
8403 2000-02-09 Geoff Keating <geoffk@cygnus.com>
8405 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
8407 * aix.h (SETUP_FRAME_ADDRESSES): Define.
8408 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
8409 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
8410 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
8411 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
8412 rs6000_aix_emit_builtin_unwind_init.
8413 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
8414 rs6000_emit_eh_toc_restore on AIX.
8415 (return_eh_si): Use r2.
8416 (return_eh_di): Use r2.
8418 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
8419 since we're breaking binary compatibility anyway.
8421 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
8423 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
8424 constant_pool_expr_p): Declare them.
8425 (constant_pool_expr_p): Declare it.
8426 * config/rs6000/rs6000.c (toc_label_name): Define.
8427 (rs6000_override_options): Set toc_label_name.
8428 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
8429 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
8430 uses_TOC): New functions.
8431 (print_operand): Delete old '*' case.
8432 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8433 and strip off rtl for TOC before calling output_addr_const.
8434 (rs6000_emit_load_toc_table): Use toc_label_name.
8435 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
8437 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
8438 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
8439 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
8440 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
8441 into explicit TOC_REGISTER offsets.
8442 (TOC_REGISTER): New macro.
8443 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
8444 TARGET_TOC to reference TOC_REGISTER.
8445 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
8446 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
8447 uses_TOC before emitting label references.
8449 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8451 * rs6000.md (stack_tie): Fix warning.
8453 * eabi-ctors.c: Use 'asm' names for the start/end variables,
8454 to handle -fleading-underscore.
8455 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
8456 (USER_LABEL_PREFIX): New macro.
8457 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
8458 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
8459 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
8460 call-linux can use the same multilibs.
8461 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
8462 and call-linux multilibs. Do multilib with -fleading-underscore.
8463 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
8464 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
8467 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
8468 have MASK_SOFT_FLOAT set.
8469 (CPP_FLOAT_DEFAULT_SPEC): New macro.
8470 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
8471 CPP_FLOAT_DEFAULT_SPEC.
8473 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
8474 * rs6000.md: Whitespace change.
8475 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
8476 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
8478 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8480 * rs6000.md (eh_epilogue): New expander.
8481 (eh_reg_restore): New expand/split/insn combination.
8482 (return_eh_si): New insn.
8483 (return_eh_di): New insn.
8485 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
8486 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
8487 * eabi-ctors.c (__do_global_ctors): Register this object's
8488 frame. Clean up. Call atexit() after the constructors.
8489 (__do_global_dtors): Deregister this object's frame. Clean up.
8490 Allow for recursive calls to exit().
8491 * rs6000.c (fixuplabelno): New variable.
8492 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
8493 TARGET_RELOCATABLE, it slows down exec() under linux.
8494 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
8496 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
8497 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
8498 (ASM_OUTPUT_DWARF_DELTA2): New macro.
8499 (ASM_OUTPUT_DWARF_DELTA4): New macro.
8500 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
8501 (ASM_OUTPUT_DWARF_ADDR): New macro.
8502 (ASM_OUTPUT_DWARF_DATA4): New macro.
8503 (ASM_OUTPUT_DWARF_DATA2): New macro.
8504 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
8505 (ASM_OUTPUT_DWARF_OFFSET): New macro.
8506 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
8508 2000-02-03 Geoff Keating <geoffk@cygnus.com>
8510 * rs6000.c (rs6000_sr_alias_set): New variable.
8511 (rs6000_override_options): Initialise rs6000_sr_alias_set.
8512 (rs6000_emit_stack_tie): New function.
8513 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
8514 in a way that dwarf2out can understand.
8515 (rs6000_frame_related): New function.
8516 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
8517 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
8518 Use rs6000_emit_stack_tie when needed.
8519 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
8520 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
8521 * rs6000.md (stack_tie): New insn.
8522 (return_internal_si): Allow return value to be in the count
8524 (return_internal_di): Likewise.
8526 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
8528 2000-02-03 Geoff Keating <geoffk@cygnus.com>
8530 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
8532 2000-01-31 Geoff Keating <geoffk@cygnus.com>
8534 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
8536 * rs6000.md (stmw): Use the right POWER opcode.
8539 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8541 * rs6000-protos.h: New file.
8543 * rs6000.c: Include tm_p.h. Fix compile time warnings.
8545 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
8548 * sysv4.h: Likewise.
8550 2000-01-28 Geoff Keating <geoffk@cygnus.com>
8552 * ../../configure.in: Delete powerpcle-*-winnt*
8553 and powerpcle-*-pe|powerpcle-*-cygwin*.
8554 * ../../configure: Regenerated.
8556 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
8557 (TARGET_WINDOWS_NT): Delete.
8559 (CALL_NT_DLLIMPORT): Delete.
8560 Delete NT-specific code.
8561 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
8564 * nt-ci.asm: Delete.
8565 * nt-cn.asm: Delete.
8566 * ntstack.asm: Delete.
8568 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8570 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
8571 (ASM_FILE_START): Likewise.
8572 (ASM_DECLARE_FUNCTION_NAME): Likewise.
8573 (ASM_OUTPUT_LABELREF): Likewise.
8574 (ASM_OUTPUT_SKIP): Likewise.
8575 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8576 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8577 (ASM_OUTPUT_CASE_LABEL): Likewise.
8578 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8579 (ASM_OUTPUT_ASCII): Likewise.
8581 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
8583 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
8584 reload_toc_labelno for non-prologue TOC reloads. Also, don't
8585 increment rs6000_pic_labelno here.
8586 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
8587 and increment rs6000_pic_labelno here.
8589 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
8591 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
8592 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
8593 allocation knows (reg) is dead before the insn.
8595 2000-01-21 Geoff Keating <geoffk@cygnus.com>
8597 * rs6000.md (movsi_to_cr): Correct typo in output template.
8599 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
8601 * rs6000.c (rs6000_pic_labelno): Always define.
8602 (rs6000_pic_func_labelno): Delete.
8603 (lmw_operation): Check for a zero base register,
8604 which doesn't mean what we want.
8605 (stmw_operation): New function.
8606 (print_operand): Define new 'l' modifier.
8607 (rs6000_stack_info): We must save all 64 bits of the registers
8608 if TARGET_POWERPC64.
8609 (rs6000_output_load_toc_table): Delete.
8610 (rs6000_emit_load_toc_table): New function.
8611 (rs6000_allocate_stack_space): Delete.
8612 (rs6000_emit_allocate_stack): New function.
8613 (rs6000_emit_prologue): New function.
8614 (output_prolog): Use rs6000_emit_prologue.
8615 (rs6000_emit_epilogue): Change a few variable names to be
8616 more accurate. Restore all 64 bits of the registers if
8617 TARGET_POWERPC64. Only restore the FP registers which were used
8618 if they are being saved/restored one-at-a-time.
8619 (output_mi_thunk): Delete inefficient code generation.
8620 (output_function_profiler): Don't use rs6000_output_load_toc_table.
8621 * rs6000.h: Declare rs6000_emit_load_toc_table,
8622 rs6000_allocate_stack_space, stmw_operation. Don't declare
8623 rs6000_output_load_toc_table.
8624 * rs6000.md (elf_high): Allow register 0, but discourage it
8626 (elf_low): Support loading into register 0.
8627 (load_toc_aix_si): New pattern.
8628 (load_toc_aix_di): New pattern.
8629 (load_toc_v4_pic_si): New pattern.
8630 (load_toc_v4_pic_di): New pattern.
8631 (load_toc_v4_PIC_1): New pattern.
8632 (load_toc_v4_PIC_1b): New pattern.
8633 (load_toc_v4_PIC_2): New pattern.
8634 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
8635 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
8636 (prologue): New expander.
8637 (movesi_from_cr): New pattern.
8638 (stmw): New pattern.
8639 (save_fpregs_si): New pattern.
8640 (save_fpregs_di): New pattern.
8642 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8644 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
8649 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8651 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
8653 (movsi_got_internal): Likewise.
8654 (movsi_got_internal+1): Likewise.
8655 (set_sp): 'unspec 7' does a SImode clobber.
8657 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8659 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
8660 allocate a stack temporary.
8661 (floatsidf2_internal): Likewise.
8662 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
8664 (floatunssidf2): Don't use the fpmem "register", just
8665 allocate a stack temporary.
8666 (floatunssidf2_internal): Likewise.
8667 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
8669 (floatsidf2_loadaddr): Delete.
8670 (floatsidf2_store1): Delete.
8671 (floatsidf2_store2): Delete.
8672 (floatsidf2_load): Delete.
8673 (fix_truncdfsi2): Don't use the fpmem "register", just
8674 allocate a stack temporary.
8675 (fix_truncdfsi2_internal_si): Delete.
8676 (fix_truncdfsi2_internal_di): Delete.
8677 (fix_truncdfsi2_internal): New insn.
8678 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
8679 (fix_truncdfsi2_store): Delete.
8680 (fix_truncdfsi2_load): Delete.
8681 (fctiwz): Produce gen_fctiwz.
8683 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
8685 * eabi.h (INVOKE__main): Define.
8686 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
8688 (rs6000_emit_prologue): Likewise.
8689 * rs6000.h (struct rs6000_stack): Don't keep track of whether
8690 this is the main program.
8692 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8694 * rs6000.c (rs6000_va_arg): Delete some unused variables.
8696 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8698 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
8699 goes after the argument.
8701 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8703 * rs6000.md: Document 'unspec' values used.
8704 (epilogue): New expander.
8705 (movesi_to_cr_one): New expander.
8706 (movesi_to_cr and following): New pattern.
8708 (return_internal_si): New pattern.
8709 (return_internal_di): New pattern.
8710 (return_and_restore_fpregs_si): New pattern.
8711 (return_and_restore_fpregs_di): New pattern.
8712 * rs6000.h: Declare new functions.
8713 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
8714 rather than rs6000_calls_p.
8715 (rs6000_makes_calls): Delete.
8716 (lmw_operation): New function.
8717 (mtcrf_operation): New function.
8718 (rs6000_emit_epilogue): New function.
8719 (output_epilog): Call rs6000_emit_epilogue and final if
8720 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
8722 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8724 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
8725 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
8726 * aix.h (SUBTARGET_SWITCHES): Document switches.
8727 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
8728 sched-prolog and sched-epilog the same. Document all the
8730 (TARGET_OPTIONS): No longer allow -mdebug-.
8732 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8734 * rs6000.h (ASM_FILE_END): Move to aix.h.
8735 (EXTRA_SECTIONS): Move to aix.h.
8736 (READONLY_DATA_SECTION): Move to aix.h.
8737 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
8738 (SELECT_SECTION): Move to aix.h.
8739 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
8740 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
8741 (LINK_REGISTER_REGNUM): New definition.
8742 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
8743 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
8745 * sysv4.h: Delete the code between the inclusion of rs6000.h
8747 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
8748 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
8749 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
8750 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
8751 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
8752 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
8753 (fix_truncdfsi2_internal_di): New pattern.
8754 (fix_truncdfsi2_store): The second arg here is Pmode too.
8755 (fix_truncdfsi2_load): The second arg here is Pmode too.
8756 (tablejumpdi): Now that switch tables hold only SImode values,
8757 gcc needs to know how to add them to the pc which is DImode.
8758 * rs6000.c (rs6000_stack_info): Use symbolic name for
8759 LINK_REGISTER_REGNUM.
8760 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
8761 (output_toc): Delete unused variables s1 and s2.
8762 (output_ascii): Use fputs not fprintf on a variable string.
8764 2000-01-07 David Edelsohn <edelsohn@gnu.org>
8766 * rs6000.c (processor_target_table): Add power3 as alias for 630.
8767 * aix43.h: Revert Aug 2 change.
8768 (HAS_INIT_SECTION): Define, not visible yet.
8769 (LD_INIT_SWITCH): Define, not visible yet.
8770 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
8772 2000-01-04 Joel Sherrill (joel@OARcorp.com>
8774 * config/rs6000/rtems.h: Include config/rtems.h.
8776 2000-01-04 David Edelsohn <edelsohn@gnu.org>
8778 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
8779 (SLOW_UNALIGNED_ACCESS): Define.
8780 (CASE_VECTOR_MODE): Always use 32-bit offsets.
8781 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
8782 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
8783 (toc_section): Likewise and .toc pseudo-op.
8784 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
8786 (TEXT_SECTION_ASM_OP): Likewise.
8787 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
8790 1999-12-17 Jakub Jelinek <jakub@redhat.com>
8792 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
8793 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
8796 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8798 * rs6000.h: Move more stuff from here...
8800 * sysv4.h: Cleanup accordingly.
8801 * netware.h: Likewise
8803 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8805 * rs6000.h: Continue cleanup.
8808 * netware.h: Likewise.
8810 * sysv4.h: Likewise.
8811 * win-nt.h: Likewise.
8813 * rs6000.h (TARGET_SWITCHES): Add descriptions.
8814 (TARGET_OPTIONS): Likewise.
8816 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
8817 (SUBTARGET_OPTIONS): Likewise.
8819 * rs6000.md: Fix compile time warnings.
8821 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8823 vxworks patches from the Cygnus tree originally by
8824 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
8825 <vmakarov@cygnus.com>.
8826 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
8827 (ENDFILE_SPEC): Likewise.
8828 (LIB_VXWORKS_SPEC): New macro.
8829 (STARTFILE_VXWORKS_SPEC): New macro.
8830 (ENDFILE_VXWORKS_SPEC): New macro.
8831 (LINK_START_VXWORKS_SPEC): New macro.
8832 (LINK_OS_VXWORKS_SPEC): New macro.
8833 (CPP_OS_VXWORKS_SPEC): New macro.
8834 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
8835 * vxppc.h: Rewrite to use proper configuration method.
8836 * vxppcle.h: New file.
8837 * ../../configure.in: Add powerpcle-wrs-vxworks*.
8838 * ../../configure: Rebuilt.
8840 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8842 Lots of changes to rs6000.h, sysv4.h, aix.h,
8843 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
8844 with the aim that rs6000.h is the first header
8845 included and the others override it.
8848 * x-aix41-gld: Remove.
8850 * x-aix41: Remove target-specific switches, and don't specify
8851 -Wl,-bbigtoc as we don't need it any more.
8852 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
8853 Use t-aix43 for AIX 4.3 and above.
8854 * ../../configure: Regenerated.
8856 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
8857 options, that don't do anything yet.
8858 (MASK_SCHED_PROLOG): New macro.
8859 (MASK_SCHED_EPILOG): New macro.
8860 (TARGET_SCHED_PROLOG): New macro.
8861 (TARGET_SCHED_EPILOG): New macro.
8863 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8865 * rs6000.c: Correct comment, the `minimal' TOCs are actually
8866 one per translation unit, not one per function.
8867 (output_toc): Also do duplicate constant elimination
8868 for per-translation-unit TOCs.
8870 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
8871 a comment explaining _exactly_ when this pattern gets used.
8872 (builtin_setjmp_receiver): New pattern for better clarity.
8873 (init_v4_pic): Move it into a section dealing with TOC registers.
8875 1999-12-30 Geoff Keating <geoffk@cygnus.com>
8877 * rs6000.c (toc_hash_table): New variable.
8878 (rs6000_hash_constant): New function.
8879 (toc_hash_function): New function.
8880 (toc_hash_eq): New function.
8881 (toc_hash_mark_entry): New function.
8882 (toc_hash_mark_table): New function.
8883 (output_toc): Don't output duplicate TOC entries in
8885 (rs6000_add_gc_roots): Add the hash table as a GC root.
8886 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
8887 where they clearly shouldn't be. This may need to be fixed
8888 later when there is a GNU ar for AIX.
8889 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
8890 Don't define BOOT_LDFLAGS as it is now not necessary.
8892 1999-12-29 Geoff Keating <geoffk@cygnus.com>
8894 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
8895 for va_list on AIX. Use unsigned_char_type_node rather than
8896 constructing our own version on svr4.
8898 1999-12-17 Geoff Keating <geoffk@cygnus.com>
8900 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
8901 since patently it's not.
8903 1999-12-08 Geoff Keating <geoffk@cygnus.com>
8905 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
8906 define_expand/define_insn pair, and handle restore of the
8907 SVR4 -fpic register.
8909 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
8911 * acconfig.h (HAVE_GAS_WEAK): New define.
8912 * configure.in (assembler weak support): Check for .weak support.
8913 * config.in, configure: Rebuilt.
8914 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
8915 HAVE_GAS_WEAK is defined.
8917 2000-03-15 Nick Clifton <nickc@cygnus.com>
8919 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
8922 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
8924 * cppfiles.c (open_include_file): New function.
8925 (find_include_file, cpp_read_file): Use it.
8927 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
8929 * cpphash.c (dump_hash_helper): Take the slot, not the element.
8931 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
8933 * flow.c (verify_flow_info): Check for unconditional return.
8935 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
8937 * config/ia64/ia64.md (restore_stack_nonlocal): New.
8938 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
8939 (__ia64_restore_stack_nonlocal): New.
8940 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
8942 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8944 * cpphash.c (collect_formal_parameters): Do not complain about
8945 parameter names that just start with `__VA_ARGS__'.
8947 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
8949 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
8950 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
8951 * i386.c (pentiumpro_cost): Set mul cost to 4.
8952 (x86_use_movx): Set for PPro.
8954 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
8956 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
8957 STACK_BOUNDARY for empty frames now.
8959 2000-03-14 Mark Mitchell <mark@codesourcery.com>
8961 * stor-layout.c (layout_union): Remove.
8962 (layout_union_field): New function, split out from layout_union.
8963 (finish_union_layout): Likewise.
8964 (layout_field): Handle unions by calling layout_union_field.
8965 (finish_record_layout): Handle unions.
8966 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
8967 QUAL_UNION_TYPE handling.
8969 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
8971 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
8972 end of basic block is jump_insn, not barrier; use create_basic_block
8973 instead of creating basic block by hand.
8975 2000-03-14 Jason Eckhardt <jle@cygnus.com>
8977 * flow.c (reorder_basic_blocks): Account for barriers when writing
8978 over NEXT_INSN (last_bb->end).
8979 (verify_flow_info): Add check for missing barriers.
8981 2000-03-14 Greg McGary <gkm@gnu.org>
8983 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
8984 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
8985 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
8986 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
8987 __unbounded, __unbounded__): New keywords.
8988 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
8989 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
8990 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
8992 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
8994 * cselib.h: New file.
8995 * alias.c: Include "cselib.h".
8996 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
8997 MEMs as two new arguments.
8998 (get_addr): New static function.
8999 (find_base_term): Handle VALUEs.
9000 (memrefs_conflict_p): Likewise.
9001 (true_dependence): Call get_addr on the addresses.
9002 Call fixed_scalar_and_varying_struct_p with addresses that have been
9003 passed through get_addr and canon_rtx.
9004 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
9005 with true_dependence.
9006 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
9007 * loop.c: Include "cselib.h".
9008 (load_mems): Process extended basic block that enters the loop with
9009 cselib. Use that information to change initialization of the shadow
9010 register so that a constant equivalence is seen by later passes.
9011 * reload1.c: Include "cselib.h".
9012 (reload_cse_invalidate_regno): Delete function.
9013 (reload_cse_mem_conflict_p): Likewise.
9014 (reload_cse_invalidate_mem): Likewise.
9015 (reload_cse_invalidate_rtx): Likewise.
9016 (reload_cse_regno_equal_p): Likewise.
9017 (reload_cse_check_clobber): Likewise.
9018 (reload_cse_record_set): Likewise.
9019 (reg_values): Delete static variable.
9020 (invalidate_regno_rtx): Likewise.
9021 (reload_cse_delete_noop_set): New static function.
9022 (reload_cse_simplify): New static function, broken out of
9024 (reload_cse_noop_set_p): Delete unused argument INSN.
9025 Just call rtx_equal_for_cselib_p on set source and destination.
9026 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
9027 reload_cse_delete_noop_set. Delete code to keep track of values; use
9028 cselib functions instead. Delete code to push/pop obstacks.
9029 (reload_cse_simplify_set): Use cselib to find equivalent values.
9030 Delete code to push/pop obstacks.
9031 (reload_cse_simplify_operands): Likewise.
9032 * rtl.def (VALUE): New rtx code.
9033 * rtl.h (union rtunion_def): New elt rt_cselib.
9034 (X0CSELIB, CSELIB_VAL_PTR): New macros.
9035 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
9036 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
9037 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
9038 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
9039 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
9040 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
9041 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
9042 cselib_record_set, cselib_record_sets): New static functions.
9043 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
9044 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
9045 references_value_p): New functions.
9046 (MAX_USELESS_VALUES, REG_VALUES): New macros.
9047 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
9048 n_useless_values, reg_values, callmem, cselib_obstack,
9049 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
9050 New static variables.
9051 * varray.h (union varray_data_tag): New elt te.
9052 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
9053 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
9056 2000-03-14 Nick Clifton <nickc@cygnus.com>
9058 * gcc.c (do_spec_1): Catch the case where %* is used in a
9059 substitution pattern, but it has not been initialised.
9060 Issue a meaningful error message if an unrecognised operator
9061 is encountered in a spec string.
9063 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
9065 * function.c (prepare_function_start): Correctly initialize
9066 cfun->stack_alignment_needed.
9068 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
9070 * cppfiles.c (find_include_file): Don't assume nshort is a
9073 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
9075 * configure.in (hppa configurations): Add pa32-regs.h to the
9076 list of tm files as appropriate.
9077 * configure: Rebuilt.
9078 * pa.c (compute_frame_size): Remove explicit knowledge about FP
9080 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
9081 (fmpyaddoperands, fmpysuboperands): Likewise.
9082 * pa.h: Remove various definitions which depend on knowing
9083 how registers are numbered.
9084 * pa32-regs.h: New file with PA32 register numbering specific
9087 2000-03-14 Richard Henderson <rth@cygnus.com>
9089 * regmove.c (combine_stack_adjustments): New.
9090 (stack_memref_p, single_set_for_csa): New.
9091 (free_csa_memlist, record_one_stack_memref): New.
9092 (try_apply_stack_adjustment): New.
9093 (combine_stack_adjustments_for_block): New.
9094 * rtl.h (combine_stack_adjustments): Declare.
9095 * toplev.c (rest_of_compilation): Call it.
9097 * i386.md: Revert 2000-01-16 change.
9099 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
9101 * gccbug.in: Add web category, gcc specific classes.
9103 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
9105 * stor-layout.c (finalize_record_size): Fix typo.
9107 2000-03-14 Stan Shebs <shebs@apple.com>
9109 * c-typeck.c (c_alignof): Error on incomplete types.
9110 * extend.texi (Alignment): Document this.
9112 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
9114 * cppfiles.c: Include mkdeps.h.
9115 (find_include_file, read_include_file): Remove _cpp_ prefix
9116 from name, make static.
9117 (_cpp_execute_include): New function, broken out of
9120 * cpplib.c: Don't include mkdeps.h.
9121 (struct directive): Remove type field. Reorder entries. The
9122 function takes only one argument.
9123 (struct if_stack): Make type field an int.
9124 (directive_table): Rename to dtable. Generate it, the
9125 prototypes of the directive handlers, and the enum for the
9126 directive numbers, from a template macro.
9127 (do_ifndef, do_include_next, do_import): New functions.
9128 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
9129 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
9130 do_ident, do_assert, do_unassert, do_sccs): Take only one
9132 (do_sccs): Define always, but alter behavior based on
9134 (_cpp_handle_directive, consider_directive_while_skipping):
9135 Restructure for new directive table layout.
9137 (pass_thru_directive): Take a directive number, not a pointer
9138 to a struct directive.
9139 (parse_include): New function, broken out of do_include.
9140 (do_include, do_import, do_include_next): Use parse_include
9141 and _cpp_execute_include.
9142 (do_elif, do_else): Test for T_ELSE specifically when checking
9143 for #elif/#else after #else.
9144 (parse_ifdef): New function, broken out of do_ifdef.
9145 (validate_else): Expect a name arg without a leading #.
9146 (if_directive_name): Delete.
9147 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
9148 directive handlers with only one argument.
9150 * cpphash.h: Update prototypes.
9151 (enum node_type): Remove entries for directives.
9152 * Makefile.in: Update dependencies.
9154 * cpphash.c (dump_hash_helper): Only dump nodes of type
9155 T_MACRO. Emit a newline after each definition.
9157 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
9159 * gccbug.in: New file.
9160 * configure.in (all_outputs): Add gccbug.
9161 * Makefile.in (install-common): Install gccbug.
9162 (GCCBUG_INSTALL_NAME): New variable.
9163 * configure: Rebuilt.
9165 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
9167 * function.c (put_var_into_stack): Use type_for_mode to calculate
9168 part_type. Use MEM_SET_IN_STRUCT_P.
9169 * expr.c (store_field): Handle CONCAT.
9170 (store_constructor): Use fields_length.
9171 * tree.c (fields_length): New fn.
9172 * tree.h: Declare it.
9174 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
9176 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
9177 (cpplex.o): New target.
9178 * po/POTFILES.in: Add cpplex.c.
9180 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
9181 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
9182 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
9183 skip_block_comment, skip_line_comment, skip_comment,
9184 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
9185 _cpp_parse_name, skip_string, parse_string,
9186 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
9187 _cpp_get_directive_token, find_position,
9188 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
9189 (maybe_macroexpand, _cpp_lex_token): New functions.
9191 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
9192 parse_goto_mark): Delete.
9193 (_cpp_handle_eof): New function.
9194 (_cpp_handle_directive): Rename from handle_directive.
9195 (_cpp_output_line_command): Rename from output_line_command.
9196 (do_if, do_elif): Call _cpp_parse_expr directly.
9197 * cppfiles.c (_cpp_read_include_file): Don't call
9198 init_input_buffer here.
9199 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
9200 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
9201 here; pop the token_buffer and skip the rest of the line here.
9202 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
9205 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
9207 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
9208 CPP_GOTO_MARK): New macros.
9209 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
9210 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
9211 _cpp_read_and_prescan, _cpp_init_input_buffer,
9212 _cpp_grow_token_buffer, _cpp_get_directive_token,
9213 _cpp_handle_directive, _cpp_handle_eof,
9214 _cpp_output_line_command): Prototype them here.
9215 * cpplib.h (enum cpp_token): Add CPP_MACRO.
9216 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
9217 quote_string, output_line_command): Remove.
9219 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
9221 * stmt.c (expand_end_case): RANGE may be signed, and when checking
9222 whether it is too large we must also verify that it isn't negative.
9224 2000-03-13 Jakub Jelinek <jakub@redhat.com>
9226 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
9227 (movsi_zero_liveg0): Remove.
9228 (movsf_insn_novis_liveg0): Remove.
9230 (negsi2_not_liveg0): Rename to negsi2.
9231 (one_cmplsi2): Remove.
9232 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
9233 (one_cmplsi2_liveg0): Remove.
9234 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
9235 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
9236 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
9237 (PREDICATE_CODES): Remove zero_operand.
9238 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
9239 TARGET_BROKEN_SAVERESTORE.
9240 (zero_operand): Remove.
9241 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
9242 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
9244 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9245 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
9246 TARGET_BROKEN_SAVERESTORE): Remove.
9247 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9249 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9251 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9254 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
9256 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
9258 * cpplib.c (do_pragma_implementation): Fix off-by-one error
9259 truncating a string. Don't assume tokens are nul terminated.
9260 Problem noted by Andreas Jaeger <aj@suse.de>
9262 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
9264 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
9265 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
9266 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
9268 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
9270 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
9271 STRUCTURE_SIZE_BOUNDARY.
9273 2000-03-13 Mark Mitchell <mark@codesourcery.com>
9275 * tree.h (record_layout_info_s): New structure.
9276 (record_layout_info): New type.
9277 (new_record_layout_info): New function.
9278 (layout_field): Likewise.
9279 (finish_record_layout): Likewise.
9280 * stor-layout.c (layout_record): Remove.
9281 (new_record_layout_info): New function.
9282 (layout_field): New function, broken out from layout_record.
9283 (finalize_record_size): Likewise.
9284 (compute_record_mode): Likewise.
9285 (finalize_type_size): New function, broken out from layout_type.
9286 (finish_record_layout): Likewise.
9287 (layout_type): Use them.
9289 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
9291 * cpphash.c: Don't include version.h.
9292 (special_symbol) [case T_VERSION]: Look for the string in
9293 hp->value.cpval; don't use version_string.
9294 * cppinit.c (initialize_builtins): Set hp->value.cpval for
9295 __VERSION__ to version_string.
9296 * Makefile.in (cpphash.o): Update deps.
9298 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
9300 Convert cpplib to use libiberty/hashtab.c.
9302 * cpplib.h (struct cpp_reader): Make hashtab and
9303 all_include_files of type 'struct htab *'. Delete HASHSIZE
9304 and ALL_INCLUDE_HASHSIZE macros.
9306 * cpphash.h: Update prototypes.
9307 (struct hashnode): Remove next, prev, and bucket_hdr members.
9308 Make length a size_t. Add hash member.
9309 (struct ihash): Remove next member. Add hash member. Make
9310 name a flexible array member.
9312 * cppfiles.c: Include hashtab.h.
9313 (include_hash): Delete.
9314 (IHASHSIZE): New macro.
9315 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
9316 (cpp_included): Do the hash lookup here.
9317 (_cpp_find_include_file): Rewrite.
9318 (cpp_read_file): Put the "fake" hash entry into the hash
9319 table. Honor the control_macro, if it turns out we've seen
9320 the file before. Don't push the buffer here.
9321 (_cpp_read_include_file): Push the buffer here.
9322 (OMODES): New macro. Use it whenever we call open(2).
9324 * cpphash.c: Include hashtab.h.
9325 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
9326 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
9327 _cpp_lookup_slot): New functions.
9328 (HASHSIZE): new macro.
9329 (hashf, _cpp_install, _cpp_delete_macro): Delete.
9330 (_cpp_lookup): Use hashtab.h routines.
9332 * cppinit.c: Include hashtab.h.
9333 (cpp_reader_init): Call _cpp_init_macro_hash and
9334 _cpp_init_include_hash. Don't allocate hashtab directly.
9335 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
9336 pfile->all_include_files.
9337 (initialize_builtins): Use _cpp_make_hashnode and
9338 htab_find_slot to add hash entries.
9339 (cpp_finish): Just call _cpp_dump_macro_hash.
9340 * cpplib.c: Include hashtab.h.
9341 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
9342 create hash entries.
9343 (do_pragma_poison, do_assert): Likewise.
9344 (do_include): Don't push the buffer here. Don't increment
9345 system_include_depth unless _cpp_read_include_file succeeds.
9346 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
9348 (do_pragma_implementation): Use alloca to create copy.
9350 * Makefile.in: Update dependencies.
9352 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9354 * cppinit.c (cl_directive_handler): More K&R fixing.
9356 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
9358 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
9360 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
9362 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9364 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
9365 Change from char[] to macros.
9367 2000-03-12 Neil Booth <NeilB@earthling.net>
9369 * cppinit.c (cpp_start_read): Update indirect function
9372 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
9374 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
9377 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9378 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
9380 2000-03-11 Neil Booth <NeilB@earthling.net>
9382 * cppinit.c (struct pending option): Replace undef with a
9383 pointer to a directive handling routine.
9384 (struct cpp_pending): Replace separate assert_ and define_
9385 lists with one directive_ list.
9386 (new_pending_define): Rename new_pending_directive. Extra
9387 argument is the directive's handling routine.
9388 (handle_option): Update to use new_pending_directive.
9390 2000-03-11 Neil Booth <NeilB@earthling.net>
9392 * cppfiles.c (file_cleanup, _cpp_find_include_file,
9393 remap_filename, _cpp_read_include_file, actual_directory,
9394 hack_vms_include_specification): Replace bcopy(), index() etc
9395 calls. Add casts to some allocations. Make some variables
9396 pointers to const [unsigned] char.
9397 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
9398 collect_formal_parameters): Similarly.
9399 * cppinit.c (struct pending_option, append_include_chain,
9400 cpp_options_init, cpp_reader_init, initialize_standard_includes,
9401 cpp_start_read, new_pending_define, handle_option): Similarly.
9402 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
9403 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
9404 do_pragma_implementation, detect_if_not_defined,
9405 do_ifdef, skip_if_group, cpp_get_token, parse_string,
9406 do_assert, do_unassert): Similarly.
9407 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
9408 function prototypes.
9409 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
9411 2000-03-10 Richard Henderson <rth@cygnus.com>
9413 * builtins.c (expand_builtin_strlen): Revert last change.
9414 Use emit_insn_before if we're at the beginning of a sequence.
9416 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
9418 * builtins.c (expand_builtin_strlen): Make sure that we have something
9419 at the beginning of the sequence.
9421 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
9424 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
9426 2000-03-10 Richard Henderson <rth@cygnus.com>
9428 * except.c (can_throw): Use INTVAL on a CONST_INT.
9429 (reachable_handlers): Likewise.
9430 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
9432 2000-03-10 Andreas Jaeger <aj@suse.de>
9434 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
9435 MD_STARTFILE_PREFIX since those are not needed on linux.
9436 (ASM_FILE_START): New, from mips/gnu.h.
9438 2000-03-09 Richard Henderson <rth@cygnus.com>
9439 Alex Samuel <samuel@codesourcery.com> and others
9441 * Makefile.in (ssa.o): New rule.
9443 (STAGESTUFF): Add *.ssa and *.ussa.
9444 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
9445 * rtl.def (PHI): New RTL expression.
9446 * rtl.h (clear_log_links): New declaration.
9447 (convert_to_ssa): Likewise.
9448 (convert_from_ssa): Likewise.
9449 * flow.c (split_edge): If the entry node falls through to the
9450 split edge's source block, split the entry edge.
9451 (clear_log_links): New function.
9452 * toplev.c (ssa_dump): New variable.
9453 (flag_ssa): Likewise.
9454 (f_options): Add "ssa".
9455 (compile_file): Create SSA dump files.
9456 (rest_of_compilation): Go to and from SSA if enabled.
9457 (decide_d_option): Handle -de for SSA dump files.
9460 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
9462 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
9465 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
9467 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
9469 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
9471 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
9472 (MD_STARTFILE_PREFIX_1): New macro.
9474 2000-03-09 Robert Lipe <robertl@sco.com>
9476 * config/ia64/ia64.c: Include system.h.
9478 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
9480 * except.c (nothrow_function_p): If -fno-exceptions, just return.
9481 (init_eh_nesting_info): Likewise.
9483 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
9484 (TREE_NOTHROW): Rename from TREE_RAISES.
9485 * toplev.c (rest_of_compilation): Set it.
9486 * print-tree.c (print_node): Adjust.
9487 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
9488 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
9489 * calls.c (emit_call_1): Add 'nothrow' parm. Add
9490 REG_EH_REGION note as appropriate.
9491 (libfunc_nothrow): New fn.
9492 (emit_library_call, emit_library_call_value): Use it.
9493 (expand_call): Check TREE_NOTHROW.
9495 * varasm.c (make_decl_rtl): Skip initial '*' when setting
9496 DECL_ASSEMBLER_NAME.
9498 2000-03-09 Andreas Jaeger <aj@suse.de>
9500 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
9501 (TARGET_MEM_FUNCTIONS): Define.
9503 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
9505 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
9507 * except.c (can_throw): See through a SEQUENCE.
9508 (nothrow_function_p): New fn.
9509 * except.h: Declare it.
9510 * function.c (current_function_nothrow): New var.
9511 (prepare_function_start): Initialize it.
9512 * output.h: Declare it.
9513 * toplev.c (rest_of_compilation): Set it.
9514 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
9516 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
9518 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
9519 match. (cpp_compare_defs): Count the nul separator when
9520 advancing over argument names.
9522 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
9524 * recog.c (preprocess_constraints): Matching constraints affect
9525 same alternative/different operand, not same operand/different
9528 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
9529 register and a constant specially.
9531 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9533 * libgcc2.h: New file.
9534 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
9536 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
9538 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
9539 * configure: Regenerate.
9542 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
9544 * Makefile.in (LIBCPP_DEPS): New macro.
9545 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
9547 * cpperror.c: Include cpphash.h.
9548 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
9550 (lex): Don't use CPP_WARN_UNDEF.
9551 (_cpp_parse_expr): Return an int, the truth value.
9552 * cppfiles.c: Include cpphash.h.
9553 (_cpp_merge_include_chains): Move to cppinit.c and make static.
9554 * cppinit.c (include_defaults_array): Disentangle.
9555 (cpp_cleanup): Don't free the if stack here.
9556 (cpp_finish): Pop off all buffers, not just one.
9557 * cpplib.c (eval_if_expr): Return int.
9558 (do_xifdef): Rename do_ifdef.
9559 (handle_directive): Don't use CPP_PREPROCESSED.
9560 (cpp_get_token): Don't use CPP_C89.
9561 * fix-header.c: Don't use CPP_OPTIONS.
9563 * cpplib.h: Move U_CHAR, enum node_type, struct
9564 file_name_list, struct ihash, is_idchar, is_idstart,
9565 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
9566 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
9567 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
9568 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
9569 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
9570 of _cpp_simplify_pathname, _cpp_find_include_file,
9571 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
9572 Move struct if_stack to cpplib.c. Move struct cpp_pending to
9574 Change all uses of U_CHAR to be unsigned char instead.
9575 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
9577 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
9579 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
9580 (dwarf2out_begin_prologue): Set it.
9581 (output_call_frame_info): Don't emit EH unwind info for leaves.
9583 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
9584 can occur outside of an EH region.
9585 * except.c: Correct comments about rethrow behavior.
9586 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
9588 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
9590 * flow.c (make_edges): Always call make_eh_edge for calls.
9592 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
9594 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
9595 (struct cpp_buffer): Remove fname and underflow fields.
9596 (struct cpp_reader): Remove get_token field.
9597 (struct include_hash): Rename to struct ihash. Add typedef to
9599 (struct if_stack): Remove fname field.
9600 (IF_STACK_FRAME): Rename to IF_STACK.
9602 * cpperror.c (print_containing_files): Trust that there are no
9603 macro buffers below the top file buffer.
9604 * cppfiles.c: Replace all references to 'struct include_hash'
9605 with 'IHASH'. Rename initialize_input_buffer to
9606 init_input_buffer. Don't set or reference cpp_buffer->fname,
9607 use buffer->ihash->name instead.
9608 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
9609 not CPP_NULL_BUFFER.
9610 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
9611 IF_STACK_FRAME, IHASH not struct include_hash.
9612 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
9613 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
9614 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
9615 references to cpp_buffer->fname (delete entirely, or use
9616 ->ihash->name instead) and IF_STACK->fname.
9617 (cpp_push_buffer): Don't set new->underflow.
9618 (do_include): Use cpp_file_buffer.
9620 * cpphash.c (collect_formal_parameters): Remove duplicate
9621 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
9622 used as a macro argument name. Don't append "..." to namebuf
9623 for varargs macros. After we're done scanning, go through
9624 namebuf and make it NUL separated, not comma separated.
9625 (_cpp_compare_defs): Remove register tag from variables.
9626 Expect defn->argnames to be NUL separated.
9627 (_cpp_dump_definition): Expect defn->argnames to be NUL
9628 separated and in forward order.
9629 * cpphash.h: Update documentation of argnames field.
9631 2000-03-08 Richard Henderson <rth@cygnus.com>
9633 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
9634 to fail. Don't pre-expand the source operand.
9636 * i386.md (strlensi): Initialize eoschar and align before use.
9638 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
9640 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
9641 CONSTRUCTOR element.
9643 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
9645 * mips.c (mips_expand_prologue): If the last
9646 named argument is the vararg marker "va_list", treat it as
9647 an unnamed argument.
9649 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
9651 * dbxout.c (dbxout_parms): When correcting for promoted
9652 big-endian parameters, use the mode of the DECL_RTL rather
9653 than UNITS_PER_WORD.
9655 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
9657 * c-common.h (make_fname_decl): Declare.
9658 * c-common.c (make_fname_decl): Define.
9659 (declare_hidden_char_array): Remove.
9660 (declare_function_name): Use make_fname_decl.
9661 * c-decl.c (c_make_fname_decl): New function.
9662 (init_decl_processing): Set make_fname_decl.
9664 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
9666 * cccp.c (handle_directive): Initialize backslash_newlines_p.
9668 2000-03-07 Philipp Thomas <pthomas@suse.de>
9670 * po/POTFILES.in: Remove cppalloc.c from file list.
9672 2000-03-07 Steve Chamberlain <sac@pobox.com>
9674 * pj.c (pj_expand_prologue): current_function->args_info is
9675 now current_function_args_info.
9677 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
9678 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
9679 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
9681 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9683 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
9684 output as hexadecimal rather than the default octal.
9686 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
9688 * cpphash.c (special_symbol): Fix thinko in previous commit.
9690 2000-03-07 Neil Booth <NeilB@earthling.net>
9692 * cppexp.c (struct operation, left_shift, right_shift,
9693 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
9694 "int"s to "unsigned int"s.
9695 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
9697 * cpplib.h: Update for above.
9698 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
9699 returned from allocations.
9701 * cppinit.c (opt_comp, parse_options): New functions.
9702 (handle_option): Use parse_option to parse a single command
9703 line option, that possibly takes an argument.
9704 (cpp_handle_options): Sort the array of command line options on
9705 first invocation (non-ASCII hosts only).
9706 (print_help): Update.
9708 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
9710 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
9711 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
9713 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
9715 * cppinit.c (cpp_cleanup): Free imp->nshort also.
9717 * cpperror.c (cpp_print_containing_files,
9718 cpp_print_file_and_line, v_cpp_message): Rename to
9719 print_containing_files, print_file_and_line, and v_message.
9720 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
9721 to _cpp_parse_expr, parse_escape, and lex.
9722 (parse_charconst): Remove broken multibyte support.
9723 * cppfiles.c (include_hash): Make static.
9724 (cpp_included): New function.
9725 (merge_include_chains, find_include_file, finclude,
9726 simplify_pathname): Rename to _cpp_merge_include_chains,
9727 _cpp_find_include_file, _cpp_read_include_file, and
9728 _cpp_simplify_pathname.
9729 * cpphash.c (cpp_lookup, free_definition, delete_macro,
9730 cpp_install, create_definition, macroexpand, compare_defs,
9731 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
9732 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
9733 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
9734 * cppinit.c (cpp_handle_option): Rename to handle_option, make
9736 * cpplib.c: Remove extern prototype of cpp_parse_expr.
9738 * cpphash.h: Update prototypes.
9739 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
9741 2000-03-07 Andrew Haley <aph@cygnus.com>
9743 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
9744 PTRDIFF_TYPE should be based solely on Pmode.
9747 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9749 * rtl.h (rtunion_def): Constify member `rtstr'.
9750 (emit_line_note_after, emit_line_note, emit_line_note_force,
9751 emit_note, decode_asm_operands): Constify.
9753 * cse.c (canon_hash): Likewise.
9755 * dbxout.c (dbxout_block): Likewise.
9757 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
9758 v_warning_for_asm): Likewise.
9760 * dwarfout.c (function_start_label): Likewise.
9762 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
9763 emit_line_note_force): Likewise.
9765 * final.c (last_filename, asm_insn_count, final_scan_insn,
9766 output_source_line): Likewise.
9768 * function.h (struct emit_status): Likewise.
9770 * gcse.c (hash_expr_1): Likewise.
9772 * genattr.c (gen_attr, main): Likewise.
9774 * genattrtab.c (struct function_unit, current_alternative_string,
9775 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
9776 attr_numeral, check_attr_test, check_attr_value,
9777 convert_set_attr_alternative, convert_set_attr,
9778 compute_alternative_mask, simplify_by_exploding, gen_attr,
9779 gen_unit): Likewise.
9781 * genflags.c (gen_insn): Likewise.
9783 * gengenrtl.c (type_from_format): Likewise.
9785 * genopinit.c (gen_insn): Likewise.
9787 * genoutput.c (n_occurrences, process_template, process_template):
9790 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9793 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9796 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
9797 ggc_set_mark, ggc_get_size): Likewise.
9799 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
9801 * optabs.c (init_one_libfunc): Likewise.
9803 * output.h (assemble_start_function): Likewise.
9805 * recog.c (decode_asm_operands): Likewise.
9807 * toplev.c (rest_of_compilation): Likewise.
9809 * tree.h (emit_line_note_after, emit_line_note,
9810 emit_line_note_force): Likewise.
9812 * varasm.c (asm_output_bss, asm_output_aligned_bss,
9813 asm_emit_uninitialised, assemble_start_function,
9814 assemble_variable, const_hash, compare_constant_1,
9815 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
9817 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
9819 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
9821 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
9823 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
9825 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
9826 arm_dllimport_name_p): Likewise.
9828 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
9831 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
9833 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9835 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
9836 arm_mark_dllexport, arm_mark_dllimport,
9837 arm_pe_encode_section_info): Likewise.
9839 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
9840 ASM_FINISH_DECLARE_OBJECT): Likewise.
9842 * arm/thumb.c (thumb_function_prologue): Likewise.
9844 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
9846 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9848 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
9850 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
9852 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
9854 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9856 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
9857 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
9859 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
9861 * i386/i386.c (asm_output_function_prefix): Likewise.
9863 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
9865 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9867 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
9869 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
9870 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
9871 ASM_OUTPUT_SECTION_NAME): Likewise.
9873 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
9875 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
9877 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
9879 * m32r/m32r.c (m32r_encode_section_info): Likewise.
9881 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9883 * mcore/mcore.c (mcore_encode_section_info): Likewise.
9885 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9887 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9889 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9891 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
9893 * mips/mips.md (movdi, movsi): Likewise.
9895 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9897 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9899 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9901 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
9902 ASM_OUTPUT_ASCII): Likewise.
9904 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
9905 output_mi_thunk, output_toc): Likewise.
9907 * rs6000/rs6000.md (movsi): Likewise.
9909 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
9911 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
9913 * v850/v850.c (print_operand, print_operand_address,
9914 v850_encode_data_area): Likewise.
9916 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
9918 * config/mips/mips.md (zero_extendsidi2): Always force operand
9919 one to memory for mips16.
9921 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9923 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
9924 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
9925 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
9926 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
9927 (min_precision): Result is unsigned.
9928 (add_double, neg_double, mul_double): Low word is unsigned.
9929 (lshift_double, rshift_double, lrotate_double): Likewise.
9930 (rrotate_double, div_and_round_double): Likewise.
9931 (tree_floor_log2, compare_tree_int): New functions.
9932 (preserve_rtl_expr_temps): New declaration.
9933 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
9934 (decl_attributes): Use tree_log2 to find alignment.
9935 Check for TREE_INT_CST_HIGH for format args.
9936 (min_precision): Now unsigned.
9937 Use tree_floor_log2.
9938 (truthvalue_conversion): Delete long-disabled code.
9939 * c-decl.c (finish_struct): Clean up tests on field width.
9940 (finish_function): Use compare_tree_int.
9941 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
9942 * c-typeck.c (comptypes): Use tree_int_cst_equal.
9943 (default_conversion, digest_init): Use compare_tree_int.
9944 (build_binary_op): Use integer_all_onesp and compare_tree_int.
9945 Fix type errors in forming masks.
9946 * calls.c (initialize_argument_information): Use compare_tree_int.
9947 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
9948 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
9949 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
9950 (store_field): Use compare_tree_int.
9951 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
9952 (expand_expr, case ARRAY_REF): Use compare_tree_int.
9953 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
9954 (do_store_flag): Use compare_tree_int.
9955 * fold-const.c (encode, decode): Low part is always unsigned.
9956 (force_fit_type, add_double, neg_double, mul_double): Likewise.
9957 (lshift_double, rshift_double, lrotate_double): Likewise.
9958 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
9959 (fold_convert): Use compare_tree_int.
9960 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
9961 (invert_truthvalue, case INTEGER_CST): Likewise.
9962 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
9963 * mkdeps.c (deps_dummy_targets): Make I unsigned.
9964 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
9965 (lshift_double, rshift_double, lrotate_double, rrotate_double):
9967 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
9968 (expand_end_case): Use compare_tree_int.
9969 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
9970 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
9971 (layout_decl): Likewise.
9972 (layout_record, layout_union): Make sizes unsigned.
9973 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
9974 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
9975 * tree.c (struct type_hash): hashcode is unsigned.
9976 (build_type_attribute_variant, type_hash_list): Likewise.
9977 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
9978 (attribute_hash_list, build_array_type, build_method_type): Likewise.
9979 (build_complex_type): Likewise.
9980 (real_value_from_int_cst): Remove unneeded casts.
9981 (integer_all_onesp): Add casts.
9982 (tree_floor_log2, compare_tree_int): New functions.
9983 (build_index_type): Use tree_int_cst_sgn.
9984 * varasm.c (assemble_variable): Use compare_tree_int.
9986 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
9988 * cpphash.c (collect_expansion): Also catch ## at start of macro.
9990 * varasm.c (make_decl_rtl): Don't add a number to members of
9992 (make_function_rtl): Likewise.
9994 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9996 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
9997 patch from 2000-01-28.
9999 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
10001 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
10002 filled with an insn from the jump target.
10004 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10006 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
10007 (c4x_external_ref): Likewise.
10008 * config/c4x/c4x.c (struct name_list): Likewise.
10010 1999-12-16 Ben Collins <bcollins@debian.org>
10012 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
10013 argument to genmultilib.
10014 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
10015 the contents into the multilib.h header.
10016 * gcc.c: Declare multilib_exclusions for the specs file.
10017 (set_multilib_dir): Use it.
10018 (print_multilib_info): Likewise.
10019 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
10020 to pass to genmultilib.
10022 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10024 * builtins.c (built_in_class_names, built_in_names): Constify a
10027 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
10029 (_mcleanup): Ensure value matches format specifier in sprintf.
10031 * cpphash.c (special_symbol): Don't needlessly cast away
10034 * cppinit.c (base_name): Delete unused prototype.
10036 * mkdeps.c (deps_init): Make definition K&R safe.
10038 * tree.h (built_in_class_names, built_in_names): Constify a
10041 2000-03-06 Jakub Jelinek <jakub@redhat.com>
10043 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
10044 floating point instructions for epilogue delay.
10046 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
10047 to gas if it supports .register pseudo.
10049 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
10050 LONG_DOUBLE_TYPE_SIZE if not defined.
10051 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
10052 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
10053 * real.c: Likewise.
10054 * gengenrtl.c: Likewise.
10055 * print-rtl.c: Likewise.
10057 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
10058 MASK_LONG_DOUBLE_128.
10059 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
10060 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
10061 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
10062 (SUBTARGET_SWITCHES): Define.
10063 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
10064 with -mlong-double-128.
10065 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
10066 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
10067 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
10068 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
10069 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
10070 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
10071 with -mlong-double-128.
10072 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
10073 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
10074 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
10075 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
10076 TARGET_LONG_DOUBLE_128): Define.
10077 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
10078 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
10079 long double on TARGET_ARCH64.
10081 2000-03-06 Mark Mitchell <mark@codesourcery.com>
10083 * function.c (free_temps_for_rtl_expr): Don't free slots
10084 that have been pushed into a higher level.
10087 2000-03-05 Mark Mitchell <mark@codesourcery.com>
10089 2000-03-05 Mark Mitchell <mark@codesourcery.com>
10091 * basic-block.h (ALLOCA_REG_SET): Remove.
10092 (INITIALIZE_REG_SET): New macro.
10093 * flow.c (update_life_info): Use it.
10094 (calculate_global_regs_live): Likewise.
10095 (propagate_block): Likewise.
10096 * global.c (build_insn_chain): Likewise.
10097 * haifa-sched.c (schedule_region): Likewise.
10099 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
10101 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
10102 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
10103 (DWARF_ARANGES_PAD_SIZE): New define.
10104 (output_aranges): Use it to pad the address range header.
10105 (DWARF_ROUND): Fix for non power of 2 rounding.
10107 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
10109 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
10111 2000-03-05 Mark Mitchell <mark@codesourcery.com>
10113 * tree.def (RTL_EXPR): Update documentation.
10114 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
10115 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
10116 * function.c (preserve_rtl_expr_temp): New function.
10117 (preserve_rtl_expr_temps): Likewise.
10118 (preserve_rtl_expr_result): Use it.
10121 2000-03-04 Mark Mitchell <mark@codesourcery.com>
10123 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
10125 * regmove.c (copy_src_to_dest) Do not create src->dest move
10126 for unchanging destination.
10128 2000-03-04 Mark Mitchell <mark@codesourcery.com>
10130 * function.h (struct sequence_stack): Remove rtl_expr.
10131 (struct emit_staus): Likewise.
10132 (seq_rtl_expr): Remove.
10133 * tree.h (free_temps_for_rtl_expr): Don't declare.
10134 (start_sequence_for_rtl_expr): Likewise.
10135 * rtl.h (preserve_rtl_expr_result): Likewise.
10136 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
10137 (start_sequence_for_rtl_expr): Remove.
10138 (push_topmost_sequence): Don't save sequence_rtl_expr.
10139 (pop_topmost_sequence): Remove comment about not restoring it.
10140 (end_sequence): Don't set seq_rtl_expr.
10141 (init_emit): Don't initialize it.
10142 (mark_sequence_stack): Don't mark it.
10143 (mark_emit_status): Likewise.
10144 * except.c (protect_with_terminate): Use
10145 start_sequence_for_rtl_expr, not start_sequence.
10146 * expr.c (expand_expr, case RTL_EXPR): Don't call
10147 preserve_rtl_expr_result or free_temps_for_rtl_expr.
10148 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
10149 (preserve_rtl_expr_result): Remove.
10150 (free_temps_for_rtl_expr): Likewise.
10151 (pop_temp_slots): Likewise.
10152 (mark_temp_slot): Don't mark the rtl_expr.
10153 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
10154 start_sequence_for_rtl_expr.
10156 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
10158 * mkdeps.c, mkdeps.h: New files.
10159 * po/POTFILES.in: Add them.
10160 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
10161 (cpplib.o, cppinit.o): Depend on mkdeps.h.
10162 (mkdeps.o): New target.
10164 * cppfiles.c: Delete deps_output.
10165 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
10166 OBJECT_SUFFIX, and base_name.
10167 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
10169 (initialize_dependency_output): Use deps_init,
10170 deps_add_target, deps_calc_target, and deps_add_dep. Remove
10171 all the unnecessary string bashing.
10172 (cpp_finish): Use deps_write. Remove an unnecessary nesting
10174 * cpplib.c (do_include): Use deps_add_dep.
10175 * cpplib.h (struct cpp_reader): Replace deps_buffer,
10176 deps_allocated_size, deps_size, deps_column members with
10177 single pointer to a struct deps. Delete prototype of
10180 * cppinit.c: Fix thinko in previous patch.
10182 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10184 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
10185 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
10186 (mode_for_size_tree): New function.
10187 (layout_decl, layout_type): Call it and clean up BLKmode checks.
10188 * tree.h (mode_for_size_tree): New declaration.
10190 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
10192 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
10194 * stmt.c (is_body_block): Move...
10195 * dwarfout.c, dwarf2out.c: ...from here.
10196 * tree.h: Declare it.
10197 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
10198 * final.c (final_start_function): Do call remove_unnecessary_notes
10201 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
10203 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
10205 * cpplib.h (_dollar_ok): New macro.
10206 (is_idchar, is_idstart): Use it.
10207 (IStable): Rename to _cpp_IStable. Declare it const if
10208 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
10209 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
10210 is_space): Update for renamed IStable.
10212 * cppinit.c: Delete all references to FAKE_CONST and CAT
10213 macros. Define init_IStable as empty macro if gcc >=2.7 or
10214 C99. Change TABLE() to ISTABLE and hardcode name of table.
10215 (cpp_start_read): Don't change the IStable based on
10218 * cpphash.c (unsafe_chars): Add pfile argument. All callers
10219 changed. Handle '$' for char1 correctly.
10220 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
10222 * cppexp.c (tokentab2): Make const.
10223 (cpp_lex): Make toktab const.
10224 * cppinit.c (include_defaults_array): Make const.
10225 (initialize_standard_includes): Make default_include const.
10227 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
10229 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
10230 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
10231 (gen_decl_die): Likewise.
10232 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
10233 (output_decl): Likewise.
10235 * varasm.c (make_function_rtl): If we change the name used in the
10236 rtl, update DECL_ASSEMBLER_NAME accordingly.
10237 (make_decl_rtl): Likewise.
10239 * toplev.c (rest_of_compilation): Tweak formatting.
10241 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
10242 remove_unnecessary_notes.
10243 (debug_ignore_block): New fn.
10244 * toplev.h: Declare it.
10245 * emit-rtl.c (remove_unncessary_notes): Call it.
10246 * dwarf2out.c (dwarf2out_ignore_block): New fn.
10247 * dwarf2out.h: Declare it.
10248 * final.c (final_start_function): Don't call remove_unnecessary_notes
10249 if we did insn scheduling.
10251 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
10253 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
10254 * cpplib.h: Delete SET_CPP_PEDANTIC.
10256 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10258 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
10259 result is a RECORD_TYPE.
10261 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
10263 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
10265 2000-03-03 Richard Henderson <rth@cygnus.com>
10267 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
10268 addition over compliments over shifts.
10270 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10272 * reload1.c (reload_combine_note_use): Handle return register USEs.
10273 REG case: Handle multi-hard-register hard regs.
10275 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10277 * md.texi: Document use of '*' in insn pattern name.
10279 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
10281 * calls.c (special_function_p): operator new may not be malloc-like.
10283 * gcse.c (dump_hash_table): Really fix error in last change.
10285 2000-03-02 Denis Chertykov <denisc@overta.ru>
10287 * avr.c (print_operand): Use print_operand_address instead of
10289 * avr/libgcc.S: Cleanup code.
10291 2000-03-02 Richard Henderson <rth@cygnus.com>
10293 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
10295 2000-03-02 Mark Mitchell <mark@codesourcery.com>
10297 * tree.h (TYPE_ALIGN_UNIT): New macro.
10299 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
10301 * i386.c: (constant_call_address_operand): Reject CONST_INT.
10303 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
10305 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
10307 (SET_CPP_PEDANTIC): New macro.
10308 * cpplib.c (do_include): Don't bother checking system_header_p.
10309 (do_warning, do_ident, do_assert, do_unassert): Likewise.
10310 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
10312 * function.h (struct expr_status): Add x_arg_space_so_far.
10313 (arg_space_so_far): New macro.
10314 * expr.c (init_expr): Initialize it.
10315 * calls.c (emit_call_1): Reset it.
10316 (compute_argument_block_size, expand_call): Use it.
10317 (expand_call, store_one_arg): Increment it.
10319 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10321 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
10324 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
10326 * cppfiles.c (cpp_read_file): New function.
10328 * cpphash.c (collect_expansion): Make sure to reset last_token
10329 to NORM when we hit a string. Handle trailing whitespace
10330 properly when the expansion is empty.
10331 (create_definition): Disable line commands while parsing the
10333 (dump_definition): If pfile->lineno == 0, output a line
10334 command ahead of the dump, and add a trailing newline.
10336 * cppinit.c (append_include_chain): Add fifth argument, which
10337 indicates whether or not system headers are C++ aware.
10338 (initialize_standard_includes): New function,
10339 broken out of read_and_prescan. Pass 'cxx_aware' value from
10340 the include_defaults_array on to append_include_chain.
10341 (dump_special_to_buffer): Const-ify char array.
10342 (builtin_array): Don't dump __BASE_FILE__.
10343 (cpp_start_read): Use cpp_read_file. Reorder code for
10344 clarity. Don't output line commands here for -D/-A/-U
10345 switches. Don't call deps_output for files included with
10346 -include or -imacros.
10348 * cpplib.c (do_define): Don't pay any attention to the second
10350 (cpp_expand_to_buffer): Disable line commands while scanning.
10351 (output_line_command): Work in the file buffer.
10352 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
10353 Fix formatting of comments. Prototype cpp_read_file.
10355 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10357 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
10358 reference the language-equivalent of sizetype.
10359 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
10360 * fold-const.c (size_binop, size_diffop): Put back checks.
10361 * gcse.c (dump_hash_table): Fix minor error in last change.
10362 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
10363 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
10366 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
10368 * calls.c (expand_call) Do not attempt to combine stack adjustments
10369 with inhibit_defer_pop set.
10371 2000-03-01 Mark Mitchell <mark@codesourcery.com>
10373 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
10374 the DECL_SIZE for a FIELD_DECL.
10376 2000-03-01 Bruce Korb <bkorb@gnu.org>
10378 * fixinc/inclhack.tpl: remove unused symlinks
10379 * fixinc/README: GCC Maintainer info
10380 * fixinc/inclhack.sh: regen
10381 * fixinc/fixincl.sh: regen
10383 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
10385 * cpphash.c (collect_expansion): Trim trailing white space
10386 from macro definitions, but don't go past the last insertion
10389 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
10391 * i386.md (mulqi3): New pattern.
10393 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
10395 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
10397 (struct cpp_reader): Add parsing_if_directive and
10398 parsing_define_directive flags.
10399 (struct cpp_options): Remove output_conditionals flag.
10400 (check_macro_name): Delete prototype.
10402 * cpphash.h (struct macrodef): Delete.
10403 (struct reflist): Separate from struct definition.
10404 (struct definition): Remove unused fields. Add column number.
10405 (create_definition): Returns a DEFINITION *. Takes a
10406 cpp_reader * and an int.
10408 * cpphash.c (SKIP_WHITE_SPACE): Delete.
10409 (PEEKC): Copy defn from cpplib.c.
10410 (rest_extension, REST_EXTENSION_LENGTH): Delete.
10412 (struct arglist): Simplify.
10413 (collect_expansion): Rewrite. Get tokens by calling
10414 cpp_get_token. Add more error checking.
10415 (collect_formal_parameters): New function, broken out of
10416 create_definition and reworked to use get_directive_token.
10417 (create_definition): All real work is now in collect_expansion
10418 and collect_formal_parameters. do_define handles finding the
10419 macro name. Return a DEFINITION, not a MACRODEF.
10420 (macroexpand): Replace bcopy with memcpy throughout. Replace
10421 character-at-a-time copy loop with memcpy and pointer increments.
10422 (compare-defs): d1->argnames / d2->argnames might be null.
10424 * cpplib.c (copy_rest_of_line): Delete function.
10425 (skip_rest_of_line): Do all the work ourselves.
10426 (skip_string): New function.
10427 (parse_string): Use skip_string.
10428 (get_macro_name): New function.
10429 (check_macro_name): Delete.
10430 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
10431 (cpp_skip_hspace): Use CPP_BUMP_LINE.
10432 (handle_directive): ICE if we're called on a macro buffer.
10433 (do_define): Determine macro name and type (funlike/objlike)
10434 here. Expunge all uses of MACRODEF.
10435 (cpp_push_buffer): Set line_base to NULL.
10436 (do_undef, read_line_number): Don't worry about getting a POP token.
10437 (eval_if_expression): Set/reset parsing_if_directive around
10438 cpp_parse_expr. Don't clear only_seen_white.
10439 (skip_if_group): Remove output_conditionals logic. Use
10441 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
10442 tokens under appropriate conditions.
10443 (cpp_unassert): Call do_unassert not do_assert. Oops.
10445 * cppexp.c (parse_defined): New function, break out of
10447 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
10448 ourselves, with cpp_defined.
10449 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
10451 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
10452 * gcc.dg/strpaste-2.c: New.
10454 2000-02-29 Mark Mitchell <mark@codesourcery.com>
10456 * fold-const.c (size_binop): Don't asert inputs are the same and
10457 have TYPE_IS_SIZETYPE set.
10458 (size_diffop): Likewise.
10460 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
10462 * dwarfout.c (output_block): Output abstract blocks even if they
10463 don't have TREE_ASM_WRITTEN set.
10465 * calls.c (emit_library_call): Check for null REG.
10467 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
10469 * c-decl.c (current_function_decl): Move to toplev.c.
10470 (init_decl_processing): Don't add current_function_decl as a ggc
10472 * dbxout.c (dbxout_symbol): Change return type to int.
10473 (dbxout_symbol_location, dbxout_syms): Likewise.
10474 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
10475 any locals. Use current_function_func_begin_label if set.
10476 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
10477 * dwarf2out.c (dwarf2out_begin_prologue): Set
10478 current_function_func_begin_label.
10479 * final.c (final_start_function): Reset it.
10480 * toplev.c (current_function_decl): Define it here.
10481 (current_function_func_begin_label): New variable.
10482 (main): Add both as ggc roots.
10483 * tree.h (current_function_func_begin_label): Declare.
10485 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10487 * gcse.c: Cleanups throughout: mostly white-space, but also
10488 some minor rearrangement of code.
10490 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
10492 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
10493 returns a PARALLEL. Use emit_group_load and use_group_regs
10495 (emit_library_call_value): Similarly.
10497 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
10498 * pa/quadlib.asm: Remove.
10499 * pa/quadlib.c: New file.
10501 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
10502 * configure: Rebuilt.
10504 2000-02-29 Philip Blundell <pb@futuretv.com>
10506 * config/arm/conix-elf.h: New file.
10507 * configure.in (arm*-*-conix*): New configuration.
10508 * configure: Regenerate.
10510 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
10512 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
10513 don't have TREE_ASM_WRITTEN set.
10515 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10517 * Eliminate DECL_FIELD_SIZE.
10518 * builtins.c (built_in_class_names, built_in_names): New variables.
10519 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
10520 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
10521 DECL_SIZE, not DECL_FIELD_SIZE.
10522 * print-tree.c (print_node): Remove code that prints extra blank
10523 lines in some cases.
10524 Properly handle inline and builtin function cases.
10525 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
10526 * tree.h (built_in_class_named, built_in_names): New declarations.
10527 (union tree_decl): Rename internal unions to u1 and u2 and change
10528 some of their components.
10529 Add new field built_in_class.
10530 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
10531 Reflect above changes.
10532 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
10533 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
10534 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
10535 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
10537 2000-02-28 Dmitri Makarov <dim@windriver.com>
10539 * extend.texi: Document ARM's support for long/short calls.
10541 * invoke.texi: Document ARM's -mlong-calls command line switch.
10543 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
10544 (arm_encode_call_attribute): Add prototype.
10545 (arm_set_default_type_attribute): Add prototype.
10546 (arm_strip_name_encoding): Add prototype.
10548 * config/arm/arm.c (arm_init_cumulative_args): replace
10549 initialisation og 'long_calls' field with initialisation of
10550 'call_cookie' field.
10551 (enum arm_pragma_enum): New enum.
10552 (arm_pragma_long_calls): New static variable.
10553 (arm_process_pragma): Also process "#pragma long_calls_off".
10554 (arm_valid_type_attribute_p): Accept short_call attribute.
10555 (arm_comp_type_attributes): Check long/short call attributes.
10556 (arm_encode_call_attribute): New function: Encode long_call
10557 or short_call attribute in function name.
10558 (arm_set_default_type_attributes): New function: Assign
10559 default attributes to newly defined type.
10560 (current_file_function_operand): New function: Return true if
10561 the symbol is a function which has already been compiled.
10562 (arm_is_longcall_p): New function: Return true if the
10563 indicated function should be called via a long call.
10564 (arm_get_strip_length): New function. Returns number of
10565 prefix characters to be stripped from a function's name.
10566 (arm_strip_name_encoding): New function. Strip prefix characters
10567 from a function's name.
10569 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
10570 with 'call_cookie'.
10571 (SHORT_CALL_FAG_CHAR): Define.
10572 (LONG_CALL_FAG_CHAR): Define.
10573 (ENCODED_SHORT_CALL_ATTR_P): Define.
10574 (ENCODED_LONG_CALL_ATTR_P): Define.
10575 (ARM_NAME_ENCODING_LENGTHS): Define.
10576 (STRIP_NAME_ENCODING): Define.
10577 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
10578 (ARM_ENCODE_CALL_TYPE): Define.
10579 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
10580 (ARM_DECLARE_FUNCTION_SIZE): Define.
10581 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
10583 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
10584 if a long call is needed.
10585 (call_value): Ditto.
10586 (call_symbol): Ditto.
10588 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
10589 ARM_DECLARE_FUNCTION_SIZE.
10591 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
10592 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
10593 (ARM_STRIP_NAME_ENCODING): Undefine.
10594 (STRIP_NAME_ENCODING): Undefine.
10595 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
10596 (ASM_DECLARE_FUNCTION_NAME): Ditto.
10597 (ASM_OUTPUT_COMMON): Ditto.
10598 (ASM_DECLARE_OBJECT_NAME): Ditto.
10600 * config/arm/pe.c (arm_dllexport_name_p): Check for
10602 (arm_dllimport_name_p): Ditto.
10603 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
10604 (arm_mark_dllimport): Ditto.
10606 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10608 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
10610 2000-02-28 Mark Mitchell <mark@codesourcery.com>
10612 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
10614 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
10616 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
10617 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
10618 NO_BUILTIN_WCHAR_TYPE is not defined.
10619 (CPP_WCHAR_TYPE): Delete.
10620 * cccp.c (main): Don't change wchar_type if cplusplus.
10621 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
10623 2000-02-28 Nick Clifton <nickc@cygnus.com>
10625 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
10627 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
10629 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
10630 (ASM_WEAKEN_LABEL): Define.
10632 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
10634 * expr.c (store_constructor): Do not emit USE.
10635 * rtl.h (stupid_life_analysis): Remove.
10637 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10639 * function.c (number_blocks): Reset next_block_index based on
10640 what debugging format is used, not what is defined.
10642 * lcm.c: Minor reformatting throughout.
10643 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
10645 * toplev.c (rest_of_compilation): Account for time in
10646 optimize_mode_switching.
10648 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
10649 if only marking labels.
10651 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
10653 * calls.c (expand_call): Attempt to combine stack adjustments with
10654 pending stack adjustments.
10656 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10658 * loop.c (reg_in_basic_block_p): Don't abort when falling through
10659 to the end of the function.
10661 2000-02-27 Mark Mitchell <mark@codesourcery.com>
10663 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
10665 * final.c (next_block_index): Remove.
10666 (max_block_depth): Likewise.
10667 (pending_blocks): Likewise.
10668 (init_final): Don't initialize them.
10669 (final_start_function): Don't set next_block_index. Set up
10671 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
10672 * function.h (number_blocks): New function.
10673 * function.c (get_block_vector): New function.
10674 (identify_blocks): Use it.
10675 (reorder_blocks): Set NOTE_BLOCK.
10676 (number_blocks): New function.
10677 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
10678 * tree.h (BLOCK_NUMBER): New macro.
10679 (tree_block): Add block_num field.
10680 * dbxout.c (next_block_number): Remove.
10681 (dbxout_init): Don't set it.
10682 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
10683 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
10685 * toplev.c (rest_of_compilation): Always call
10686 find_loop_tree_blocks. Fix indentation.
10687 * dwarf2out.c (next_block_number): Remove.
10688 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10689 to determine block numbers.
10690 (gen_inlined_subroutine_die): Likewise.
10691 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
10692 (decls_for_scope): Don't increment next_block_number.
10693 * dwarfout.c (next_block_number): Remove.
10694 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10695 to determine block numbers.
10696 (output_inlined_subroutine_die): Likewise.
10697 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
10698 (output_decls_for_scope): Don't increment next_block_number.
10699 * sdbout.c (next_block_number): Remove.
10700 (sdbout_block): Use BLOCK_NUMBER.
10701 (sdbout_begin_block): Simplify.
10702 * xcoffout.c (next_block_number): Remove.
10703 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
10704 (xcoffout_begin_block): Don't set next_block_number.
10705 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
10708 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10710 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
10711 (expand_builtin_strcpy): Pass correct type to size_binop.
10712 (expand_builtin_strcmp): Likewise.
10713 Clean up conditional structure.
10714 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
10715 (complete_array_type): Don't use size_binop for MAXINDEX.
10716 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
10717 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
10718 (c_alignof): Use size_one_node.
10719 (build_unary_op): Pass arg of proper type to size_binop.
10720 (really_start_incremental_init, push_init_level): Use sizetype for
10721 constructor{,_bit,_unfilled}_index.
10722 (pop_init_label, output_init_element): Likewise.
10723 (output_pending_init_elements, process_init_element): Likewise.
10724 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
10725 * expr.c (store_expr): Use size_int.
10726 (store_constructor): Use proper types for size_binop args.
10727 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
10728 (expand_expr_unaligned): Likewise.
10729 (string_contant): Return object of sizetype.
10730 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
10731 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
10732 (ARGS_SIZE_TREE): Pass proper types to size_binop.
10733 * fold-const.c (int_const_binop): Refine when size_int is called.
10734 (fold_convert): Likewise.
10735 (size_int_wide): Rework to take KIND as arg, only take low order
10736 bits, handle new sizetype_tab datatype, and chain entries in
10738 (size_int_type_wide): New function.
10739 (size_binop): Validate types of arguments.
10740 (ssize_binop): Deleted.
10741 (size_diffop): New function.
10742 (extract_muldiv): Only fold division into multiplication for sizetypes.
10743 * function.c (assign_parms): Use size_diffop and make sure
10744 VAR field is of ssizetype; also pass proper type to size_binop.
10745 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
10746 (round_down): Deleted from here.
10747 * store-layout.c (sizetype_tab): Now an array.
10748 (sizetype_set, early_root_list): New variables.
10749 (variable_size): Use size_one_node.
10750 (round_up): Pass proper type to size_binop.
10751 (round_down): Moved to here and corrected as above.
10752 (layout_record): Pass proper arg types to size_binop.
10753 (layout_type): Likewise.
10754 If sizetype_set is zero, record the type just laid out.
10755 (make_unsigned_type): Don't call set_sizetype;
10756 (make_signed_type): Likewise; also, call fixup_signed_type.
10757 (initialize_sizetypes): New function.
10758 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
10759 set name of bitsizetype to "bit_size_type".
10760 Fix up type of sizes of all types made before call.
10761 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
10762 * tree.c (fix_sizetype): Deleted.
10763 (build_common_tree_nodes): Call initialize_sizetypes.
10764 (build_common_tree_nodes_2): Don't call fix_sizetype.
10765 * tree.h (TYPE_IS_SIZETYPE): New macro.
10766 (initialize_sizetype): New declaration.
10767 (enum size_type_kind): New type.
10768 (struct sizetype_tab): Deleted.
10769 (sizetype_tab): Now array; adjust sizetype macros.
10770 (size_diffop, size_int_type_wide): New functions.
10771 (size_int_wide): Change number of args and type; access macros changed.
10772 (ssize_int, sbitsize_int): New macros.
10773 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
10774 (ROUND_TYPE_SIZE_UNIT): New macro.
10776 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
10778 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
10780 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10782 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
10783 Mark as possibly unused.
10785 * cse.c (cse_insn): Delete dead code involving tablejump.
10786 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
10788 * Makefile.in (libcpp.a): Start by deleting it.
10790 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10792 * cpplib.h (enum file_change_code): Added rename_file.
10793 * cpplib.c (do_line): If a filename is given, set file_change to
10795 (output_line_command): If file_change is rename_file, always
10796 output a # directive with the file name.
10798 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
10800 2000-02-26 Mark Mitchell <mark@codesourcery.com>
10802 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
10803 when copying a PARM_DECL or RESULT_DECL.
10805 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10807 * fix-header.c (recognized_function): Also fix prototypes for
10808 functions taking "void".
10810 2000-02-26 Geoff Keating <geoffk@cygnus.com>
10812 * reload1.c (do_output_reload): Check reg_reloaded_valid before
10813 looking at reg_reloaded_contents.
10815 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
10817 * Makefile.in (STMP_FIXINC): New toggle.
10818 (LIBGCC2_DEPS): Delete all references.
10819 (stmp-headers): Delete target. All references either deleted
10820 or changed to stmp-int-headers.
10821 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
10822 (LIBCPP_OBJS): Take out cppalloc.o.
10823 (cppalloc.o): Delete target.
10824 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
10825 (gen-protos, fix-header): Link with libiberty.a.
10826 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
10829 * configure.in: Remove refs to strerror.
10830 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
10831 * system.h: Take out strerror stanza.
10833 * cpperror.c (my_strerror): Delete function.
10834 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
10835 * cppmain.c (main): Call xmalloc_set_program_name first thing.
10836 * cppalloc.c: Delete file.
10837 * gen-protos.c: Don't provide xrealloc.
10839 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
10840 xstrerror throughout.
10842 2000-02-26 Bruce Korb <bkorb@gnu.org>
10844 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
10845 match for DOS headers, too.
10846 * fixinc/inclhack.sh,fixincl.x: Regenerate.
10848 2000-02-26 Geoff Keating <geoffk@cygnus.com>
10850 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
10851 is right for most ELF targets.
10852 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
10853 Let the default file use %U properly.
10854 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
10857 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
10860 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10862 * toplev.c (documented_lang_options): Correct spelling error.
10863 (decode_d_option, decode_f_option, main): Likewise.
10865 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
10867 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
10868 to tell assembler it is permitted to expand large constants.
10870 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
10872 * protoize.c: (AUX_INFO_SUFFIX): New macro.
10873 (aux_info_suffix): Use.
10874 (SAVE_SUFFIX): New macro.
10875 (save_suffix): Use.
10876 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
10877 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
10878 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
10880 * invoke.texi (Running Protoize): Update documentation.
10882 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
10884 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
10886 2000-02-25 John Wehle (john@feith.com)
10888 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
10890 2000-02-25 Anthony Green <green@cygnus.com>
10892 * toplev.c (rest_of_compilation): Rebuild jump labels if
10893 combine_instructions has created a new direct jump.
10894 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
10896 (combine_instructions): Call try_combine with new argument.
10897 Return non-null value when new direct jump instruction is created.
10898 * rtl.h: combine_instructions returns an int.
10900 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
10902 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
10903 jump when changing a computed jump into a jump to a known
10906 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
10908 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
10909 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
10911 * i386.md (define_expand "clrstrsi"): Fix typo.
10913 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
10915 * rtl.texi: Fix typo.
10917 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10919 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
10920 UNITS_PER_WORD. Change caller initial_elimination_offset.
10921 (rounded_frame_size): Take into account that argument pushed has
10922 changed. Fix TARGET_ALIGN_DOUBLE problem.
10924 2000-02-25 Geoff Keating <geoffk@cygnus.com>
10926 * haifa-sched.c (schedule_block): Explain the real reason
10927 we delete REG_SAVE_NOTEs on the first insn of a block.
10928 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
10930 2000-02-24 Mark Mitchell <mark@codesourcery.com>
10932 * input.h (push_srcloc): New function.
10933 (pop_srcloc): Likewise.
10934 * toplev.c (push_srcloc): Define it.
10935 (pop_srcloc): Likewise.
10937 2000-02-24 Richard Henderson <rth@cygnus.com>
10939 * flow.c (life_analysis): When collecting reg info, clear
10942 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10944 Fix bug exposed by reload.c no longer rounding the frame
10945 size to BIGGEST_ALIGNMENT:
10946 * sh.c (rounded_frame_size): New function.
10947 (sh_expand_prologue, sh_expand_epilogue): Use it.
10948 (initial_elimination_offset): Likewise.
10950 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10952 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
10953 * sh-protos.h (sh_need_epilogue): Declare.
10954 * sh.c (sh_need_epilogue_known): New static variable.
10955 (sh_need_epilogue): New function.
10956 (function_epilogue): Clear need_epilogue_known.
10957 * sh.md (return): Split into expander / insn pattern.
10958 Make the expander conditional on ! sh_need_epilogue ().
10960 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
10962 * machmode.h (get_mode_alignment): Declare.
10963 (GET_MODE_ALIGNMENT): Call it.
10964 * stor-layout.c (get_mode_alignment): New function. Make
10965 sure alignment is always power of 2.
10967 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10969 * i386.h: Remove useless definition of "I386" and misleading
10972 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10974 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
10975 under which TREE_PERMANENT will be set.
10976 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
10977 build1): Use TREE_SET_PERMANENT.
10978 * print-tree.c (print_node): Don't report value of
10979 TREE_PERMANENT if ggc_p is true.
10981 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
10982 decide whether to give a type a new alias set.
10983 * objc/objc-act.c (build_objc_string_object): Never copy the string.
10984 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
10985 of value of 'obstack'.
10988 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10990 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
10992 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10994 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
10995 * cpplib.c (cpp_get_token): Produce them.
10996 * cppexp.c (cpp_lex): Handle them.
10998 2000-02-23 Nick Clifton <nickc@cygnus.com>
11000 * config/arm/arm.c (arm_comp_type_attributes): Simply and
11001 comment tests on type attributes.
11003 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11005 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
11006 conform to documentation.
11007 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
11008 to check for special cases.
11009 * sh-protos.h (sh_loop_align): Declare.
11010 * sh.c (sh_loop_align): Define.
11012 2000-02-22 Andrew Haley <aph@cygnus.com>
11014 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
11015 (SIZE_TYPE): Is 32 bits when using -mgp32.
11016 (PTRDIFF_TYPE): Ditto.
11018 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11020 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
11022 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
11024 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
11025 BIGGEST_FIELD_ALIGNMENT a constant.
11027 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
11029 * dwarf2out.c (output_line_info): Put the marker for the end of
11030 the line number info at the actual end.
11031 (gen_struct_or_union_type_die): Use decl_function_context
11032 to check for local classes.
11033 * dwarfout.c (output_type): Likewise.
11035 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
11037 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
11038 for arguments with a mode, but no type.
11039 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
11040 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
11041 * pa/long_double.h: New file.
11042 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
11043 both have 128bit wide long doubles.
11044 * configure: Rebuilt.
11046 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11048 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
11050 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
11051 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
11052 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
11054 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
11056 * integrate.c (compare_blocks, find_block): Likewise.
11058 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
11060 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
11062 * stmt.c (stmt_status, set_file_and_line_for_stmt,
11063 expand_asm_operands): Likewise.
11065 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
11067 * predict.c (estimate_probability): Added the pointer heuristic to
11068 the collection of static branch predictors.
11070 2000-02-21 Catherine Moore <clm@cygnus.com>
11072 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
11073 * invoke.texi (-mfix7000): Document.
11075 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
11077 * diagnostic.c (init_output_buffer): Make it possible to output at
11078 least 32 characters if we're given a too long prefix.
11080 2000-02-20 Mark Mitchell <mark@codesourcery.com>
11082 * varasm.c (initializer_constant_valid_p): Call
11083 lang_expand_constant to simplify the constant.
11085 2000-02-20 Bruce Korb <bkorb@gnu.org>
11087 * fixinc/inclhack.def(stdio_va_list):
11088 typedef needs to be disabled.
11089 * fixinc/inclhack.sh: regen
11090 * fixinc/fixincl.x: regen
11092 2000-02-20 Geoff Keating <geoffk@cygnus.com>
11094 * print-rtl.c (print_rtx): Don't print addresses when
11095 flag_dump_unnumbered.
11097 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11099 * sparc.c (sparc_output_scratch_registers): Mark parameter with
11101 (sparc_va_arg, sparc_flat_output_function_prologue,
11102 sparc_flat_output_function_epilogue): Cast value to unsigned in
11104 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
11106 * sparc.md: Add default case in switch.
11108 2000-02-19 Richard Henderson <rth@cygnus.com>
11110 * c-typeck.c (add_pending_init): Don't abort for multiple
11111 fields at the same offset.
11112 (pending_init_member): Test the correct member.
11114 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11116 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
11118 (start_catch_handler) : Same.
11120 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
11122 * Makefile.in: Have flow.o depend on $(EXPR_H)
11124 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11126 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
11127 * c-decl.c (duplicate_decls, finish_enum): Likewise.
11128 (finish_decl): Remove -Wlarger-than code from here.
11129 * flags.h (id_clash_len): Now int.
11130 (larger_than_size): Now HOST_WIDE_INT.
11131 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
11132 Clean up checking to see if in table.
11133 (make_bit_field_ref): Remove extra parm to bitsize_int.
11134 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
11135 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
11136 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
11137 and for computing size of decl.
11138 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
11139 Move -Wlarger-than code to here.
11140 (layout_record): Remove extra arg to bitsize_int.
11141 Set TYPE_BINFO_SIZE_UNIT.
11142 (layout_union): Remove extra arg to bitsize_int.
11143 Use proper type for size of QUAL_UNION.
11144 (layout_type): Remove extra arg to bitsize_int.
11145 * toplev.c (id_clash_len): Now int.
11146 (larger_than_size): Now HOST_WIDE_INT.
11147 (decode_W_option): Clean up id-clash and larger-than- cases.
11148 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
11149 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
11150 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
11151 (struct tree_decl): New field size_unit.
11152 (size_int_wide): No HIGH operand; NUMBER is now signed.
11153 (size_int_2): Deleted.
11154 (size_int, bitsize_int): Don't use it and rework args.
11155 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
11157 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
11159 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
11161 2000-02-18 Geoff Keating <geoffk@cygnus.com>
11163 * invoke.texi (Warning Options): Add an explanation of why
11164 you might want the -Wfloat-equal flag.
11166 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11168 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
11169 * cppinit.c (new_pending_define): Add cast to avoid warning.
11170 * expmed.c (extract_bit_field): Likewise.
11171 * flow.c (enum reorder_skip_type): New type.
11172 (skip_insns_between_blcok): New it.
11173 Rework to avoid warning about possibly undefined variable.
11174 * function.c (assign_parms): Make thisparm_boundary unsigned.
11175 * genrecog.c (write_switch): Cast XWINT result to int.
11176 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
11177 * mips-tfile.c (init_file): Make two versions of FDR intializer:
11178 one for MIPS and one for Alpha.
11179 (get_tag, copy_object): Add casts to avoid warnings.
11180 * optabs.c (init_one_libfunc): Cast NAME to (char *).
11181 * reload.c (find_reloads): Make TYPE enum reload_type.
11182 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
11183 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
11184 * varasm.c (compare_constant_1): Add cast to avoid warning.
11185 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
11187 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
11188 Cast switch operand of size to int.
11189 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
11190 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
11193 2000-02-18 Nick Clifton <nickc@cygnus.com>
11195 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
11196 anything for an alignment of zero.
11198 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
11199 anything for an alignment of zero.
11201 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
11203 * gcc.texi (Bug Reporting): Refer to bugs.html.
11204 (Bug Lists): Likewise.
11205 * system.h (GCCBUGURL): New preprocessor define.
11206 * rtl.c (fancy_abort): Use it.
11207 * gcc.c (main): Likewise.
11209 2000-02-18 Richard Henderson <rth@cygnus.com>
11211 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
11212 (life_analysis_1): Subsume into ...
11213 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
11214 Use update_life_info for the relaxation.
11215 (update_life_info): Update REG_BASIC_BLOCK for registers live on
11216 entry and regs_live_at_setjmp.
11217 (set_noop_p): Simplify.
11218 (notice_stack_pointer_modification_1): Renamed from s/_1//.
11219 (record_volatile_insns): Split into ...
11220 (delete_noop_moves): ... here,
11221 (notice_stack_pointer_modification): ... here,
11222 (insn_dead_p): ... and here.
11223 (propagate_block): Don't query INSN_VOLATILE.
11224 (mark_used_regs): Mind !PROP_REG_INFO.
11225 * toplev.c (rest_of_compilation): Call mark_constant_function here,
11226 not in life_analysis.
11228 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
11230 * loop.c (canonicalize_condition): New function,
11231 broken out of get_condition.
11232 (get_condition): Use it.
11233 * expr.h (canonicalize_condition): Prototype it.
11235 * tree.h (tree_int_cst_msb): Declare.
11236 * tree.c (tree_int_cst_msb): New function.
11238 2000-02-17 Mark Mitchell <mark@codesourcery.com>
11240 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
11243 * invoke.texi (-fmessage-length=n): Document.
11245 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
11247 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
11249 2000-02-17 Mark Mitchell <mark@codesourcery.com>
11251 * function.c (thread_prologue_and_epilogue_insns): Put a line note
11252 after the prologue.
11254 2000-02-17 Nick Clifton <nickc@cygnus.com>
11256 * config/arm/thumb.c: Replace includes of system headers with
11257 #include "system.h".
11259 2000-02-16 Richard Henderson <rth@cygnus.com>
11261 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
11262 Add crtbeginS.o and crtendS.o.
11263 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
11264 (ENDFILE_SPEC): Use crtendS.o.
11265 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
11267 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
11268 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
11269 shared and present.
11270 (__dso_handle): New variable.
11271 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
11272 bias to __CTOR_END__.
11274 2000-02-16 Richard Henderson <rth@cygnus.com>
11276 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
11278 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
11280 * longlong.h (__clz_tab): Declare as static to match definition.
11282 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
11284 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
11285 (XREF_FILE_NAME): Define.
11287 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
11288 (EH_FRAME_SECTION_ASM_OP): Define.
11289 (IDENT_ASM_OP): Define.
11290 (TEXT_SECTION_ASM_OP): Define.
11291 (CPP_SPEC): Define.
11292 (CTORS_SECTION_ASM_OP): Define.
11293 (CTOR_SECTION_FUNCTION): Use it.
11294 (DTORS_SECTION_ASM_OP): Define.
11295 (DTOR_SECTION_FUNCTION): Use it.
11297 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
11299 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
11302 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
11303 debug_bb_n): New functions.
11304 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
11305 * basic-block.h: Prototype new functions.
11307 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
11309 * configure.in: Add support for avr target.
11310 * configure: Rebuilt.
11312 * invoke.texi: Add AVR invocation docs.
11313 * install.texi: Add information about AVR.
11314 * md.texi: Add AVR constraint letters description.
11315 * extend.texi: Add description for AVR specific attributes.
11317 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
11319 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
11321 2000-02-16 Nick Clifton <nickc@cygnus.com>
11323 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
11324 (make_insn_raw): Move RTL check here.
11326 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11328 * version.c: Include gansidecl.h and version.h.
11330 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
11332 * configure.in (gcc_version): When setting, narrow search to
11333 lines containing `version_string'.
11335 * Makefile.in (mainversion): Likewise.
11336 (GCC_H): New variable.
11337 (gcc.h): Delete target.
11338 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
11339 (version.o): Depend on version.h.
11340 (dbxout.o): Don't depend on gcc.h.
11342 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
11343 Michael Meissner <meissner@cygnus.com>
11345 * md.texi (Simple Constraints): Add item about whitespace.
11346 * genoutput.c (strip_whitespace): New.
11347 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
11348 strip_whitespace for constraints.
11349 Test pointer using NULL, not 0.
11351 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11353 * cpplib.c (do_line): Pedwarn for #line > 32767.
11355 * c-lex.c (readescape): Warn about '\x', but do not reject it.
11357 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
11359 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
11360 to default cpp spec.
11361 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
11362 * cpp.texi: Document __GNUC_PATCHLEVEL__.
11365 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
11368 2000-02-15 Denis Chertykov <denisc@overta.ru>
11370 * configure.in: Add support for avr target.
11372 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11374 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
11375 (sh_addr_diff_vec_mode): Don't declare.
11376 * sh.c (sh_addr_diff_vec_mode): Delete.
11378 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11380 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
11382 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11384 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
11385 (smulsi3_highpart_i): Name.
11386 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
11387 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
11388 (smulsi3_highpart, umulsi3_highpart): Likewise.
11390 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
11391 correctly independent of endianness.
11392 (mulsidi3, umulsidi3): Now define_insn. Hide details that
11393 confuse the optimizers.
11394 (mulsidi3+1, umulsidi3+1): New define_split.
11396 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
11398 * config/sh/sh.md: Guard insn splits against illegal registers.
11399 * config/sh/sh.h: Correct comment about macros.
11401 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11402 Andrew MacLeod <amacleod@cygnus.com>
11404 * Makefile.in (lcm.o): Depend on insn-attr.h.
11405 * basic-block.h (optimize_mode_switching): Declare.
11406 * lcm.c (tm_p.h, insn-attr.h): #include.
11407 (seginfo, bb_info): New structs.
11408 (antic, transp, comp, delete, insert) : New file-scope static variables.
11409 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
11410 (reg_becomes_live, optimize_mode_switching): Likewise.
11411 * tm.texi: Add description of mode switching macros.
11412 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
11414 * sh-protos.h (remove_dead_before_cse): Remove prototype.
11415 (fldi_ok, fpscr_set_from_mem): New prototypes.
11416 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
11417 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
11418 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
11419 (sh_flag_remove_dead_before_cse): Remove declaration.
11420 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
11421 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
11422 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11423 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
11424 (barrier_align): Allow for JUMP_INSNS containing a parallel.
11425 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
11426 (fldi_ok): New function.
11427 (get_fpscr_rtx): Add fpscr_rtx as GC root.
11428 (emit_sf_insn): Only generate fpu switches when optimize < 1.
11429 (emit_df_insn): Likewise.
11430 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
11431 (sh_flag_remove_dead_before_cse): Delete.
11432 (get_free_reg, fpscr_set_from_mem): New functions.
11433 * sh.md (movdf, movsf): Remove no_new_pseudos code.
11434 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
11436 2000-02-15 Loren Rittle <ljrittle@acm.org>
11438 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
11440 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11442 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
11443 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
11445 * cccp.c: Include version.h and/or don't declare `version_string'.
11446 * collect2.c: Likewise.
11447 * alpha.c: Likewise.
11448 * arm/aof.h: Likewise.
11449 * arm/coff.h: Likewise.
11450 * arm/elf.h: Likewise.
11451 * arm/pe.h: Likewise.
11452 * arm/tcoff.h: Likewise.
11453 * arm/telf.h: Likewise.
11454 * arm/tpe.h: Likewise.
11455 * arm/vxarm.h: Likewise.
11456 * convex/convex.c: Likewise.
11457 * i386/dgux.c: Likewise.
11458 * i386/sun386.h: Likewise.
11459 * m88k/m88k.c: Likewise.
11460 * mcore/mcore-pe.h: Likewise.
11461 * mips/mips.h: Likewise.
11462 * romp/romp.h: Likewise.
11463 * sh/sh.c: Likewise.
11464 * cpphash.c: Likewise.
11465 * cppinit.c: Likewise.
11466 * dwarf2out.c: Likewise.
11467 * dwarfout.c: Likewise.
11470 * mips-tfile.c: Likewise.
11471 * protoize.c: Likewise.
11472 * toplev.c: Likewise.
11473 * tree.h: Likewise.
11475 * version.c (version_string): Constify a char*.
11477 * version.h: New file.
11479 2000-02-14 Nick Clifton <nickc@cygnus.com>
11481 * configure.in: Add mcore-elf and mcore-pe targets.
11482 * configure: Regenerate.
11484 * NEWS: Add note that MCore port has been contributed.
11486 * invoke.texi: Document command line switches for MCore port.
11487 * install.texi: Add MCore to list of supported targets.
11489 2000-02-14 Geoff Keating <geoffk@cygnus.com>
11491 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
11492 then we will need to import the frame handling functions.
11493 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
11494 to import the frames themselves.
11496 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
11497 Jason Eckhardt <jle@cygnus.com>
11499 * basic_block.h: Added prototype for reorder_basic_blocks.
11500 * toplev.c: Changes to add -freorder-blocks and graph dump after
11501 block reordering is done.
11502 * flow.c (reorder_block_def): New structure for use during block
11504 (REORDER_BLOCK_*): New macros to access members of above structure.
11505 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
11506 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
11507 functions for block reordering.
11509 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
11511 * gcc.texi (Passes): Fix typo.
11512 * md.texi (Standard Names): Ditto.
11513 * tm.texi (Storage Layout): Ditto.
11515 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
11517 * cpplib.c (do_define): Only free the old definition if it
11520 2000-02-13 Neil Booth <NeilB@earthling.net>
11522 * cppfiles.c (read_and_prescan): When emitting deferred
11523 newlines, test speccase[] again instead of checking each
11524 possible whitespace character in turn. When we encounter \r,
11525 look behind for \n first, then ahead.
11527 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
11529 * cse.c (cse_altered): New internal flag.
11530 (cse_insn): Set it if we changed an insn.
11531 (cse_main): Clear cse_altered before each basic block.
11532 Only garbage collect if cse_altered is true afterward.
11534 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11536 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
11538 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
11540 * combine.c (simplify_comparison): Fix typo.
11542 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
11544 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
11547 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11549 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
11550 previously inserted node instead of root node. Caller changed.
11552 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11554 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
11556 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11558 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
11559 __dereg_frame_dtor): Add prototype argument.
11561 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
11563 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
11565 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
11567 * gthr-vxworks.h (__gthread_once): Likewise.
11569 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
11571 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
11573 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
11574 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
11575 stack pointer in functions w/o saved registers, output LEAVE more often
11576 on TARGET_USE_LEAVE machines.
11578 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
11580 * config/arm/arm.c (arm_init_cumulative_args); New function:
11581 Initlaise the CUMULATIE_ARGS strcuture for a function
11583 (arm_function_arg): New function: Determine where to place a
11584 function's argument. Also handles deciding the function's
11586 (current_file_function_operand): New function: Return true if
11587 the symbol is a function which has already been compiled.
11588 (arm_is_long_call_p): New function: Return true if the
11589 indicated function should be called via a long call.
11590 (arm_valid_type_attribute_p): New function: Return true if the
11591 attribute is a valid, arm specific, attribute.
11592 (arm_comp_type_attribute): New function: Return true if the
11593 two types have compatable, arm specific, attributes.
11595 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
11597 (FUNCTION_ARG): Redefine to call arm_function_arg.
11598 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
11600 (INIT_CUMULATIVE_ARGS): Redefine to call
11601 arm_init_cumulative_args.
11602 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
11604 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
11606 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
11608 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
11609 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
11610 (COMP_TYPE_ATTRIBUTES): Define.
11612 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
11613 if a long call is needed.
11614 (call_value): Call arm_is_long_call_p to decide if a long call
11616 (call_symbol): Call arm_is_long_call_p to decide if a long call
11619 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
11621 2000-02-11 Denis Chertykov <denisc@overta.ru>
11623 * README.AVR: New file with information about the avr ports.
11624 * config/avr: New directory with avr port files.
11626 2000-02-11 Andreas Jaeger <aj@suse.de>
11628 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
11630 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
11632 * cpphash.c: Fix formatting, update commentary.
11633 (dump_definition): Take three separate arguments instead of a
11634 MACRODEF structure argument.
11635 * cpphash.h: Update prototype of dump_definition.
11636 * cppinit.c (cpp_finish): Update call of dump_definition.
11638 * cpplib.c (do_define): Always create new hash entry with
11639 T_MACRO type. Remove redundant check for redefinition of
11640 poisoned identifier. Update call of dump_definition.
11641 (do_undef): Don't call check_macro_name. Rename sym_length to
11643 (do_error, do_warning): Don't use copy_rest_of_line or
11645 (do_warning): Don't use pedwarn for the actual warning,
11646 only the notice about its not being in the standard. (Fixes
11647 bug with #warning in system headers.)
11648 (do_ident): Stricter argument checking - accept only a single
11649 string after #ident. Also, macro-expand the line.
11650 (do_xifdef): Use cpp_defined. De-obfuscate.
11652 (do_pragma): Split out specific pragma handling to separate
11653 functions. Use get_directive_token. Update commentary. Do
11654 not pass on #pragma once or #pragma poison to the front end.
11655 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
11656 do_pragma_default): New.
11658 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
11660 * jump.c (jump_optimize_1): The first operand in a relational
11661 can be a CONST_INT.
11662 * optabs.c (emit_conditional_move): Handle relationals which
11663 have a known true/false result.
11665 2000-02-11 Geoff Keating <geoffk@cygnus.com>
11667 * function.c (thread_prologue_and_epilogue_insns): Don't insert
11668 a RETURN insn into a block which already ends with a jump.
11670 2000-02-11 Geoff Keating <geoffk@cygnus.com>
11672 * haifa-sched.c (BUF_LEN): Increase a lot.
11674 2000-02-11 Nick Clifton <nickc@cygnus.com>
11676 * configure.in: Add tm_p_file specification for thumb targets.
11677 * configure: Regenerate.
11679 * config/arm/thumb-protos.h: New file: Prototypes for exported
11680 functions defined in thumb.c.
11682 2000-02-11 Robert Lipe <robertl@sco.com>
11684 * Makefile.in (bootstrap-lean): Remove additional files.
11685 (bootstrap2-lean): Likewise.
11686 (VOL_FILES): List of files for above.
11688 2000-02-11 Nathan Sidwell <nathan@acm.org>
11690 * cpphash.c (special_symbol): Remove spurious argument to
11693 2000-02-11 Joel Sherrill (joel@OARcorp.com>
11695 * configure.in: (i*86-*-rtems*): Swapped elf and coff
11697 * configure: Rebuilt.
11699 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
11701 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
11703 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
11705 * pa.c, pa.h: Remove trigraph sequences within comments.
11707 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
11709 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
11711 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
11713 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
11715 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11717 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
11719 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11721 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
11722 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
11723 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
11724 (ASM_FILE_END): Use c4x_file_end.
11725 * config/c4x/c4x.c (c4x_global_label): New function.
11726 (c4x_external_ref, c4x_file_end): Likewise.
11728 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
11729 (c4x_external_ref, c4x_end_file): Likewise.
11731 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
11733 * cppexp.c: Don't include cpphash.h.
11734 (parse_charconst, cpp_lex): Use cpp_defined.
11735 (cpp_lex): Use get_directive_token throughout. Remove
11736 unnecessary cases from switch. Move assertion-handling code
11737 down to OTHER case.
11738 (cpp_parse_expr): If we see '+' or '-', check the context to
11739 determine if they are unary or binary operators. Streamline
11740 the jumps a bit. Do not call skip_rest_of_line.
11742 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
11743 static. Export get_directive_token. Update commentary.
11744 (cpp_defined): New function.
11745 (do_define): Remove reference to T_PCSTRING. Call
11746 free_definition to release memory for old definition, when
11747 redefining a macro.
11748 (eval_if_expression): Set only_seen_white to 0 before calling
11749 cpp_parse_expr. Call skip_rest_of_line after it returns.
11750 (cpp_read_check_assertion): Don't preserve a pointer into the
11751 token buffer across a call to cpp_get_token.
11753 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
11754 * cppfiles.c (redundant_include_p): Use cpp_defined.
11755 * cpphash.c (free_definition): New function.
11756 (delete_macro): Use it. Update commentary.
11757 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
11759 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
11760 from enum node_type. Prototype cpp_defined and get_directive_token.
11761 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
11763 * fix-header.c (check_macro_names): Use cpp_defined.
11764 (read_scan_file): Set inhibit_warnings and inhibit_errors in
11765 the options structure.
11767 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11769 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
11771 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
11773 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
11774 rather than die->die_tag.
11776 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11778 * combine.c (make_extraction, force_to_mode): Avoid warning on
11779 mixed-signedness conditionals.
11780 (make_field_assignment, nonzero_bits): Likewise.
11781 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
11782 (store_split_bit_field, extract_split_bit_field): Likewise.
11783 (extract_fixed_bit_field, store_bit_field,
11784 * expr.c: Change alignment to be unsigned everywhere.
11785 (move_by_pieces, store_constructor_field, store_constructor):
11786 Alignment parm is unsigned.
11787 (emit_block_move, emit_group_load, emit_group_store): Likewise.
11788 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11789 (do_compare_rtx_and_jump): Likewise.
11790 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
11791 Compare align with GET_MODE_ALIGNMENT.
11792 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
11793 (get_inner_reference): Likewise.
11794 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
11795 (expand_assignment): Local vars for alignment now unsigned.
11796 (store_constructor, store_field, expand_expr, do_jump): Likewise.
11797 (do_compare_and_jump): Likewise.
11798 (store_field): Call new function expr_align.
11799 * expr.h (emit_block_move, emit_group_load, emit_group_store):
11800 Alignment arg now unsigned.
11801 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11802 (do_compare_rtx_and_jump, store_bit_field): Likewise.
11803 (extract_bit_field): Likewise.
11804 * fold-const.c (add_double): Add cast to eliminate signedness warning.
11805 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
11806 (get_best_mode): Alignment arg is unsigned.
11807 * rtl.h (move_by_pieces): Likewise.
11808 * store-layout.c (maximum_field_alignment, set_alignment):
11810 (layout_decl): Alignment arg is now unsigned.
11811 Remove unneeded casts.
11812 (layout_record, layout_union, layout_type): Remove unneeded casts.
11813 Local alignment variables now unsigned.
11814 (get_best_mode): Alignment arg now unsigned.
11815 * tree.c (expr_align): New function.
11816 * tree.h (expr_align): Likewise.
11817 (maximum_field_alignment, set_alignment): Now unsigned.
11818 (get_inner_reference): Alignment argument is now pointer to unsigned.
11819 * varasm.c (assemble_variable): Add cast to eliminate warning.
11821 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
11823 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
11824 then store directly into op0.
11826 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
11827 the CALL_INSN, and emit the note immediately after it.
11829 2000-02-10 Nick Clifton <nickc@cygnus.com>
11831 * config/arm/thumb.md (epilogue): Include a (return) in the
11832 generated insn, and emit it using emit_jump_insn not
11835 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
11837 * function.c (assign_temp): Change zero-sized arrays to size 1.
11838 * integrate.c (expand_inline_function): Do not update
11839 stack_alignment_needed
11840 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
11841 add some sanity checking, remove optimization for function with
11844 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11846 * flow.c (mark_regs_live_at_end): Delete unused variables.
11848 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
11850 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
11851 in macro FRAME_GROWS_DOWNWARD.
11853 * stmt.c (expand_end_bindings): Delete unused variable.
11855 * unroll.c (iteration_info): Mark parameter `loop' with
11858 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11860 * fixinc/server.c (load_data): Return NULL if the marker line is
11862 (run_shell): If load_data returns NULL, retry the command once, in
11865 * configure: Rebuilt.
11867 2000-02-09 Bruce Korb <bkorb@gnu.org>
11869 * gcc/fixincludes: ** DELETED **
11870 * gcc/fixcpp: ** DELETED **
11871 * gcc/fixinc-nt.sed: ** DELETED **
11872 * gcc/just-fixinc: ** DELETED **
11873 * gcc/Makefile.in: Removed out-dated commentary
11874 * gcc/configure.in: Removed fast-fixincludes disablement.
11875 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
11877 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
11878 * function.c (thread_prologue_and_epilogue_insns): Uncomment
11881 2000-02-09 Richard Henderson <rth@cygnus.com>
11883 * jump.c (delete_insn): Don't delete user labels at -O0.
11885 2000-02-09 Robert Lipe <robertl@sco.com>
11887 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
11888 Don't link with HOST_LIBS.
11890 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11892 * configure.in: Correct --help text for --with-dwarf2.
11893 Put tm-dwarf2.h after other tm files, if it's requested.
11894 * configure: Regenerate.
11895 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
11898 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11900 * cpplib.h: Provide HASHNODE typedef and forward decl of
11901 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
11902 DEFINITION, struct hashnode, struct macrodef, struct
11903 definition, scan_decls prototype, default defn of
11904 INCLUDE_LEN_FUDGE moved elsewhere.
11906 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
11907 definition, and struct hashnode moved here. Remove the unused
11908 'predefined' field from struct definition. Replace the 'args'
11909 union with its sole member. All users updated (cpphash.c).
11910 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
11911 multiple include guard.
11913 * cpphash.c (hashf): Make static; use better algorithm; drop
11914 HASHSIZE parameter; return an unsigned int.
11915 (cpp_lookup): Drop HASH parameter. PFILE parameter is
11916 used. Calculate HASHSIZE modulus here.
11917 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
11919 (create_definition): Drop PREDEFINITION parameter.
11920 * cpplib.c (do_define): Don't calculate a hash value here.
11921 Don't pass (keyword == NULL) to create_definition.
11923 * scan.h: Prototype scan_decls here.
11924 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
11925 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
11926 callers of cpp_lookup and cpp_install updated.
11928 * cpphash.c (macarg): Hoist all the flag diddling out of the
11930 (macroexpand): ... and out of the loop that calls macarg.
11931 Skip over the initial paren before macro arguments with
11932 cpp_get_non_space_token; point may be some distance before
11933 that paren. Abort if it's not there.
11935 * cpplib.c (parse_clear_mark): Delete function.
11936 (parse_set_mark, parse_goto_mark): Make static.
11937 (ACTIVE_MARK_P): New macro.
11938 (skip_block_comment, skip_line_comment): Do not bump the line
11939 if ACTIVE_MARK_P is true.
11940 (cpp_pop_buffer): The buffer to be popped may not have an
11942 (cpp_get_token): When looking for the initial paren before
11943 macro arguments, only set a mark in a file buffer, Always
11944 return to that mark before proceeding to call macroexpand or
11945 return a NAME token.
11947 * cpplib.h: Remove prototypes of parse_set_mark,
11948 parse_clear_mark, parse_goto_mark.
11949 (struct cpp_options): Rename 'put_out_comments' to
11950 'discard_comments' and invert its sense.
11951 * cppinit.c, cpphash.c, cpplib.c: All users of
11952 put_out_comments changed to use discard_comments, with
11955 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
11957 * function.c (thread_prologue_and_epilogue_insns): Don't delete
11958 the edge from a block that both jumps and falls through to the
11961 2000-02-09 Scott Bambrough <scottb@netwinder.org>
11963 * config/arm/arm.md (movsi): In PIC mode, make sure that a
11964 constant source address is legitimate.
11966 2000-02-09 Philip Blundell <pb@futuretv.com>
11968 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
11971 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
11973 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
11975 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11977 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
11978 ends with a newline and a NUL. Don't be so clever manipulating
11981 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
11983 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
11984 not to BIGGEST_ALIGNMENT.
11986 2000-02-08 Geoff Keating <geoffk@cygnus.com>
11988 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
11989 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
11990 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
11991 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
11992 * frame.c (execute_cfa_insn): Handle
11993 DW_CFA_GNU_negative_offset_extended.
11995 2000-02-08 Richard Henderson <rth@cygnus.com>
11997 * flow.c (tidy_fallthru_edges): Split out from ...
11998 (delete_unreachable_blocks): ... here.
11999 (find_basic_blocks): Use it.
12001 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12003 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
12005 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
12007 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
12008 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
12009 (fix-header.o): Don't depend on cpphash.h.
12011 * scan.c (hashstr): New function.
12012 * scan.h: Prototype it.
12013 * fix-header.c: Don't include cpphash.h. Use hashstr.
12014 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
12015 hashstr. Report hash table statistics. Add private
12016 definition of xrealloc.
12018 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12020 * i386.h (TARGET_SWITCHES): Fix typo in option name.
12022 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
12024 * function.c (thread_prologue_and_epilogue_insns): Don't replace
12025 jumps with returns unless they are jumps to the fallthru block.
12027 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
12029 * i386.md (addqi3_cc): Fix contraints.
12031 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
12033 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
12035 2000-02-07 Mark Mitchell <mark@codesourcery.com>
12037 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
12038 carriage return after a macro name.
12040 2000-02-07 Fred Fish <fnf@be.com>
12042 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
12043 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
12045 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
12047 * cppfiles.c (deps_output): Count spacers in deps_column.
12049 2000-02-07 Neil Booth <NeilB@earthling.net>
12051 * cppinit.c (initialize_dependency_output): If there is no
12052 suffix, don't try to look for known suffixes. Use strrchr.
12053 (cpp_start_read): Remove duplicate initialization.
12055 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
12057 * calls.c (compute_argument_block_size): New argument
12058 preferred_stack_boundary.
12059 (expand_call): update cfun->preferred_stack_boundary, update call of
12060 compute_argument_block_size
12061 (emit_library_call): Increate cfun->preferred_stack_boundary
12062 to PREFERRED_STACK_BOUNDARY
12063 (emit_library_call_value): Likewise.
12064 * explow.c (allocate_dynamic_stack_spave): Likewise.
12065 * function.c (prepare_function_start): Set
12066 cfun->preferred_stack_boundary
12067 * function.h (struct function): Add preferred_stack_boundary field.
12068 * integrate.c (expand_inline_function): Update
12069 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
12070 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
12071 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
12073 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
12075 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
12076 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
12077 cpp_pedwarn, cpp_pedwarn_with_line,
12078 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
12079 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
12080 v_cpp_error_with_line, v_cpp_warning_with_line,
12081 cpp_message_from_errno, cpp_perror_with_name): Delete.
12083 * cpperror.c (cpp_print_containing_files): Take starting
12084 buffer as argument.
12085 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
12086 (v_cpp_message): Now called directly by all entry points.
12088 (cpp_pfatal_with_name, cpp_message): Delete.
12089 (cpp_notice_from_errno, cpp_ice): New functions.
12090 (cpp_notice): Is now for reporting error conditions, just
12091 without an associated file.
12092 (cpp_error, cpp_error_with_line): Don't do anything if
12093 opts->inhibit_errors is on.
12094 (cpp_pedwarn_with_file_and_line): Take column argument also.
12096 * cpplib.h: Update prototypes of exported functions.
12097 (struct cpp_options): Add inhibit_errors.
12099 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
12100 non-error messages. Include intl.h.
12102 * cppinit.c, cppmain.c: Likewise. Also, use
12103 cpp_notice_from_errno instead of cpp_perror_with_name or
12104 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
12106 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
12107 report internal errors.
12109 * cpplib.c (do_define): Switch bcopy to memcpy.
12110 Give cpp_pedwarn_with_file_and_line a dummy column argument.
12112 * cpplib.c (copy_rest_of_line): Revert previous change: don't
12113 bail out early if we hit a line comment.
12115 2000-02-06 Richard Henderson <rth@cygnus.com>
12117 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
12118 * basic-block.h: Declare them.
12119 * emit-rtl.h (active_insn_p): New.
12120 (next_active_insn, prev_active_insn): Use it.
12121 * rtl.h: Declare it.
12122 * function.c (emit_return_into_block): New.
12123 (thread_prologue_and_epilogue_insns): Insert return insns instead
12124 of epilogues when possible.
12125 * jump.c (jump_optimize_1): Remove code to insert a return insn
12126 on the fallthru to the exit block.
12128 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
12129 and for non-empty stack frames.
12130 * i386.md (return): Expand to return-pop as needed.
12132 2000-02-06 Richard Henderson <rth@cygnus.com>
12134 * simplify-rtx.c (simplify_relational_operation): Canonicalize
12135 constant to op1 for testing.
12137 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12139 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
12140 (fixuns_truncqfqi2): Use it.
12142 2000-02-06 Richard Henderson <rth@cygnus.com>
12144 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
12145 as a TYPE_LEA insn.
12147 * i386.md (widening and peepholes): Mask the constant instead of
12150 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
12152 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
12153 input pointer before possibly branching off to the backslash
12155 * cpphash.c (macroexpand): Correctly delete \r escapes when
12156 stringifying parameters.
12157 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
12158 if we can; bail out early if we hit a line comment.
12159 (handle_directive): Treat '# 123' in an .S file just like
12160 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
12161 Return 1 for '# not_a_directive'.
12162 (get_directive_token): Pop macro buffers here, so that
12163 cpp_get_token can't sneakily move past a newline.
12165 (cpp_get_token): goto randomchar if handle_directive returns 0.
12167 * cppalloc.c: Update copyright.
12168 * cpplib.c: Merge all the static function prototypes into one
12170 * cpplib.h: Remove #if 0 block.
12172 * cpperror.c: Remove #ifdef EMACS block.
12173 * cppmain.c: Likewise.
12174 * cpphash.c: Remove #if 0 blocks.
12175 * cppinit.c: Remove #if 0 blocks, and the -lint option.
12176 * cpplib.c: Remove #if 0 blocks and code referencing
12177 pcp_inside_if or for_lint. Remove duplicate error message.
12178 Fix error messages for #else after #else or #elif. Reformat.
12179 Remove archaic TODO list.
12180 * cpplib.h: Remove pcp_inside_if and for_lint flags.
12182 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
12184 * i386/osf1elf.h: Add missing backslash to multiline string.
12186 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12188 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
12190 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12192 * Makefile.in (c-common.o): Depend on $(EXPR_H).
12194 * c-common.c: Include expr.h.
12196 * c-pragma.c (mark_align_stack): Add prototype.
12198 * caller-save.c (add_stored_regs): Likewise.
12200 * combine.c (record_promoted_value): Likewise.
12202 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
12205 * cppinit.c (new_pending_define): Likewise.
12207 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
12209 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
12210 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
12211 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
12212 class_scope_p): Likewise.
12214 * dwarf2out.h (dwarf2out_set_demangle_name_func,
12215 dwarf2out_add_library_unit_info): Likewise.
12217 * ggc.h (ggc_page_print_statistics): Likewise.
12219 * haifa-sched.c (propagate_deps): Likewise.
12221 * reg-stack.c (next_flags_user, record_label_references): Likewise.
12223 * rtl.h (set_stack_check_libfunc): Likewise.
12225 * toplev.h (set_fatal_function): Likewise.
12227 * toplev.c (set_fatal_function): Delete prototype.
12229 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
12231 2000-02-05 Geoff Keating <geoffk@cygnus.com>
12233 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
12234 (FUNC_END): Likewise.
12236 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12238 * caller-save.c: Include tm_p.h.
12240 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12242 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
12244 2000-02-04 Neil Booth <NeilB@earthling.net>
12246 * cccp.c (main): Check 'dir' for a NULL pointer before passing
12249 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
12251 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
12252 * genflags.c: Use the max_operand_1 logic from genemit.c to
12253 calculate how many arguments gen_insn prototypes have. Remove
12254 NO_MD_PROTOTYPES ifdefs from the generated file.
12255 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
12256 file. Cast gen_insn initializers to insn_gen_fn.
12257 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
12258 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
12260 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12262 * fixinc/Makefile.in (HDR): Add machname.h.
12265 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12267 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
12268 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
12269 (c4x_cpu_version): Ditto.
12270 * config/c4x/c4x-protos.h: ... here.
12272 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
12274 * dwarf2out.c (add_abstract_origin_attribute): Don't call
12275 gen_abstract_function on our context if we're a nested function.
12277 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12279 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
12280 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
12282 2000-02-04 Bruce Korb <bkorb@gnu.org>
12284 * fixinc/genfixes(machname.h):
12285 Move the functionality from gen-machine.h into this file.
12286 UNdef MN_NAME_PAT if there are no names to change.
12287 Also, be a little kinder when AutoGen is not present.
12289 * fixinc/Makefile.in(machname.h):
12290 Change the generation rule to use genfixes.
12292 * fixinc/fixfixes.c(machine_name):
12293 machine_name_fix's functionality now dependent upon whether
12294 MN_NAME_PAT is defined.
12296 * fixinc/fixtests.c(machine_name):
12299 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
12302 * fixinc/fixlib.h(mn_get_regexps):
12305 * fixinc/gen-machine.h: DELETED
12307 2000-02-04 Jan Hubicka <jh@suse.cz>
12308 Richard Henderson <rth@cygnus.com>
12310 * i386.c (SAVE_REGS_FIRST): Remove.
12311 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
12312 (ix86_compute_frame_size): Likewise.
12313 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
12314 (ix86_emit_restore_regs): Remove.
12315 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
12316 when a frame pointer is in use.
12317 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
12318 instead of pop to restore a register when profitable; emit leave
12320 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
12321 as a TYPE_LEA insn.
12322 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
12323 * i386.md (prologue_allocate_stack): Remove.
12324 (epilogue_deallocate_stack): Remove.
12325 (pro_epilogue_adjust_stack): New.
12327 2000-02-04 Richard Henderson <rth@cygnus.com>
12329 * function.c (diddle_return_value): Rework to use a callback function.
12330 Use current_function_return_rtx if it's been set up.
12331 (do_clobber_return_reg, clobber_return_register): New.
12332 (do_use_return_reg, use_return_register): New.
12333 (expand_function_end): Use them.
12334 * stmt.c (expand_null_return): Likewise.
12335 * function.h: Declare them.
12336 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
12337 (mark_reg): Change arguments as appropriate for callback.
12338 * integrate.c (expand_inline_function): Revert 19 Jan change.
12340 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
12342 * tm.texi (Values in Registers): Fix typo: "fo" "for".
12343 (Misc): Say the scheduler, not the Haifa scheduler.
12345 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
12347 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
12348 when in_mem is set. Update all callers.
12350 2000-02-04 Richard Henderson <rth@cygnus.com>
12352 * i386/openbsd.h (INT_ASM_OP): Define.
12354 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
12356 * tm.texi: Fix various typos.
12358 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
12360 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
12361 (MD_STARTFILE_PREFIX_1): New macro.
12363 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
12365 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
12366 destination when needed.
12367 (strmovsi, strsetsi): New expander.
12368 (strmovsi_1, strsetsi_1): New pattern.
12369 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
12370 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
12371 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
12372 * invoke.texi (align-stringops, inline-all-stringops): Document.
12374 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
12376 * i386/netbsd.h (INT_ASM_OP): Define.
12378 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
12380 * cpplib.h (cpp_reader): Add new flag, no_directives.
12381 * cpphash.c (macarg): Set it.
12382 * cpplib.c (handle_directive): If no_directives is on and we
12383 find a directive, issue an error and discard the line.
12385 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
12387 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
12388 FP constants. Add ! TARGET_FPU check for FP constants.
12390 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
12392 * flow.c (find_basic_blocks): Don't kill label_value_list
12394 (cleanup_cfg): Kill it here.
12396 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12398 * expr.c (store_field): Ensure ALIGN is no stricter than the
12401 2000-02-02 Richard Henderson <rth@cygnus.com>
12403 * jump.c (delete_insn): Partially revert 19 Jan change;
12404 don't convert unused code labels to notes at -O0.
12406 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12408 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
12409 split_all_insns to recreate REG_LABEL notes for flow2 pass.
12411 2000-02-01 Richard Henderson <rth@cygnus.com>
12413 * i386.c (general_no_elim_operand): New.
12414 (nonmemory_no_elim_operand): New.
12415 (ix86_expand_move): Copy eliminable operands before a push.
12416 * i386-protos.h: Declare new functions.
12417 * i386.h (CAN_ELIMINATE): Simplify.
12418 (PREDICATE_CODES): Update.
12419 * i386.md (push insns): Don't allow eliminable register operands.
12421 2000-02-01 Richard Henderson <rth@cygnus.com>
12423 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
12424 replace BLKmode with DECL_RTL's mode.
12426 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
12428 * frame.c (find_fde): Convert for loop to do-while so compiler
12429 sees it's always executed at least once.
12430 * libgcc2.c (BBINBUFSIZE): Kill.
12431 (__bb_init_prg): Use fgets.
12432 (__bb_exit_trace_func): Don't paste strings.
12433 * unroll.c (unroll_loop): Initialize unroll_type, not
12434 unroll_number, and tweak logic to match.
12436 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
12438 (ix86_flags_dependant): Likewise. Disentangle control flow.
12439 (ix86_sched_reorder): Break guts out to
12440 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
12441 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
12444 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
12445 use string concatenation. Don't save and restore esi.
12447 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
12448 (machname.h): Remove script to separate file. Use two-step
12449 sequence so target is not created if script fails.
12450 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
12451 identifiers are defined.
12452 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
12453 an empty string, machine_name doesn't need to do anything at
12455 (is_cxx_header): Add more cases to regexp.
12456 * fixinc/fixlib.h: Update prototype.
12457 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
12459 * fixinc/fixincl.c: Define NO_BOGOSITY.
12461 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
12462 (hp_sysfile): Add missing comma.
12463 (math_exception): Put the wrapper ifdefs at the beginning and
12464 the end of the file.
12465 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
12467 2000-02-01 Richard Henderson <rth@cygnus.com>
12469 * sparc.c (fp_zero_operand): Turn into a normal predicate.
12470 Use CONST0_RTX. Update all callers.
12471 * sparc.h, sparc-protos.h: Update accordingly.
12472 * sparc.md (fp mov insns): Use fp_zero_operand directly
12475 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
12477 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
12480 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12482 * Makefile.in (specs.ready): New target.
12483 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
12485 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12487 * fixinc.irix: Use unique filenames for writing into /tmp,
12488 * fixinc.ptx: Likewise.
12489 * fixinc.sco: Likewise.
12490 * fixinc.svr4: Likewise.
12491 * fixinc.winnt: Likewise.
12493 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12495 * tsystem.h: New file.
12497 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
12498 s-crtS): Depend on tsystem.h.
12500 * crtstuff.c: Include tsystem.h.
12501 * frame.c: Likewise.
12502 * libgcc2.c: Likewise.
12504 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
12506 * builtins.c (expand_builtin_memset): Expand for variable sized
12509 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
12511 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
12514 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
12516 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
12518 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
12520 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
12522 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
12523 case 3->2 combining (combining with splitting) in which 2 is CC0
12524 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
12525 checked at the begining of the function with the aid of calling
12526 function 'can_combine_p'.
12528 2000-01-31 Dave Brolley <brolley@redhat.com>
12530 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
12532 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
12534 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
12537 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12539 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
12541 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
12544 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
12546 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
12547 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
12548 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
12549 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
12550 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
12551 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
12552 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
12553 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
12554 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
12555 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
12557 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
12558 Add %(cpp_cpu) to CPP_SPEC.
12560 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
12561 Add %(cc1_cpu) to CC1_SPEC.
12563 2000-01-28 Ulrich Drepper <drepper@redhat.com>
12565 * c-decl.c (c_decode_option): Accept optional numeric argument to
12566 -Wformat and set warn_format.
12567 * c-common.c: Don't emit warning about non-constant printf format
12568 string unless warn_format > 1.
12570 2000-01-30 Richard Henderson <rth@cygnus.com>
12572 * alpha.md (return_internal): Allow after reload only.
12574 2000-01-30 Richard Henderson <rth@cygnus.com>
12576 * i386.c (ix86_compute_frame_size): Omit padding1 if the
12577 local frame size is zero.
12579 2000-01-30 Richard Henderson <rth@cygnus.com>
12581 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
12582 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
12583 * alpha.md (return): Turn into an expander.
12584 (return_internal): Don't use $26.
12585 (epilogue): Emit the return insn.
12587 2000-01-30 Richard Henderson <rth@cygnus.com>
12589 * alpha.md (negtf2, abstf2): Fix word order thinko.
12590 (extendsftf2): New.
12591 (trunctfsf2): Avoid intermediate rounding errors.
12593 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
12595 * cppfiles.c (find_position): Drop 'colp' argument, return the
12597 (read_and_prescan): Adjust to match. Don't ever manipulate
12598 line or line_base except via find_position.
12600 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
12602 * c-parse.in: Apply Ulrich's changes from c-parse.y.
12603 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
12606 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
12608 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
12609 just print "<command line>". If 'filename' is null or an
12610 empty string, print "<stdin>" for the filename.
12611 * cpplib.c (do_define): Don't print the 'location of the
12612 previous definition' message if we're still parsing the
12614 (cpp_pedwarn_with_file_and_line): Always call
12615 cpp_file_line_for_message.
12617 2000-01-29 Mark Mitchell <mark@codesourcery.com>
12619 * flow.c (mark_regs_live_at_end): Fix typo.
12621 2000-01-28 Ulrich Drepper <drepper@redhat.com>
12623 * c-common.c: Adjust variable names, comments, help strings to c99.
12624 * c-lex.c: Likewise.
12625 * c-parse.y: Likewise.
12626 * c-tree.h: Likewise.
12627 * cccp.c: Likewise.
12628 * cpplib.h: Likewise.
12629 * c-decl.c: Likewise. Recognize options with names "*99" as well.
12630 * cppinit.c: Likewise.
12632 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12634 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
12635 * c4x.c: Define the optab rtx values.
12636 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
12637 (c4x_emit_libcall): Use new optab rtx values.
12638 (c4x_emit_libcall3): Likewise.
12639 (c4x_emit_libcall_mulhi): Likewise.
12640 * c4x-protos.h: Add prototypes for optab rtx values and change
12641 prototypes for above c4x_emit_libcall functions.
12643 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12645 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
12647 (c4x_function_prologue): Use regnames intead of float_reg_names when
12649 (c4x_function_epilogue): Likewise.
12650 (c4x_print_operand): Likewise.
12651 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
12652 * c4x.md (set_high): Disable for TARGET_TI.
12654 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12656 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
12657 of framepointer + constant to ADDR_REGS class.
12658 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
12659 * c4x.c (std_or_reg_operand): New function.
12660 * c4x-protos.h (std_or_reg_operand): Prototype it.
12662 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12664 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
12665 object names as libgcc2.c.
12666 * libgcc.S: Use newly defined names.
12668 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
12669 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
12671 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
12672 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
12673 (FLOW_LOOP_LAST_BLOCK): Likewise.
12675 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12677 * basic-block.h (struct loop): New fields 'first' and 'last'.
12678 * flow.c (flow_loops_find): Compute loop->first and loop->last.
12679 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
12680 and loop->last to check for NOTE_INSN_LOOP_END.
12682 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
12684 * predict.c (estimate_probability): Use the new FIRST and LAST fields
12685 of the loop descriptor rather than HEADER and LATCH. Also added
12686 missing break statements as well making some coding style modifications
12687 as suggested by Michael Hayes.
12689 2000-01-28 Richard Henderson <rth@cygnus.com>
12691 * flow.c (find_basic_blocks): Remove do_cleanup argument.
12692 Break out that code ...
12693 (cleanup_cfg): ... here.
12694 (commit_one_edge_insertion): Detect a return instruction being
12695 emitted to an edge. Emit a barrier following; clear fallthru.
12696 (commit_edge_insertions): Verify CFG consistency.
12697 * function.c (expand_function_start): Kill unused variable.
12698 (expand_function_end): Likewise.
12699 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
12700 to insert the epilogue.
12702 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
12703 (delete_null_pointer_checks): Likewise.
12704 * output.h: Likewise.
12705 * reg-stack.c (reg_to_stack): Likewise.
12706 * toplev.c (rest_of_compilation): Likewise. Run
12707 thread_prologue_and_epilogue_insns after rebuilding the CFG.
12709 2000-01-28 Richard Henderson <rth@cygnus.com>
12711 * Makefile.in (flow.o): Revert 24 Jan change.
12712 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
12713 FUNCTION_VALUE result to DECL_RESULT's mode.
12715 * haifa-sched.c (schedule_insns): Don't recompute reg info
12718 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
12720 * configure.in: Make --enable-cpplib the default.
12721 * configure: Regenerate.
12722 * gcc.dg/990119-1.c: No longer expected to fail.
12724 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
12726 * jump.c (jump_optimize_1): Delete an optimization that is also done
12727 by merge_blocks in flow.
12729 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12731 * diagnostic.c (build_message_string, output_printf,
12732 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
12733 (build_location_prefix): Fix non-literal format string.
12735 2000-01-27 Richard Henderson <rth@cygnus.com>
12737 * alpha.md (trunctfsf2): New.
12739 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
12741 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
12743 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
12745 * cppinit.c (cpp_handle_option): Recognize C++ comments under
12747 * cpplib.c (skip_block_comment, skip_line_comment): Split code
12749 (skip_comment) ... here. Permit C++ comments in system
12750 headers always. Warn about C++ comments in user code under
12751 -std=gnu89 -pedantic.
12752 (copy_comment): Use skip_comment.
12753 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
12755 (consider_directive_while_skipping, do_else, do_endif): Call
12756 validate_else unconditionally.
12757 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
12758 text after the conditional in a system header.
12759 * cpplib.h (struct cpp_buffer): Add flag
12760 warned_cplusplus_comments.
12762 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
12764 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
12765 Use unshare_all_rtl_1.
12766 (unshare_all_rtl_again): New function.
12767 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
12769 * function.c (purge_addressof_1): Use unshare_all_rtl_again
12770 rather than resetting the 'used' flags ourself.
12772 * toplev.c (rest_of_compilation): Add current_function_decl
12773 to the unshare_all_rtl call.
12774 * tree.h: Prototype unshare_all_rtl.
12775 * rtl.h: Prototype unshare_all_rtl_again here.
12777 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
12779 * genoutput.c (output_prologue): Include ggc.h in generated
12781 * Makefile.in (insn-output.o): Depends on ggc.h.
12783 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
12784 Hans-Peter Nilsson <hp@bitrange.com>
12786 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
12787 Remove redundant include of xm-ns32k.h.
12788 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
12789 Remove redundant include of xm-ns32k.h.
12790 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
12791 Remove redundant include of xm-ns32k.h.
12792 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
12794 * ns32k/ns32k.h: Update comment on multiply-add instructions.
12795 (TARGET_SWITCHES): Add documentation strings.
12796 (DWARF_FRAME_REGNUM): Override default definition.
12797 (REG_CLASS_CONTENTS): Add comments.
12798 (SUBSET_P): Format to reduce line length.
12799 (SMALL_REGISTER_CLASSES): Make a run time option.
12800 (GO_IF_NONINDEXED_ADDRESS): Reformat.
12801 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
12802 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
12803 (regclass_map): fix typo in comment.
12804 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
12805 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
12806 (trace, reg_or_mem_operand): Delete, unused function.
12807 (calc_address_cost): Small offsets are cheaper than large ones.
12808 (expand_block_move): Generate more efficient code when bytes is a
12809 known at compile time.
12810 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
12811 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
12812 instead of reg_or_mem_operand.
12814 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
12815 not general_operand. Similarly use "=rm" or stricter, not "=g".
12816 For input operands, use stricter constraints than "g" if not
12817 general_operand. Similarly use stricter predicate than
12818 "general_operand" when stricter constraints than "g" are present,
12819 except for matching constraints.
12820 (movstrsi): Use "memory_operand" for operands 0 and 1.
12821 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
12822 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
12823 not reg_or_mem_operand.
12824 (udivmoddisi4): Ditto.
12825 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
12826 Use nonimmediate_operand for operand 3, not register_operand.
12827 (udivmoddiqi4_internal): Use register_operand for operand 1, not
12828 reg_or_mem_operand.
12830 2000-01-27 Fred Fish <fnf@be.com>
12832 * gthr-posix.h: Fix typo; compatibily -> compatibility.
12833 * gthr-single.h: Likewise.
12834 * gthr-solaris.h: Likewise.
12835 * gthr-vxworks.h: Likewise.
12836 * gthr-win32.h: Likewise.
12837 * gthr.h: Likewise.
12839 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
12841 * cppinit.c: Add " (cpplib)" to end of string printed by
12844 2000-01-27 Richard Henderson <rth@cygnus.com>
12846 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
12847 testing for a signed comparison.
12848 (alpha_emit_floatuns): New.
12849 * alpha-protos.h: Declare it.
12850 * alpha.md (floatunsdisf2, floatunsdidf2): New.
12851 (extendsfdf2): Tidy.
12853 2000-01-27 Jakub Jelinek <jakub@redhat.com>
12855 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
12856 no -g option specifying debugging format, default to -gstabs+.
12858 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12860 * calls.c (special_function_p): New argument fork_or_exec.
12861 (expand_call): When profile_arc_flag is set and the function
12862 is in the fork_or_exec group, call __bb_fork_func first.
12863 * libgcc2.c, _bb module (__bb_fork_func): New function.
12864 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
12866 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
12867 * tree.h (special_function_p): Update prototype.
12869 2000-01-26 Richard Henderson <rth@cygnus.com>
12871 * alpha.c (alpha_split_tfmode_pair): New.
12872 * alpha-protos.h: Declare it.
12873 * alpha.md (abstf2, negtf2): New.
12874 (movtf insn): Add input G constraint.
12875 (movtf splitter): Use alpha_split_tfmode_pair.
12877 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12879 * i386/cygwin.h: PROTO -> PARAMS.
12881 2000-01-26 Jakub Jelinek <jakub@redhat.com>
12883 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
12884 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
12885 using _Qp_cmp/_Q_cmp and testing the return value.
12886 (print_operand): Call reverse_condition_maybe_unordered if
12887 we are handling CCFPmode or CCFPEmode.
12888 Handle ORDERED, UN* and LTGT comparisons.
12889 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
12890 if not TARGET_HARD_QUAD.
12891 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
12892 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
12893 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
12894 Adjust gen_b* calls so that they reflect return comparison of
12895 sparc_emit_float_lib_cmp.
12897 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12899 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
12900 incoming operands array is large enough for one more operand.
12901 (alpha_emit_xfloating_arith): Likewise.
12903 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12905 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
12906 file with one line and no trailing newline.
12907 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
12908 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
12909 checking if the match is on the line.
12910 * fixinc/gnu-regex.c: Provide regerror not __regerror.
12912 2000-01-25 Richard Henderson <rth@cygnus.com>
12914 * sparc.c (output_cbranch): Fix accidental squashing of the
12915 fp branch pre-delay nop.
12917 2000-01-25 Richard Henderson <rth@cygnus.com>
12919 * tree.def (UNNE_EXPR): Remove.
12920 * c-typeck.c (build_binary_op): Don't handle it.
12921 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
12923 * rtl.def (UNNE): Remove.
12925 * jump.c (reverse_condition): Update accordingly.
12926 (swap_condition): Likewise.
12927 (comparison_dominates_p): Handle unordered comparisons.
12928 (reverse_condition_maybe_unordered): New.
12929 * rtl.h (reverse_condition_maybe_unordered): Declare.
12931 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
12932 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
12933 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
12934 * sparc.md (bltgt): New.
12936 2000-01-25 Nick Clifton <nickc@redhat.com>
12938 * emit-rtl.c (emit_insn): Only check machine class insns for
12939 improper emission of a RETURN.
12941 2000-01-25 Richard Henderson <rth@cygnus.com>
12943 * Makefile.in (flow.o): Depend on $(EXPR_H).
12944 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
12945 duplicate the structure of diddle_return_value for keeping regs live.
12947 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12949 * loop.c (current_loop_info): Delete.
12950 (consec_sets_invariant_p): Add loop argument, update callers.
12951 (get_condition_for_loop): Likewise.
12952 (count_nonfixed_reads, update_giv_derive): Likewise.
12953 (simplify_giv_expr, general_induction_var): Likewise.
12954 (consec_sets_giv, recombine_givs): Likewise.
12955 (move_movables): Delete loop_start and loop_end arguments,
12956 add loop argument, and update callers.
12957 (find_mem_givs, check_final_value): Likewise.
12958 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
12959 (loop_invariant_p): Rename from invariant_p, add loop argument, and
12961 (basic_induction_var): Add loop argument, delete loop_level argument,
12962 and update callers.
12963 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
12964 add loop argument, and update callers.
12965 (find_splittable_regs, find_splittable_givs): Likewise.
12966 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
12967 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
12968 (biv_total_increment): Delete loop_start and loop_end arguments;
12970 (precondition_loop_p): Delete loop_start and loop_info arguments;
12972 * loop.h (get_condition_for_loop): Add loop argument.
12973 (biv_total_increment): Delete loop_start and loop_end arguments.
12974 (precondition_loop_p): Delete loop_start and loop_info arguments;
12976 (final_biv_value): Delete loop_start and loop_end arguments;
12978 (final_giv_value, back_branch_in_range_p): Likewise.
12980 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
12982 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
12984 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
12986 * Makefile.in (c-gperf.h) : Change the "See" pointer to
12987 point to the new "generated_files" doc.
12989 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
12991 * config/fp-bit.c (_unord_f2): Fix typo.
12993 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12995 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
12996 c-typeck.c, objc/objc-act.c: Remove all references to obstack
12997 functions obsoleted by GC, such as push_obstacks_nochange,
12998 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
12999 and code which existed only to decide whether or not to call
13000 them. Remove now-unused NESTED argument from start_function;
13001 all callers changed. Do not change behavior based on ggc_p.
13002 The use of the ixp_obstack in c-iterate.c and the util_obstack
13003 in objc/objc-act.c remain; these are not obsoleted by garbage
13005 * c-tree.h: Update prototype for start_function.
13007 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
13009 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
13011 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
13014 2000-01-25 Richard Henderson <rth@cygnus.com>
13016 * sparc-protos.h (select_cc_mode): Declare.
13017 * sparc.c (select_cc_mode): New. Handle unordered compares.
13018 (output_cbranch): Always reverse via code change. Handle
13019 unordered compares. Factor tests and string updates.
13020 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
13021 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
13022 * sparc.md (bunordered, bordered): New.
13023 (bungt, bunlt, buneq, bunge, bunle): New.
13025 2000-01-25 Richard Henderson <rth@cygnus.com>
13027 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
13028 * ggc-common.c (ggc_add_rtx_varray_root): New.
13029 (ggc_mark_rtx_varray): New.
13030 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
13031 functions down below ggc_mark_foo.
13032 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
13034 2000-01-25 Richard Henderson <rth@cygnus.com>
13036 * alpha.c (secondary_reload_class): Don't allocate a secondary
13037 for integral mode memories into FLOAT_REGS. Rearrange the more
13038 complicated memory expression inward.
13040 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
13042 * inclhack.def: Fixes to play nicer with FreeBSD, and
13043 corrections to comments.
13044 (cxx_unready): Add select expression.
13045 (irix_sockaddr): Add bypass expression.
13046 (machine_ansi_h_va_list): New fix.
13047 (stdio_va_list): No need to edit _BSD_VA_LIST_.
13048 Split out addition of "#include <stdarg.h>" to...
13049 (stdio_stdarg_h): ... here.
13050 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
13051 to stdlib.h also. Do not munge _BSD_SIZE_T_.
13052 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
13054 (ultrix_ifdef): Tighten up select expression.
13056 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
13057 re_ct and max_mach to avoid use of shell. Make printed names
13058 match names in inclhack.def. Use static copyright date.
13059 Don't count c_test and test expressions as requiring regex_t
13060 slots. Add some commentary.
13061 * inclhack.tpl: Do not include the 'This script contains N
13062 fixup scripts' line if PROGRAM is defined. Use static
13065 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
13067 * dwarf2out.c: include "varray.h", not dyn-string.h.
13068 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
13069 (addr_const_to_string, addr_to_string): Lose.
13070 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
13071 (struct dw_val_struct): val_addr is now an rtx.
13072 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
13073 (used_rtx_varray): New varray.
13074 (dwarf2out_init): Initialize it.
13075 (save_rtx): New fn.
13076 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
13078 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
13079 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
13080 * Makefile.in (dwarf2out.o): Update dependencies.
13082 2000-01-24 Richard Henderson <rth@cygnus.com>
13084 * i386.c (i386_dwarf_output_addr_const): New.
13085 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
13087 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
13089 * dwarfout.c (output_mem_loc_descriptor): Likewise.
13090 * i386.c (i386_simplify_dwarf_addr): New.
13091 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
13093 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
13095 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
13096 TYPE_STUB_DECL is NULL.
13098 2000-01-24 Richard Henderson <rth@cygnus.com>
13100 * builtins.c (expand_tree_builtin): Move ...
13101 * c-common.c (expand_tree_builtin): ... here.
13103 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13105 * loop.h (LOOP_INFO): New accessor macro.
13106 * basic-block.h (struct loop): Rename field `info' to `aux'.
13107 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
13108 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
13109 * unroll.c (loop_iterations, unroll_loop): Likewise.
13111 2000-01-24 Christopher Faylor <cgf@cygnus.com>
13113 * config/i386/t-cygwin: Accomodate new winsup directory layout
13114 when searching for include files.
13116 2000-01-24 Richard Henderson <rth@cygnus.com>
13118 * rtl.def: Add unordered fp comparisions.
13119 * tree.def: Likewise.
13120 * tree.h: Add ISO C 9x unordered fp comparision builtins.
13122 * builtins.c (expand_tree_builtin): New function.
13123 * c-typeck.c (build_function_call): Use it.
13124 (build_binary_op): Support unordered compares.
13125 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
13127 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
13128 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
13129 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
13130 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
13131 * jump.c (reverse_condition): Don't abort for UNLE etc, but
13133 (swap_condition): Handle unordered compares.
13134 (thread_jumps): Check can_reverse before reversing.
13135 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
13138 * optabs.c (can_compare_p): New argument CODE. Verify branch or
13139 setcc is present before acking for cmp_optab. Update all callers.
13140 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
13141 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
13142 * expr.c (expand_expr): Likewise. Support unordered compares.
13143 (do_jump, do_store_flag): Likewise.
13144 * expr.h (enum libfunc_index): Add unordered compares.
13146 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
13147 (DPBIT_FUNCS): Add _unord_df.
13148 * config/fp-bit.c (_unord_f2): New.
13149 * fp-test.c (main): Try unordered compare builtins.
13151 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
13152 * alpha.c (alpha_comparison_operator): Check mode properly.
13153 (alpha_swapped_comparison_operator): Likewise.
13154 (signed_comparison_operator): Likewise.
13155 (alpha_fp_comparison_operator): New.
13156 (alpha_emit_conditional_branch): Handle unordered compares.
13157 * alpha.h (PREDICATE_CODES): Update.
13158 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
13159 (bunordered, bordered): New.
13161 2000-01-24 Richard Henderson <rth@cygnus.com>
13163 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
13164 * alpha.md (movtf): New expander, insn, and splitter.
13166 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
13168 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
13171 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
13173 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
13174 (FIXED_REGISTERS, CALL_USED_REGISTERS,
13175 REG_ALLOC_ORDER): Add frame pointer
13176 (FRAME_POINTER_REGNUM): Set to 20
13177 (HARD_FRAME_POINTER_REGNUM): New macro.
13178 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
13179 to HARD_FRAME_POINTER.
13180 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
13181 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
13182 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
13183 (HI_REGISTER_NAMES): Add "frame".
13184 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
13185 (debug_reg): Handle FRAME_POINTER_REGNUM.
13186 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
13187 GENERAL_REGS and INDEX_REGS.
13188 * i386.c (SAVED_REGS_FIRST): new macro.
13189 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
13190 (ix86_decompose_address, memory_address_length): Likewise.
13191 (regclass_map): Add frame pointer.
13192 (call_insn_operand): Handle frame_pointer_rtx.
13193 (reg_no_sp_operand): Likewise.
13194 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
13195 (print_operand, legitimize_pic_address): Fix formating.
13196 (ix86_compute_frame_size): Make static, update prototype, new
13197 parameters padding1, padding2, use ix86_nsaved_regs, use
13198 stack_alignment_needed.
13199 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
13200 to HARD_FRAME_POINTER_REGNUM conversions.
13201 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
13202 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
13203 (print_reg): Abort on FRAME_POINTER_REGNUM
13205 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
13207 * i386.h (PREDICATE_CODES): Add aligned_operand.
13208 * i386.c (aligned_operand): New function.
13209 (ix86_aligned_p): Kill.
13210 * i386.md (movhi_1): Emit mov for aligned operands.
13211 (promoting peep2s): Use aligned_operand.
13213 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
13215 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
13216 expression to allow underscores in macro names.
13217 (fix_char_macro_defines): Increment scanning pointer.
13219 2000-01-23 Richard Henderson <rth@cygnus.com>
13221 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
13222 * alpha/osf5.h: New file.
13223 * configure.in (alpha-*-osf5): Add it to tm_file.
13225 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
13227 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
13228 (alpha_emit_xfloating_cvt, function_arg): Declare.
13229 * alpha.c (alpha_emit_conditional_branch): Call
13230 alpha_emit_xfloating_compare for TFmode compares.
13231 (alpha_lookup_xfloating_lib_func): New.
13232 (alpha_compute_xfloating_mode_arg): New.
13233 (alpha_emit_xfloating_libcall): New.
13234 (alpha_emit_xfloating_arith): New.
13235 (alpha_emit_xfloating_compare): New.
13236 (alpha_emit_xfloating_cvt): New.
13237 (print_operand): Add default abort case.
13238 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
13239 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
13240 (BIGGEST_ALIGNMENT): Increase to 128 bits.
13241 (RETURN_IN_MEMORY): True for TF/TCmode.
13242 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
13243 (FUNCTION_ARG): Move to function_arg.
13244 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
13245 (ASM_OUTPUT_LONG_DOUBLE): New.
13246 (ASM_OUTPUT_DOUBLE): Always output bits.
13247 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
13248 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
13249 (extenddftf2, trunctfdf2): New.
13251 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13253 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
13254 * config/sparc/sol2.h: ... here.
13256 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13258 * basic-block.h (struct loops): New field `levels'.
13259 * flow.c (flow_loops_level_compute): Traverse all outer loops.
13260 (flow_loop_level_compute): Initialise level to 1.
13261 (flow_loops_find): Set loops->levels.
13262 (flow_loops_dump): Print loops->levels.
13264 2000-01-23 Richard Henderson <rth@cygnus.com>
13266 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
13267 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
13269 2000-01-23 Richard Henderson <rth@cygnus.com>
13271 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
13272 * i386.h (DBX_REGISTER_NUMBER): Use them.
13273 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
13274 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
13275 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
13276 * i386/sequent.h: Kill incorrect comment.
13278 2000-01-23 Mark Mitchell <mark@codesourcery.com>
13280 * ggc-page.c (struct page_entry): Make `context_depth' an
13282 (struct globals): Likewise.
13284 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
13286 * loop.c (check_dbra_loop): When checking a loop for
13287 reversability, check the source of any stores to ensure
13288 they don't depend on an initial value.
13290 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13292 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
13294 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
13296 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
13297 'pz_scan' into scope of entire function. Only affects
13298 compiles with -DDEBUG.
13300 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
13302 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
13303 section naming to that prior to 2000-01-07 patch.
13304 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
13305 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
13306 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
13307 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
13308 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
13310 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
13312 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
13315 2000-01-21 Jim Wilson <wilson@cygnus.com>
13317 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
13318 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
13320 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
13322 * cpphash.c (change_newlines): Delete function.
13323 (struct argdata): Delete 'newlines' and 'use_count' fields.
13324 (macroexpand): Remove code referencing those fields.
13326 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13328 * loop.c (loops_info): New variable.
13329 (loop_optimize): Allocate loops->array and free it on exit.
13330 Allocate memory for loops_info and assign to each loop,
13332 (find_and_verify_loops): Do not allocate loops->array.
13334 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
13336 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
13338 2000-01-21 Jakub Jelinek <jakub@redhat.com>
13340 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
13341 pseudos if expanded after first flow.
13342 (movdi_pic_label_ref): Likewise.
13344 2000-01-20 Richard Henderson <rth@cygnus.com>
13346 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
13348 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
13350 * Makefile.in (fixinc.sh): Depend on specs.
13351 * fixinc/Makefile.in: Add rule to create machname.h.
13352 (fixlib.o): Depend on machname.h.
13353 * fixinc/fixtests.c (machine_name): New test.
13354 * fixinc/fixfixes.c (machine_name): New fix.
13355 * fixinc/fixlib.c (mn_get_regexps): New helper function for
13356 the machine_name test and fix.
13357 * fixinc/fixlib.h: Prototype it.
13358 * fixinc/inclhack.def (machine_name): Use the C test and fix.
13359 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
13361 * gcc.c (do_spec_1) [case P]: Take care not to create
13362 identifiers with three leading or trailing underscores.
13364 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
13365 (fixincl): Don't specify libraries twice on link line.
13366 (gnu-regex.o): Remove special rule.
13367 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
13368 defined by config.h. Do not define _REGEX_RE_COMP.
13369 (regcomp): Allocate and initialize a fastmap.
13370 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
13372 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
13374 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
13376 2000-01-19 Richard Henderson <rth@cygnus.com>
13378 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
13379 arguments with BB. Update all callers. Tidy line wrapping.
13381 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
13383 * emit-rtl.c (try_split): Return last_insn if we split the
13386 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
13388 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
13389 (ix86_initial_elimination_offset): Declare.
13390 * i386.c (ix86_nsaved_regs): Break out from ...
13391 (ix86_can_use_return_insn_p): ... here.
13392 (ix86_emit_save_regs): Break out from ...
13393 (ix86_expand_prologue): ... here.
13394 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
13396 (ix86_expand_epilogue): ... here.
13397 (ix86_compute_frame_size): Make static, add prototype.
13398 (ix86_initial_elimination_offset): Break out from ...
13399 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
13401 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13403 * recog.h (OUT_FCN): Delete.
13405 * vax.md: Call `get_insn_template' instead of OUT_FCN.
13407 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13409 * cppalloc.c: PROTO -> PARAMS.
13410 * cpperror.c: Likewise.
13411 * cppfiles.c: Likewise.
13412 * cpplib.c: Likewise.
13413 * cpplib.h: Likewise.
13415 * config/arm/arm-protos.h: PROTO -> PARAMS.
13416 * config/arm/arm.c: Likewise.
13417 * config/c4x/c4x.c: Likewise.
13418 * config/fr30/fr30-protos.h: Likewise.
13419 * config/nextstep.c: Likewise.
13420 * config/pa/pa.c: Likewise.
13421 * config/pj/pj.c: Likewise.
13422 * config/rs6000/rs6000.c: Likewise.
13423 * config/v850/v850-protos.h: Likewise.
13424 * config/v850/v850.c: Likewise.
13426 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13428 * i370-protos.h: New file.
13430 * i370.c: Include tm_p.h. Fix compile time warnings.
13432 * i370.h: Move prototypes to i370-protos.h. Fix compile time
13435 * i370.md: Likewise.
13437 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13439 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
13440 (target_isinf, target_isnan, eisnan): Mark parameter with
13442 (eiisinf): Wrap in INFINITY.
13443 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
13444 (ibmtoe): Remove unused variable `rndsav'.
13446 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13448 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
13449 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
13451 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
13453 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
13454 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
13455 (fix_char_macro_defines, fix_char_macro_uses): New functions.
13457 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
13458 Recognize Emacs mode markers also.
13459 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
13460 C++ comments in C++ headers. Call is_cxx_header only if
13463 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
13464 bypass for ncurses.
13465 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
13466 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
13467 ... these, which use the new C fixes.
13468 (math_exception): Escape literal '+' in bypass expression.
13470 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
13473 2000-01-19 Geoff Keating <geoffk@cygnus.com>
13475 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
13478 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13480 * loop.c (loop_optimize): Allocate loop_info structure for each loop
13481 prior to calling scan_loop.
13483 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13485 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
13486 (split_branches, calc_live_regs): Likewise.
13488 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13490 * sh.md (fpu_single, fp_mode): New attributes.
13492 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13494 * loop.c (current_loop_info): Renamed from loop_info_data
13495 and changed to a pointer.
13496 (loop_optimize): Allocate loop_info structure for each loop
13497 and initialise to zero.
13498 (scan_loop): Set current_loop_info.
13500 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
13503 2000-01-19 Richard Henderson <rth@cygnus.com>
13505 * stupid.c: Die die die.
13506 * Makefile.in (OBJS): Remove stupid.o.
13507 (stupid.o): Likewise.
13509 * except.c (emit_eh_context): Don't emit USEs for stupid.
13510 * explow.c (probe_stack_range): Likewise.
13511 * flags.h (obey_regdecls): Remove.
13512 * flow.c (find_basic_blocks): Don't run try_merge_blocks
13513 when not optimizing.
13514 (life_analysis): Limit data collection when not optimizing.
13515 (mark_regs_live_at_end): Always mark the return value registers.
13516 (mark_used_regs): Remove dummy RETURN case.
13517 (print_rtl_with_bb): Don't consult obey_regdecls.
13518 * function.c (use_variable, use_variable_after): Remove.
13519 (assign_parms): Consult optimize not obey_regdecls.
13520 (expand_function_start): Don't emit USEs for stupid.
13521 (expand_function_end): Likewise.
13522 * global.c (build_insn_chain): Export.
13523 * integrate.c (expand_inline_function): Kill return-value USE
13525 * jump.c (jump_optimize_1): Do simple jump optimizations and
13526 dead code elimination.
13527 (calculate_can_reach_end): Remove check_deleted argument.
13528 (delete_insn): Patch out insns even when not optimizing.
13529 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
13530 * rtl.h (use_variable, use_variable_after): Remove declarations.
13531 (build_insn_chain): Declare.
13532 * stmt.c (expand_value_return): Don't emit USEs for stupid.
13533 (expand_end_bindings): Likewise.
13534 (expand_decl): Likewise. Consult optimize not obey_regdecls.
13535 * toplev.c (obey_regdecls): Remove.
13536 (rest_of_compilation): Don't set it. Kill stupid in favour of
13537 flow1, local-alloc, and reload.
13538 (main): Don't set obey_regdecls.
13540 * config/nextstep.c (handle_pragma): Likewise.
13542 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
13544 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
13546 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13548 * alpha-protos.h: PROTO -> PARAMS.
13549 * alpha.c: Likewise.
13551 * h8300.c: Likewise.
13552 * i386-protos.h: Likewise.
13553 * i386.c: Likewise.
13554 * m32r-protos.h: Likewise.
13555 * m32r.c: Likewise.
13556 * mips.c: Likewise.
13557 * mips.md: Likewise.
13558 * gmon-sol2.c: Likewise.
13559 * sparc.c: Likewise.
13561 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13563 * ns32k-protos.h: New file.
13565 * ns32k.c: Fix compile time warnings.
13567 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
13570 * ns32k.md: Likewise.
13572 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13574 * vax-protos.h: New file.
13576 * vax.c: Fix compile time warnings.
13578 * vax.h: Move prototypes to vax-protos.h. Fix compile time
13581 * vax.md: Likewise.
13583 * vaxv.md: Likewise.
13585 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13587 * romp-protos.h: New file.
13589 * romp.c: Fix compile time warnings.
13591 * romp.h: Move prototypes to romp-protos.h. Fix compile time
13594 * romp.md: Likewise.
13596 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13598 * we32k-protos.h: New file.
13600 * we32k.c: Fix compile time warnings.
13602 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
13605 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13607 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
13609 * except.c (eh_regs): Likewise.
13611 * final.c (output_operand): Likewise.
13613 * fold-const.c (target_isinf, target_isnan): Likewise.
13615 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
13617 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
13618 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
13620 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
13621 when optimize_size.
13622 (clrstrsi): Rewrite.
13623 (strsethi, strsetqi): New expanders.
13624 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
13625 (cmpstrsi): Emit compare insn before cmpstrsi_1
13626 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
13627 (strlensi_1): Likewise.
13628 (cmpstrsi_1): Likewise; do not output compare.
13629 (strlen expander): Do not unroll when optimizing for size.
13630 (*subsi3_carry): Rename to subsi3_carry
13631 (addqi3_cc): New pattern.
13632 * i386.h (processor_costs): Add move_ratio field.
13633 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
13634 * i386.c (*_cost): Set move_ratio.
13635 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
13636 (x86_expand_strlensi_1): Rewrite the main loop.
13638 2000-01-17 Richard Henderson <rth@cygnus.com>
13640 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
13641 * cse.c (find_comparison_args, fold_rtx): Likewise.
13642 * integrate.c (subst_constants): Likewise.
13643 * loop.c (get_condition): Likewise.
13645 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
13647 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
13649 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
13651 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
13652 (RESTORE_WARN_FLAGS): Unpack it.
13653 Change semantic type of extension to ttype.
13654 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
13655 * c-parse.y, c-parse.c, objc/objc-parse.y,
13656 objc/objc-parse.c: Regenerate.
13658 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
13660 * fixinc/fixlib.c: Add copyright notice.
13661 (compile_re): New function.
13662 * fixinc/fixlib.h: Prototype compile_re.
13664 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
13665 Use compile_re to compile regular expressions.
13667 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
13668 where the pattern matched.
13670 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
13672 (ultrix_ansi_compat): Likewise.
13673 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
13675 (interactv_add2, interactv_add3): Delete.
13676 (x11_sprintf): Don't use filename glob.
13677 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
13680 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13682 * print-rtl.c: PROTO -> PARAMS.
13683 * real.c: Likewise.
13684 * reg-stack.c: Likewise.
13685 * resource.c: Likewise.
13686 * sdbout.h: Likewise.
13687 * simplify-rtx.c: Likewise.
13688 * stor-layout.c: Likewise.
13689 * stupid.c: Likewise.
13690 * xcoffout.c: Likewise.
13691 * xcoffout.h: Likewise.
13693 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13695 * toplev.c: PROTO -> PARAMS.
13696 * toplev.h: Likewise.
13697 * tree.c: Likewise.
13698 * tree.h: Likewise.
13699 * unroll.c: Likewise.
13700 * varasm.c: Likewise.
13701 * varray.c: Likewise.
13702 * varray.h: Likewise.
13704 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13706 * reload.c: PROTO -> PARAMS.
13707 * reload.h: Likewise.
13708 * reload1.c: Likewise.
13709 * reorg.c: Likewise.
13710 * resource.h: Likewise.
13713 * rtlanal.c: Likewise.
13714 * sbitmap.h: Likewise.
13715 * sdbout.c: Likewise.
13716 * stack.h: Likewise.
13717 * stmt.c: Likewise.
13718 * system.h: Likewise.
13720 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13722 * machmode.h: PROTO -> PARAMS.
13723 * mbchar.h: Likewise.
13724 * mips-tdump.c: Likewise.
13725 * mips-tfile.c: Likewise.
13726 * optabs.c: Likewise.
13727 * output.h: Likewise.
13728 * prefix.c: Likewise.
13729 * profile.c: Likewise.
13730 * protoize.c: Likewise.
13731 * real.h: Likewise.
13732 * recog.c: Likewise.
13733 * recog.h: Likewise.
13734 * regclass.c: Likewise.
13735 * regmove.c: Likewise.
13736 * regs.h: Likewise.
13738 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13740 * ggc-common.c: PROTO -> PARAMS.
13741 * ggc-page.c: Likewise.
13742 * ggc-simple.c: Likewise.
13744 * global.c: Likewise.
13745 * graph.c: Likewise.
13746 * gthr-win32.h: Likewise.
13747 * haifa-sched.c: Likewise.
13748 * halfpic.h: Likewise.
13749 * integrate.c: Likewise.
13750 * integrate.h: Likewise.
13751 * jump.c: Likewise.
13753 * local-alloc.c: Likewise.
13754 * loop.c: Likewise.
13755 * loop.h: Likewise.
13757 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13759 * genattr.c: PROTO -> PARAMS.
13760 * genattrtab.c: Likewise.
13761 * gencheck.c: Likewise.
13762 * gencodes.c: Likewise.
13763 * genconfig.c: Likewise.
13764 * genemit.c: Likewise.
13765 * genextract.c: Likewise.
13766 * genflags.c: Likewise.
13767 * gengenrtl.c: Likewise.
13768 * genopinit.c: Likewise.
13769 * genoutput.c: Likewise.
13770 * genpeep.c: Likewise.
13771 * genrecog.c: Likewise.
13773 2000-01-16 Mark Mitchell <mark@codesourcery.com>
13775 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
13777 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13779 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
13780 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
13781 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
13782 * configure, config.in: Rebuilt.
13784 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
13786 * config/i386/i386.md: Add peephole to merge successive stack
13789 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
13791 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
13792 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
13793 when walking backwards to find all the parameter loads when
13794 the basic block ends in a call.
13796 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13798 * loop.c (this_loop_info): Delete.
13799 (uid_loop): Add in place of uid_loop_num. All uses updated.
13800 (loop_number_exit_count): Delete and replace with entry in loop
13801 structure. All uses updated.
13802 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13803 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13804 (loop_outer_loop): Likewise.
13805 (loop_invalid, loop_number_exit_labels): Likewise.
13806 (loop_used_count_register): Delete and replace with entry in
13807 loop_info structure.
13808 (find_and_verify_loops): Add loops argument.
13809 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
13810 loop_end, etc. arguments with loop structure pointer. All callers
13812 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
13813 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
13814 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
13815 (insert_bct): Likewise.
13816 (basic_induction_var): New argument level.
13817 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
13818 vtop, and cont. Add used_count_register.
13819 (uid_loop): Delete declaration.
13820 (loop_number_exit_count): Likewise.
13821 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13822 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13823 (loop_outer_loop, loop_used_count_register): Likewise.
13824 (loop_invalid, loop_number_exit_labels): Likewise.
13825 (unroll_loop): Replace loop_start and loop_end arguments
13826 with loop structure pointer.
13827 (loop_precondition_p, loop_iterations): Likewise.
13828 Include basic-block.h.
13829 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
13830 with loop structure pointer.
13831 (loop_precondition_p, loop_iterations): Likewise.
13832 * basic-block.h (struct loop): New entries vtop, cont,
13833 cont_dominator, start, end, top, scan_start, exit_labels,
13835 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
13837 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13839 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
13841 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
13843 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
13845 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13847 * pdp11-protos.h: New file.
13849 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
13852 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
13855 * pdp11.md: Likewise.
13857 * 2bsd.h: Likewise.
13859 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13861 * mn10300-protos.h: New file.
13863 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
13866 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
13869 * mn10300.md: Likewise.
13871 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13873 * mn10200-protos.h: New file.
13875 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
13878 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
13881 * mn10200.md: Likewise.
13883 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13885 * h8300-protos.h: New file.
13887 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
13890 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
13893 * h8300.md: Likewise.
13895 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13897 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
13898 (asm_emit_uninitialised): Likewise.
13900 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
13902 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
13903 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
13905 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13907 * config/mips/mips.c (override_options): Don't turn on extra
13908 alignment for mips16.
13910 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13912 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
13913 eabi, and make sure queued POSTINCREMENT rtl is emitted at
13916 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13918 * builtins.c (PAD_VARARGS_DOWN): Define.
13919 (std_expand_builtin_va_arg): Use the above macro.
13920 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
13921 * tm.texi (Register Arguments): Document the above macro.
13923 2000-01-14 Nick Clifton <nickc@cygnus.com>
13925 * emit-rtl.c (emit_insn): If checking is enabled, make sure
13926 that this function has not been used to emit a jump
13929 * jump.c (return_jump_1): Cope with being passed a null rtx.
13931 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13933 * eh-common.h: PROTO -> PARAMS.
13934 * emit-rtl.c: Likewise.
13935 * errors.c: Likewise.
13936 * errors.h: Likewise.
13937 * except.c: Likewise.
13938 * except.h: Likewise.
13939 * explow.c: Likewise.
13940 * expmed.c: Likewise.
13941 * expr.c: Likewise.
13942 * expr.h: Likewise.
13943 * final.c: Likewise.
13944 * fix-header.c: Likewise.
13945 * flow.c: Likewise.
13946 * fold-const.c: Likewise.
13947 * function.c: Likewise.
13948 * function.h: Likewise.
13950 * gcov-io.h: Likewise.
13951 * gcov.c: Likewise.
13952 * gcse.c: Likewise.
13954 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13956 * sh-protos.h: New file.
13958 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
13959 Add static prototypes. Fix compile time warnings.
13961 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
13965 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13967 * arc-protos.h: New file.
13969 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
13972 * arc.h: Move prototypes to arc-protos.h. Fix compile time
13975 * arc.md: Likewise.
13977 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13979 * dsp16xx-protos.h: New file.
13981 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
13984 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
13987 * dsp16xx.md: Likewise.
13989 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13991 * convex-protos.h: New file.
13993 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
13996 * convex.h: Move prototypes to convex-protos.h. Fix compile time
13999 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14001 * elxsi-protos.h: New file.
14003 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
14006 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
14009 * elxsi.md: Likewise.
14011 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
14013 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
14014 case for moving from HI/LO/HI_LO_REG. This makes the behavior
14015 match the comment for MIPS16.
14017 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
14019 * flow.c (split_edge): Do not call set_block_for_insn if we
14020 do not have a basic_block_for_insn structure.
14022 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
14023 and destination functions are 32bit aligned within the trampoline.
14024 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
14025 (TRAMPOLINE_ALIGNMENT): Define.
14027 * cse.c (cse_insn): When changing (set (pc) (reg)) to
14028 (set (pc) (label_ref)), verify the change creates a valid insn.
14030 * fr30.c (call_operand): Tighten and rework to match rules for
14031 call RTL expressions.
14032 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
14033 * fr30.md (call patterns): Improve constraints.
14035 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
14037 * fr30.c (fr30_expand_epilogue): Revert last change.
14038 Use emit_jump_insn for the return insn.
14040 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
14041 Stan Cox <scox@cygnus.com>
14043 * predict.c: New file. Preliminary infrastructure work for static
14044 branch prediction and basic block reordering.
14045 * basic-block.h: Add prototype for estimate_probability.
14046 * Makefile.in: Add rules for predict.o.
14048 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
14050 * fixincludes (va_list): Use __not_va_list__ for the dummy.
14051 * fixinc/*: Likewise.
14053 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14055 * cccp.c: PROTO -> PARAMS.
14056 * cexp.y: Likewise.
14057 * collect2.c: Likewise.
14058 * combine.c: Likewise.
14059 * convert.h: Likewise.
14061 * dbxout.c: Likewise.
14062 * dbxout.h: Likewise.
14063 * diagnostic.c: Likewise.
14064 * doprint.c: Likewise.
14065 * dwarf2out.c: Likewise.
14066 * dwarf2out.h: Likewise.
14067 * dwarfout.c: Likewise.
14068 * dwarfout.h: Likewise.
14069 * dyn-string.h: Likewise.
14071 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14073 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
14074 macro conditionals guarding use.
14076 * dwarf2out.c: Include "tm_p.h".
14078 * function.c (locate_and_pad_parm): Mark parameter with
14080 (expand_function_end): Likewise for variable `context'.
14082 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
14084 2000-01-13 Nick Clifton <nickc@cygnus.com>
14086 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
14087 register to prevent compile time warnings.
14089 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
14091 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
14092 to avoid -Wtraditional warning.
14094 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14096 * 1750a-protos.h: New file.
14098 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
14101 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
14104 * 1750a.md: Likewise.
14106 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14108 * a29k-protos.h: New file.
14110 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
14113 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
14116 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14118 * clipper-protos.h: New file.
14120 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
14123 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
14126 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14128 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
14130 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
14132 * configure.in (--enable-new-gxx-abi): New option.
14133 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
14134 * Makefile.in (GXX_ABI_FLAG): New variable.
14135 * configure: Regenerate.
14137 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14139 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
14140 * tm.texi (FORCE_STRUCT_BLK): Document.
14141 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
14143 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
14145 * config/ns32k/ns32k.md: Revert Jan 9 change.
14147 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
14148 to a mode-test, if the predicate is address_operand.
14150 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
14152 * combine.c (if_then_else_cond): Be careful about what kinds
14153 of RTL expressions are passed to operand_subword.
14155 * flow.c (split_edge): If we have to insert a new jump, make
14156 sure to associate it with a basic block.
14158 * flow.c (commit_one_edge_insertion): A block with one successor
14159 can end in a JUMP_INSN that is not a simplejump.
14161 2000-01-12 Robert Lipe <robertl@sco.com>
14163 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
14164 (BUILD_VA_LIST_TYPE): Define.
14165 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
14168 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
14170 * cccp.c (do_pragma): Add cast to (char *).
14172 2000-01-12 Richard Henderson <rth@cygnus.com>
14173 Fred Fish <fnf@be.com>
14174 Jason Merrill <jason@cygnus.com>
14176 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
14177 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
14178 * i386/beos-elf.h, i386/beos-pe.h: New files.
14180 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
14181 * cross-make (SYSTEM_HEADER_DIR): Define using
14182 CROSS_SYSTEM_HEADER_DIR.
14184 * gcc.c (LIBRARY_PATH_ENV): Provide default.
14185 (process_command): Use it.
14186 (main): Likewise. Kill trailing = from env vars.
14187 (build_search_list): Put it back.
14188 * collect2.c (main): Use LIBRARY_PATH_ENV.
14190 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
14191 * toplev.c: Use NEED_DECLARATION_ENVIRON.
14193 * tm.texi (Frame Layout): Document SMALL_STACK.
14194 * c-common.c (c_common_nodes_and_builtins): Check it.
14196 * system.h: Undef alloca after including glibc's <stdlib.h>,
14197 if USE_C_ALLOCA is defined.
14199 * gcc.c (set_input): New fn.
14200 (main): After all input files are compiled, reset the input file
14203 * aclocal.m4 (rindex, index): If already defined, don't attempt
14206 * ginclude/varargs.h: (__va_list__): Define ifndef.
14207 * ginclude/stdarg.h: Likewise.
14209 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
14210 instead of unsigned char.
14212 * hash.h (true, false, boolean): Undef before enum.
14214 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
14215 proper type of "HOST_WIDE_INT *", rather than their natural type of
14216 "unsigned HOST_WIDE_INT *".
14218 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14220 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
14222 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
14224 * regclass.c (choose_hard_reg_mode): Likewise.
14226 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
14228 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
14230 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14232 * c-common.c: PROTO -> PARAMS.
14233 * c-common.h: Likewise.
14234 * c-decl.c: Likewise.
14235 * c-iterate.c: Likewise.
14236 * c-lang.c: Likewise.
14237 * c-lex.c: Likewise.
14238 * c-lex.h: Likewise.
14239 * c-parse.in: Likewise.
14240 * c-pragma.c: Likewise.
14241 * c-pragma.h: Likewise.
14242 * c-tree.h: Likewise.
14243 * c-typeck.c: Likewise.
14244 * objc/objc-act.c: Likewise.
14245 * objc/objc-act.h: Likewise.
14247 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14249 * m88k-protos.h: New file.
14251 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
14254 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
14256 * m88k.md: Likewise.
14258 * tekXD88.h: Likewise.
14260 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14262 * m68k-protos.h: New file.
14264 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
14267 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
14269 * mot3300.h: Likewise.
14271 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
14273 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
14275 (extract_bitlist): Declare bitlen.
14277 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
14279 * cccp.c: Accept and ignore -lang-fortran.
14281 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
14282 qualifiers don't match at any level of pointerness.
14284 2000-01-12 Robert Lipe <robertl@sco.com>
14286 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
14288 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
14290 * reload1.c (reload_reg_unavailable): New static variable.
14291 (reload_reg_free_p): Test it.
14292 (reload_reg_free_for_value_p): Test it instead of
14294 (choose_reload_regs_init): Compute it.
14296 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
14298 * reorg.c (fill_slots_from_thread): Check modified_in_p
14301 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
14303 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
14304 these nodes even if INTERNALS is not set.
14306 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
14308 * gcse.c (delete_null_pointer_checks_1): Cope when
14309 get_condition cannot determine the condition.
14311 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
14313 * toplev.h (set_message_length): Declare.
14315 * diagnostic.c (obstack_chunk_alloc): Define macro.
14316 (obstack_chunk_free): Likewise.
14317 (struct output_buffer): New data structure.
14318 (vmessage): Remove.
14319 (output_maximum_width): New variable.
14320 (doing_line_wrapping, set_message_length, init_output_buffer,
14321 get_output_prefix, output_space_left, emit_output_prefix,
14322 output_newline, output_append, output_puts, dump_output,
14323 vbuild_message_string, build_message_string, build_location_prefix,
14324 voutput_notice, output_printf, line_wrapper_printf,
14325 vline_wrapper_message_with_location): New functions. Implement
14326 automatic line wrapping.
14327 (v_message_with_decl): Make it handle automatic line wrapping.
14328 (v_error_with_file_and_line): Likewise.
14329 (v_warning_with_file_and_line): Likewise.
14330 (announce_function): Likewise.
14331 (default_print_error_function): Likewise.
14333 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
14335 * cpplib.h (struct cpp_options): Change lang_asm to char.
14337 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
14338 done in cpp_handle_option now.
14339 (initialize_builtins): Take out special case code used only by
14341 (cpp_handle_option): Turn off trigraphs and trigraph warnings
14342 if -traditional. Recognize -lang-fortran and set
14343 lang_fortran, also turn off cplusplus_comments.
14344 (print_help): Document -lang-fortran.
14345 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
14346 lang_asm. Ignore all directives other than `# 123 "file"' if
14348 (cpp_get_token): If -traditional, don't recognize directives
14349 unless the # is in column 1.
14350 (parse_string): If lang_fortran or lang_asm, silently
14351 terminate strings ('' or "") at end of line.
14352 Remove unnecessary braces.
14354 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14355 Richard Henderson <rth@cygnus.com>
14357 * resource.c (mark_referenced_resources): Mark a set strict_low_part
14359 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
14360 strict_low_part when possible.
14362 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14364 * alias.c: PROTO -> PARAMS.
14365 * basic-block.h: Likewise.
14366 * bitmap.c: Likewise.
14367 * bitmap.h: Likewise.
14368 * builtins.c: Likewise.
14369 * c-aux-info.c: Likewise.
14370 * caller-save.c: Likewise.
14371 * calls.c: Likewise.
14373 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14375 * Makefile.in (toplev.o): Depend on regs.h.
14377 * output.h (tdesc_section): Prototype.
14379 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
14381 * sdbout.c: Include "tm_p.h".
14383 * toplev.c: Include "regs.h".
14385 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
14387 * unroll.c (unroll_loop): Add EH support.
14389 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14391 * pa-protos.h: New file.
14393 * pa.c: Include recog.h and tm_p.h.
14394 (compute_zdepwi_operands, compute_movstrsi_length,
14395 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
14396 find_addr_reg, import_milli): Add static prototypes.
14397 (pa_cpu_string, pa_arch_string): Constify a char*.
14398 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
14399 (read_only_operand): Add argument `mode'.
14400 (singlemove_string, output_move_double, output_fp_move_double,
14401 output_block_move, output_and, output_ior, output_ascii,
14402 remove_useless_addtr_insns, milli_names, output_mul_insn,
14403 output_div_insn, output_mod_insn, output_arg_descriptor,
14404 output_cbranch, output_bb, output_bvb, output_dbra, ,
14405 output_millicode_call, output_call, hppa_encode_label,
14406 output_parallel_movb, output_parallel_addb): Constify a char*.
14407 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
14408 (output_parallel_addb): Remove extra arg to `constrain_operands'
14410 * pa.h: Move all prototypes to pa-protos.h.
14411 (pa_cpu_string, pa_arch_string): Constify a char*.
14412 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
14414 * pa.md: Call `function_label_operand' with mode argument.
14415 Likewise for `read_only_operand'.
14416 Fix nesting of parens in call to `symbolic_operand'.
14418 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14420 * i860-protos.h: New file.
14422 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
14425 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
14427 * i860.md: Likewise.
14429 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
14431 * i386.md (movstrsi expander): Rewrite.
14432 (movstrsi_1 insn): Deleted.
14433 (strmovhi, strmovqi expander): New expanders.
14434 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
14435 * i386.c (x86_single_stringop): New global variable.
14436 * i386.h (x86_single_stringop): Declare.
14437 (TARGET_SINGLE_STRINGOP): New macro.
14439 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
14441 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
14442 integer vararg POSTINCREMENT before the destination of the jump
14443 for the hard fp case.
14444 (function_arg_pass_by_reference): Pass a copy of CUM to
14447 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
14448 for CONSTANT_ADDRESS_P above while loop for subreg.
14450 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
14452 * flow.c (propagate_block): When a prologue/epilogue insn
14453 is marked dead, unconditionally clear libcall_is_dead and
14454 insn_is_dead, and only dump rtl if warnings aren't being
14457 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
14459 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
14460 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
14461 (FIXED_REGISTERS): Set dirflag as fixed.
14462 (CALL_USED_REGISTERS): Set dirflag as used.
14463 (REG_ALLOC_ORDER): Set dirflag as last one.
14464 (DIRFLAG_REG): New macro.
14465 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
14466 (HI_REGISTER_NAMES): Add dirflag.
14467 (DEBUF_PRINT_REG): Handle dirflag.
14468 * i386.md (type attribute): New cld and str types.
14469 (length_opcode attribute): Set cld and str to 1.
14470 (memory attribute): Set str to unknown - it is not clear from the
14472 (pent_np function unit): Prefixed string operations takes 12 cycles
14473 minimally; cld takes 2 cycles.
14474 (ppro_uops attribute): Str is "many" and cld is "few".
14475 (ppro_p0 unit): Handle cld here.
14476 (k6_alux unit): Handle cld and str types.
14477 (k6_load unit): It is ocupied by str opcodes.
14478 (k6_store unit): It is ocupied by str opcodes.
14479 (athlon_decode): Str is vector decoded.
14480 (athlon_ieu): Handle str and cld.
14481 (cld pattern): New.
14482 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
14483 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
14484 cmpstrsi_nz_1 insn): Do not output cld instruction
14486 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
14488 * gcc.texi (G++ and GCC): Add Java and Chill.
14489 (Bug Critera): Don't list languages.
14491 * gcc.texi (Incompatibilities): No longer claim most C compilers
14494 * gcc.texi (G++ and GCC): Update other front-ends list.
14496 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
14498 * i386.c (ix86_expand_setcc): Fix typo.
14499 (ix86_expand_movcc): Similarly.
14501 * Band-aid until haifa's bitset implementation is nuked.
14502 * haifa-sched.c (extract_bitlst): New parameter for size of the
14503 bitset in bits. All callers changed. Avoid looking at undefined
14504 bits in the bitset.
14505 (edgeset_bitsize): New variable.
14506 (schedule_region): Initialize edgeset_bitsize.
14508 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14510 * Makefile.in (optabs.o): Depend on real.h
14511 (resource.o): Depend on insn-attr.h
14513 * builtins.c (result_vector): Wrap prototype in macro conditions
14514 governing definition and use.
14516 * c-common.c: Include tm_p.h.
14518 * c-lex.c: Likewise.
14520 * elfos.h: Constify a char*.
14522 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
14523 (get_attr_length, shorten_branches, profile_after_prologue): Mark
14524 parameter with ATTRIBUTE_UNUSED.
14526 * fold-const.c (exact_real_inverse): Wrap variable `i' in
14529 * haifa-sched.c (schedule_insns): Mark parameter with
14532 * optabs.c: Include real.h.
14534 * real.h (ereal_atof): Add prototype arguments.
14536 * resource.c: Include insn-attr.h.
14538 * sdbout.c (sdbout_queue_anonymous_type,
14539 sdbout_dequeue_anonymous_types): Wrap in macro
14540 SDB_ALLOW_FORWARD_REFERENCES.
14541 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
14544 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
14546 * stupid.c: Include tm_p.h.
14548 * tree.c (real_value_from_int_cst): Mark parameter with
14551 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14553 * i960-protos.h: New file.
14555 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
14558 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
14560 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14562 * combine.c (expand_field_assignment): Do not discard SUBREGs
14563 while computing nonzero_bits.
14565 2000-01-09 Nick Clifton <nickc@cygnus.com>
14567 * config/arm/arm.c: Fix compile time warnings about signed vs
14568 unsigned constants.
14569 * config/arm/arm.h: Fix compile time warnings about signed vs
14570 unsigned constants.
14572 2000-01-09 Philip Blundell <philb@gnu.org>
14574 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
14575 than `ldm' with only one register.
14576 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
14579 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
14582 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
14584 * config/ns32k/ns32k.md (load or push effective address): Operand 1
14587 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14589 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
14590 assignment used as truth value.
14592 * function.c (assign_temp): Mark parameter `dont_promote' with
14593 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
14594 PROMOTE_FOR_CALL_ONLY.
14596 * genrecog.c (write_subroutine): Mark variable `operands' with
14599 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
14602 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
14603 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
14605 * toplev.c (note_deferral_of_defined_inline_function): Likewise
14608 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14610 * config/c4x.h: Tidy up comments.
14611 * config/c4x.c: Likewise.
14613 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
14615 * fold-const.c (lshift_double, rshift_double): Handle
14616 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
14618 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14620 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
14621 in prepare_function_start().
14623 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
14625 * config/v850/v850.c (expand_epilogue): Interrupt functions no
14626 longer allocate extra stack for function calls.
14628 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14630 * config/c4x/c4x.md (*subqf3_set): Fix typo.
14632 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14634 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
14636 2000-01-07 David Edelsohn <edelsohn@gnu.org>
14638 * rs6000.c (processor_target_table): Add power3 as alias for 630.
14639 * aix43.h: Revert Aug 2 change.
14640 (HAS_INIT_SECTION): Define, not visible yet.
14641 (LD_INIT_SWITCH): Define, not visible yet.
14642 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
14644 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
14646 * collect2.c (main): Expand ld2 size further.
14647 (export_object_lst): Cast assignment to avoid warning.
14648 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
14649 (scan_prog_file, COFF): Do not collect initialization or
14650 finalization functions generated for entire shared object if
14651 init/fini support present.
14653 2000-01-07 Nick Clifton <nickc@cygnus.com>
14655 * config/elfos.h: Tidy up formatting of marcos. Make sure
14656 that .section directives are always prefixed by a tab.
14658 * config/svr4.h: Add #include "elfos.h" and remove duplicate
14661 2000-01-07 Matt Austern <austern@sgi.com>
14663 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
14666 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
14668 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
14670 (crtbegin.o, s-crtS): Likewise.
14672 2000-01-06 Richard Henderson <rth@cygnus.com>
14674 * alpha.md (adddi_2+1): Limit offset such that it will be
14675 loadable with a single ldah+lda pair.
14676 (adddi_2+2): Explicitly fail split if we can't make it work.
14678 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
14680 * protoize.c: Conditionally include unistd.h.
14681 (IS_SAME_PATH_CHAR): New macro.
14682 (IS_SAME_PATH): New macro.
14683 (CPLUS_FILE_SUFFIX): New macro.
14684 (cplus_suffix): New static variable.
14685 (is_abspath): New static function.
14686 (in_system_include_dir): Handle DOS style pathnames.
14687 (file_could_be_converted): Likewise.
14688 (file_normally_convertible): Likewise.
14689 (directory_specified_p): Likewise.
14690 (file_excluded_p): Likewise.
14691 (abspath): Likewise.
14692 (shortpath): Likewise.
14693 (referenced_file_is_newer): Likewise.
14694 (save_def_or_dec): Likewise.
14695 (do_processing): Likewise.
14697 (edit_file): Likewise. Use rename instead of link.
14698 (rename_c_file): Likewise. Don't rename syscalls file.
14699 (munge_compile_params): Define null device for DOS based systems.
14700 (process_aux_info_file): Use binary mode if appliable.
14701 (edit_file): Likewise.
14702 * invoke.texi (Running Protoize): Document C++ suffixes used.
14704 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
14705 IS_DIR_SEPARATOR macros.
14706 * collect2.c: Likewise.
14707 * cppinit.c: Likewise.
14708 * dwarf2out.c: Likewise.
14710 * gcov.c: Likewise.
14711 * prefix.c: Likewise.
14713 * toplev.c: Likewise.
14714 * system.h: And move to here.
14716 * prefix.c (update_path): Fix typo in variable name.
14718 2000-01-06 Richard Henderson <rth@cygnus.com>
14720 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
14721 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
14722 (count_reg_sets_1, count_reg_references): Likewise.
14723 (flow_loops_level_compute): Start counting actual loop depth at 1.
14724 (flow_loops_find): Likewise.
14725 * local-alloc.c (update_equiv_regs): Likewise.
14726 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
14728 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
14730 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
14731 FIRST_PSEUDO_REGISTER
14732 * dwarf2out.c: Don't include frame.h
14733 * dwarfout.c: Likewise
14734 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
14737 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
14739 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
14742 * i386.c (movsf splitter): Fix typo in my last checkin.
14744 2000-01-05 Nick Clifton <nickc@cygnus.com>
14746 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
14747 own definition of this macro.
14748 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
14749 flag_data_sections or UNIQUE_SECTION_P are true.
14751 * tm.texi (UNIQUE_SECTION): Document that it can be called for
14752 unitialised data decls.
14754 * config/i386/winnt.c (i386_pe_unique_section): Cope with
14755 being called for uninitialised data.
14757 * config/i386/interix.c (i386_pe_unique_section): Cope with
14758 being called for uninitialised data.
14760 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
14761 for uninitialised data.
14763 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
14764 for uninitialised data.
14766 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
14767 for uninitialised data.
14769 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
14770 (UNIQUE_SECTION_P): Always generate a unique section if
14771 flag_data_sections is true.
14772 (UNIQUE_SECTION): Also generate unique sections for
14773 uninitialised data.
14774 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
14775 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
14778 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14780 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
14783 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14785 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
14786 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
14787 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
14788 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
14789 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
14791 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
14793 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
14795 * c-decl.c (finish_enum): Simplify code to determine minimum and
14796 maximum values of the enum, and calculate the type. Remove check
14797 for FUNCTION_DECLs in the values list, which cannot happen. Replace
14798 the DECL_INITIAL of each enumeration constant with a copy converted
14799 to the enumeration type. When updating variant types, don't bother
14800 updating the type itself.
14802 * c-typeck.c (build_binary_op): Simplify conditional expressions
14803 when weeding out spurious signed-unsigned warnings. Add new
14804 spurious warning category: if the unsigned quantity is an enum
14805 and its maximum value fits in signed_type(result_type). Update
14807 (build_conditional_expr): Warn here if one alternative is signed
14808 and the other is unsigned.
14810 2000-01-05 Nick Clifton <nickc@cygnus.com>
14812 * config/fr30/fr30.h: Remove extraneous comments.
14814 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
14816 * reload1.c (choose_reload_regs): When disabling a reload, also
14817 set reload_spill_index to -1.
14819 2000-01-04 Joel Sherrill (joel@OARcorp.com>
14821 * configure.in (m68*-*-rtemscoff*): New target, formal name for
14823 (m68*-*-rtemself*): New target.
14824 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
14825 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
14826 (sparc*-*-rtemself*): New target.
14827 (sparc*-*-rtems*): Now elf not a.out.
14828 * config/i386/rtems.h: Include config/rtems.h.
14829 * config/i386/rtemself.h: Include config/rtems.h.
14830 * config/i960/rtems.h: Include config/rtems.h.
14831 * config/m68k/rtems.h: Include config/rtems.h.
14832 * config/m68k/rtemself.h: Include config/rtems.h.
14833 * config/mips/rtems64.h: Include config/rtems.h.
14834 * config/pa/rtems.h: Include config/rtems.h.
14835 * config/rs6000/rtems.h: Include config/rtems.h.
14836 * config/sh/rtems.h: Include config/rtems.h.
14837 * config/sh/rtemself.h: Include config/rtems.h.
14838 * config/sparc/rtems.h: Include config/rtems.h.
14839 * config/sparc/rtemself.h: Include config/rtems.h
14841 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
14843 * final.c (shorten_branches): Correctly compute length of
14844 asms without operands.
14846 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
14848 * configure.in: Add pj target.
14849 * configure: Regenerate.
14850 * config/pj: New directory.
14851 * config/pj/lib1funcs.S: New file.
14852 * config/pj/linux.h: New file.
14853 * config/pj/pj.c: New file.
14854 * config/pj/pj.md: New file.
14855 * config/pj/pjl.h: New file.
14856 * config/pj/t-pj: New file.
14857 * config/pj/xm-pj.h: New file
14859 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
14861 * toplev.c (rest_of_compilation): Run shorten-branches before
14864 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14866 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
14867 macros so that they're consistent with their names.
14868 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14869 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14871 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14873 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
14874 modified inadvertently.
14876 2000-01-04 Joel Sherrill <joel@OARcorp.com>
14878 * configure.in (v850*-*-rtems*): New target.
14879 * configure: Regenerate.
14880 * config/v850/rtems.h: New file.
14882 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
14884 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
14885 (__gthread_key_create): Likewise.
14886 (__gthread_key_dtor): Likewise.
14887 (__gthread_once): Fix logic.
14888 (__gthread_key_delete): Cast away constness.
14890 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
14891 * invoke.texi: Document.
14892 * i386/mingw32.h (CPP_SPEC): Use.
14893 (LIBGCC_SPEC): Likewise.
14894 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
14896 2000-01-04 David Edelsohn <edelsohn@gnu.org>
14898 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
14899 (HANDLE_PRAGMA_PACK): Undefine.
14900 (SLOW_UNALIGNED_ACCESS): Define.
14902 2000-01-04 David Edelsohn <edelsohn@gnu.org>
14904 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14905 to default definition.
14906 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
14907 (store_fixed_bit_field): Call macro with word_mode and alignment.
14908 (extract_bit_field): Call macro with relevant mode and alignment.
14909 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14910 to default definition.
14911 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
14913 (move_by_pieces_ninsns): Likewise.
14914 (clear_by_pieces): Likewise.
14915 (emit_push_insn): Likewise.
14916 (store_field): Call macro with relevant mode and alignment.
14917 (expand_expr): Likewise.
14918 (expand_expr_unaligned): Likewise.
14920 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
14921 (SLOW_UNALIGNED_ACCESS): Define.
14922 (CASE_VECTOR_MODE): Always use 32-bit offsets.
14923 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
14924 (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
14925 (toc_section): Likewise and .toc pseudo-op.
14926 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
14928 (TEXT_SECTION_ASM_OP): Likewise.
14929 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
14932 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
14933 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
14934 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
14935 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
14936 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
14938 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
14940 * regclass.c: Revert my Jan 4 change to loop cost computation.
14942 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14944 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
14947 2000-01-04 Stan Cox <scox@cygnus.com>
14949 * haifa-sched.c (build_control_flow): Change unreachable simple
14950 loop test to check if current block has only one predecessor.
14951 (find_rgns): Initialize degree. Use dest as degree index, not src.
14953 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14955 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
14957 * calls.c (expand_call): Likewise for
14958 `old_stack_arg_under_construction'.
14960 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
14962 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
14965 * gcc.c (execute): Likewise for `ut' and `st'.
14967 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
14969 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
14971 * jump.c (jump_optimize_1): Likewise for `temp2'.
14973 * local-alloc.c (block_alloc): Likewise for `r1'.
14975 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
14977 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
14978 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
14980 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
14983 * reload.c (find_reloads): Likewise for `goal_alternative_number'
14984 and `goal_earlyclobber'.
14986 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
14988 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
14990 * stupid.c (stupid_life_analysis): Likewise for `chain'.
14992 * unroll.c (copy_loop_body): Likewise for `copy'.
14994 * varasm.c (output_constructor): Likewise for `byte'.
14996 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14998 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
14999 all FP constants for constant->reg moves.
15000 (ix86_split_to_parts): Try to convert memory address into immediate
15001 when available in the constant pool.
15002 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
15004 (LEGITIMATE_CONSTANT_P): Return 1.
15005 * i386.md (pushsf): New splitter to convert constant pool memory
15006 reference to immediate.
15007 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
15010 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
15012 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
15013 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
15014 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
15015 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
15016 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
15018 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
15020 * ginclude/stdbool.h: Support compilation as C++.
15022 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
15024 * fold-const.c (make_range): Don't try to reverse an unbounded range.
15026 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
15028 * regclass.c (regclass): Properly compute loop_cost. Adjust
15031 * regclass.c: Fix minor whitespace problems.
15033 2000-01-03 Anthony Green <green@cygnus.com>
15035 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
15036 Restore the pic register if required.
15038 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
15040 * c-common.c (format_char_info): Update comment.
15041 (check_format_info): Recognize 'z' modifier in the same way 'Z'
15042 was recognized. Emit warning for formats new in ISO C99 only
15043 if flag_isoc9x is not set.
15045 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
15047 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
15049 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
15051 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
15052 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
15053 (make_compound_operation): Choose cheaper alternative between
15054 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
15056 * regclass.c (op_costs): Remove global variable.
15057 (record_reg_classes): New parameter "op_costs" and "reg_pref".
15058 (record_operand_costs): Break out from ...
15059 (scan_one_insn): ... here.
15060 (dump_regclass): Make dumps nicer.
15061 (regclass): Dump preferrences choosed and changes done during passes.
15063 2000-01-03 Jakub Jelinek <jakub@redhat.com>
15065 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
15067 2000-01-03 Jakub Jelinek <jakub@redhat.com>
15069 * config/sparc/sparc.c (gen_df_reg): New function.
15070 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
15071 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
15072 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
15073 movtf_cc_reg_sp64+1): Use it.
15075 2000-01-02 Mark Mitchell <mark@codesourcery.com>
15077 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
15078 copied LABEL_DECLs.
15080 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
15082 * config/i386/i386.c (ix86_expand_unary_operator): Function
15083 definition made void.
15084 (ix86_expand_binary_operator): Update outdated preceding comment.
15085 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
15088 * config/i386/i386.c (override_options): Fix option-name typo.
15090 2000-01-02 Mark Mitchell <mark@codesourcery.com>
15092 * system.h (CEIL): Define.
15093 * builtins.c (CEIL): Remove.
15094 * expmed.c (CEIL): Likewise.
15095 * expr.c (CEIL): Likewise.
15096 * stor-layout.c (CEIL): Likewise.
15098 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15100 * expr.c (store_constructor_field): Fix typo introduced with last
15103 2000-01-01 Mark Mitchell <mark@codesourcery.com>
15105 * tree.h (BINFO_N_BASETYPES): New macro.
15107 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
15109 * expmed.c (emit_store_flag): Prevent losing a pending stack
15110 adjust the same way we prevent losing queued increments.
15112 See ChangeLog.2 for earlier changes.