1 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
3 * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
4 (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
6 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8 * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
10 * diagnostic (vbuild_message_string, build_message_string,
11 build_location_prefix, output_get_prefix, init_output_buffer,
12 output_notice, vline_wrapper_message_with_location,
13 v_message_with_decl, default_print_error_function): De-constify.
14 (set_real_maximum_length): Prototype.
16 * diagnostic.h (struct output_buffer, init_output_buffer,
17 output_get_prefix, output_set_prefix): De-constify.
19 * function.c (init_function_start): Constify.
21 * gensupport.c (remove_constraints, process_rtx): Prototype.
23 * gthr-posix.h: Indent uses of #pragma.
25 * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
28 * predict.c (find_expected_value): Delete prototype.
29 (expected_value_to_br_prob): Initialize variable `ev_reg'.
31 * sbitmap.h (debug_sbitmap): Prototype.
33 * ssa.c (compute_coalesced_reg_partition): Prototype.
35 * stor-layout.c (debug_rli): Prototype.
37 * tree.h (round_down): Prototype.
38 (init_function_start): Constify.
40 2000-05-04 Zack Weinberg <zack@wolery.cumb.org>
42 * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
43 (overly conservative). Change extern inline wrappers to
44 static inline, define them always, use PARAMS properly.
45 * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
46 whitespace warnings for \f and \v at the beginning of a line.
48 Thu May 4 10:03:50 2000 Jeffrey A Law (law@cygnus.com)
50 * haifa-sched.c (schedule_insns): Free the flow edge list when it
53 2000-05-04 Bruce Korb <bkorb@gnu.org>
55 * fixincl/inclhack.def: added broken_cabs -
56 Remove `extern double cabs' declarations from math.h
57 * fixincl/inclhack.sh: regen
58 * fixincl/fixincl.x: regen
59 * fixincl/fixincl.c: Remove BOGOSITY code
60 * fixincl/mkfixinc.sh: Remove code for installing "shell" version
62 Thu May 4 09:45:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
64 * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
66 * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
67 when calling MEM_COPY_ATTRIBUTES.
68 * emit-rtl.c (operand_subword, change_address): Likewise.
69 * explow.c (stabilize): Likewise.
70 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
71 * integrate.c (copy_rtx_and_substitute): Likewise.
72 * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
73 when calling MEM_COPY_ATTRIBUTES.
74 (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
76 * cse.c (gen_lowpart_if_possible): Likewise.
77 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
78 * optabs.c (gen_move_insn): Likewise.
79 * recog.c (validate_replace_rtx_1): Likewise.
80 * simplify-rtx.c (add_mem_for_addr): Likewise.
81 * stmt.c (expand_anon_union_decl): Likewise.
82 * config/arm/arm.md: Likewise.
83 * config/h8300/h7300.c (fix_bit_operand): Likewise.
84 * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
85 (block_move_no_loop, block_move_sequence): Likewise.
86 * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
87 * config/alpha/alpha.c (get_aligned_mem): Likewise.
89 * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
92 2000-05-03 Robert Lipe <robertlipe@usa.net>
94 * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
96 (i[34567]86-*-sco3.2v5*) Likewise.
97 (i[34567]86-*-sco3.2v4*) Likewise.
98 (i[34567]86-*-sco) Likewise.
99 (i[34567]86-*-solaris2) Likewise.
100 (i[34567]86-*-sysv5*) Likewise.
101 (i[34567]86-*-sysv4*) Likewise.
102 (i[34567]86-*-udk*) Likewise.
103 (i[34567]86-*-sysv*) Likewise.
105 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
107 * cpphash.h (U): New define, to correct type of string constants.
108 (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
109 routines, to do casts when passing unsigned strings to libc.
110 * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
112 * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
113 * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
114 * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
115 * cpplex.c (parse_ifdef, parse_include, validate_else): Make
116 second argument an U_CHAR *.
118 * cppinit.c (builtin_array): Make name and value U_CHAR *, add
119 length field, clean up initializer.
120 (ISTABLE): Add __extension__ to designated-
121 initializers version.
122 * cpplex.c (CHARTAB): Likewise.
124 * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
125 case so the file won't be empty.
127 Wed May 3 21:01:46 2000 Jason Eckhardt <jle@cygnus.com>
129 * bb-reorder.c (struct reorder_block_def): Member succ removed.
130 (REORDER_BLOCK_SUCC): Removed.
131 (enum reorder_skip_type): Removed.
132 (skip_insns_between_block): Renamed to skip_insns_after_block.
133 Removed second argument. Removed dead code and cleaned up.
134 (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
135 (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
136 second parameter to skip_insns_after_block.
138 Wed May 3 13:29:54 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
140 * tree.c (staticp, case LABEL_DECL): New case.
142 2000-05-03 Richard Henderson <rth@cygnus.com>
144 * Makefile.in (start.encap): Do not depend on LIBGCC1.
146 * mklibgcc1.in: Fix typo last change.
148 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
150 * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
151 (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
152 (GCC_CFLAGS): Use it.
153 (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
154 * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
155 objc/Make-lang.in: Use it.
157 2000-05-03 Jason R Thorpe <thorpej@zembu.com>
159 * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
161 2000-05-03 Richard Henderson <rth@cygnus.com>
163 * mklibgcc.in: Restrict OLDCC=GCC test to native. Equate
164 LIBGCC1 empty with libgcc1.null.
166 Wed May 3 12:55:46 2000 Jim Wilson <wilson@cygnus.com>
168 * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
171 2000-05-03 Greg McGary <gkm@gnu.org>
173 * tree.h (tree_common): Add bounded_flag member. Remove
174 inaccurate comment about number of remaining bits.
175 (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
176 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
177 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
178 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
179 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
180 (TYPE_QUAL_BOUNDED): New constant.
181 (TYPE_QUALS): Handle bounded qualifier.
182 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
183 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
184 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
185 TYPE_AMBIENT_BOUNDEDNESS): New macros.
186 (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
187 (tree_type): Add pointer_depth member. Remove
188 inaccurate comment about number of remaining bits.
189 (DECL_POINTER_DEPTH): Add macro.
190 (tree_decl): Add pointer_depth member.
192 Wed May 3 22:52:53 2000 Denis Chertykov <denisc@overta.ru>
194 * config/avr/avr-protos.h (test_hard_reg_class): Declared.
195 * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
196 (lshrhi3_out): Likewise.
197 (ashrsi3_out): bugfix in shift by 8.
198 (test_hard_reg_class): New function.
199 * config/avr/avr.md: Bugfix inside conditions in peepholes.
200 (ashlhi3): removed define_expand of this pattern.
201 (*ashlhi3_insn): renamed to ashlhi3.
202 (ashlsi3): removed define_expand of this pattern.
203 (*ashlsi3_insn): renamed to ashlsi3.
204 (ashrqi3): removed define_expand of this pattern.
205 (*ashrqi3_insn): renamed to ashrqi3.
206 (ashrhi3): removed define_expand of this pattern.
207 (*ashrhi3_insn): renamed to ashrhi3.
208 (ashrsi3): removed define_expand of this pattern.
209 (*ashrsi3_insn): renamed to ashrsi3.
210 (lshrhi3): removed define_expand of this pattern.
211 (*lshrhi3_insn): renamed to lshrhi3.
212 (lshrsi3): removed define_expand of this pattern.
213 (*lshrsi3_insn): renamed to lshrsi3.
215 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
217 * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
218 inclusion of "system.h".
220 Wed May 3 11:43:53 2000 Jim Wilson <wilson@cygnus.com>
222 * config/ia64/ia64.c (ia64_encode_section_info): Add check for
225 2000-05-03 David Mosberger <davidm@hpl.hp.com>
227 * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
229 (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
230 -mconstant-gp is in effect and function-descriptors are being used
231 to make indirect calls.
232 * config/ia64/ia64.h (MASK_CONST_GP): New macro.
233 (MASK_AUTO_PIC): Ditto.
234 (TARGET_CONST_GP): Ditto.
235 (TARGET_AUTO_PIC): Ditto.
236 (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
237 (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
238 -mno-pic is in effect.
239 (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
240 * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
241 -mauto-pic is in effect.
242 (gprel64_offset): New pattern.
243 (load_gprel64): Ditto.
244 (call): Handle -mauto-pic like -mno-pic (don't use fptr). If
245 -mconstant-gp is in effect, no need to preserve gp around direct
248 * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
249 (FUNCTION_PROFILER): Define.
250 * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
251 @fptr() directive when -mno-pic or -mauto-pic is in effect.
252 (ASM_OUTPUT_DESTRUCTOR): Ditto.
254 2000-05-03 Richard Henderson <rth@cygnus.com>
256 * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
257 (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
258 (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
259 (mklibgcc, libgcc.mk): New targets.
260 (libgcc.a): Use libgcc.mk.
261 (stmp-multilib): Likewise.
262 (stmp-multilib-sub): Remove.
263 (mostlyclean): Don't delete libgcc2 temp files.
264 * configure.in (AC_PROG_CC_C_O): Add.
265 (NO_MINUS_C_MINUS_O): Substitute it.
266 (all_outputs): Add mklibgcc.
267 * mklibgcc.in: New file.
269 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
271 * cppexp.c (op_t): Make an int.
273 * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
275 * varasm.c (initializer_constant_valid_p): Fix parenthesis.
277 * gensupport.c (process_rtx): Fix macros used.
279 2000-05-03 Richard Henderson <rth@cygnus.com>
281 * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
282 call-clobbered registers of a call.
284 Wed May 3 12:40:53 2000 Clinton Popetz <cpopetz@cygnus.com>
286 * gensupport.c: New file.
287 * gensupport.h: New file.
288 * Makefile.in (HOST_RTL): Depend on gensupport.
289 (gensupport.o) New rule.
290 * genattr.c: Use gensupport for reading .md files.
291 * genattrtab.c: Ditto.
293 * genconfig.c: Ditto.
295 * genextract.c: Ditto.
297 * genopinit.c: Ditto.
298 * genoutput.c: Ditto.
301 * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
302 * md.texi (Insn Splitting): Document define_insn_and_split.
304 Tue May 2 00:20:30 2000 Jason Eckhardt <jle@cygnus.com>
306 * flow.c (verify_flow_info): Added two more sanity checks. The
307 first checks that the blocks are numbered consecutively. The second
308 checks that n_basic_blocks is actually equal to the number of
309 basic blocks in the insn chain.
311 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
313 * cpplib.h: Add accessor macros for token lists.
314 * cpplib.c, cpphash.c, cpplex.c: Use them.
316 Wed May 3 09:29:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
318 * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
319 memory usage if not in a function.
320 * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
321 return address if static.
323 Wed May 3 13:14:49 MET DST 2000 Jan Hubicka <jh@suse.cz>
325 * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
326 whether address may trap.
328 Tue May 2 23:38:37 2000 Jason Eckhardt <jle@cygnus.com>
330 * bb-reorder (chain_reorder_blocks): Changed code to test for
331 EDGE_FALLTHRU rather than making erroneous assumption that the
332 first outgoing edge is the fall-through edge.
334 Tue May 2 18:20:31 2000 Donald Lindsay <dlindsay@hound.cygnus.com>
336 * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
337 ABI for varargs, across all MIPS. This is incompatible because the
338 va_list (__builtin_va_list) structure is different, so a compilation
339 unit passing a va_list and a compilation unit being passed one, should
340 both be compiled with the same ABI. (The old structure had two
341 pointers, now it has three.)
343 Tue May 2 19:18:43 2000 Jason Eckhardt <jle@cygnus.com>
345 * bb-reorder.c (struct reorder_block_def): Remove members end,
346 block_begin, and block_end.
347 (REORDER_BLOCK_OLD_END): Delete.
348 (REORDER_BLOCK_BEGIN): Delete.
349 (REORDER_BLOCK_END): Delete.
350 (chain_reorder_blocks): Remove dead code.
352 Tue May 2 17:06:53 2000 Jason Eckhardt <jle@cygnus.com>
354 * bb-reorder.c (remove_scope_notes): Check for both types of scope
355 notes as the end of a basic block before deleting.
357 2000-05-02 Mumit Khan <khan@xraylith.wisc.edu>
359 * final.c (final_start_function): Fix spelling of "necessary".
361 2000-05-02 Jason Merrill <jason@casey.cygnus.com>
363 * toplev.c (debug_ignore_block): Return int.
364 * dwarf2out.c (dwarf2out_ignore_block): Likewise.
365 * toplev.h, dwarf2out.h: Adjust.
366 * emit-rtl.c (remove_unnecessary_notes): Test return value.
368 * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
369 * toplev.c, final.c, rtl.h: Adjust.
371 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
373 * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
374 * configure.in: Look for makeinfo in the unified tree, then
375 for a system makeinfo which is sufficiently new.
376 * Makefile.in: If configure says makeinfo is too old, don't
377 build or install Info documentation.
379 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
381 * cpphash.c (collect_params): Fix off-by-one error.
382 (dump_hash_helper): Dump all four macro nodetypes.
384 2000-05-02 Jakub Jelinek <jakub@redhat.com>
386 * cpphash.c (trad_stringify): Adjust p after stringification as
389 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
391 * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
392 (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
394 * cppfiles.c (file_cleanup): Delete.
395 * cpphash.c (macro_cleanup): Delete.
396 (collect_objlike_expansion, collect_funlike_expansion,
397 macarg, scan_arguments): Remove CPP_POP case.
399 * cpplex.c (null_cleanup): Delete.
400 (cpp_pop_buffer): Do the work that was done in the cleanups
401 here. Call _cpp_unwind_if_stack from here.
402 (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
403 cpp_scan_buffer): Run until we see CPP_EOF and the top of
404 stack is the buffer _below_ the one we stacked.
405 (cpp_get_token): Always pop an exhausted buffer. Return
406 CPP_EOF unless it's a macro buffer. Don't call _cpp_handle_eof.
407 * cpplib.c (skip_if_group): Don't call cpp_get_token to
408 increment the line number.
409 (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
411 * fix-header.c (read_scan_file) [parsing getchar()]: Run until
412 we see CPP_EOF and the top of stack is the buffer _below_ the
414 * scan-decls.c: Likewise.
416 2000-05-02 Andrew Haley <aph@cygnus.com>
418 * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
419 where this function is called for the second time on a decl that
420 has had its section info changed in such a way as to move it out
422 * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
424 2000-05-01 Richard Henderson <rth@cygnus.com>
426 * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
427 the sequence we're moving, not to merge_bb->head.
429 2000-05-01 Richard Henderson <rth@cygnus.com>
431 * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
432 reference to alpha/t-linux.
433 (alpha*-*-linux-gnu*): Likewise.
434 * configure: Rebuild.
436 * calls.c (expand_call): Don't emit reg notes for a sibcall.
438 * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
441 * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
443 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
445 * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
448 2000-05-01 Richard Henderson <rth@cygnus.com>
450 * ifcvt.c (noce_emit_cmove): Conditionally compile call to
451 emit_conditional_move.
453 2000-05-01 Jakub Jelinek <jakub@redhat.com>
455 * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
456 as the dynamic linker.
458 2000-05-01 Zack Weinberg <zack@wolery.cumb.org>
460 * cppfiles.c (open_include_file): Open file in blocking mode.
461 (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
462 Only exclude block devices and directories.
464 * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
465 static. Allocate the hashnode and its string in the same
467 (del_HASHNODE): Don't free h->name.
468 (_cpp_lookup): If there is no entry for this string, create
470 (_cpp_lookup_slot): Delete.
471 * cpphash.h: Update prototypes.
473 * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
475 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
476 do_unassert, cpp_defined): Use _cpp_lookup. Don't create a
477 node here, just fill in the value field properly. "Delete"
478 entries by setting the value field to T_VOID. Check for
479 hp->type == T_VOID, not hp == NULL.
481 * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
482 * cpperror.c, cppexp.c, cpplex.c, cpplib.c: Don't include
485 2000-05-01 Alexandre Oliva <aoliva@cygnus.com>
487 * config/mn10300/mn10300.c (print_operand_address): Do not add
490 * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
491 adjusted by less than 256 bytes, use ret regardless of having any
492 callee-saved register to restore.
494 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
496 * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
498 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
500 * config/i386/djgpp.h (INT_ASM_OP): Define.
501 (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
502 (ASM_WEAKEN_LABEL): Define.
503 (MASK_BNU210): Define.
504 (SUBTARGET_SWITCHES): Define.
505 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
506 (MAKE_DECL_ONE_ONLY): Define.
507 (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
509 2000-05-01 Mumit Khan <khan@xraylith.wisc.edu>
511 * i386/cygwin.h (INT_ASM_OP): Define.
513 Mon May 1 18:20:06 2000 Denis Chertykov <denisc@overta.ru>
515 * config/avr/avr.c (address_cost): renamed to avr_address_cost.
516 * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
518 Mon May 1 17:50:44 2000 Denis Chertykov <denisc@overta.ru>
520 * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
521 __tmp_reg__ and __zero_reg__ initialization.
523 2000-04-30 Richard Henderson <rth@cygnus.com>
525 * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
527 * ifcvt.c (noce_process_if_block): Fail the conversion if X is
528 referenced bewteen the condition and the jump. Don't delete
529 anything but the jump.
531 Sun Apr 30 22:48:24 2000 Jason Eckhardt <jle@cygnus.com>
533 * bb-reorder.c (scope_def): New struct.
534 (scope_forest_info): New struct.
535 (struct reorder_block_def): New member "scope".
536 (REORDER_BLOCK_SCOPE): New macro.
537 (relate_bbs_with_scopes): New function and prototype.
538 (make_new_scope): Likewise.
539 (build_scope_forest): Likewise.
540 (remove_scope_notes): Likewise.
541 (insert_intra_1): Likewise.
542 (insert_intra_bb_scope_notes): Likewise.
543 (insert_inter_bb_scope_notes): Likewise.
544 (rebuild_scope_notes): Likewise.
545 (free_scope_forest_1): Likewise.
546 (free_scope_forest): Likewise.
547 (dump_scope_forest): Likewise.
548 (dump_scope_forest_1): Likewise.
549 (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
550 Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
552 (reorder_basic_blocks): Added calls to build_scope_scope_forest
553 and remove_scope_notes before reordering is done. Added calls to
554 rebuild_scope_notes, free_scope_forest, and reorder_blocks after
555 after reordering is done.
557 2000-40-30 Bruce Korb <bkorb@gnu.org>
559 * fixinc/inclhack.def: Added definitions needed by OSR5,
560 removed two stale entries (defined away with OLD_CPP).
561 * fixinc/inclhack.sh: regen
562 * fixinc/fixincl.x: regen
564 2000-04-30 Richard Henderson <rth@cygnus.com>
566 * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
567 from the last insn in the sequence.
569 2000-04-30 Zack Weinberg <zack@wolery.cumb.org>
571 * cpplex.c (cpp_idcmp): New function.
572 * cpplib.h: Prototype it.
573 * scan_decls.c (scan_decls): Use it to inspect token names.
574 * fix-header.c (read_scan_file): Likewise. Set system_header_p on
575 the file being run through the preprocessor.
576 (check_macro_names): Provide length of token to cpp_defined.
578 * Makefile.in: Remove stale warning message.
580 * cppfiles.c (redundant_include_p): Provide length of token to
582 * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
583 values are unsigned int.
584 (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
585 (_cpp_lookup_slot): Do not calculate the hash, either.
586 * cpphash.h: Update prototypes.
587 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
588 Hashes are unsigned int. Calculate hash here, pass by value
591 2000-04-30 Bernd Schmidt <bernds@cygnus.co.uk>
593 * simplify-rtx.c (check_value_useless): Delete function.
594 (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
596 (cselib_invalidate_regno): Likewise.
597 (cselib_invalidate_mem_1): Likewise.
598 (references_value_p): Recognize useless values by the fact that they
600 (discard_useless_values): Likewise.
601 (cselib_record_set): This may turn a useless value
604 2000-04-30 Richard Henderson <rth@cygnus.com>
606 * config/d30v: New port.
608 * configure.in (d30v-*): Set fp format.
609 * configure: Rebuild.
611 2000-04-30 Richard Henderson <rth@cygnus.com>
614 * Makefile.in (OBJS): Add it.
615 (ifcvt.o): New target.
616 * jump.c (jump_optimize_1): Remove all code related to if-conversion,
617 and conditional arithmetic.
618 (find_insert_position): Remove.
619 * timevar.def (TV_IFCVT, TV_IFCVT2): New.
620 * toplev.c (DFI_ce, DFI_ce2): New.
621 (dump_file): Add ce and ce2 dumps.
622 (rest_of_compilation): Run if_convert a couple o times. Set
623 cse_not_expected after cse2. Don't set no_new_pseudos until
624 after sched1 or recompute_reg_usage.
626 2000-04-30 Richard Henderson <rth@cygnus.com>
628 * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
629 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
631 2000-04-30 Richard Henderson <rth@cygnus.com>
633 * flow.c (struct reg_cond_life_info): New.
634 (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
635 (init_propagate_block_info): Initialize them.
636 (free_propagate_block_info): Destruct them.
637 (mark_set_1): Consider conditional life before killing a register.
638 (mark_regno_cond_dead): New.
639 (free_reg_cond_life_info): New.
640 (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
641 (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
642 (mark_used_reg): Record conditional life.
644 * haifa-sched.c (schedule_insns): Disable death counting
645 sanity check for HAVE_conditional_execution.
647 2000-04-30 Richard Henderson <rth@cygnus.com>
649 * Makefile.in (TIMEVAR_H): New.
650 (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
651 (timevar.h): Remove rule.
653 2000-04-29 Richard Henderson <rth@cygnus.com>
655 * config/alpha/crtend.asm: Use C comments instead of #.
656 * config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
658 * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
660 2000-04-29 Zack Weinberg <zack@wolery.cumb.org>
662 * cpphash.h (enum node_type: Take out T_MCONST.
663 (union hashval): Move into struct hashnode.
664 (struct hashnode): Pack tighter. Remove file, line, col
666 * cpphash.c: Constify most of the macro-definition structures.
667 (struct definition): Replace by struct object_defn
668 and struct funct_defn. Put file, line, column information
669 here. All users updated to match.
670 (_cpp_create_definition, _cpp_macroexpand): Remove special
671 case for #define WORD OTHERWORD.
672 * cpplib.c (do_undef): Remove T_MCONST case.
674 * cpphash.h: Move struct reflist, struct definition, and the
675 DEFINITION typedef to cpphash.c. Use 'struct definition *' in
676 union hashval. _cpp_free_definition takes a HASHNODE pointer.
677 * cpphash.c (_cpp_free_definition): Free data pointed to by
678 MCONST, XCONST, MACRO, and FMACRO nodes properly.
679 (_cpp_create_definition, del_HASHNODE): Just call
680 _cpp_free_definition to clear out a hashnode.
681 * cpplib.c (do_pragma_poison): Likewise.
683 Sat Apr 29 12:25:17 2000 Alexandre Oliva <aoliva@cygnus.com>
685 * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
686 LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
687 FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
688 (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
689 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
690 REGNO_AM33_P): Redefine in terms of the new macros.
691 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
692 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
693 STRUCT_VALUE): Likewise.
694 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
695 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
697 Sat Apr 29 01:18:45 MET DST 2000 Jan Hubicka <jh@suse.cz>
699 * regmove.c (struct record_stack_memrefs_data): New.
700 (record_stack_memrefs): New function.
701 (combine_stack_adjustments_for_block): Use it.
703 Sat Apr 29 01:15:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
705 * calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
706 use special_function_p to detect alloca.
708 Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
710 * gcc.texi: Fixes for makeinfo 4.0 --html.
712 2000-04-28 Zack Weinberg <zack@wolery.cumb.org>
714 * pcp.h: Delete file.
716 2000-04-28 Kazu Hirata <kazu@hxi.com>
718 * h8300.c (function_epilogue): Clean up flags when the last insn
719 in a function is a barrier.
721 2000-04-28 Chris Demetriou <cgd@sibyte.com>
723 * configure.in (sparc-hal-solaris2*): protect [] glob from
725 (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
726 rather than hard-coded constants in target_cpu_default2.
727 * configure: Regenerate.
729 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
731 * tree.c (get_callee_fndecl): Extract the initial value from
734 2000-04-28 Richard Henderson <rth@cygnus.com>
736 * varasm.c (record_constant_1): Record the CODE_LABEL when
737 taking the address of a LABEL_REF.
739 2000-04-28 Richard Henderson <rth@cygnus.com>
740 Jan Hubicka <jh@suse.cz>
742 * calls.c (combine_pending_stack_adjustment_and_call): Return the
743 adjustment; don't do the stack adjust.
744 (expand_call): Call compute_argument_block_size right before
745 allocating the block; update comment; don't do alignment sanity
746 checking for sibling call; use args_size instead of
747 unadjusted_args_size before args_size is adjusted. Use
748 combine_pending_stack_adjustment_and_call to compute stack adjust
749 for must_preallocate case.
751 * expr.c (push_block): Remove shadow `temp' in inner scope.
753 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
755 * toplev.c (rest_of_compilation): Call
756 note_deferral_of_defined_inline_function even if the function
759 2000-04-28 Scott Bambrough <scottb@netwinder.org>
761 * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
763 2000-04-28 Richard Henderson <rth@cygnus.com>
765 * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
767 2000-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
769 * timevar.c (init_timevar): DeANSIfy function definition.
771 2000-04-27 Alex Samuel <samuel@codesourcery.com>
773 * Makefile.in (timevar.o): Depend on flags.h.
774 * timevar.c (unused_stack_instances): New variable.
775 (timevar_push): Take a timevar_stack_def from
776 unused_stack_instances if available.
777 (timevar_pop): Push the popped timevar_stack_def onto
778 unused_stack_instances.
779 (TIMEVAR_ENABLE): New macro.
780 (timevar_def): Make standalone a 1-bit field. Add field used.
781 (get_time): Rename parameter to now. Return after clearing it if
783 (init_timevar): Do nothing if not TIMEVAR_ENABLE.
784 (timevar_pop): Likewise.
785 (timevar_stop): Likewise.
786 (timevar_push): Likewise. Mark the timing variable as used.
787 (timevar_start): Likewise.
788 (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
789 timevars that were never used.
791 2000-04-27 Mark Mitchell <mark@codesourcery.com>
793 * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
794 always TREE_READONLY.
796 2000-04-27 Ulrich Drepper <drepper@cygnus.com>
798 * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
799 for call instruction with mode QImode.
801 2000-04-27 Alex Samuel <samuel@codesourcery.com>
803 * Makefile.in (OBJS): Add timevar.o.
804 (toplev.o): Depend on timevar.h.
805 (ggc-simple.o): Likewise.
806 (ggc-page.o): Likewise.
807 (timevar.o): New rule.
808 (timevar.h): New rule.
810 * timevar.h: New file.
811 * timevar.c: Likewise.
812 * timevar.def: Likewise.
814 * toplev.h (gc_time, parse_time, varconst_time): Remove.
815 * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
817 (TIMEVAR): Remove macro.
818 (gc_time, parse_time, varconst_time, integration_time, jump_time,
819 cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
820 flow_time, combine_time, regmove_time, sched_time,
821 local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
822 sched2_time, dbr_sched_time, reorder_blocks_time,
823 rename_registers_time, shorten_branch_time, stack_reg_time,
824 to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
826 (compile_file): Don't initialize time variables. Call
827 init_timevar and start TV_TOTAL timer. Call timevar_print instead
828 of many calls to print_time.
829 (rest_of_compilation): Add timing for reload_cse_regs.
830 (get_run_time): Removed to timevar.c.
831 (print_time): Likewise.
832 (get_run_time): Implement using TV_TOTAL time variable.
833 (print_time): Get total run time from get_run_time.
834 * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
835 computing elapsed time explicitly.
836 * ggc-simple.c (ggc_collect): Likewise.
837 (gc_time): Remove declaration.
839 2000-04-27 Mark Mitchell <mark@codesourcery.com>
841 * calls.c (combine_pending_stack_adjustment_and_call): New function.
842 (expand_call): Use it.
844 2000-04-27 Jan Hubicka <jh@suse.cz>
846 * flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
849 Thu Apr 27 12:47:00 2000 Alexandre Oliva <aoliva@cygnus.com>
851 * config/mn10300/mn10300.md (movhi): Simplify. Prefer data
854 Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
856 * function.c (epilogue_done): Pass whole insn to record_insns.
858 Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
860 * cse.c (CSE_ADDRESS_COST): Remove.
861 (find_best_addr): Add new parameter "MODE", use address_cost instead
864 (fold_rtx): Update call of find_best_addr.
865 * rtl.h (address_cost): Declare.
866 * loop.c (general_induction_var): Add new parameter "MODE", use
867 address_cost instead of ADDRESS_COST
868 (init_loop): Use address_cost instead of ADDRESS_COST.
869 (check_insn_for_givs): Update call of general_induction_var.
870 (find_mem_givs): Likewise.
871 (consec_sets_giv): Likewise.
872 * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
873 * i386.c (ix86_address_cost): New.
874 * i386-protos.h (ix86_address_cost): Declare.
876 Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
878 * config/mn10300/mn10300.md (movqi): Simplify. Prefer data
881 Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
883 * expr.c (store_expr): Use clear_storage instead of direct memset
886 Thu Apr 27 10:36:51 2000 Alexandre Oliva <aoliva@cygnus.com>
888 * config/mn10300/mn10300.c (mn10300_address_cost): Test
889 ASHIFT, AND and LABEL_REF.
891 Thu Apr 27 15:08:46 MET DST 2000 Jan Hubicka <jh@suse.cz>
893 * invoke.texi (-foptimize-sibling-calls): Fix.
895 Thu Apr 27 14:54:22 MET DST 2000 Jan Hubicka <jh@suse.cz>
897 * loop.c (load_mems) Don't use hard registers for the hoisting.
899 * unroll.c (unroll_loop): Avoid overflow in the n_iterations
900 calculation; rename const_equiv array in the preconditioning code
901 from loop_unroll to loop_unroll_precondition
903 2000-04-27 Richard Henderson <rth@cygnus.com>
905 * flow.c (struct propagate_block_info): Remove new_dead, new_live;
907 (propagate_one_insn): Clear it. Don't update reg_live here.
908 (init_propagate_block_info): Update for pbi member changes.
909 (free_propagate_block_info): Likewise.
910 (mark_set_1): Know that zero_extract, sign_extract, and
911 strict_low_part don't kill their argument. Alter hard subregs.
912 Update new_set for non-CLOBBER sets. Update reg_live.
913 (find_auto_inc): Update reg_live, not new_dead.
914 (mark_used_reg): Update reg_live, not new_live. Examine new_set
915 to determine if the reg in question was set this insn. Only update
916 reg info with PROP_REG_INFO.
918 2000-04-26 Richard Henderson <rth@cygnus.com>
920 * flow.c (allocate_reg_life_data): Set max_regno here ...
921 (life_analysis): ... not here.
923 * flow.c (calculate_global_regs_live): Force stack pointer
926 2000-04-26 Richard Henderson <rth@cygnus.com>
928 * jump.c (redirect_exp_1): Rework from old redirect_exp. Never
929 commit change group changes.
930 (invert_exp_1): Similarly.
931 (redirect_exp, invert_exp): Use them.
932 (redirect_jump_1): New.
933 (invert_jump_1): New.
934 (jump_optimize_1): Remove code subsumed by condexec.c.
935 * rtl.h (invert_jump_1, redirect_jump_1): Declare.
937 2000-04-26 Richard Henderson <rth@cygnus.com>
939 * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
941 * genconfig.c (main): Set all HAVE_foo to 1.
943 * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
945 2000-04-26 Alex Samuel <samuel@codesourcery.com>
947 * invoke.texi: Document -fssa flag.
949 2000-04-26 Richard Henderson <rth@cygnus.com>
951 * flow.c (count_reg_sets_1): Remove.
952 (count_reg_sets, count_reg_references): Remove.
953 (recompute_reg_usage): Implement with update_life_info.
954 Reallocate life data.
956 2000-04-26 Richard Henderson <rth@cygnus.com>
958 * flow.c (update_life_info): Consider blocks null to mean the
960 (calculate_global_regs_live): Likewise.
961 (life_analysis): Do that instead of collecting all_blocks.
963 2000-04-26 Richard Henderson <rth@cygnus.com>
965 * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
966 a still-valid conditional jump.
968 2000-04-26 Richard Henderson <rth@cygnus.com>
970 * jump.c (invert_jump): Always invert REG_BR_PROB. Do it correctly.
972 * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
973 * flow.c (calculate_loop_depth): Remove.
974 * output.h (calculate_loop_depth): Don't declare.
975 * toplev.c (rest_of_compilation): Expand calculate_loop_depth
976 inline; run estimate_probability at the same time.
978 2000-04-26 Neil Booth <NeilB@earthling.net>
980 * cpplib.h: "~=" is not a single pp-token.
981 * cpplex.c: Correct commentary.
983 2000-04-26 Richard Henderson <rth@cygnus.com>
985 * flow.c (mark_set_1): New arguments code and flags; update all
986 callers. Track regno_first and regno_last; do HARD_REGNO_NREGS
987 test in one place. Tidy flags tests. Don't bias REG_N_REFS by
988 loop_depth when optimizing for size. Do new_dead update after
989 emitting REG_UNUSED notes. Merge mark_set_reg code.
990 (mark_set_reg): Remove.
991 (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
992 arrange to not emit REG_UNUSED notes.
994 2000-04-26 Richard Henderson <rth@cygnus.com>
996 * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
997 * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
999 2000-04-26 Richard Henderson <rth@cygnus.com>
1001 * flow.c (propagate_one_insn): Break out from propagate_block.
1002 (init_propagate_block_info): Likewise.
1003 (free_propagate_block_info): Likewise.
1004 (propagate_block): Use them. Export.
1005 * basic-block.h: Declare them all.
1007 2000-04-26 Richard Henderson <rth@cygnus.com>
1009 * basic-block.h (life_analysis): Declare here ...
1010 * output.h: ... not here.
1011 * flow.c (life_analysis): Remove nregs parameter; replace
1012 remove_dead_code with flags. Remove ssa dead code check.
1013 Only init alias analysis if we'll use it.
1014 * reg-stack.c (reg_to_stack): Update life_analysis arguments.
1015 * ssa.c (convert_to_ssa): Likewise.
1016 (convert_from_ssa): Likewise.
1017 * toplev.c (rest_of_compilation): Likewise.
1019 2000-04-26 Richard Henderson <rth@cygnus.com>
1021 * flow.c (flow_delete_block): Rename from delete_block. Export.
1022 * basic-block.h (flow_delete_block): Declare.
1024 2000-04-26 David S. Miller <davem@redhat.com>
1026 * optabs.c (emit_libcall_block): Verify insns with INSN_P before
1027 taking a PATTERN of it.
1029 2000-04-26 <NeilB@earthling.net>
1031 * cpplex.c (spell_other, spell_char): Remove.
1033 (token_spelling, trigraph_map): Use unsigned chars.
1034 (_cpp_lex_line): Tidy up the switch statement.
1035 * cpplib.h: Implement spell_char with spell_string.
1038 2000-04-26 <RodneyBrown@pmsc.com>
1040 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
1041 * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
1043 2000-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1045 * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
1046 reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
1047 dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
1048 dwarf2out_return_save, dwarf2out_return_reg,
1049 dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
1050 add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
1051 gen_compile_unit_die, dwarf2out_init): Constify a char*.
1053 * dwarf2out.h (dwarf2out_init): Likewise.
1055 * dwarfout.c (filename_entry, primary_filename, last_filename,
1056 type_tag, output_compile_unit_die, dwarfout_init): Likewise.
1058 * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
1059 dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
1060 dwarf2out_return_reg): Likewise.
1062 2000-04-26 Andreas Jaeger <aj@suse.de>
1064 * extend.texi (Function Attributes): Fix description of pure
1067 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
1069 * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
1070 before calling rest_of_compilation.
1072 2000-04-26 Andreas Jaeger <aj@suse.de>
1074 * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
1077 2000-04-25 Richard Henderson <rth@cygnus.com>
1079 * cse.c (cse_insn): Emit barrier after unconditional jump.
1081 * calls.c (expand_call): Disable tail call generation once
1082 rtx_equal_function_value_matters is false.
1084 * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
1087 2000-04-25 Jason Merrill <jason@casey.cygnus.com>
1089 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
1091 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
1093 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
1094 is the primary DIE for a member function.
1095 (gen_decl_die): Call set_decl_origin_self here.
1096 * dwarfout.c (output_decl): And here.
1097 * integrate.c (output_inline_function): Not here.
1098 Don't clear DECL_INLINE until after calling rest_of_compilation.
1099 (set_decl_origin_self): No longer static.
1100 * tree.h: Add prototype.
1101 * toplev.c (note_deferral_of_defined_inline_function): Only write
1102 out abstract instance for actual inlines.
1104 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
1106 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
1107 EXTENDED_REGS only if TARGET_AM33.
1108 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
1109 SP_REGS to register allocation and reloading unless absolutely
1111 (movsi3): Remove special-case of adding non-constants to SP.
1113 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1115 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
1116 INCLUDES to search and does not provide any of its own. Also it
1117 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
1118 parameters. Also it does not call AC_DEFINE.
1119 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
1120 AC_DEFINE and provides for automatic entries for autoheader.
1121 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
1123 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
1124 so we can pass -I flags and include gansidecl.h/system.h in this
1127 * acconfig.h: Delete all NEED_DECLARATION_* entries.
1129 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1131 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
1132 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
1133 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
1135 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
1136 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
1137 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
1138 for these macros. Clean up spacing and linewraps.
1140 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
1142 * calls.c (expand_call): Use get_callee_fndecl.
1144 * print-tree.c (print_node): Print the chain of an _EXPR.
1146 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
1147 Jim Wilson <wilson@cygnus.com>
1148 Andrew Haley <aph@cygnus.com>
1150 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
1151 and gp save/restore problems.
1152 * config/ia64/crtend.asm: Add IA-64 unwind support.
1153 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
1154 in fr_pad_size calculation.
1155 (save_restore_insns): Move PR save area. Correct uses of
1156 RTX_FRAME_RELATED_P.
1157 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
1158 (ia64_expand_epilogue): Add eh_epilogue support.
1159 (ia64_function_prologue): Emit .prologue directive.
1160 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
1161 (ia64_override_options): Set init_machine_status and
1162 mark_machine_status.
1163 (rtx_needs_barrier): Handle bsp reads and writes.
1164 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
1165 New static variables.
1166 (process_set, process_for_unwind_directive): New functions.
1167 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
1168 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
1169 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
1171 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
1172 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
1173 (struct machine_function): Define.
1174 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
1176 2000-04-25 Bruce Korb <bkorb@gnu.org>
1178 * fixinc/Makefile.in: make the removal of old programs more
1180 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
1181 install-bin and install-sh
1183 2000-04-25 Nick Clifton <nickc@cygnus.com>
1185 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
1186 defined, define to return zero.
1187 (function_cannot_inline_p): If a function has any target
1188 specific attributes, then use the macro
1189 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
1190 whether it can be inlined. If it cannot, issue a suitable
1193 * tm.texi: Add a new node 'Inlining' to document the new macro
1194 FUNCTION_ATTRIBUTE_INLINABLE_P.
1196 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
1198 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
1201 2000-04-25 Neil Booth <NeilB@earthling.net>
1203 Restore previous patch, plus the following fixes:
1205 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
1206 flags, not CPP_OPEN_PAREN.
1207 * cpplex.c (expand_token_space, init_token_list,
1208 cpp_free_token_list): Put the dummy token at list->tokens[-1].
1209 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
1211 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1213 * config/i386/freebsd.h (INT_ASM_OP): Define.
1215 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
1217 * loop.c (strength_reduce): Fix typo in the last checkin.
1219 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1221 * stor-layout.c (finalize_record_size): Simplify to use existing
1223 (compute_record_mode): No longer static.
1224 * tree.h (compute_record_mode): New declaration.
1226 2000-04-25 Neil Booth <NeilB@earthling.net>
1228 * Revert my patch below until cause of build failures
1231 2000-04-25 Richard Henderson <rth@cygnus.com>
1233 * combine.c (combine_instructions): Add missing argument
1236 * toplev.c (rest_of_compilation): Delay sibcall optimization
1237 until after emit_eh_context.
1239 2000-04-24 Nick Clifton <nickc@redhat.com>
1241 * combine.c (combine_instructions): Do not try to combine a
1242 sequence of insns when the second insn has been replaced by a
1245 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
1247 * gcc.c (load_specs): New static function.
1248 (read_specs): Use it.
1250 * gcc.c (lookup_compiler): Make multiple passes for case
1251 insensitive filesystems.
1253 2000-04-24 Neil Booth <NeilB@earthling.net>
1255 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
1256 * cpphash.h (_cpp_check_directive): new.
1257 * cpplex.c (handle_newline, cpp_free_token_list,
1258 init_trigraph_map, trigraph_ok, trigraph_replace,
1259 backslash_start, skip_block_comment, skip_line_comment,
1260 skip_whitespace, parse_name, parse_number, parse_string,
1261 copy_comment, _cpp_lex_line, spell_char, spell_string,
1262 spell_comment, spell_name, spell_other, _cpp_lex_file,
1263 _cpp_output_list): new.
1264 (expand_name_space): take length argument.
1265 (init_token_list): add comment list initialisation.
1266 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
1267 instead of HSPACE_BEFORE.
1269 * cpplib.c (_cpp_check_directive): new
1270 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
1271 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
1272 (HSPACE_BEFORE): delete.
1273 (TTYPE_TABLE): rearrange.
1274 (struct cpp_toklist): update.
1276 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1278 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
1279 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
1280 argument form of AC_DEFINE.
1282 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
1283 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
1284 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
1285 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
1286 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
1288 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
1290 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1292 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
1293 deduced.h): Use -isystem, not -I, for including system headers.
1295 2000-04-24 Nick Clifton <nickc@cygnus.com>
1297 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
1298 the source register is the frame pointer or arg pointer.
1299 (addsi3_small_int): Disallow if source register is the frame
1300 pointer or arg pointer.
1302 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1304 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
1305 call to AC_MSG_RESULT.
1307 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
1309 * invoke.texi: Correct grammatical errors, document
1310 -fno-gnu-keywords as identical to -fno-asm for C++.
1312 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1314 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
1315 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
1316 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
1317 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
1318 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
1320 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
1321 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
1322 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
1323 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
1326 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
1328 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
1329 (pop_alignment): Likewise.
1330 (handle_pragma_token): Likewise.
1332 2000-04-24 Robert Lipe <robertlipe@usa.net>
1334 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
1336 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
1338 * combine.c (try_combine): Update reg_nonzero_bits of
1339 newi2pat before newpat.
1341 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
1343 * loop.c (strength_reduce): Simplify test to INSN_P.
1344 (record_giv): Attempt to simplify the add value, use CONSTANT_P
1345 expressions instead of CONST_INT.
1346 (express_from_1): Likewise.
1348 2000-04-24 Mark Mitchell <mark@codesourcery.com>
1350 * regs.h (reg_n_max): Don't declare.
1351 * flow.c (reg_n_max): Don't define.
1352 * regclass.c (renumber): Don't initialize to zero.
1353 (regno_allocated): Likewise.
1354 (reg_n_max): Define.
1355 (allocate_reg_info): Don't initialize unnecessarily.
1357 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
1359 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
1360 and blockage_p in the newly allocated attribute.
1362 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
1364 * config/mn10300/mn10300.md (addsi): `inc4' on address
1365 registers does not modify cc, but `inc' on an extended
1368 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
1370 * reload.c (find_equiv_reg): Checks all valueno regs
1371 as a reload_reg_p regs.
1373 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
1375 * cpphash.c (collect_objlike_expansion): Add sanity check.
1376 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
1377 the buffer is the empty string, return. Mark __DATE__ and
1378 __TIME__ as XCONST nodes, not MCONST.
1379 (_cpp_macroexpand): Avoid pushing an empty buffer.
1380 (funlike_macroexpand): Don't pop token_buffer here.
1382 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
1384 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
1385 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
1386 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
1387 (REGNO_OK_FOR_BASE_P): Define in terms of them.
1388 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
1389 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
1390 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
1392 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
1394 * loop.c (simplify_giv_expr): Be more agressive on simplifying
1397 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
1399 * cpphash.h (struct definition): Move file, line, col members...
1400 (struct hashnode): ... here. Also add 'disabled' flag.
1401 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
1402 T_IDENTITY. Remove T_DISABLED.
1405 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
1406 (collect_expansion): Split into collect_objlike_expansion and
1407 collect_funlike_expansion.
1408 (_cpp_macroexpand): Split out scan_arguments, stringify, and
1409 funlike_macroexpand.
1410 (_cpp_compare_defs): Rename compare_defs, make static.
1411 (_cpp_make_hashnode): Initialize hp->disabled.
1412 (macro_cleanup): Adjust for new token types. Clear
1414 (_cpp_create_definition): Move code here to determine what
1415 sort of macro it is, and code to check for redefinitions, from
1416 do_define. Implement a few simple cases without creating a
1418 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
1419 Handle the simple cases.
1420 (push_macro_expansion): Set buf->has_escapes and hp->disabled
1423 * cppinit.c (builtin_array): Change MCONST to XCONST
1425 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
1426 fix check for disabled and function-like macros.
1427 * cpplib.c (do_define): Move most logic to
1428 _cpp_create_definition.
1429 (do_undef): Handle new special token types.
1431 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
1433 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
1434 of CONSTANT_P for mult_val; always use validate_change to update insn.
1436 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
1438 * cpphash.c (trad_stringify, add_pat): New functions.
1439 (collect_expansion): Restore support for -traditional syntax.
1440 Use trad_stringify and add_pat.
1441 (_cpp_macroexpand): Restore support for -traditional semantics.
1442 * cpplex.c (_cpp_scan_line): Don't change space_before if we
1443 get a COMMENT token.
1444 (_cpp_lex_token): Provide COMMENT tokens to caller if
1445 traditional and parsing_define_directive.
1446 (skip_comment): Warn about // comments if -Wtraditional.
1447 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
1449 (do_undef): Don't warn about undefining EMPTY nodes.
1451 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
1453 * loop.c (strength_reduce): Fix biv removal code.
1455 2000-04-22 Richard Henderson <rth@cygnus.com>
1457 * predict.c (estimate_probability): Examine both sides of
1458 a branch for no exits. Use 90% not 50% for predict taken.
1459 Reorg for one copy of note generation code.
1461 2000-04-22 Richard Henderson <rth@cygnus.com>
1463 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
1465 2000-04-22 Richard Henderson <rth@cygnus.com>
1467 * diagnostic.c (init_output_buffer): Don't initialize format_args.
1468 (output_clear): Likewise.
1469 (output_printf): Use va_copy.
1470 (vline_wrapper_message_with_location): Likewise.
1471 (v_message_with_decl): Likewise.
1472 (line_wrapper_printf): VA_START infor buffer.format_args directly.
1473 * system.h (va_copy): Provide default implementation.
1475 2000-04-22 Richard Henderson <rth@cygnus.com>
1477 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
1478 the collected condition is not a constant.
1480 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
1482 * diagnostic.h: New file.
1484 * Makefile.in (diagnostic.o): Depends on diagnostic.h
1486 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
1487 various function prototypes.
1488 (diagnostic.h): #include.
1489 (struct output_buffer): Move into diagnostic.h.
1490 (get_output_prefix): Rename to output_get_prefix. Export.
1491 (init_output_buffer): Export. Break out. Ajust intialization.
1492 (output_space_left, output_append): Export.
1493 (output_newline): Rename to output_add_newline. Export.
1494 (output_clear): Nullify additional output_buffer fields.
1495 (output_puts): Rename to output_add_string. Export.
1496 (dump_output): Rename to output_flush_on. Export.
1497 (build_location_prefix): Constify return-type.
1498 (emit_output_prefix): Rename to output_emit_prefix. Export.
1499 (set_real_maximum_length): New function.
1500 (output_set_maximum_length): Ditto
1501 (output_clear): Ditto.
1502 (output_add_character): Ditto.
1503 (output_add_integer): Ditto.
1504 (output_add_space): Ditto.
1505 (output_format): Ditto.
1506 (output_printf): Adjust buffer initialization.
1507 (vline_wrapper_message_with_location): Ditto.
1508 (v_message_with_decl): Ditto. Adjust call to output_puts
1509 and get_output_prefix.
1510 (default_print_error_function): Adjust buffer intialization.
1512 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1514 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
1517 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
1519 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
1522 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
1524 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
1525 accurate data about SP moves.
1527 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
1529 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
1530 aliases to AM33 registers.
1532 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
1534 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
1535 to all EXTENDED bitmaps.
1537 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
1539 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
1540 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
1541 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
1543 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
1545 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
1546 the operand is not constant.
1548 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
1550 * reload.c (find_equiv_reg): Checks all valueno and regno regs
1551 as a call-clobbered regs.
1553 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1555 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
1557 * rtl.def: Update comment.
1558 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
1559 * integrate.c (expand_inline_function): Likewise.
1560 * profile.c (branch_prob): Likewise.
1561 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
1562 * print-rtl.c (print_rtx): Likewise.
1563 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
1564 (reemit_notes): Likewise; also use enum insn_note.
1566 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
1567 (place_field): Properly compute know and actual alignment.
1569 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
1572 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
1575 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
1577 * cpphash.c (struct arg, struct arglist): Const-ify strings.
1578 (warn_trad_stringify, duplicate_arg_p): New helper functions.
1579 (collect_expansion): Rewrite to scan over a token list.
1580 Remove -traditional support.
1581 (collect_formal_parameters): Rename to collect_params; rewrite
1582 to scan over a token list.
1583 (_cpp_create_definition): Adjust to scan a token list.
1584 (_cpp_macroexpand): Remove -traditional support.
1585 (_cpp_compare_defs): Whitespace is now canonicalized.
1586 (comp_def_part): Delete function.
1588 * cpphash.h: Update prototypes.
1589 * cpplex.c (init_token_list): Don't set lineno if there is no
1591 (pedantic_whitespace): New function.
1592 (_cpp_scan_line): Mark tokens that had hspace before. Don't
1593 consume a newline. Use pedantic_whitespace.
1594 (_cpp_lex_token): Remove support for -traditional macros.
1595 (_cpp_get_define_token): Delete.
1596 (_cpp_get_directive_token): Do the real work here. Use
1597 pedantic_whitespace.
1598 (_cpp_init_input_buffer): Initialize pfile->directbuf.
1600 * cpplib.c (get_macro_name): Delete.
1601 (do_define): Read the entire line into pfile->directbuf, then
1602 feed the token list to _cpp_create_definition.
1603 * cpplib.h (HSPACE_BEFORE): new define.
1604 (struct cpp_reader): Add a toklist member, "directbuf".
1606 * predict.c (estimate_probability): New heuristic: if a jump
1607 branches around a block with no successors, predict it taken.
1608 Disentangle control flow.
1610 2000-04-20 Richard Henderson <rth@cygnus.com>
1612 * loop.c (emit_iv_add_mult): Revert last change.
1614 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
1616 * cpplib.h (enum cpp_ttype): Add token types for all
1617 punctuators. Distinguish pp-numbers from valid C numbers.
1618 Give some tokens better names. Initialize from macro.
1619 (struct cpp_name, cpp_token, cpp_toklist): New data
1622 * cpplex.c (bump_column, expand_name_space,
1623 expand_token_space, init_token_list, cpp_output_list,
1624 _cpp_scan_line): New functions.
1625 (output_line_command): Add third argument, new line number.
1626 * cpphash.h: Update prototypes.
1627 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
1630 2000-04-20 Richard Henderson <rth@cygnus.com>
1632 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
1634 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
1636 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
1639 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
1641 * loop.c (emit_iv_add_mult): Simplify it's input and emit
1642 REG_EQUAL note explaining the calculated value.
1644 * calls.c (expand_call): Avoid unnecesary precalculation
1645 and outgoing parameters space guarding for sibling calls.
1646 (store_one_arg): Likewise.
1648 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1650 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
1651 (rest_of_compilation): Write sibling dump file and account
1652 for time as jump time.
1653 * invoke.texi: Update documentation on dump flags.
1655 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
1657 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
1659 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
1661 * cpphash.c (special_symbol): Represent an empty macro with
1662 "\r \r " not just "\r ".
1663 (_cpp_macroexpand): Correct condition for the foo ( ) special
1665 (unsafe_chars): Handle EOF as second argument.
1666 (push_macro_expansion): Simplify test for removing escape at
1667 end. Do not trim both escapes if there is no text in between.
1669 2000-04-19 Jim Blandy <jimb@redhat.com>
1671 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
1672 of PTR_SIZE, when appropriate.
1674 2000-04-19 Mark Mitchell <mark@codesourcery.com>
1676 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
1677 (USE_ENUM_BITFIELDS): Fix typo.
1679 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1681 * stor-layout.c (place_field): Set rli->offset_align properly.
1683 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1685 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
1686 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
1687 PARM_BOUNDARY): Remove unnecessary casts.
1689 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
1691 * calls.c (precompute_arguments): Remove must_preallocate and
1693 (expand_call): Update call of precompute_arguments.
1695 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
1696 check_insn_for_givs): Break out from ...
1697 (strength_reduce) ... here; use for_every_insn_in_loop to call
1698 check_insn_for_givs.
1699 * loop.h (for_every_insn_in_loop): Declare.
1700 (loop_insn_callback): New type.
1702 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
1704 * cpplib.c (do_pragma_poison): Strings in the token buffer are
1707 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
1709 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
1712 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
1714 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
1716 * configure.in: Delete --disable-cpplib option and all
1717 references to cpp_main.
1718 * configure: Regenerate.
1719 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
1720 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
1721 cccp.o, cccp, or cppmain. Link cppmain.o straight to
1722 cpp$(exeext). Add --no-headers to makeinfo command line when
1723 generating INSTALL. Install and uninstall cpp.1 manpage, not
1725 * install.texi: Delete all references to cexp.y/cexp.c.
1726 Delete ancient instructions for compiling GCC on 3b1.
1727 * INSTALL: Regenerate.
1729 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
1730 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
1731 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
1733 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
1734 which is no longer tested anywhere.
1736 * cppinit.c (handle_option): Don't run error message through
1739 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1741 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
1742 * cpperror.c (hashtab.h): Now include.
1743 * cppexp.c (hashtab.h): Likewise.
1744 * cpplex.c (hashtab.h): Likewise.
1745 * cppfiles.c (hashtab.h): Likewise.
1746 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
1747 to htab_find_slot_with_hash.
1748 * cpphash.c (hashtab.h): Now include.
1749 (_cpp_lookup_slot): INSERT is now enum insert_option.
1750 * cpphash.h (_cpp_lookup_slot): Likewise.
1751 * cppinit.c (hashtab.h): Include earlier.
1752 (initialize_builtins): Pass enum to htab_find_slot.
1753 * cpplib.c (hashtab.h): Now include.
1754 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
1755 (do_pragma_poison, do_assert): Likewise.
1756 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
1757 htab_find_slot_with_hash.
1758 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
1759 * tree.c (type_hash_add): Likewise.
1760 (build1): Minor cleanup.
1762 * ggc-common.c: Add missing blanks.
1763 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
1764 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
1766 * stmt.c (mark_case_node): New function.
1767 (mark_case_nesting): Call it.
1769 * expmed.c (emit_store_flag): If comparing two-word integer
1770 with zero, can optimize NE, EQ, GE, and LT.
1772 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
1773 * conflict.c: Minor cleanups.
1774 * optabs.c: Add blank line
1775 * simplify-rtx.c: Minor cleanups.
1777 2000-04-18 Stan Cox <scox@cygnus.com>
1779 * gengenrtl.c (genlegend): Fix misspelling.
1781 2000-04-18 Robert Lipe <robertlipe@usa.net>
1783 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
1784 bitfields of the host compiler are not signed quantities.
1785 * config.in: Regenerate.
1786 * configure: Regenerate.
1787 * system.h (USE_ENUM_BITFIELDS): Added.
1788 (ENUM_BITFIELDS): Added.
1789 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
1790 (SHORT_ENUM_BUG): Deleted.
1791 * tree.h (tree_common): Members `code', `mode', `built_in_class',
1793 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
1794 (CODE_FIELD_BUG): Likewise.
1795 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
1797 * config/m68k/x-ccur (X_CFLAGS): Likewise.
1799 2000-04-18 Mark Mitchell <mark@codesourcery.com>
1801 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
1804 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
1806 * cppexp.c (lex): Don't assume tokens are NUL terminated.
1807 * cpplib.c (do_include, do_import, do_include_next,
1808 read_line_number, detect_if_not_defined): Likewise.
1809 * cpphash.c (collect_expansion): Likewise.
1810 (special_symbol, _cpp_macroexpand): Check return from
1812 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
1813 macros. Delete all uses.
1815 * gcc.dg/cpp-mi.c: Add two more test cases.
1816 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
1818 2000-04-17 Richard Henderson <rth@cygnus.com>
1820 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
1821 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
1823 2000-04-17 Mark Mitchell <mark@codesourcery.com>
1825 * function.c (expand_function_start): Use hard_function_value to
1826 compute the RTL to use for DECL_RESULT.
1828 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
1830 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
1831 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
1832 x86_memory_mismatch_stall): New global variables.
1833 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
1834 alloved; fix load penalties for Athlon.
1835 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
1836 x86_memory_mismatch_stall): Declare.
1837 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
1838 TARGET_MEMORY_MISMATCH_STALL): New.
1839 * i386.md (athlon scheduling parameters): Fix latencies according to
1840 Athlon Optimization Manual.
1841 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
1843 (fsqrt instruction patterns): Set athlon_decode to direct.
1844 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
1845 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
1846 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
1847 and TARGET_PARTIAL_REGISTER_STALL machines.
1848 (pushdf_nointeger): New pattern.
1849 (pushdf_integer): Rename from pushdf.
1850 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
1851 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
1853 2000-04-17 Richard Henderson <rth@cygnus.com>
1855 * loop.c (canonicalize_condition): Add WANT_REG argument.
1856 Stop the search if we match it.
1857 * expr.h (canonicalize_condition): Update decl.
1858 * predict.c (expected_value_to_br_prob): Use it. Track last
1859 expected value note.
1860 (find_expected_value): Remove.
1862 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
1864 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
1866 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
1867 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
1869 * configure.in: Call AC_FUNC_MMAP_FILE.
1870 * configure: Regenerate.
1871 * config.in: Regenerate.
1873 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
1874 * fixinc/fixincl.c: Likewise.
1876 2000-04-17 Richard Henderson <rth@cygnus.com>
1878 * builtins.c (expand_builtin_expect): New.
1879 (expand_builtin): Call it.
1880 * builtins.def (BUILT_IN_EXPECT): New.
1881 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
1882 * extend.texi: Document it.
1884 * predict.c (expected_value_to_br_prob): New.
1885 (find_expected_value): New.
1886 * basic-block.h (expected_value_to_br_prob): Declare.
1887 * toplev.c (rest_of_compilation): Invoke it.
1889 * rtl.h (NOTE_EXPECTED_VALUE): New.
1890 (NOTE_INSN_EXPECTED_VALUE): New.
1891 * rtl.c (note_insn_name): Update.
1892 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
1893 cases; handle NOTE_INSN_EXPECTED_VALUE.
1895 2000-04-17 Jakub Jelinek <jakub@redhat.com>
1897 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
1898 leaf sibcall delay slot if flag_pic.
1899 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
1901 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1903 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
1905 * fixproto: If fix-header fails, exit with an error.
1907 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
1909 * cse.c (struct check_depdendence_data): New.
1910 (check_dependence): New function.
1911 (invalidate): Use check_depdenence.
1913 2000-04-16 Mark Mitchell <mark@codesourcery.com>
1915 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
1916 UNITS_PER_WORD is unsigned.
1918 * tree.h (struct tree_common): Remove misleading comment.
1920 2000-04-16 Dave Pitts <dpitts@cozx.com>
1922 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
1923 message in quotes. Otherwise, IBM's make program treats the '#' as the
1924 start of a comment and ignores the remainder of the line.
1926 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
1928 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
1929 * cexp.y (initialize_random_junk): Likewise.
1930 * cppfiles.c (find_include_file): Cast alloca return value.
1931 * cppinit.c (initialize_standard_includes): Likewise.
1932 * cpplib.c (cpp_define, cpp_undef): Likewise.
1933 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
1934 * final.c (output_asm_insn): Allow for holes in EBCDIC.
1935 * fold-const.c (CHARMASK): New.
1936 (real_hex_to_f): Use it.
1937 * real.c (CHARMASK): New.
1938 (etoasc, asctoeg): Use it.
1939 (asctoeg): EBCDIC lower case characters preceed upper case.
1941 * i370.c (mvs_add_label): Change spacing for coding conventions.
1942 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
1943 outputing case vectors.
1944 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
1945 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
1946 since vector in in the data CSECT.
1947 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
1948 * i370.md (Many patterns): Put the length in the XL directives.
1949 (movdi): Put back STM and MVC in definition.
1950 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
1951 pattern using the TCA.
1952 * oe.h (CPP_SPEC): Added to allow trigraphs.
1953 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
1954 not support the "long long" type.
1956 2000-04-16 Mark Mitchell <mark@codesourcery.com>
1958 * config/mips/mips-protos.h (mips_legitimate_address_p): New
1960 (mips_reg_mode_ok_for_base_p): Likewise.
1961 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
1962 (REG_OK_FOR_INDEX_P): Define unconditionally.
1963 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
1964 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
1965 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
1966 that GET_MODE_SIZE is unsigned.
1967 (mips_reg_mode_ok_for_base_p): Define.
1968 (mips_legitimate_address_p): Likewise. Adjust now
1969 that GET_MODE_SIZE is unsigned.
1970 (block_move_loop): Make the number of bytes unsigned.
1971 (expand_block_move): Likewise.
1972 (function_arg): Make the loop counter unsigned to match the
1975 2000-04-16 Richard Henderson <rth@cygnus.com>
1977 * rtl.h (enum insn_note): New enumeration. Subsume
1978 NOTE_INSN_DELETED and friends.
1979 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
1980 * rtl.c (note_insn_name): Tweak string order.
1982 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
1984 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
1987 * cpplex.c (output_line_command): Remove debugging prints.
1988 (cpp_output_tokens): Don't write out a zero-length buffer or
1989 try to see if it has a newline in it.
1990 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
1991 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
1992 the end of the loop. Use memmove. Don't read past the end of
1993 the buffer. Remove trailing newlines from error messages.
1995 2004-04-16 Neil Booth <NeilB@earthling.net>
1997 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
1998 * cpplib.c: Add new syntax flags to directive table, and
2001 2000-04-15 Ulrich Drepper <drepper@redhat.com>
2003 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
2006 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2008 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
2009 * haifa-sched.c: Update -fsched-verbose comments to use "=".
2011 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2013 * Makefile.in (ggc-page.o): Now includes toplev.h.
2014 * ggc-page.c (toplev.h): Now included.
2015 (gc_time): Remove declaration.
2016 (ggc_collect): TIME now long.
2017 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
2019 * toplev.h (gc_time, parse_time, gc_time): New declarations.
2021 * toplev.c: Make *_time variable long to reduce chance of overflow.
2022 (TIMEVAR): Likewise for `otime'.
2023 (print_time): Arg is now long; compute percentage in FP and round.
2024 * toplev.h (print_time): Arg is long.
2026 * tree.c: Minor whitespace changes.
2028 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
2029 * configure: Rebuilt.
2030 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
2031 (__fixunsxfDI): Renamed from __fixunsxfdi.
2032 (__fixunsdfDI): Renamed from __fixunsdfdi.
2033 (__fixunssfDI): Renamed from __fixunssfdi.
2034 (__floatdisf): Use proper type in REP_BIT macro.
2035 (__fixunsxfSI): Renamed from __fixunsxfsi.
2036 (__fixunsdfSI): Renamed from __fixunsdfsi.
2037 (__fixunssfSI): Renamed from __fixunssfsi.
2038 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
2039 Change location of macros and upper-case some names as above.
2040 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
2041 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
2043 * varasm.c (assemble_variable): Add cast to remove warning.
2044 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
2046 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
2047 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
2048 region number to -1.
2050 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
2052 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
2053 call unshare_all_rtl.
2055 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
2057 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
2059 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
2060 Use .s1 not .s0 for all FP instructions.
2062 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
2064 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
2066 (safe_fwrite, output_line_command): New static functions.
2067 (cpp_expand_to_buffer): Now private to cpplib.
2068 (cpp_scan_buffer): Take a printer.
2070 * cpphash.h: Update prototypes.
2071 * cpplib.h: Update prototypes.
2073 (cpp_buffer): Remove last_nominal_fname.
2074 (cpp_reader): Remove lineno.
2076 * cppmain.c: Use a cpp_printer.
2077 * fix-header.c: No need to inhibit line commands. Call
2078 cpp_start_read with no printer.
2080 * cpperror.c (cpp_notice_from_errno): Provide default name.
2081 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
2082 (find_include_file, cpp_read_file): Use make_IHASH.
2083 (file_cleanup): Set control_macro and clear
2084 input_stack_listing_current here.
2085 (_cpp_execute_include): Don't output entering-file marker.
2086 * cpphash.c (special_symbol): Look for the line number in the
2087 buffer, not the reader.
2088 (_cpp_macroexpand): No need to disable line commands.
2089 (_cpp_dump_definition): No need to generate line commands.
2090 (dump_hash_helper): Remove excess newline from output.
2091 * cppinit.c (dump_special_to_buffer): No need to generate line
2093 (cpp_printer_init): New.
2094 (cpp_start_read): Take a printer, and start it up if it's not
2095 NULL. No need to generate line commands.
2096 (cpp_finish): Expect no buffers stacked at all. Take a
2097 printer argument, and flush the output buffer if it's not
2099 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
2100 Don't put two hashes at the beginning of an assertion.
2101 (cpp_get_token): Don't increment pfile->lineno or emit line
2102 commands here. Return EOF if there's no buffer when we get
2104 * cpplib.c (do_define, skip_if_group):
2105 No need to disable line commands.
2106 (_cpp_output_line_command): Delete function.
2107 (do_line): Don't emit line commands here, but set things up so
2108 they will be emitted if necessary. Use _cpp_fake_ihash to
2109 make unique nominal_fnames if necessary.
2110 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
2111 with 0 for column, not -1.
2112 (_cpp_handle_eof): Don't set the control macro here. Don't
2113 clear input_stack_listing_current here. Don't emit line
2116 2000-04-14 Geoff Keating <geoffk@cygnus.com>
2118 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
2119 always, use the default SVR4 start address.
2121 * config/rs6000/linux.h (LINK_SPEC): Don't define.
2122 (LINK_SHLIB_SPEC): Define.
2123 (LINK_START_DEFAULT_SPEC): Define.
2124 (LINK_OS_DEFAULT_SPEC): Define.
2126 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
2128 * config/rs6000/eabi.asm (__eabi): Call __init rather than
2129 __do_global_ctors to handle constructors.
2130 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
2131 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
2132 (STARTFILE_MVME_SPEC): Likewise.
2133 (STARTFILE_SIM_SPEC): Likewise.
2134 (ENDFILE_ADS_SPEC): Use crtend.
2135 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
2136 (ENDFILE_MVME_SPEC): Likewise.
2137 (ENDFILE_SIM_SPEC): Likewise.
2138 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
2139 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
2140 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
2141 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
2142 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
2143 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
2144 (CRTSTUFF_T_CFLAGS_S): Define.
2145 * config/rs6000/eabi-ctors.c: Delete.
2147 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
2150 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
2154 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
2156 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
2157 plus mask size is smaller or equal to the mode size.
2159 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2161 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
2164 * expr.c (reload.h): Now included.
2165 (emit_block_move): Set volatile_ok when checking for movstr.
2166 (emit_move_1): Check for replacements in addresses in multi-word case.
2167 * Makefile.in (expr.o): Now includes reload.h.
2169 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
2170 Never have a LIBCALL end a basic block.
2171 (find_basic_blocks_1): Likewise.
2172 Reorganize CALL_INSN cases.
2174 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
2176 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
2178 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
2179 completers from mov.ret instruction.
2181 2000-04-14 Richard Henderson <rth@cygnus.com>
2183 * fold-const.c (extract_muldiv): Don't distribute and widen
2184 multiply across plus for non-sizetype unsigned types.
2186 2000-04-14 Richard Henderson <rth@cygnus.com>
2188 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
2189 If the original source is dead in the incr insn, it's dead now.
2191 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2193 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
2194 see if DECL_BIT_FIELD needs to still be set.
2196 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
2198 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
2199 print_int_cst_octal with something that's not an INTEGER_CST.
2201 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
2202 and not a SUBREG to a FLOAT rtl.
2204 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
2206 * emit-rtl.c (try_split): Avoid infinite loop if the split
2207 results in a sequence that contains the original insn.
2209 2000-04-13 Andreas Jaeger <aj@suse.de>
2211 * config/mips/mips.c (expand_block_move): Pass alignment
2212 argument to move_by_pieces in bits, not bytes.
2214 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
2215 __pic__ for little endian.
2217 2000-04-13 Andreas Jaeger <aj@suse.de>
2219 * config/i386/i386-protos.h: Add prototype for
2220 uno_comparison_operator.
2222 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
2224 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
2225 * calls.c (ECF_PURE): New flag.
2226 (emit_call_1): Handle ECF_PURE calls.
2227 (initialize_argument_information): Unset ECF_PURE flag too.
2228 (precompute_arguments): Precompute for ECF_PURE too.
2229 (expand_call): Handle ECF_PURE calls too.
2230 (emit_library_call_value_1): Rename no_queue argument to fn_type,
2231 accept value of 2 as pure function.
2232 (emit_library_call_value, emit_library_call): Rename no_queue argument
2234 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
2236 * tree.h (DECL_IS_PURE): New macro.
2237 (struct tree_decl): Add pure_flag.
2238 * c-common.c (enum attrs): Add attribute "pure".
2239 (init_attributes): Initialize attribute "pure"
2240 (decl_attributes): Handle attribute "pure".
2241 * extend.texi (Attribute "pure"): Document.
2242 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
2244 (flags_from_decl_or_type): Support attribute "pure".
2246 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
2248 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
2249 the token except for numbers and identifiers.
2251 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
2253 * i386.c (ix86_expand_binary_operator,
2254 ix86_expand_unary_operator): Check no_new_pseudos
2255 instead of reload_in_progress and reload_completed.
2256 (ix86_split_ashldi, ix86_split_ashrdi,
2257 ix86_split_lshrdi): Check no_new_pseudos instead
2258 of reload_completed.
2260 2000-04-12 Jeffrey A Law (law@cygnus.com)
2262 * function.c (purge_addressof): Unshare any shared rtl created by
2263 purge_addressof and its children.
2265 2000-04-12 Mark Mitchell <mark@codesourcery.com>
2267 * function.c (aggregate_value_p): VOID_TYPE nodes are never
2270 2000-04-05 Andreas Jaeger <aj@suse.de>
2272 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
2273 not compiling PIC code, add flags for mabi=64.
2274 (SUBTARGET_CPP_SIZE_SPEC): New.
2275 (SUBTARGET_CPP_SPEC): New.
2276 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
2277 for MIPS/Linux and lots of code needs these defines.
2279 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
2281 * reorg.c (fill_slots_from_thread): Check side_effects_p when
2282 trying the "opposite arithmetic" approach.
2284 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2286 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
2287 (struct sh_args): Add new field force_mem.
2288 (INIT_CUMULATIVE_ARGS): Initialize it.
2289 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
2291 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
2293 * calls.c (expand_call): Do not reverse args in "equal from" field.
2294 (emit_library_call_value_1): Emit_libcall_block for const and pure
2297 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2299 * reload1.c (reload_combine): Don't enable optimization for fixed
2300 registers when encountering a BARRIER.
2302 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
2304 * builtins.c (expand_builtin_memcmp): Do expansion even with
2305 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
2307 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
2308 stack is propertly aligned; add sanity checking for aligned
2310 (expand_library_call_value_1): Add sanity checking for aligned
2313 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
2315 * calls.c (emit_library_call_value_1): Change 3rd arg to
2316 locate_and_pad_parm to disregard the setting of partial.
2318 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2320 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
2322 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
2323 CALL_INSN from the normal case.
2325 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
2327 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
2328 New global variables.
2329 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
2331 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
2333 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
2334 TARGET_ADD_ESP_8): New macros.
2335 * i386.md: Add peep2s to convert esp adjustments to push and pop
2337 (pushsi_prologue, popsi_epilogue): New patterns.
2339 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2341 * real.c (toe64): Remove stale #endif from the last change.
2343 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
2345 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
2346 * real.c (toe64): Revert previous change.
2348 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2350 * objc/objc-act.c: Include ggc.h.
2351 (objc_tree_index, objc_global_trees): Convert most of the
2352 static tree variables into a static array with previous names
2354 (objc_ellipsis_node): New variable.
2355 (lang_init): Call objc_act_parse_init and c_parse_init.
2356 Create objc_ellipsis_node.
2357 (build_selector_translation_table): Use objc_ellipsis_node instead
2359 (hack_method_prototype): Likewise.
2360 (get_arg_type_list): Likewise.
2361 (start_method_def): Likewise.
2362 (continue_method_def): Likewise.
2363 (gen_method_decl): Likewise.
2364 (ggc_mark_imp_list): New function.
2365 (ggc_mark_hash_table): New function.
2366 (objc_act_parse_init): New function.
2367 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
2368 * c-parse.in (c_parse_init): For objc add roots of objc specific
2369 local tree variables.
2370 * objc/objc-parse.y: Rebuilt.
2371 * objc/objc-parse.c: Rebuilt.
2372 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
2374 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
2376 * cse.c (delete_trivially_dead_insns): Also delete insns
2377 that copy a register to itself where the destination is
2380 2000-04-11 Richard Henderson <rth@cygnus.com>
2382 * flow.c (struct propagate_block_info): Add new_dead, new_live.
2383 (propagate_block): Initialize them. Use them in parallel instead
2384 of one tmp variable, ie revert much of the 0408 and 0407 functional
2385 changes, but keep the structural changes.
2386 (mark_set_regs): Take new_dead from propagate_block_info instead.
2387 (mark_set_1, mark_set_reg): Likewise.
2388 (mark_used_regs): Likewise with new_live.
2389 (mark_used_reg): Likewise. Revert 0408 change.
2391 2000-04-11 Nick Clifton <nickc@cygnus.com>
2393 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
2395 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
2397 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2399 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
2400 const section to output a CONSTRUCTOR based on the same conditions
2403 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
2405 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
2406 * pa/pa-protos.h (output_call): Add additional argument indicating
2407 if the call is a sibling/tail call.
2408 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
2409 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
2410 (function_arg, function_arg_partial_nregs): Likewise
2411 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
2412 (emit_move_sequence): Zero extend certain constants as needed
2414 (compute_zdepdi_operands, output_64bit_and): New functions.
2415 (output_64bit_ior, function_arg): Likewise.
2416 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
2417 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
2418 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
2419 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
2420 (output_bvb): Likewise.
2421 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
2422 (output_call): New argument 'sibcall'. Generate sibcall sequences
2424 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
2425 (ouput_arg_descriptor): Do not emit argument descriptors for
2427 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
2429 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
2430 (FUNCTION_OK_FOR_SIBALL): Define.
2431 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
2432 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
2433 (CPP_SPEC): Use new spec infrastructure.
2434 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
2435 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
2436 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
2437 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
2438 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
2439 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
2440 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
2441 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
2442 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
2443 (FUNCTION_ARG); Call out to C code.
2444 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
2445 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
2446 (MIN_UNITS_PER_WORD): Likewise.
2447 * pa/pa.md (cmpdi): New expander.
2448 (scc patterns, movstrsi): Not available for TARGET_64BIT.
2449 (64bit conditional arithmetic): New patterns.
2450 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
2451 (movsicc): Not available if modes on all the operands to not match.
2452 (movdicc): New expander and associated patterns.
2453 (64bit branches): New patterns.
2454 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
2455 (pre_ldd, post_std): New patterns.
2456 (64bit addil, load low part): New patterns.
2457 (special movsf constant): Not available for TARGET_64BIT.
2458 (movsf, movdf expanders): Force constants into memory.
2459 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
2460 (64bit movdf/movdi patterns): New patterns.
2461 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
2463 (extendqidi2, extendhidi2, extendsidi2): Similarly.
2464 (adddi3 expander): Allow "arith_operand" for second input.
2465 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
2466 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
2467 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
2468 (muldi3): New expander for TARGET_64BIT.
2469 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
2471 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
2472 patterns for TARGET_64BIT.
2473 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
2474 patterns for TARGET_64BIT.
2475 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
2476 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
2477 (sibcall_epilogue): New expander.
2478 (casesi): Tweak for TARGET_64BIT.
2479 (call expanders): Set & use the outgoing argument pointer. Use the
2480 64bit call patterns as needed. Add additional arg to output_call.
2481 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
2482 (sibcall, sibcall_internal_symref): New expanders.
2483 (sibcall_value, sibcall_value_internal_symref
2484 (interspace_jump): Turn into an expander + matching patterns.
2485 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
2486 * pa/pa64-regs.h: Eliminate trigraph sequences.
2487 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
2489 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
2491 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
2492 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
2493 cpp_token with cpp_ttype everywhere.
2494 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
2495 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
2496 CPP_BUF_COL. Line and column numbers are unsigned int, not
2498 * cpplex.c (cpp_buf_line_and_col): Delete.
2499 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
2500 'long lineno' to 'unsigned int lineno'.
2501 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
2503 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2505 * extend.texi: ISO C99 is not a draft anymore.
2506 * invoke.texi: ISO C++ is not a draft anymore.
2507 * cpp.texi: __cplusplus is required by the ISO standard.
2509 * extend.texi (-fthis-is-variable): Undocument.
2510 * flags.h (warn_template_debugging): Remove declaration.
2511 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
2512 -Wenum-clash, -Wtemplate-debugging): Undocument.
2514 2000-04-10 Nick Clifton <nickc@cygnus.com>
2516 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
2518 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
2520 (ARM_SIGN_EXTEND): Use HOST_UINT.
2521 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
2522 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
2523 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
2524 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
2526 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
2527 (arm_gen_constant): Use HOST_UINT.
2528 (arm_canonicalize_constant): Use HOST_UINT.
2529 (arm_reload_in_hi): Use HOST_UINT.
2530 (arm_reload_out_hi): Use HOST_UINT.
2531 (output_multi_immediate): Use HOST_UINT.
2532 (int_log2): Use HOST_UINT.
2533 (arm_poke_function_name): Use HOST_UINT.
2534 (arm_output_epilogue): Use arm_volatile_func().
2535 (output_thumb_prologue): Use arm_strip_name_encoding().
2537 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2539 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
2540 of sequence point problems.
2542 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
2544 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
2546 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
2548 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2550 * sbitmap.h: Whitespace changes and use upper-case macro args.
2551 (struct simple_bitmap_def): All sizes now unsigned.
2552 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
2553 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
2554 (sbitmap_vector_alloc): Parms and local vars now unsigned.
2555 (sbitmap_zero): Cast bzero arg to PTR.
2556 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
2557 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
2558 loop to make structure clearer.
2559 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
2560 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
2561 (sbitmap_a_and_b_or_c): Likewise.
2562 (sbitmap_intersection_of_succs): Minor cleanups.
2563 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
2564 (sbitmap_union_of_preds): Likewise.
2565 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
2566 (debug_sbitmap): New function.
2568 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
2569 * c-typeck.c (convert_for_assignment): Likewise.
2571 * expmed.c (init_expmed): Don't free objects we make.
2572 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
2574 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
2575 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
2577 * gcse.c (expr_hash_table_size): Now unsigned.
2578 (compute_ae_gen): Local variable `i' now unsigned.
2579 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
2580 (compute_transout, hoist_code): Likewise.
2581 (compute_local_properties): Likewise, also hash_table_size.
2582 (alloc_expr_hash_table): N_INSNS now unsigned.
2583 (delete_null_pointer_checks): Mark arg F as unused.
2585 * regrename.c: Minor cleanups, including chang some variables
2588 2000-04-10 Neil Booth <NeilB@earthling.net>
2590 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
2592 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
2594 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2596 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
2597 __classof__, and __headof__ from the list of gnu keywords.
2598 (-ansi): Remove -foperator-names from list of implied options.
2599 Do not call it ANSI C++.
2600 (-foperator-names): Document as -fno-operator-names.
2602 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
2604 * cpphash.c (timestamp): Delete.
2605 (del_HASHNODE): If type is T_MCONST, free value.cpval.
2606 (special_symbol): Remove unnecessary braces. Remove
2607 T_VERSION. Treat T_STDC like T_CONST unless
2608 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
2609 when one is encountered, then convert them into T_MCONST
2611 * cppinit.c (builtin_array): version_string is T_MCONST.
2612 __STDC__ has a "1" in its cpval. Don't have a terminator
2613 entry. Clean up which entries are dumped.
2614 (initialize_builtins): Only __STDC__ gets the special
2615 -traditional treatment. Count the length of builtin_array.
2616 Render version_string here.
2617 * cpphash.h: Remove T_VERSION. Add T_MCONST.
2618 * cpplib.h (struct cpp_reader): Remove timebuf.
2620 2000-04-09 Richard Henderson <rth@cygnus.com>
2622 * genrecog.c (pred): Update comparison_operator for the unordered
2625 * config/i386/i386.c (no_comparison_operator): Disallow unordered
2627 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
2628 (uno_comparison_operator): New.
2629 (put_condition_code): Handle UNORDERED/ORDERED.
2630 (unsigned_comparison): Likewise.
2631 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
2632 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
2633 (ix86_expand_fp_compare): Use them. Take scratch as argument,
2634 update all callers. Handle all 8 unordered operators.
2635 (ix86_expand_setcc): Lose the unordered argument, update all callers.
2636 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
2637 * config/i386/i386.h (PREDICATE_CODES): Update.
2638 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
2639 (ix86_expand_branch, ix86_expand_setcc): Update.
2640 * config/i386/i386.md (sunordered, sordered): New.
2641 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
2642 (bunordered, bordered): New.
2643 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
2644 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
2645 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
2647 2000-04-09 Philip Blundell <philb@gnu.org>
2649 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
2651 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
2653 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
2654 fix_truncxfhi2): New patterns.
2655 * i386.c (output_fix_trunc): Handle converting to HImode.
2657 2000-04-08 Alex Samuel <samuel@codesourcery.com>
2659 * ssa.c (convert_to_ssa): Eliminate dead code when calling
2661 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
2662 (for_each_successor_phi): Change parameter to basic_block.
2663 (coalesce_regs_in_successor_phi_nodes): Likewise.
2664 (coalesce_regs_in_copies): Likewise.
2665 (compute_coalesced_reg_partition): Use basic_block instead of index.
2666 * rtl.h (convert_to_ssa): Delete.
2667 (convert_from_ssa): Likewise.
2668 (successor_phi_fn): Likewise.
2669 (for_each_successor_phi): Likewise.
2670 (in_ssa_form): Likewise.
2671 * basic-block.h (convert_to_ssa): Moved from rtl.h.
2672 (convert_from_ssa): Likewise.
2673 (successor_phi_fn): Likewise.
2674 (in_ssa_form): Likewise.
2675 (for_each_successor_phi): Likewise. Change parameter to basic_block.
2676 * flow.c (calculate_global_regs_live): Pass a basic_block to
2677 for_each_successor_phi.
2679 2000-04-08 Richard Henderson <rth@cygnus.com>
2681 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
2682 was modified in the current insn.
2684 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
2686 * arm/thumb.md: Delete.
2687 * arm/thumb-protos.h: Delete.
2689 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
2691 Merge changes from merged-arm-thumb-backend-branch onto trunk.
2693 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
2695 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
2698 * arm.md (nop): Use the standard RTL expression. Don't code as a
2700 (*arm_nop, *thumb_nop): Delete.
2702 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
2703 constants. Use casts instead.
2704 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
2705 output_multi_immediate, arm_poke_function_name): Likewise.
2706 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
2707 MASK_RETURN_ADDDR): Likewise.
2709 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
2711 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
2714 * arm.md (eh_epilogue): New function.
2715 * arm.h (struct machine_function): Move to here ...
2716 * arm.c: ... from here.
2717 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
2718 (thumb_exit): Extra parameter eh_ofs. All callers changed.
2719 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
2721 2000-03-30 Nick Clifton <nickc@cygnus.com>
2723 * config/arm/semi.h (ASM_SPEC): Restore definition.
2724 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
2726 * config/arm/elf.h (ASM_SPEC): Restore definition.
2727 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
2729 * config/arm/arm.h (ASM_SPEC): Remove definition.
2730 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
2732 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
2734 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
2736 2000-03-24 Nick Clifton <nickc@cygnus.com>
2738 Various formating tidyups, elimination of compile time
2739 warnings and synchronisation with internal sources:
2741 * config/arm/arm-protos.h (assemble_align): Add prototype.
2742 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
2743 (gen_comapre_reg): Rename to arm_gen_compare_reg.
2744 (arm_return_addr_rtx): Rename to arm_return_addr.
2746 * config/arm/arm.c: Include except.h.
2747 Define shorter typenames for strict minipool_node and struct
2749 (arm_return_in_memory): For WinCE return all structures <= 32 bits
2751 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
2752 (gen_comapre_reg): Rename to arm_gen_compare_reg.
2754 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
2756 (ASM_SPEC): Define if not already defined.
2757 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
2759 * config/arm/arm.md: Rename references to gen_rotated_half_load to
2760 arm_gen_rotated_half_load, and references to gen_comapre_reg to
2761 arm_gen_compare_reg.
2762 (indirect_jump): Only accept register operands.
2763 (load_indirect_jump): Keep this pattern since combine can generate
2766 * config/arm/coff.h: Include aout.h.
2767 (MULTILIB_DEFAULTS): Only define if not already defined.
2769 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
2770 into arm.h (so that COFF ports can support thumb based aliases).
2771 (ASM_SPEC): Move definition into arm.h
2773 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
2774 redundant apcs spec.
2775 (ASM_SPEC): Move definition to arm.h
2777 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
2779 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
2780 for entries in the .bss section
2782 2000-03-23 Nick Clifton <nickc@cygnus.com>
2784 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
2785 to thumb_far_jump_used_p.
2787 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
2788 single integer parameter.
2790 * config/arm/arm.c (struct machine_function): Add two new
2791 fields, 'far_jump_used' and 'arg_pointer_live'.
2792 (thumb_far_jump_used_p): Once the decision has been made that
2793 far jumps might be used, always return true.
2794 If being called from the initial elimination offset macro then
2795 do not bother to perform the test if the arg pointer is not
2797 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
2798 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
2800 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
2802 * arm.c (output_return_instruction): Handle more cases where we can
2803 return from a function with an ldr instruction.
2804 (arm_output_epilogue): Likewise.
2806 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
2807 if we need to push a large stack frame and there are no callee-saved
2810 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
2811 in ARM code if the frame pointer has been eliminated.
2813 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
2814 unspec_volatile arguments to avoid duplicates.
2815 (consttable_1, consttable_2): Fixes for big-endian mode.
2817 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
2820 Re-write constant pool code.
2821 * arm.c (minipool_node, minipool_fix): New types.
2822 (minifix): Delete type.
2823 (arm_add_minipool_constant): Delete.
2824 (arm_compute_minipool_offsets, arm_find_barrier,
2825 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
2826 (get_jump_table_size): Now returns HOST_WIDE_INT.
2827 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
2829 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
2830 (assign_minipool_offsets, arm_print_value): Likewise.
2831 (dump_minipool): Rewrite.
2832 (arm_barrier_cost): New function.
2833 (create_fix_barrier): New function.
2834 (push_minipool_barrier): New function.
2835 (push_minipool_fix): Record additional information about the fixup
2837 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
2838 check the mode of what needs fixing.
2839 (arm_reorg): Rewrite.
2841 2000-03-08 Nick Clifton <nickc@cygnus.com>
2843 * config/arm/arm.md (indirect_jump): Force constant addresses into
2846 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
2848 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
2850 2000-02-24 Nick Clifton <nickc@cygnus.com>
2852 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
2853 adjust is word aligned.
2854 (thumb_expand_epilogue): Make sure that stack adjust is word
2857 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
2859 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
2861 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
2862 pointer relative addresses.
2864 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
2866 * arm.c (find_barrier): Find the last barrier within the allowed
2869 2000-02-09 Nick Clifton <nickc@cygnus.com>
2871 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
2873 2000-02-09 Nick Clifton <nickc@cygnus.com>
2875 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
2876 ARM_FUNCTION_PROFILER.
2878 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
2879 ARM_FUNCTION_PROFILER.
2881 * config/arm/linux-oldld.h: Imported from mainline sources.
2883 2000-02-07 Nick Clifton <nickc@cygnus.com>
2885 * config/arm/lib1funcs.asm: Merge in thumb functions from
2888 * config/arm/lib1thumb.asm: Delete.
2890 2000-02-04 Nick Clifton <nickc@cygnus.com>
2892 * config/arm/arm.c: Sychronised with current Red hat local
2894 * config/arm/arm.h: Ditto.
2895 * config/arm/arm-protos.h: Ditto.
2897 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
2899 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
2901 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
2904 2000-02-02 Nick Clifton <nickc@cygnus.com>
2906 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
2908 * config/arm/arm.md (epilogue): Fix rtl checking abort because
2909 (return) was emited using an emit_insn() call.
2911 2000-01-31 Nick Clifton <nickc@cygnus.com>
2913 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
2915 (thumb_exit): Move frame pointer back into hard frame pointer
2916 register if backtracing is being used.
2918 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
2920 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
2923 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
2925 * config/arm/arm.md (neg_pool_offset): Provide default for new
2927 (arm_movsi_insn): Add neg_pool_offset attribute.
2928 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
2929 rtx for the insn that starts the scan and an unsigned long for its
2930 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
2931 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
2932 instructions in *PINSERTED.
2933 (struct minipool_fixup): Add MIN_ADDRESS elt.
2934 (sort_fixups): Compute it.
2935 (arm_reorg): Changes to support inserting pools before the insn to be
2938 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
2940 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
2941 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
2942 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
2944 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
2946 * config/arm/semi.h (TARGET_VERSION): Do not define if already
2948 (TARGET_DEFAULT): Do not define if already defined.
2950 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
2952 * config/arm/arm.md (anddi3): Allow disjoint source operands.
2953 (iordi3): Allow disjoint source operands.
2954 (xordi3): Allow disjoint source operands.
2955 (negdi2): Permit construction for ARM and Thumb.
2956 (arm_negdi2): Renamed version of old negdi2 pattern.
2957 (thumb_negdi2): New pattern: Only permit non-overlapping
2958 source and destination.
2960 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
2962 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
2963 scratch low register so that it will not be deleted.
2965 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
2967 * config/arm/pe.h (ARM_PE): Define.
2969 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
2970 interfacearm attribute if this is a PE toolchain.
2971 (output_return_instruction): Do not emit anything if the function
2972 has the naked attribute set.
2973 (is_called_in_ARM_mode): If the function has the interfacearm
2974 attribute then return true.
2975 (thumb_expand_prologue): Do not generate a prologue for naked
2977 (thumb_expand_epilogue): Do not generate an epilogie for a naked
2979 (output_thumb_prologue): Do not bother if the function is naked.
2980 Strip PE encoding from function name before emitting.
2982 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
2984 * arm.md (pic_load_addr): Fix constraints.
2986 * arm.md (casesi_insn): Fix mis-applied patch.
2988 * arm.md ("core" function unit): Add rules for single- and
2990 (All TARGET_THUMB patterns): Add "type" attribute information
2992 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
2993 the following insn is a CALL.
2995 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
2997 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
2998 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
2999 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
3001 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
3003 * config/arm/linux-gas.h: oops - this file was missed out when the
3004 branch was created...
3006 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
3008 * thumb.c: Deleted. Move contents to ...
3010 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
3012 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
3015 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
3016 declare a prototype for asm_output_align();
3018 * arm.c (thumb_condition_code): Delete.
3019 (arm_print_operand): Always use arm_condition_code array.
3021 * arm.c (thumb_return_addr_rtx): Delete.
3022 (arm_save_machine_status, arm_restore_machine_status): Delete.
3023 (arm_init_machine_status, arm_mark_machine_status): New functions.
3024 (arm_init_expanders): Update accordingly.
3025 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
3026 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
3027 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
3029 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
3031 * configure.in : Fix arm-*-aout target to use new t-arm-aout
3033 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
3036 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
3038 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
3039 stack backtrace structure.
3041 * config/arm/arm-protos.h: Add prototypes for functions defined in
3044 * config/arm/arm.c (arm_override_options): Fix selection of
3045 attributes of default processor.
3047 * config/arm/coff.h: Delete needless #include.
3049 * config/arm/pe.c: Delete unused code.
3051 * config/arm/pe.h (CPP_DEFINES): Delete
3052 (SUBTARGET_CPP_SPEC): Define.
3053 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
3055 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
3057 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
3059 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
3061 (CAN_DEBUG_WITHOUT_FP): Define.
3062 (FIXED_REGISTERS): Make r11 call-saved.
3063 (CALL_USED_REGISTERS): Likewise.
3064 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
3065 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
3066 frame-pointer is required.
3067 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
3068 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
3069 if the target normally needs a stack frame in non-leaf functions.
3070 (use_return_insn): Correct logic for determining when a return
3071 instruction can be used.
3072 (output_return_instruction): Handle the frame-pointer register as
3073 a normal register when not TARGET_APCS_FRAME.
3074 (arm_output_prologue): Likewise.
3075 (arm_output_epilogue): Likewise.
3076 (output_func_epilogue): Likewise.
3077 (arm_expand_prologue): Likewise.
3078 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
3080 * arm.c (use_return_insn): No need to check floating point regs if
3082 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
3083 the code of value stored in the minipool array.
3084 (arm_add_minipool_constant): Likewise.
3086 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3088 * basic-block.h (conflict_graph_enum_fn): K&R fix.
3090 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3092 * tree.c (tree_expr_nonnegative_p): New function.
3094 * tree.h (tree_expr_nonnegative_p): Declare.
3096 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
3097 elide some sign_compare warnings.
3098 (build_conditional_expr): Likewise.
3100 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
3102 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
3104 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
3105 * i386.c (print_operand): Use the proper suffix for a 387 HImode
3106 operand. Abort if a 387 operand has an unsupported size.
3108 2000-04-08 Neil Booth <NeilB@earthling.net>
3110 * cppexp.c (parse_charconst): Null does not end character
3112 * cppinit.c (ISTABLE): Null character handled as whitespace.
3113 * cpplex.c (null_warning): new function.
3114 (skip_string): Emit warning if nulls encountered.
3115 (_cpp_skip_hspace): Emit warning if nulls encountered.
3116 (_cpp_lex_token): Emit warning if nulls encountered. Drop
3120 2000-04-07 Richard Henderson <rth@cygnus.com>
3122 * flow.c (loop_depth): Remove.
3123 (reg_next_use, cc0_live, mem_set_list): Replace with ...
3124 (struct propagate_block_info): New.
3125 (life_analysis): Don't allocate reg_next_use.
3126 (propagate_block_delete_insn): Break out of propagate_block.
3127 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
3128 (propagate_block_delete_libcall): Likewise.
3129 (propagate_block): Create a propagate_block_info struct to pass
3130 to subroutines. Allocate one not two temporary regsets. Don't
3131 clobber memory for const calls. Look for clobbers in
3132 CALL_INSN_FUNCTION_USAGE.
3133 (mark_set_regs): Recognize COND_EXEC.
3134 (mark_set_reg): Break out of mark_set_1.
3135 (mark_used_reg): Break out of mark_used_regs.
3136 (mark_used_regs): Recognize COND_EXEC.
3137 (insn_dead_p): Use propagate_block_info struct.
3138 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
3139 (find_auto_inc, try_pre_increment_1): Likewise.
3140 (print_rtl_with_bb): Dump regs live at end too.
3141 (count_reg_sets_1): Pass in loop_depth.
3142 (count_reg_sets, count_reg_references): Likewise.
3143 (recompute_reg_usage): Provide it.
3145 2000-04-07 Richard Henderson <rth@cygnus.com>
3147 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
3150 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
3152 * cpplib.c (do_elif): Skip the rest of the line if we're
3153 not going to bother evaluating it.
3154 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
3155 to avoid pointless calls to the lexer.
3157 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
3159 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
3161 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
3163 * calls.c (expand_call): emit_queue if we're trying a sibcall.
3165 2000-04-07 Jakub Jelinek <jakub@redhat.com>
3167 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
3169 2000-04-06 Geoff Keating <geoffk@cygnus.com>
3171 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
3172 crtend so they can be multilibbed.
3173 (STAGESTUFF): Remove s-crt and s-crtS.
3175 2000-04-07 Richard Henderson <rth@cygnus.com>
3177 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
3178 if we discover we need a pseudo and no_new_pseudos is true.
3179 * config/alpha/alpha.md (ne:DI insn): New.
3180 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
3182 2000-04-07 Richard Henderson <rth@cygnus.com>
3184 * rtl.def (COND_EXEC): New.
3185 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
3186 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
3188 * genconfig.c (have_cond_arith_flag): Remove.
3189 (have_cond_exec_flag): New.
3190 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
3191 (main): Print HAVE_conditional_execution.
3193 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
3194 (sched_analyze_insn, print_pattern): Likewise.
3195 * reload.c (find_equiv_reg): Likewise.
3196 * rtlanal.c (reg_referenced_p): Likewise.
3197 (note_stores, dead_or_set_regno_p): Likewise.
3198 (reg_overlap_mentioned_p): Rewrite to use a switch.
3200 * ggc.h (struct rtx_def): Forward declare.
3202 * print-rtl.c (debug_rtx_range): New.
3203 * rtl.h (debug_rtx_range): Declare.
3205 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
3207 * gcse.c (gcse_main): Don't rebuild the CFG here.
3208 (delete_null_pointer_checks): Likewise.
3209 * ssa.c (convert_to_ssa): Likewise.
3210 * toplev.c (rest_of_compilation): Do it here instead. Combine
3211 sequential calls to TIMEVAR. Consistently use `insns' instead of
3212 `get_insns()'. Always split insns after reload when optimizing.
3214 * basic-block.h (merge_blocks_nomove): Declare.
3215 (tidy_fallthru_edge): Declare.
3216 * flow.c (merge_blocks_nomove): Document as merging into previous
3217 blocks. Remove cruft from between blocks; remove all edges out of A.
3218 (tidy_fallthru_edge): Export.
3220 2000-04-06 Alex Samuel <samuel@codesourcery.com>
3222 * ssa.c (compute_conservative_reg_partition): Declare with
3224 * toplev.c (clean_dump_file): Remove previously-deleted function
3225 inadvertantly merged back in.
3226 * conflict.c (conflict_graph_add): Use a single call to
3227 htab_find_slot to look up and insert.
3229 2000-04-06 Richard Henderson <rth@cygnus.com>
3231 * genrecog.c (*): Rename _last_insn to last_insn.
3232 (make_insn_sequence): Set the position of the peephole2 C test
3233 to be at the last insn.
3235 2000-04-06 Richard Henderson <rth@cygnus.com>
3237 * flow.c (compute_flow_dominators): Free worklist.
3239 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
3241 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
3243 2000-04-06 Alex Samuel <samuel@codesourcery.com>
3245 * rtl.h (INSN_P): New macro.
3246 (successor_phi_fn): New typedef.
3247 (for_each_successor_phi): New prototype.
3248 (in_ssa_form): New variable.
3249 (PHI_NODE_P): Likewise.
3250 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
3251 phi nodes in successors.
3252 (mark_used_regs): Add PHI case.
3253 (set_phi_alternative_reg): New function.
3254 (life_analysis): Assert that dead code elimination is not selected
3256 * toplev.c (to_ssa_time): New variable.
3257 (from_ssa_time): Likewise.
3258 (compile_file): Zero to_ssa_time and from_ssa_time.
3259 Print time to convert to and from SSA.
3260 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
3261 (print_time): Compute percent fraction as integer.
3262 * ssa.c (PHI_NODE_P): Moved to rtl.h.
3263 (convert_to_ssa): Check if we're already in SSA.
3264 Don't eliminate dead code in life_analysis.
3265 Rerun flow and life analysis at bottom.
3266 (eliminate_phi): Use canonical regnos when adding nodes.
3267 (mark_reg_in_phi): New function.
3268 (mark_phi_and_copy_regs): Likewise.
3269 (convert_from_ssa): Rerun life analysis at top.
3270 Use coalesced partition.
3271 Check for removing a phi node at the end of the block.
3272 (compute_coalesced_reg_partition): New function.
3273 (coalesce_regs_in_copies): Likewise.
3274 (coalesce_reg_in_phi): Likewise.
3275 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
3276 (for_each_successor_phi): Likewise.
3277 (rename_context): New struct.
3278 (rename_block): Use a rename_context with rename_insn_1. When
3279 renaming sets of a subreg, emit a copy of the entire reg first.
3280 (rename_insn_1): Treat data as a rename_context *. Save current
3282 (rename_set_data): Add field set_insn.
3283 * Makefile.in (HASHTAB_H): Move up in file.
3284 (OBSTACK_H): New macro.
3285 (collect2.o): Use OBSTACK_H in dependencies.
3286 (sdbout.o): Likewise.
3287 (emit-rtl.o): Likewise.
3288 (simplify-rtx.o): Likewise.
3289 (fix-header.o): Likewise.
3290 (OBJS): Add conflict.o.
3291 (conflict.o): New rule.
3292 * basic-block.h: Include partition.h.
3293 (conflict_graph): New typedef.
3294 (conflict_graph_enum_fn): Likewise.
3295 (conflict_graph_new): New prototype.
3296 (conflict_graph_delete): Likewise.
3297 (conflict_graph_add): Likewise.
3298 (conflict_graph_conflict_p): Likewise.
3299 (conflict_graph_enum): Likewise.
3300 (conflict_graph_merge_regs): Likewise.
3301 (conflict_graph_print): Likewise.
3302 (conflict_graph_compute): Likewise.
3303 * conflict.c: New file.
3305 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
3307 * tlink.c (read_repo_files): Don't look for .rpo info for
3310 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3312 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
3314 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3316 * config/sh/lib1funcs.asm (___udivsi3_i4):
3317 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
3318 only depends on FMOVD_WORKS.
3320 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3322 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
3323 make double constant 8-byte aligned.
3325 2000-04-06 Jakub Jelinek <jakub@redhat.com>
3327 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
3328 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
3329 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
3330 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
3331 Accept storing GENERAL_REGS into offsetable memory.
3332 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
3333 building a TFmode constant other than 0.0L into GENERAL_REGS.
3335 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
3337 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
3339 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
3341 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
3342 (macro_cleanup): No need to cast pbuf->macro.
3343 (collect_expansion): Use _cpp_get_define_token. Goto done if
3344 it returns VSPACE. Remove check for trailing space after
3346 (_cpp_create_definition): Don't diddle flags here. Return
3348 (unsafe_chars): Handle c1 being EOF.
3349 (push_macro_expansion): Use unsafe_chars for both accidental-paste
3350 checks. Don't push the buffer till after we're done with
3352 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
3353 (PEEKN, FORWARD, GETC, PEEKC): Use them.
3354 (cpp_push_buffer): Don't set new->alimit. Set new->mark
3356 (_cpp_parse_assertion): Don't NUL terminate.
3357 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
3358 hspace before calling _cpp_parse_assertion. Remove all sets
3359 of only_seen_white. Treat '\f' as hspace. Don't do anything
3360 special with '\n' here.
3361 (maybe_macroexpand): Handle T_EMPTY hash entries without
3362 pushing a buffer at all.
3363 (cpp_get_token): Handle clearing only_seen_white here. Handle
3364 incrementing the line number here. Clear
3365 potential_control_macro as well as only_seen_white, if
3367 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
3368 (_cpp_get_define_token): New function, basically like
3369 _cpp_get_directive_token was but doesn't eat horizontal space.
3370 Don't do anything with only_seen_white here.
3371 (_cpp_get_directive_token): Just call _cpp_get_define_token
3372 repeatedly till it returns non-hspace.
3374 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
3375 (conditional_skip, skip_if_group): Return int.
3376 (DIRECTIVE_TABLE): Change origin of all conditional directives
3378 (TRAD_DIRECT_P): New macro.
3379 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
3380 an error for a bogus directive, unless -lang-asm. Use
3381 TRAD_DIRECT_P. Loop calling handler functions till one returns
3383 (get_macro_name): Don't diddle flags here.
3384 (do_define): Diddle flags here. Use _cpp_get_directive_token.
3385 Create T_EMPTY nodes for #define macro /* nothing */.
3386 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
3387 Use hp->name when calling pass_thru_directive.
3388 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
3389 Return the result of conditional_skip and/or skip_if_group.
3390 Don't call _cpp_output_line_command.
3391 (consider_directive_while_skipping): Use _cpp_get_directive_token.
3392 Issue -Wtraditional warnings as appropriate. Don't complain
3393 about unrecognized directives. If we are to stop skipping,
3394 return the number of the directive that ended the skip.
3395 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
3396 expansion and line commands while skipping. Return the result
3397 of consider_directive_while_skipping, if nonzero.
3398 (do_endif): Just set potential_control_macro here.
3399 (validate_else): Use _cpp_get_directive_token.
3400 (do_assert, do_unassert): Don't save pointers into the
3401 token_buffer across calls to the lexer. Use
3402 _cpp_get_directive_token.
3404 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
3405 pointer, not an offset. Replace 'data', which was a generic
3406 pointer, with 'macro', which points to a struct hashnode.
3407 (cpp_reader): Add 'potential_control_macro' pointer.
3408 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
3409 (CPP_BUF_GET, CPP_FORWARD): Delete.
3410 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
3411 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
3412 ACTIVE_MARK_P): Update.
3413 (_cpp_get_define_token): New internal function.
3414 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
3416 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
3418 * configure.in: And here.
3419 * configure: Regenerate.
3420 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
3421 --enable-libstdcxx-v3 is passed at configure time.
3422 * config.h.in: Regenerate.
3424 2000-04-05 Mark Mitchell <mark@codesourcery.com>
3426 * final.c (final): Use xcalloc to allocate line_note_exists.
3427 * function.c (free_after_compilation): Free the temp_slots.
3428 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
3429 (combine_temp_slot): Free temp_slots when they get combined.
3430 (purge_addressof): Fix typo in comment.
3431 * stmt.c (mark_goto_fixup): Mark the fixup itself.
3432 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
3434 * ggc.h: Include varray.h.
3435 (ggc_pending_trees): Declare.
3436 (ggc_mark_tree_children): Remove declaration.
3437 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
3438 * ggc-common.c (ggc_pending_trees): New variable.
3439 (ggc_mark_roots): Call ggc_mark_trees.
3440 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
3441 the ggc_pending_trees.
3442 * Makefile.in (GGC_H): New variable. Use it throughout in place
3445 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3447 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
3450 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3452 * sh.c (sh_insn_length_adjustment): New function.
3453 * sh-protos.h (sh_insn_length_adjustment): Declare.
3454 * sh.h (ADJUST_INSN_LENGTH): Use it.
3456 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
3458 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
3459 from the insn where REG_RETVAL is added.
3460 (emit_no_conflict_block): Ditto.
3462 * md.texi (Standard Names): Clarify when movX is needed.
3464 * combine.c (simplify_comparison) [MINUS]: Do not replace
3465 all (op (minus A B) 0) with (op A B).
3467 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
3468 J"orn Rennecke <amylaar@cygnus.co.uk>
3470 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
3471 (block_lump_real): Likewise.
3473 2000-04-05 Chris Demetriou <cgd@netbsd.org>
3475 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
3476 remaining non-zero debugging masks.
3478 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
3480 * basic-block.h (verify_flow_info): Declare.
3481 (flow_loop_outside_edge_p): Declare.
3482 * flow.c (verify_flow_info): Remove declaration.
3483 (clear_log_links, flow_loop_outside_edge_p): Likewise.
3485 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
3487 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
3490 2000-04-05 Jakub Jelinek <jakub@redhat.com>
3492 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
3493 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
3494 seqdi_zero_trunc+1): Allow splits only if registers are
3497 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
3499 * acconfig.h: Add HAVE_GAS_HIDDEN.
3500 * config.in: Regenerated.
3501 * configure.in: Add test for .hidden pseudo-op in gas.
3502 * configure: Regenerated.
3503 * crtstuff.c: Include auto-host.h.
3504 Emit additional .hidden pseudo-op for __dso_handle if the
3505 assembler knows about it.
3507 2000-04-04 Philippe De Muyter <phdm@macqel.be>
3509 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
3510 before freeing argnames.
3511 * cpplib.c (do_ifndef): Cast return value of xstrdup.
3513 2000-04-05 Michael Meissner <meissner@redhat.com>
3515 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
3516 Walton <jonboy@gordian.com> to make memory references with update
3517 work wtih -mregnames.
3519 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3521 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
3522 (regrename_optimize): Rename variables `def_uses' and
3523 `ext_basic_blocks' to avoid conflicts with similarly named
3524 typedefs in traditional C.
3526 * calls.c (initialize_argument_information): Fix typo in previous
3529 2000-04-04 Richard Henderson <rth@cygnus.com>
3531 * regrename.c (consider_available): Test fixed_regs not
3532 PIC_OFFSET_TABLE_REGNUM.
3534 2000-04-04 Geoff Keating <geoffk@cygnus.com>
3536 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
3538 (CRTSTUFF_T_CFLAGS_S): Delete definition.
3539 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
3540 (ENDFILE_LINUX_SPEC): Always use crtend.
3541 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
3542 (powerpc-*-linux-gnu): Likewise.
3543 * configure: Regenerate.
3545 * config/rs6000/eabi.h: Don't include sysv4.h.
3546 (MULTILIB_DEFAULTS): Don't define.
3547 * config/rs6000/eabiaix.h: Don't include eabi.h.
3548 * config/rs6000/eabile.h: Delete.
3549 * config/rs6000/eabilesim.h: Delete.
3550 * config/rs6000/eabisim.h: Don't include eabi.h.
3551 * config/rs6000/linux.h: Don't include sysv4.h.
3552 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
3553 (MULTILIB_DEFAULTS): Don't redefine.
3554 * config/rs6000/rtems.h: Don't include eabi.h.
3555 * config/rs6000/sol2.h: Don't include sysv4le.h.
3556 * config/rs6000/sysv4le.h: Don't include sysv4.h.
3557 * config/rs6000/t-ppc: Delete.
3558 * config/rs6000/t-ppcgas: Correct comment.
3559 * config/rs6000/t-ppcos: Correct comment. Don't build
3560 multilibs for -fPIC, rather use -fPIC -mstrict-align
3562 * config/rs6000/t-ppc: Delete.
3563 * config/rs6000/vxppc.h: Don't include sysv4.h.
3564 * config/rs6000/vxppcle.h: Delete.
3565 * configure.in: Use multiple header files for p2pc ELF targets
3566 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
3567 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
3568 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
3569 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
3570 always available for these platforms.
3572 2000-04-04 Richard Henderson <rth@cygnus.com>
3574 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
3576 2000-04-04 Stan Cox <scox@cygnus.com>
3578 * Makefile.in: Add rules for regrename.o
3579 * regrename.c: New file.
3580 * rtl.h (regrename_optimize): Add prototype.
3581 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
3582 (compile_file, decode_d_option): Add support for -frename-registers.
3583 (rest_of_compilation): Call regrename_optimize.
3584 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
3587 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3589 * Makefile (gccbug): New target.
3590 (doc): Depend on it.
3591 * gcc.texi (Bugs): Link subnodes.
3593 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
3594 Document severities, priorities, and classes in bug form.
3596 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
3598 * cpplex.c (trigraph_map, speccase): Combine into single
3600 (NORMAL, NONTRI): New macros.
3601 (_cpp_read_and_prescan): Change to use unified table. Use
3602 is_hspace to test for whitespace.
3604 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
3605 definition that doesn't provoke the "empty body in an
3606 if-statement" warning.
3608 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
3610 * builtins.c (expand_builtin_strlen): Force the source to
3611 be a memory address.
3613 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3615 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
3617 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
3619 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
3620 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
3621 (ECF_IS_CONST): Rename to ECF_CONST.
3622 (special_function_p): Make static, change interface.
3623 (flags_from_decl_or_type, try_to_integrate): Break out from ...
3624 (expand_call) ... here; convert number of variables to flags.
3625 (emit_library_call_vlue_1): Likewise.
3626 (setjmp_call_p): New function.
3627 (initialize_argument_information): Accepts flags as argument;
3629 (precompute_arguments): Likewise.
3630 * tree.h (special_function_p): Remove.
3631 (setjmp_call_p): Add prototype.
3633 2000-04-04 Jakub Jelinek <jakub@redhat.com>
3635 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
3636 so that addresses are offsetable by up to 16 bytes.
3637 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
3638 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
3641 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
3642 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
3643 (movsf): Don't force any constant to memory if target is integer
3645 Move fp_zero_operand check below the const0_rtx check.
3646 (movtf): Likewise. Also allow fp_zero_operand for stores into
3648 (movdf): Likewise. Also allow fp_zero_operand for stores into
3649 memory and into integer hard registers.
3650 (clear_df, clear_dfp, movdf_const_intreg_sp32,
3651 movdf_const_intreg_sp64): Remove.
3652 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
3654 (movdf_no_e_insn_v9_sp32): New pattern.
3655 (movdf_insn_v9only): Remove.
3656 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
3657 (movdf_insn_sp64): Remove.
3658 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
3659 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
3660 (following splits): Rewrite conditions. Add two new splits
3661 for storing 0.0 into memory and registers.
3662 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
3663 (movtf_insn_sp32): Redo constraints and conditions.
3664 (movtf_insn_vis_sp32): New pattern.
3665 (movtf_no_e_insn_sp32): Redo constraints and conditions.
3666 (movtf_insn_hq_sp64): Likewise.
3667 (movtf_insn_hq_vis_sp64): New pattern.
3668 (movtf_insn_sp64): Redo constraints and conditions.
3669 (movtf_insn_vis_sp64): New pattern.
3670 (movtf_no_e_insn_sp64): Redo constraints and conditions.
3671 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
3673 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
3674 -mvis or -m64 to take down the number of various reload patterns.
3676 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
3678 * pa/pa-64.h: New file.
3679 * pa/pa64-regs.h: New file.
3680 * pa/pa64-start.h: New file.
3681 * pa/t-pa64: New file.
3682 * pa/xm-pa64hpux.h: New file.
3684 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3686 * sparc.c (output_restore_regs): Prototype.
3687 (sparc_emit_float_lib_cmp): Constification.
3689 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
3691 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
3694 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
3695 (get_value_hash, hash_rtx): Likewise.
3697 * ssa.c (compute_conservative_reg_partition): Prototype.
3699 * tree.c (mark_hash_entry): Prototype.
3701 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
3703 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
3704 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
3705 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
3707 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
3708 * objc/lang-specs.h: Likewise.
3710 2000-04-03 Neil Booth <NeilB@earthling.net>
3712 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
3713 and SYNTAX_ERROR2. Replace `' in messages with ''.
3714 (op_to_str): Make re-entrant.
3715 (_cpp_parse_expr): Implement new error macros. Use | rather
3716 than || to logically or 2 boolean integers. Simply expression
3717 checking we have a left operand iff needed.
3719 2000-04-03 Nick Clifton <nickc@cygnus.com>
3721 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
3723 2000-04-03 Philip Blundell <philb@gnu.org>
3725 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
3727 2000-04-03 Felix Lee <flee@cygnus.com>
3729 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
3730 (run_shell): Use it.
3732 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
3734 * Makefile.in (stmp-int-hdrs): Make include subdir here...
3735 (stmp-fixproto): ...rather than here.
3737 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
3739 * pa.c (print_operand): Compute 'base' only inside the code paths
3742 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
3744 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
3747 2000-04-03 Philipp Thomas <pthomas@suse.de>
3749 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
3751 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
3753 * Makefile.in (alias.o): Depend on $(TREE_H).
3755 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
3757 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
3759 * cpplib.c (_cpp_handle_directive): Improve warnings for
3760 traditional C and indented directives.
3762 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
3763 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
3764 fixinc/inclhack.def: Indent the # of #include_next one space.
3765 * cp/rtti.c: Un-indent #if and #endif.
3767 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
3768 syntax error, but an error has already been printed.
3769 * cpplex.c (_cpp_parse_assertion): Give a more specific error
3770 message when called with nothing remaining on the line.
3771 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
3772 OTHER token, not an ASSERTION.
3773 * cpplib.c (do_assert): When we create a 'base' node, clear
3774 its aschain pointer.
3776 2000-04-02 Neil Booth <NeilB@earthling.net>
3778 * cppexp.c: New typedef op_t. struct operation and struct
3779 token updated to use it.
3780 (op_to_str): New function.
3781 (_cpp_parse_expr): Error messages modified to use op_to_str.
3783 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3785 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
3786 before checking MUST_PASS_IN_STACK.
3788 2000-04-02 Neil Booth <NeilB@earthling.net>
3790 * cppexp.c: New FINISHED dummy token. Combine operator initial
3791 flags and initial priority into a single constant. New
3792 EQUALITY macro. New operator flag SHORT_CIRCUIT.
3793 (_parse_cpp_expr): Implement new constants. Take left operand
3794 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
3795 parse indicated by reducing FINISHED token. Remove new lines
3796 from cpp_error messages.
3798 2000-04-01 Mark Mitchell <mark@codesourcery.com>
3800 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
3803 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
3805 * cpplib.c: Include symcat.h. Add 'origin' field to struct
3806 directive. Add origin values to DIRECTIVE_TABLE. Generate
3807 the strings and function names on the fly. Take the #sccs
3808 entry out of the table if SCCS_DIRECTIVE is not defined.
3809 (_cpp_handle_directive): Decide if the # was at the beginning
3810 of the line here. Issue -pedantic warnings for extended
3811 directives here. Warn about K+R directives with the #
3812 indented, and C89/extended directives with the # not indented,
3814 (do_import, do_include_next, do_warning, do_ident, do_sccs,
3815 do_assert, do_unassert): Don't issue pedantic warning here.
3817 * cpphash.h: Add CPP_WTRADITIONAL macro.
3818 * cpplib.h (struct cpp_options): Rename warn_stringify to
3819 warn_traditional; update comments.
3820 * cppinit.c (handle_option): Set warn_traditional not
3822 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
3823 CPP_WTRADITIONAL (pfile).
3824 * cpplex.c (_cpp_lex_token): Don't decide if directives should
3825 be ignored in -traditional mode here.
3827 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
3828 to initialize speccase[] and trigraph_map[]. Delete all
3829 references to pfile->input_speccase. Always treat '?' as a
3830 special character. Remove table-initialization code from
3831 _cpp_init_input_buffer.
3833 * cpplib.h (struct cpp_reader): Remove input_speccase field.
3834 * cppinit.c (cpp_cleanup): Don't free input_speccase.
3836 2000-04-01 Richard Henderson <rth@cygnus.com>
3838 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
3839 (mostlyclean): Likewise.
3841 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
3842 (struct dump_file_info, enum dump_file_index, dump_file): New.
3843 (open_dump_file): Take a dump_file_index not a suffix, and a decl
3844 not a string. Clean out file if we havn't yet done so. Do nothing
3845 if the dump isn't enabled.
3846 (close_dump_file): Do nothing if the dump isn't open. Dump
3847 graph data if requested.
3848 (dump_rtl, clean_dump_file): Remove.
3849 (compile_file): Don't clean the dump files. Only finalize .bp dump
3850 if flag_test_coverage or flag_branch_probabilities. Only finalize
3851 .combine dump if optimizing. Iterate over dump_file to finalize the
3853 (rest_of_compilation): Update for open_dump_file/close_dump_file.
3854 Convert all uses of dump_rtl.
3855 (decode_d_option): Iterate over dump_file to implement 'a' and to
3856 locate pass-specific dumps.
3858 2000-04-01 Neil Booth <NeilB@earthling.net>
3860 * cppexp.c: Redefine priority constants.
3861 (_cpp_parse_expr): Replace left and right priority scheme with
3862 single priority logic. Move LOGICAL to same place as COMPARE.
3863 Remove bogus check for multiple unary +/- operators.
3865 2000-04-01 Neil Booth <NeilB@earthling.net>
3867 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
3868 within the switch statement. Binary operations break out of
3869 the switch naturally. '(' tokens handled by forcing
3870 immediate shift. ')' handled by forcing immediate reduce to
3871 the previous '('. New error messages.
3873 2000-03-31 Geoff Keating <geoffk@cygnus.com>
3875 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
3876 part', it's already in use. Use %K instead. Add a return at the
3877 end of what is now %K.
3878 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
3880 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
3882 * builtins.c (expand_builtin_apply): Pass proper parameters to
3883 allocate_dynamic_stack_space.
3884 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
3885 update stack_pointer_delta; do not update arg_size_so_far.
3886 (compute_argument_block_size): Use stack_delta instead of
3887 stack_pointer_pending and arg_size_so_far.
3888 (expand_call): Add sanity checking for stack_pointer_delta;
3889 save and restore stack_pointer_delta for SIB, use
3890 stack_pointer_delta for alignment; do not update arg_space_so_far.
3891 (emit_library_call_value): Use stack_pointer_delta for alignment.
3892 (store_one_arg): Do not update arg_space_so_far.
3893 * explow.c (adjust_stack, anti_adjust_stack): Update
3894 stack_pointer_delta.
3895 (allocate_dynamic_stack_space): Add sanity checking for
3896 stack_pointer_delta.
3897 * expr.c (init_expr, clear_pending_stack_adjust): Clear
3898 stack_pointer_delta.
3899 (emit_push_insn): Update stack_pointer_delta.
3900 * function.h (struct expr_status): Add x_stack_pointer_delta;
3901 remove x_arg_space_so_far.
3902 (arg_space_so_far): Remove.
3903 (stack_pointer_delta): New macro.
3905 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
3907 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
3908 Reorder struct cpp_options and struct cpp_reader for better
3909 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
3910 takes two args. Change all 'char' flags to 'unsigned char'.
3911 Move show_column flag into struct cpp_options. Don't
3912 prototype cpp_options_init.
3913 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
3914 cppinit.c, cpplex.c, cpplib.c:
3915 Replace CPP_OPTIONS (pfile)->whatever with
3916 CPP_OPTION (pfile, whatever), and likewise for
3917 opts = CPP_OPTIONS (pfile); ... opts->whatever;
3919 * cppinit.c (merge_include_chains): Take a cpp_reader *.
3920 Extract CPP_OPTION (pfile, pending) and work with that
3922 (cpp_options_init): Delete.
3923 (cpp_reader_init): Turn on on-by-default options here.
3924 Allocate the pending structure here.
3925 (cl_options, enum opt_code): Define these from the same table,
3926 kept in a large macro. Add -fshow-column and -fno-show-column
3929 * cpperror.c (v_message): If show_column is off, don't print
3932 * cppmain.c: Update for new interface.
3933 * fix-header.c: Likewise.
3935 2000-03-30 Geoff Keating <geoffk@cygnus.com>
3937 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
3939 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
3940 are passed to any invocation of AR_FOR_TARGET.
3941 (AR_CREATE_FOR_TARGET): New macro.
3942 (AR_EXTRACT_FOR_TARGET): New macro.
3943 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
3944 AR_EXTRACT_FOR_TARGET.
3945 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
3946 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
3947 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
3948 AR_EXTRACT_FOR_TARGET to sub-makes.
3950 2000-03-31 Neil Booth <NeilB@earthling.net>
3952 * cppexp.c: Delete SKIP_OPERAND. Correct priority
3954 (_cpp_parse_expr): Check for multiple unary +/- operators.
3955 Correct priorities of ':' and '?'. Treat ')' as having a
3956 value. Ensure conditional expression is not void.
3958 2000-03-31 Mark Mitchell <mark@codesourcery.com>
3960 * alias.c (canon_rtx): Make it global.
3961 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
3963 * cse.c (struct table_elt): Add canon_exp.
3965 (invalidate): Canonicalize expressions only once.
3966 * rtl.h (canon_rtx): Declare.
3968 2000-03-30 Mark Mitchell <mark@codesourcery.com>
3970 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
3971 * alias.c (reg_known_value): Add comments.
3972 (init_alias_analysis): Likewise.
3973 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
3975 (cse_basic_block): Fix typo in comment.
3976 * emit-rtl.c: Include hashtab.h.
3977 (const_int_htab): New variable.
3978 (const_int_htab_hash): New function.
3979 (const_int_htab_eq): Likewise.
3980 (rtx_htab_mark_1): Likewise.
3981 (rtx_htab_mark): Likewise.
3982 (gen_rtx_CONST_INT): Cache all CONST_INTs.
3983 (unshare_all_rtx): Fix formatting.
3984 (init_emit_once): Initialize const_int_htab.
3985 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
3987 * rtl.texi: Document the fact that all CONST_INTs with the same
3990 2000-03-30 Richard Henderson <rth@cygnus.com>
3992 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
3994 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
3996 * configure.in: Comment out --enable-c-cpplib stanza.
3997 * configure: Regenerate.
3999 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4001 * expr.c (store_constructor): Properly compute displacement and
4002 alignment when offset is variable.
4004 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
4005 cases of alignment in bytes.
4007 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
4009 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
4010 since it is used to generate c-parse.y.
4011 * objc-parse.c, objc-parse.y: Regenerated.
4013 * function.c (expand_function_end): Pass alignment argument to
4014 emit_block_move in bits, not bytes.
4016 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4018 * expr.c (move_by_pieces_ninsns): Fix one more missing align
4021 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
4023 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
4024 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
4025 * function.c (assign_parms): Likewise.
4026 * integrate.c (expand_inline_function): Likewise.
4027 * stmt.c (expand_decl): Likewise.
4028 (copy_rtx_and_substitute): Likewise.
4029 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
4030 (clear_by_pieces): Fix error in last change.
4031 * emit-rtl.c (init_emit): Set known registers alignment in bits.
4032 * function.h (regno_pointer_align): Now unsigned.
4033 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
4035 * config/i386/i386.c (aligned_operand): Likewise.
4036 * config/sparc/sparc.c (mem_min_alignment): Likewise.
4037 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
4038 (unaligned_memory_operand): Likewise.
4039 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
4040 Also make alignments and sizes unsigned and some whitespace cleanup.
4041 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
4043 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
4044 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
4045 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
4046 (expand_builtin_memset): Likewise, but to clear_storage.
4047 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
4048 (restore_fixed_argument_area): Likewise.
4049 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
4050 (load_register_parameters): Likewise, to emit_group_load.
4051 (expand_call): Likewise, to emit_group_store and emit_block_move.
4052 (emit_library_call_value_1): Likewise, to emit_block_move.
4053 (store_one_arg): Likewise, and to emit_push_insn.
4054 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
4055 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
4056 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
4057 (emit_block_move, emit_group_load, emit_group_store): Likewise.
4058 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
4059 (expand_assigment, store_expr, store_constructor_field): Likewise.
4060 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
4061 (store_constructor, store_field, get_inner_reference): Likewise.
4062 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
4063 (expand_expr, case COMPONENT_REF): Likewise.
4064 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
4065 and positions; reindent code.
4066 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
4067 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
4068 (assign_parms): Likewise to emit_group_store.
4069 * optabs.c (prepare_cmp_insn): Alignment is in bits.
4070 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
4071 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
4072 (expand_return): Likewise to {extract,store}_bit_field.
4073 * stor-layout.c (get_mode_alignment): Minor cleanup.
4074 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
4075 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
4077 2000-03-29 Nick Clifton <nickc@cygnus.com>
4079 * config/arm/arm.h: Undo effects of previous delta:
4080 (ASM_SPEC): Do not define.
4081 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
4083 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
4086 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
4088 * cppinit.c (cpp_start_read): Call initialize_dependency_output
4089 only after reading in the primary source file.
4091 2000-03-29 Geoff Keating <geoffk@cygnus.com>
4093 * c-common.c (c_common_nodes_and_builtins): The first parameter to
4094 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
4095 or a reference to a va_list.
4096 * builtins.c (stabilize_va_list): Simplify now we don't have to
4097 work around C array address decay.
4098 * c-typeck.c (convert_for_assignment): Handle assignment to
4099 a reference parameter by taking the address of the RHS.
4100 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
4101 (va_copy): Likewise.
4102 (__va_copy): Likewise.
4103 * ginclude/varargs.h (va_start): Likewise.
4104 (__va_copy): Likewise.
4106 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
4108 * i386/djgpp.h: Remove extraneous "+".
4110 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
4112 * calls.c (expand_call): Fix typo in last change.
4114 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
4116 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
4119 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4121 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
4122 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
4123 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
4124 * tree.c (bit_position, byte_position): Likewise.
4125 * tree.h: Declare new functions.
4127 2000-03-29 Nick Clifton <nickc@cygnus.com>
4129 * config/arm/arm.c: Minor formatting changes/
4130 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
4132 (ASM_SPEC): Define if not already defined.
4134 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
4136 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
4139 2000-03-29 Jakub Jelinek <jakub@redhat.com>
4141 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
4142 value, don't output it as unsigned.
4144 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
4146 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
4148 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4150 * c-common.c (c_common_nodes_and_builtins): Don't special case
4151 cplus_mode when declaring builtin bzero/bcmp, always avoid
4152 prototype arguments.
4154 2000-03-29 Bruce Korb <bkorb@gnu.org>
4156 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
4159 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
4161 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
4162 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
4163 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
4164 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
4165 (save_fixed_argument_area, restore_fixed_argument_area):
4166 conditionize by #ifdef REG_PARM_STACK_SPACE only.
4167 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
4168 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
4169 (precompute_register_parameters): Avoid #ifdefs on
4170 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
4171 (stire_one_args): Likewise.
4172 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
4173 (emit_library_call_value_1): Likewise.
4174 (compute_argument_block_size): Align to STACK_BOUNDARY only for
4175 ACCUMULATE_OUTGOING_ARGS.
4176 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
4178 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
4179 (use_crosses_set_p): Likewise.
4180 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
4181 #define ACCUMULATE_OUTGOING_ARGS 1.
4182 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
4184 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
4186 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
4187 (TARGET_SWITCHES): Add push-args, no-push-args,
4188 accumulate-outgoing-args and no-accumulate-outgoing-args.
4189 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
4190 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
4191 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
4193 (emit_push_insn): Likewise.
4194 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
4195 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
4196 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
4197 (STACK_DYNAMIC_OFFSET): Define correctly for both
4198 ACCUMULATE_OUTGOING_ARGS and normal mode.
4199 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
4200 * tm.texi (PUSH_ARGS): Document.
4201 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
4203 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
4205 * flags.h (flag_optimize_sibling_calls): Declare.
4206 * calls.c (expand_call): Fail sibcall when
4207 !flag_optimize_sibling_calls
4208 * invoke.texi (flag_optimize_sibling_calls): Document.
4209 * toplev.c (flag_optimize_sibling_calls): New global variable.
4210 (f_options): Add flag_optimize_sibling_calls.
4211 (rest_of_compilation): Conditionize
4212 optimize_sibling_and_tail_recursive_calls by
4213 flag_optimize_sibling_calls.
4214 (main): Set flag_optimize_sibling_calls for -O2.
4215 * stmt.c (expand_return): Conditionize tail recursion by
4216 flag_optimize_sibling_calls.
4218 2000-03-29 Richard Henderson <rth@cygnus.com>
4220 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
4221 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
4223 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
4225 * except.c (add_eh_table_entry): Mark type_info's as referenced.
4227 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4229 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
4231 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
4232 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
4233 * config/rs6000/aix.h: then modified likewise.
4235 2000-03-28 Richard Henderson <rth@cygnus.com>
4237 * rtl.h: Redistribute enum reg_note documentation.
4238 Kill trailing whitespace.
4239 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
4240 Kill trailing whitespace.
4242 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
4244 * cppfiles.c (hash_IHASH): Just return i->hash.
4245 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
4246 htab_find_with_hash.
4247 (cpp_read_file): Likewise.
4248 (find_include_file): Likewise. Properly initialize
4249 ih->nshort. Share ih->name and ih->nshort if possible.
4250 * cpphash.c (_cpp_calc_hash): New function.
4251 (hash_HASHNODE): Just return h->hash.
4252 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
4253 htab_find_with_hash.
4254 * cpphash.h: Prototype _cpp_calc_hash.
4255 * cppinit.c (initialize_builtins): Provide a valid hash
4256 to _cpp_make_hashnode, using _cpp_calc_hash.
4258 * cpphash.c (collect_expansion): # is not a special character
4259 in object-like macros. In -traditional mode, /**/ is not
4260 token paste at the beginning or end of the line.
4261 * cpplib.c (do_include, do_import, do_include_next): If
4262 parse_include fails, return immediately.
4264 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
4266 * config/arm/arm.md (return peepholes): Update to reflect the new
4268 * config/arm/arm.c (arm_volatile_func): Also check
4269 current_function_nothrow.
4270 (output_return_instruction, output_func_prologue): Use it.
4271 (arm_output_epilogue, arm_expand_prologue): Likewise.
4273 2000-03-27 Tom Tromey <tromey@cygnus.com>
4275 * gcc.c (handle_braces): In {x*...} case, break out of loop if
4278 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4280 * expr.c (store_constructor): SIZE now signed.
4281 For EXPR_SIZE, don't evaluate size; just needed if constant.
4282 * fold-const.c (fold): Fix a number of cases when folded tree is
4284 * function.c (flush_addressof): Reenable.
4285 * tree.h (flush_addressof): Likewise.
4286 * toplev.c (independent_decode_option): Look at strings_processed.
4287 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
4289 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
4291 * sibcall.c (indentify_call_return_value): Find last call in the chain;
4292 Allow stack adjustment after function call.
4294 * regmove.c (struct csa_memlist): Make mem field rtx *.
4295 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
4296 (try_apply_stack_adjustment): Replace whole MEM rtx.
4297 (combine_stack_adjustments_for_block): Update calls
4298 to record_one_stack_ref.
4300 2000-03-28 Neil Booth <NeilB@earthling.net>
4302 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
4303 '\\' rather than a null character, so nulls are not special. Fix
4304 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
4305 speed trigraph conversion.
4306 (_cpp_init_input_buffer): Initialize trigraph map.
4308 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4310 * config/i386/i386.c (output_387_binary_op): Correct intel
4311 mode assembly output, and add spaces after commas in AT&T
4312 output. Correct Unixware assembler comment. Document input
4313 constraints. Comment fp operations. Reduce profligate buffer
4314 size. Remove extraneous abort. Localize temp var.
4315 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
4316 (output_fix_trunc): Add spaces after commas in assembly output.
4318 2000-03-27 Richard Henderson <rth@cygnus.com>
4320 * i386-protos.h (ix86_match_ccmode): Declare.
4321 * i386.c (ix86_match_ccmode): New.
4322 (ix86_expand_fp_compare): Update for pattern renames.
4323 (ix86_expand_strlensi_unroll_1): Likewise.
4324 * i386.h (EXTRA_CC_MODES): Add CCZ.
4325 (SELECT_CC_MODE): Use it for EQ/NE zero.
4326 * i386.md (cmpsi_ccz_1): New.
4328 (*testsi_ccz_1): New.
4329 (testqi_ccz_1): New.
4330 (cmpsi_ccno_1): Rename from cmpsi_0.
4331 (testsi_ccno_1): Rename from testsi_1.
4332 (testqi_ccno_1): Rename from testqi_1.
4333 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
4334 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
4335 (*cmphi_0): Use ix86_match_ccmode.
4336 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
4337 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
4338 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
4339 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
4340 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
4341 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
4342 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
4343 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
4344 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
4345 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
4346 (appropriate peepholes): Likewise.
4347 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
4348 (*subsi_3, *subhi_3, *subqi_3): Remove.
4349 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
4350 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
4351 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
4352 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
4353 (x86_shift_adj_1): Use CCZ.
4354 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
4356 2000-03-27 Stan Cox <scox@cygnus.com>
4358 * resource.h (mark_resource_type): New.
4359 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
4360 find_free_register): Use mark_resource_type.
4361 (mark_set_resources): Change include_delayed_effects
4362 to mark_resource_type.
4363 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
4364 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
4365 Use mark_resource_type.
4367 2000-03-27 Richard Henderson <rth@cygnus.com>
4369 * i386.md (call_pop_0, call_value_pop_0): New.
4370 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
4371 (call_value_pop_1): Likewise.
4372 (call_0, call_value_0): New.
4373 (call_1, call_value_1): Remove constraint from unused arg.
4375 2000-03-27 Nick Clifton <nickc@cygnus.com>
4377 * invoke.texi (Spec Files): Document new spec % command created by
4378 Tom Tromey's recent patch.
4380 2000-03-27 Jakub Jelinek <jakub@redhat.com>
4382 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
4385 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4387 * expr.c (expand_assignment): Fix typo in last change.
4389 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
4391 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4393 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
4394 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
4395 and DECL_INLINE if FUNCTION_DECL.
4396 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
4397 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
4398 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
4399 (combine_parm_decls): Likewise.
4400 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
4401 * print-tree.c (print_node): Likewise.
4402 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
4403 DECL_TRANSPARENT_UNION on proper decl types.
4404 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
4405 * stor-layout.c (layout_decl): Only check DECL_PACKED and
4406 DECL_BIT_FIELD of FIELD_DECL.
4407 * tree.h (DECL_RESULT_FLD): New macro.
4409 * expr.c (expand_assignment): Add code to handle variable-sized
4412 2000-03-26 Richard Henderson <rth@cygnus.com>
4414 * calls.c (expand_call): Pass parms not original exp to
4415 optimize_tail_recursion. Mind return value instead of looking
4417 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
4418 call_expr. Move checks for call_expr and current_function_decl ...
4419 (expand_return): ... here.
4421 2000-03-26 Tom Tromey <tromey@cygnus.com>
4423 * gcc.c (handle_braces): Recognize `%{<S}' construct.
4424 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
4426 (process_command): Use them.
4427 (check_live_switch): Likewise.
4428 (give_switch): Skip ignored switches.
4430 2000-03-26 Jan Hubicka <jh@suse.cz>
4432 * jump.c (jump_optimize_1): Fix typo in elide optimizations
4433 for minimal jump pass test.
4435 2000-03-26 Mark Mitchell <mark@codesourcery.com>
4437 * integrate.c (function_cannot_inline_p): Do inline functions that
4440 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4442 * stor-layout.c (layout_type, set_sizetype): early_type_list is
4443 now a list of TREE_LIST entries, not types.
4444 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
4446 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
4447 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
4449 * config/mips/mips.c (function_arg): Likewise; also remove cast
4450 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
4451 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
4452 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
4453 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
4454 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
4455 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
4456 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
4457 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
4458 num_adjusts now unsigned.
4459 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
4460 * config/sparc/sparc.c (struct function_arg_record_value_parms):
4462 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
4463 as is BITPOS variable; use host_integerp and int_bit_position.
4464 (function_arg_record_value_2): Likewise.
4465 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
4466 Variable REGNO now unsigned.
4467 (function_arg_record_value): NREGS now unsigned.
4469 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
4471 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
4473 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4475 * Rework fields used to describe positions of bitfields and
4476 modify sizes to be unsigned and use HOST_WIDE_INT.
4477 * alias.c (reg_known_value_size): Now unsigned.
4478 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
4479 (really_start_incremental_init): Use bitsize_zero_node.
4480 (push_init_level, pop_init_level, output_init_element): Likewise.
4481 Use bitsize_unit_node and bitsize_one_node.
4482 (output_pending_init_elements, process_init_element): Likewise.
4483 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
4484 (make_extraction): Position and length HOST_WIDE_INT and unsigned
4485 HOST_WIDE_INT, respectively.
4486 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
4487 (num_sign_bit_copies): Returns unsigned.
4488 BITWIDTH now unsigned; rework arithmetic.
4489 Remove recursive call from arg to MAX.
4490 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
4491 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
4493 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
4494 (find_split_point, expand_compound_operation, make_extraction): LEN
4495 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
4496 (make_field_assignment): Likewise.
4497 (combine_simplify_rtx): Add cast.
4498 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
4499 (force_to_mode): WIDTH now unsigned; add cast.
4500 (if_then_else_cond): SIZE now unsigned.
4501 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
4502 (extended_count): Now returns unsigned.
4503 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
4504 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
4505 (simplify_comparison): MODE_WIDTH now unsigned.
4506 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
4507 (mark_used_regs_combine): Likewise; rework arithmetic.
4508 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
4509 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
4510 (record_promoted_value): REGNO now unsigned.
4511 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
4512 (get_last_value): REGNO now unsigned.
4513 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
4514 (reg_dead_regno, reg_dead_endregno): Now unsigned.
4515 (remove_death): Arg REGNO now unsigned.
4516 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
4517 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
4519 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
4520 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
4521 (struct cse_reg_info): REGNO now unsigned.
4522 (cached_regno): Now unsigned.
4523 (REGNO_QTY_VALID_P): Add cast.
4524 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
4525 (remove_invalid_regs): Likewise.
4526 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
4527 as are variables END and I.
4528 (get_cse_reg_info, insert): Likewise.
4529 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
4530 (canon_hash): Likewise.
4531 (insert_regs, lookup_for_remove): REGNO now unsigned.
4532 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
4534 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
4535 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
4536 * emit-rtl.c (subreg_realpart_p): Add cast.
4537 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
4538 (operand_subword_force): Arg I is now unsigned.
4539 * except.c (eh_regs): Variable I is now unsigned.
4540 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
4541 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
4542 length is unsigned HOST_WIDE_INT; likewise for internal variables.
4543 (store_split_bit_field, extract_fixed_bit_field): Likewise.
4544 (extract_split_bit_field, store_bit_field, extract_bit_field):
4546 * expr.c (store_constructor_fields, store_constructor, store_field):
4547 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
4548 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
4549 (do_jump): Likewise.
4550 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
4551 MAX_SIZE is now unsigned.
4552 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
4553 (emit_group_store): Likewise.
4554 (emit_move_insn): I now unsigned.
4555 (store_constructor): Use host_integerp, tree_low_cst, and
4557 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
4558 Rework all calculations to use trees and new fields.
4559 * expr.h (promoted_input_arg): Regno now unsigned.
4560 (store_bit_field, extract_bit_field): Adjust types of pos and size.
4561 (mark_seen_cases): Arg is HOST_WIDE_INT.
4562 * flow.c (verify_wide_reg_1): REGNO now unsigned.
4563 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
4564 precisions and alignments are unsigned.
4565 (optimize_bit_field_compare, fold_truthop): Likewise.
4566 (int_const_binop): Adjust threshold for size_int_type_wide call.
4567 (fold_convert): Likewise.
4568 (size_int_type_wide): Make table larger and fix thinko that only
4569 had half of table used.
4570 (all_ones_mask_p, fold): Precisions are unsigned.
4571 * function.c (put_reg_info_stack): REGNO is unsigned.
4572 (instantiate_decl): Size is HOST_WIDE_INT.
4573 (instantiate_virtual_regs): I is unsigned.
4574 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
4575 (promoted_input_arg): REGNO is unsigned.
4576 * function.h (struct function): x_max_parm_reg is now unsigned.
4577 * gcse.c (max_gcse_regno): Now unsigned.
4578 (struct null_pointer_info): min_reg and max_reg now unsigned.
4579 (lookup_set, next_set): REGNO arg now unsigned.
4580 (compute_hash_table): REGNO and I now unsigned.
4581 (handle_avail_expr): regnum_for_replacing now unsigned.
4582 (cprop_insn): REGNO now unsigned.
4583 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
4584 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
4585 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
4586 * hard-reg-set.h (reg_class_size): Now unsigned.
4587 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
4588 * jump.c (mark_modified_reg): I now unsigned; add cast.
4589 (rtx_equal_for_thread_p): Add cast.
4590 * loop.c (max_reg_before_loop): Now unsigned.
4591 (struct_movable): REGNO now unsigned.
4592 (try_copy_prop): REGNO arg unsigned.
4593 (regs_match_p): XN and YN now unsigned.
4594 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
4595 (strength_reduce): Likewise; NREGS also unsigned.
4596 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
4597 * loop.h (struct iv_class): REGNO now unsigned.
4598 (max_reg_before_loop, first_increment_giv, last_increment_giv):
4600 * machmode.h (mode_size, mode_unit_size): Now unsigned.
4601 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
4602 * optabs.c (expand_binop): I and NWORDS now unsigned.
4603 (expand_unop): I now unsigned.
4604 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
4605 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
4606 * real.c (significand_size): Now returns unsigned.
4607 * real.h (significand_size): Likewise.
4608 * regclass.c (reg_class_size): Now unsigned.
4609 (choose_hard_reg_mode): Both operands now unsigned.
4610 (record_reg_classes): REGNO and NR now unsigned.
4611 (reg_scan): NREGS now unsigned.
4612 (reg_scan_update): old_max_regno now unsigned.
4613 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
4614 * reload.c (find_valid_class): BEST_SIZE now unsigned.
4615 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
4616 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
4617 Likewise for variable R.
4618 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
4619 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
4620 (find_equiv_reg): Add casts.
4621 (regno_clobbered_p): Arg REGNO now unsigned.
4622 * reload.h (struct reload): NREGS now unsigned.
4623 (refers_to_regno_for_reload_p): Regno args are unsigned.
4624 (regno_clobbered_p): Likewise.
4625 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
4626 (compute_use_by_pseudos): REGNO now unsigned.
4627 (find_reg): I and J now unsigned, new variable K, and change loop
4628 variables accordingly; THIS_NREGS now unsigned.
4629 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
4630 (spill_hard_reg): REGNO arg now unsigned; add casts.
4631 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
4632 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
4633 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
4634 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
4635 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
4636 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
4637 (emit_reload_insns): REGNO now unsigned.
4638 (reload_cse_move2add): Add cast.
4639 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
4641 * resource.c (mark_referenced_resources, mark_set_resources): New
4642 variable R; REGNO and LAST_REGNO now unsigned.
4643 (mark_target_live_regs): J and REGNO now unsigned.
4644 * rtl.c (mode_size, mode_unit_size): Now unsigned.
4645 * rtl.h (union rtunion_def): New field rtuint.
4646 (XCUINT): New macro.
4647 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
4648 (operand_subword, operand_subword_force): Word number is unsigned.
4649 (choose_hard_reg_mode): Operands are unsigned.
4650 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
4651 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
4652 (regno_use_in, combine_instructions, remove_death): Likewise.
4653 (reg_scan, reg_scan_update): Likewise.
4654 (extended_count): Return is unsigned.
4655 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
4656 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
4657 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
4658 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
4659 (reg_reg_last_1): FIRS and LAST now unsigned.
4660 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
4661 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
4663 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
4664 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
4665 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
4666 (replace_regs): Arg NREGS now unsigned.
4667 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
4668 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
4669 (simplify_binary_operation): Likewise.
4670 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
4671 THIS_LAST now unsigned.
4672 (cselib_record_set): Add cast.
4673 * ssa.c (ssa_max_reg_num): Now unsigned.
4674 (rename_block): REGNO now unsigned.
4675 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
4677 (all_cases_count): Just return -1 not -2.
4678 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
4679 Rework tests to use trees whenever possible.
4680 Use host_integerp and tree_low_cst.
4681 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
4682 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
4683 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
4684 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
4685 (smallest_mode_for_size): Likewise.
4686 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
4687 KNOWN_ALIGN is now an alignment, so simplify code.
4688 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
4689 (start_record_layout): Renamed from new_record_layout_info.
4690 Update to new fields.
4691 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
4693 (place_union_field): Renamed from layout_union_field.
4694 Update to use new fields in rli.
4695 (place_field): Renamed from layout_field.
4696 Major rewrite to use new fields in rli; pass alignment to layout_decl.
4697 (finalize_record_size): Rework to use new fields in rli and handle
4699 (compute_record_mode): Rework to simplify and to use new DECL fields.
4700 (finalize_type_size): Make rounding more consistent.
4701 (finish_union_layout): Deleted.
4702 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
4703 (layout_type, case RECORD_TYPE): Call new function names.
4704 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
4705 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
4706 (get_best_mode): UNIT is now unsigned; remove casts.
4707 * tree.c (bit_position): Compute from new fields.
4708 (byte_position, int_byte_position): New functions.
4709 (print_type_hash_statistics): Cast to remove warning.
4710 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
4711 (build_index_type): Likewise; make subtype of sizetype.
4712 (build_index_2_type): Pass sizetype to build_range_type.
4713 (build_common_tree_nodes): Use size_int and bitsize_int to
4714 initialize nodes; add bitsize_{zero,one,unit}_node.
4715 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
4716 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
4717 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
4718 (DECL_FIELD_BITPOS): Deleted.
4719 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
4720 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
4721 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
4722 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
4723 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
4724 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
4725 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
4726 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
4727 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
4728 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
4729 (DECL_ALIGN): Adjust to new field in union.
4730 (DECL_OFFSET_ALIGN): New field.
4731 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
4732 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
4733 (union tree_decl): Add struct for both aligns.
4734 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
4735 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
4736 (struct record_layout_info): Rework fields to have offset
4737 alignment and byte and bit position.
4738 (start_record_layout, place_field): Renamed from old names.
4739 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
4740 (byte_position, int_byte_position): Likewise.
4741 (get_inner_reference): Change types of position and length.
4742 * unroll.c (unroll_loop): New variable R; use for some loops.
4743 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
4744 (calculate_giv_inc): Arg REGNO now unsigned.
4745 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
4746 * varasm.c (assemble_variable): Clean up handling of size using
4747 host_integerp and tree_low_cst.
4748 (decode_addr_const): Use byte, not bit, position.
4749 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
4750 use tree_low_cst and int_bit_position.
4751 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
4753 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
4755 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
4756 (reorder_block_def): New members eff_head and eff_end.
4757 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
4758 (verify_insn_chain): New function.
4759 (skip_insns_between_block): Add code to skip deleted insns.
4760 Check for note before using.
4761 (chain_reorder_blocks): Replace calls to skip_insns_between_block
4762 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
4763 Check for note before using.
4764 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
4765 (fixup_reorder_chain): Restructure, clean up, defect removal.
4766 (reorder_basic_blocks): Remove last_insn and references to it.
4767 Moved insn chain verification code into a new function (see above).
4768 Delete defective code that sets last insn.
4769 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
4772 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4774 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
4776 2000-03-24 Richard Henderson <rth@cygnus.com>
4778 * tree.c (lang_safe_for_unsave): Remove.
4779 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
4780 allowing for two levels of unsafeness. Remove lang hook.
4781 * tree.h: Update declarations.
4782 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
4783 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
4784 Always fail sibcalls when there are pending cleanups.
4786 2000-03-24 Geoff Keating <geoffk@cygnus.com>
4788 * flow.c (propagate_block): When we delete an ADDR_VEC,
4789 also delete the BARRIER following it if there is one.
4791 2000-03-24 Richard Henderson <rth@cygnus.com>
4793 * builtins.c (expand_builtin_bzero): Convert `length' argument
4796 2000-03-24 Jakub Jelinek <jakub@redhat.com>
4798 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
4799 comparison if regno's are equal.
4800 * calls.c (initialize_argument_informat): Add ecf_flags argument.
4801 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
4802 (expand_call): Update caller.
4803 Avoid making a sibling call if argument size of the callee is larger
4804 than argument size of the caller.
4805 Call hard_function_value with outgoing set if in sibcall pass.
4806 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
4808 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
4809 Change LEAF_REGISTERS from an array initializer to actual array
4810 identifier. Move static global variable into the function.
4811 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
4812 sequences for leaf functions.
4813 * global.c (global_alloc): Likewise.
4814 * tm.texi (LEAF_REGISTERS): Update documentation.
4816 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
4817 TARGET_FLAT leaf disabling hack.
4818 (LEAF_REGISTERS): Changed from an array initializer to actual array
4819 identifier to avoid duplication and remove the above hack.
4820 (FUNCTION_OK_FOR_SIBCALL): Define.
4821 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
4822 always like call attribute.
4823 (eligible_for_sibcall_delay): New attribute.
4824 (sibcall): New delay type.
4825 (sibcall, sibcall_value, sibcall_epilogue): New expands.
4826 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
4827 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
4828 * config/sparc/sparc.c (sparc_leaf_regs): New array.
4829 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
4831 (output_function_epilogue): Move part of the code into
4832 output_restore_regs.
4833 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
4835 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
4838 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
4839 until infrastructure is finished.
4841 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
4843 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
4844 (save_parm_insns): Not here.
4846 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4848 * builtins.c (expand_builtin_bzero): New function.
4849 (expand_builtin): Handle bzero.
4851 * builtins.def: Add BUILT_IN_BZERO.
4853 * c-common.c (c_common_nodes_and_builtins): Provide builtin
4854 prototype & function for bzero.
4856 2000-03-23 Michael Meissner <meissner@redhat.com>
4858 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
4859 change adding TARGET_FP to the TF floating point insns, except for
4860 trunctfsf2, which generates direct calls to truncdfsf2.
4862 2000-03-23 Geoff Keating <geoffk@cygnus.com>
4864 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
4865 try to protect against middle-end changes that break binary
4867 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
4869 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4871 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
4873 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4875 * calls.c (expand_call): If TARGET is passed by reference and
4876 is readonly, write a CLOBBER.
4878 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4880 * builtins.c (expand_builtin): Handle bcmp.
4882 * builtins.def: Add BUILT_IN_BCMP.
4884 * c-common.c (c_common_nodes_and_builtins): Provide builtin
4885 prototype & function for bcmp.
4887 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
4889 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
4890 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
4891 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
4893 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
4895 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
4896 alternative when using -fp64 -gp32.
4898 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
4900 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
4901 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
4902 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
4904 * frame.h (frame_state): Revert last change.
4905 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
4906 * libgcc2.c (throw_helper): Revert last change.
4908 2000-03-22 Richard Henderson <rth@cygnus.com>
4910 * stmt.c (expand_asm_operands): Don't promote the temporary.
4912 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4914 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
4915 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
4916 c_get_alias_set): Likewise.
4917 * c-decl.c (duplicate_decls): Likewise.
4918 * c-typeck.c (default_conversion,build_unary_op): Likewise.
4919 * calls.c (initialize_argument_information): Likewise.
4920 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
4922 * dwarfout.c (decl_class_context,output_type): Likewise.
4923 * expr.c (get_inner_reference): Likewise.
4924 * fold-const.c (simple_operand_p,fold): Likewise.
4925 * function.c (aggregate_value_p): Likewise.
4926 * stmt.c (expand_asm_operands): Likewise.
4927 * varasm.c (named_section): Likewise.
4929 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
4931 Implement dwarf2 exception handling for the ARM.
4932 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
4933 (DWARF_FRAME_RETURN_COLUMN): Define.
4934 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
4935 REG_FRAME_RELATED_EXPR note.
4936 (emit_sfm): Likewise.
4937 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
4938 * dwarf2out.c (reg_save): Handle saving a register to itself.
4939 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
4940 * except.c (eh_regs): Don't use the static chain reg if it's
4942 * frame.h (frame_state): Add cfa_saved field.
4943 * frame.c (execute_cfa_insn): Set it.
4944 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
4946 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
4948 (instantiate_virtual_regs): Adjust.
4950 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
4951 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
4952 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
4954 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
4955 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
4957 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4959 * builtins.def: New file.
4961 * Makefile.in (TREE_H): Depend on builtins.def.
4963 * builtins.c (built_in_names): Use builtins.def.
4965 * tree.h (built_in_function): Likewise.
4967 2000-03-22 Mark Mitchell <mark@codesourcery.com>
4969 * tree.c (size_in_bytes): Return size_zero_node, not
4972 2000-03-22 Geoff Keating <geoffk@cygnus.com>
4974 * config/fp-bit.c (pack_d): Correct the case when a denormal
4975 is rounded up and stops being denormal.
4977 2000-03-21 Richard Henderson <rth@cygnus.com>
4979 * config/alpha/alpha.c (function_arg): Check for void_type_node
4980 before using MUST_PASS_IN_STACK.
4982 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
4984 * regmove.c (combine_stack_adjustments_for_block): Check that
4985 the stack pointer is a valid memory address.
4987 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
4989 * calls.c: re-install Mar 16 emit_library_call merge.
4991 2000-03-21 Jakub Jelinek <jakub@redhat.com>
4993 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
4994 we cannot be sure that if reload_completed base register will
4995 be properly aligned.
4997 2000-03-21 Richard Henderson <rth@cygnus.com>
4999 * flow.c (delete_block): Fix typo last change.
5001 2000-03-21 Mark Mitchell <mark@codesourcery.com>
5003 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
5004 not COMPLETE_TYPE_P, to check the type of the expression.
5006 2000-03-21 Michael Meissner <meissner@redhat.com>
5008 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
5009 all floating point insns that just tested the macro
5010 TARGET_HAS_XFLOATING_LIBS.
5011 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
5012 used to only use the gprs.
5014 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
5016 * tree.h (COMPLETE_TYPE_P): New macro.
5017 (COMPLETE_OR_VOID_TYPE_P): New macro.
5018 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
5019 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
5020 * c-aux-info.c (gen_type): Use them.
5021 * c-common.c (c_expand_expr_stmt): Likewise.
5022 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
5023 grokdeclarator, grokparms, finish_struct, start_function,
5024 store_parm_decls, combine_parm_decls): Likewise.
5025 * c-parse.y (cast_expr): Likewise.
5026 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
5027 c_size_in_bytes, c_alignof, build_component_ref,
5028 build_indirect_ref, build_array_ref, convert_arguments,
5029 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
5030 * calls.c (initialize_argument_information): Likewise.
5031 * convert.c (convert_to_integer): Likewise.
5032 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
5033 * dwarfout.c (location_or_const_value_attribute,
5034 output_enumeration_type_die, output_structure_type_die,
5035 output_union_type_die, output_type): Likewise.
5036 * expr.c (safe_from_p, expand_expr): Likewise.
5037 * function.c (assign_parms): Likewise.
5038 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
5039 * tree.c (build_array_type, build_function_type,
5040 build_method_type, build_offset_type, build_complex_type): Likewise.
5041 * c-parse.c, c-parse.h: Regenerated.
5043 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5045 * config/c4x/rtems.h: Include config/rtems.h.
5047 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
5049 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
5050 decl is a FUNCTION_DECL
5052 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
5054 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
5055 function uses output registers. Don't save RP for leaf functions.
5056 Do save RP even if no epilogue.
5057 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
5058 (CALL_USED_REGISTERS): Unmark in registers.
5059 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
5062 2000-03-20 Geoff Keating <geoffk@cygnus.com>
5064 * config/rs6000/rs6000.md (bunordered): New expander.
5065 (bordered): New expander.
5066 (buneq): New expander.
5067 (bunge): New expander.
5068 (bungt): New expander.
5069 (bunle): New expander.
5070 (bunlt): New expander.
5071 (bltgt): New expander.
5073 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
5074 (ccr_bit_negated_p): New function.
5075 (print_operand): For %C, generate appropriate cror for UNEQ,
5076 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
5078 2000-03-20 Andreas Jaeger <aj@suse.de>
5080 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
5083 * tree.h (safe_for_unsave): Prototype.
5085 2000-03-20 Richard Henderson <rth@cygnus.com>
5087 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
5088 (combine_stack_adjustments_for_block): Don't allow sp references
5089 in the side of a set we're not fixing up.
5090 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
5091 after life_analysis.
5093 2000-03-20 Richard Henderson <rth@cygnus.com>
5095 * calls.c (expand_call): Don't bother generating tail call
5096 sequences if there are pending cleanups. Use
5097 expand_start_target_temps/expand_end_target_temps to elide
5098 cleanups created during sibcall expansion.
5100 2000-03-20 Geoff Keating <geoffk@cygnus.com>
5102 * configure.in: Set $IFS to a value if it doesn't already have one
5103 in the --enable-checking handling.
5104 * configure: Regenerate.
5106 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5108 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
5109 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
5112 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
5114 * jump.c (delete_noop_moves): Remove code attempting to
5115 combine stack adjustments.
5117 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5119 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
5120 * except.c (emit_cleanup_handler): Use them.
5121 (expand_end_all_catch): Likewise.
5122 * function.c (fixup_var_refs): Likewise.
5123 (expand_function_end): Clear catch_clauses_last.
5124 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
5125 * except.h (struct eh_status): New field x_catch_clauses_last.
5126 (catch_clauses_last): New define.
5128 * Makefile.in (tree.o): Depend on HASHTAB_H.
5129 * tree.c: Include hashtab.h.
5130 (struct type_hash): Remove next field.
5131 (TYPE_HASH_SIZE): Remove.
5132 (TYPE_HASH_INITIAL_SIZE): New define.
5133 (type_hash_table): Change type to htab_t.
5134 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
5135 mark_hash_entry): New functions.
5136 (init_obstacks): Allocate type hash.
5137 (type_hash_lookup): Use htab functions.
5138 (type_hash_add, mark_type_hash): Likewise.
5139 (dump_tree_statistics): Call print_type_hash_statistics.
5141 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5143 * rs6000/t-aix41: New file.
5145 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
5147 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
5149 * tm.texi (Driver): Fix typos and tweak entry for
5151 Move misplaced STRUCT_FORCE_BLK entry ...
5152 (Storage Layout): ... to here.
5153 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
5155 2000-03-19 Richard Henderson <rth@cygnus.com>
5157 * flow.c (delete_block): Delete the addr_vec along with the block.
5158 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
5161 * fold-const.c (extract_muldiv): Apply type check for defined
5162 overflow to multiply as well as divide.
5164 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
5166 2000-03-18 Mark Mitchell <mark@codesourcery.com>
5168 * emit-rtl.c (remove_unncessary_notes): Check that all
5169 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
5170 associated NOTE_BLOCK.
5171 * function.h (identify_blocks): Update comments.
5172 (reorder_blocks): Declare.
5173 * function.c (identify_blocks): Don't take paramters.
5174 (reorder_blocks): Don't take parameters.
5175 * loop.h (find_loop_tree_blocks): Remove.
5176 (unroll_block_trees): Likewise.
5177 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
5178 reorder_blocks instead of unroll_block_trees.h
5179 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
5180 * stmt.c (find_loop_tree_blocks): Remove.
5181 (unroll_block_trees): Likewise.
5182 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
5183 in whole-function mode.
5184 * tree.h (reorder_blocks): Remove declaration.
5186 * expr.c: Include intl.h.
5187 * Makefile.in (expr.o): Depend on intl.h.
5189 2000-03-18 Richard Henderson <rth@cygnus.com>
5191 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
5193 2000-03-18 Mark Mitchell <mark@codesourcery.com>
5195 * tree.h (tree_index): Remove enumerals for integer types.
5196 (integer_type_kind): New type.
5197 (integer_types): New variable.
5198 (char_type_node): Adjust.
5199 (signed_char_type_node): Likewise.
5200 (unsigned_char_type_node): Likewise.
5201 (short_integer_type_node): Likewise.
5202 (short_unsigned_type_node): Likewise.
5203 (integer_type_node): Likewise.
5204 (unsigned_type_node): Likewise.
5205 (long_integer_type_node): Likewise.
5206 (long_unsigned_type_node): Likewise.
5207 (long_long_integer_type_node): Likewise.
5208 (long_long_unsigned_type_node): Likewise.
5209 * tree.c (integer_types): New variable.
5210 (init_obstacks): Register it as a root.
5212 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
5214 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
5215 NEXT_INSN. Update last insn in chain.
5217 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
5219 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
5220 with TYPE_DECL_SUPPRESS_DEBUG set.
5222 2000-03-18 Richard Henderson <rth@cygnus.com>
5224 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
5226 2000-03-18 Richard Henderson <rth@cygnus.com>
5228 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
5229 care for HALF_PIC_P.
5230 (expander_call_insn_operand): Remove.
5231 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
5232 * i386.h (PREDICATE_CODES): Update.
5233 * i386.md (all call expanders): Remove predicates, remove special
5234 handling for half-pic.
5235 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
5236 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
5237 (sibcall_epilogue): New.
5239 2000-03-17 Richard Henderson <rth@cygnus.com>
5241 * rtlanal.c (single_set): Reject if the parallel has anything
5242 except SET or USE or CLOBBER.
5244 2000-03-17 Jeff Law <law@cygnus.com>
5245 Richard Henderson <rth@cygnus.com>
5247 * Makefile.in (OBJS): Add sibcall.o.
5249 * sibcall.c: New file.
5250 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
5251 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
5252 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
5253 Emit sibcall patterns when requested. Update all callers.
5254 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
5255 elimination seems feasable.
5256 * final.c (leaf_function_p): Sibling calls don't discount being
5258 * flow.c (HAVE_sibcall_epilogue): Provide default.
5259 (find_basic_blocks_1): Sibling calls don't throw.
5260 (make_edges): Make edge from sibling call to EXIT.
5261 (propagate_block): Don't remove sibcall_epilogue insns.
5262 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
5263 (sibcall_epilogue): New.
5264 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
5265 (identify_blocks_1): Likewise. Break out from ...
5266 (identify_blocks): ... here.
5267 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
5268 (reorder_blocks): ... here.
5269 (init_function_for_compilation): Zap prologue/epilogue as varrays.
5270 (record_insns): Extend a varray instead of mallocing new memory.
5271 (contains): Read a varray not array of ints.
5272 (sibcall_epilogue_contains): New.
5273 (thread_prologue_and_epilogue_insns): Emit and record
5274 sibcall_epilogue patterns.
5275 (init_function_once): Allocate prologue/epilogue varrays.
5276 * genflags.c (gen_insn): Treat sibcall patterns as calls.
5277 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
5279 (save_for_inline_nocopy): ... here.
5280 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
5282 (expand_inline_function): ... here.
5283 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
5284 (subst_constants): Handle 'n' formats.
5285 * jump.c (jump_optimize_minimal): New.
5286 (jump_optimize_1): New arg `minimal'; update callers. Elide most
5287 optimizations if it's set.
5288 * rtl.c (copy_rtx): Do copy jump & call for insns.
5289 * rtl.h (struct rtx_def): Document use of jump and call for insns.
5290 (SIBLING_CALL_P): New.
5291 (sibcall_use_t): New.
5292 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
5293 Invoke optimize_sibling_and_tail_recursive_calls.
5294 * tree.c (lang_safe_for_unsave): New.
5295 (safe_for_unsave): New.
5296 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
5298 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
5299 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
5300 (*sibcall_osf_1, *sibcall_value_osf_1): New.
5302 2000-03-17 Mark Mitchell <mark@codesourcery.com>
5304 * objc/objc-act.c (encode_method_prototype): Pass types, not
5305 PARM_DECLs, to int_size_in_bytes.
5307 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
5309 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
5311 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5312 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
5314 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5316 * Clean up usages of TREE_INT_CST_LOW.
5317 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
5318 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
5320 * c-tree.h (min_precision): Move declaration to here.
5321 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
5322 (build_unary_op, add_pending_init): Use bit_position.
5323 (pending_init_member, process_init_element): Likewise.
5324 (really_start_incremental_init, push_init_level, pop_init_level):
5325 Don't make copies of nodes or modify them in place, use consistent
5326 types when tracking positions, and use tree routines computations.
5327 (set_init_index, output_init_element): Likewise.
5328 (output_pending_init_elements, process_init_element): Likewise.
5329 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
5330 tree_low_cst and int_bit_position; also minor cleanup.
5331 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
5332 (print_cst_octal): Precision is unsigned.
5333 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
5334 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
5335 (simple_type_align_in_bits): Result is unsigned int.
5336 Use tree_int_low_cst and host_integerp.
5337 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
5338 (field_byte_offset): Result is HOST_WIDE_INT.
5339 Change types of internal variables so alignments are unsigned int,
5340 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
5341 Use host_integerp, tree_low_cst, and int_bit_position.
5342 (add_bit_offset_attribute): Likewise.
5343 (add_data_member_location_attribute): Use tree_cst_low.
5344 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
5345 (add_bit_size_attribute): Use tree_low_cst.
5346 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
5347 * dwarfout.c: Similar changes to dwarf2out.c.
5348 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
5349 * genoutput.c (n_occurences): Return -1 for null string.
5350 (strip_whitespace): Accept null string and make into function.
5351 (scan_operands): Reflect above changes.
5352 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
5353 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
5354 * ssa.c (rename_registers): Add missing cast of arg to bzero.
5355 * tree.c (int_size_in_bytes): Check for too big to represent.
5356 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
5357 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
5359 (min_precision): Delete from here.
5360 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
5361 and int_bit_position.
5362 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
5363 (encode_method_def): Likewise.
5364 (build_ivar_list_initializer): Use int_bit_position.
5365 (generate_shared_structures): Convert size.
5366 (encode_type, encode_complete_bitfield): Use integer_zerop.
5367 (encode_bitfield): Use tree_low_cst and int_bit_position.
5369 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5371 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
5373 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5375 * call.c (special_function_p): It is only malloc if it returns
5378 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5380 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
5381 (C33_FLAG, TARGET_C3X): Add macros.
5382 (TARGET_SWITCHES): Add -m33 option.
5383 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
5385 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5387 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
5388 (PARALLEL_PACK_FLAG): Delete.
5389 (TARGET_SWITCHES): Update.
5390 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
5392 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5394 * fold-const.c (fold): Fix a few cases when the returned result
5395 is not of the same type as the input.
5397 2000-03-16 Nick Clifton <nickc@cygnus.com>
5399 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
5402 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5404 * libgcc2.h: Move prototypes above macros with the same name.
5405 Wrap some function prototypes in the conditional which indicates
5406 whether they are supported, i.e. "BITS_PER_UNIT == 8".
5408 2000-03-16 Richard Henderson <rth@cygnus.com>
5410 * calls.c: Revert last two changes.
5412 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
5414 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
5415 has exponent 0 is a zero.
5417 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
5418 HASH may already be nonzero. Add code/mode into hash value
5419 immediately after repeat label.
5420 (cselib_lookup): Don't leave the hash table in an inconsistent
5421 state before a hash lookup operation.
5423 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
5425 * i386.md (all HI and QI mode non-move patterns): Conditionize
5426 by TARGET_[HQ]IMODE_MATH.
5427 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
5428 x86_promote_qi_regs): Declare.
5429 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
5430 TARGET_PROMOTE_QI_REGS): New macros.
5431 (PROMOTE_MODE): New macro.
5432 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
5433 x86_promote_qi_regs): New global variables.
5435 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
5437 * calls.c (emit_library_call_value_1): Break out from ...; handle
5438 VOIDmode function calls too.
5439 (emit_library_call_value): ... here.
5440 (emit_library_call): Implement by calling emit_library_call_value_1.
5442 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
5444 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
5445 Update arg_space_so_far on stack adjustments.
5446 (emit_library_call, emit_library_call_value): Likewise; take into
5447 account arg_space_so_far and pending_stack_adjust when calculcating
5450 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
5452 * flow.c: Move all basic block reordering code into its own file.
5453 (create_basic_block): Externalize.
5454 * bb-reorder.c: New file. Copy all basic block reordering code from
5455 flow.c to this file.
5456 (reorder_basic_blocks): Fix fencepost error in for-loop.
5457 (reorder_basic_blocks): Remove braces from single statement for-loops.
5458 * basic-block.h: Add declaration for create_basic_block.
5459 * Makefile.in: Add rules for bb-reorder.o.
5461 2000-03-16 Neil Booth <NeilB@earthling.net>
5463 * cppinit.c (handle_option): Implement #unassert directive
5464 as -A- command line option.
5465 (print_help): Update.
5466 * cpptexi.c: Update.
5468 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
5470 * md.texi (Standard Names): Document `jump'.
5472 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
5474 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
5477 2000-03-15 Geoff Keating <geoffk@cygnus.com>
5479 Merge changes from newppc-branch onto trunk.
5481 2000-03-15 Geoff Keating <geoffk@cygnus.com>
5483 * rs6000.c (toc_hash_table): Update for new hash table functions.
5484 (toc_hash_function): Likewise.
5485 (toc_hash_eq): Likewise.
5486 (toc_hash_mark_entry): Likewise.
5487 (toc_hash_mark_table): Likewise.
5488 (output_toc): Likewise.
5489 (rs6000_add_gc_roots): Likewise.
5491 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5493 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
5494 (AR_FLAGS_FOR_TARGET): here. New macro.
5496 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
5498 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
5499 fpmem_operand) Delete.
5501 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
5502 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
5503 (rs6000_save_machine_status, rs6000_restore_machine_status,
5504 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
5505 references to above variables.
5506 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
5507 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
5508 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
5509 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
5510 (XER_REGNO_P, XER_REGNO): New.
5511 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
5512 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
5513 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
5515 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
5516 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
5517 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
5519 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5521 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
5522 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
5523 * rs6000.h: from here.
5525 * rs6000-protos.h (rs6000_select_section): Provide prototype.
5526 (rs6000_select_rtx_section): Likewise.
5527 (rs6000_encode_section_info): Likewise.
5528 (sdata_section): Likewise.
5529 (sdata2_section): Likewise.
5530 (sbss_section): Likewise.
5531 * sysv4.h (rs6000_select_section): Delete prototype.
5532 (rs6000_select_rtx_section): Likewise.
5533 (rs6000_encode_section_info): Likewise.
5534 (sdata_section): Likewise.
5535 (sdata2_section): Likewise.
5536 (sbss_section): Likewise.
5537 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
5539 * sysv4.h: Delete various unnecessary #undef's and put a comment
5540 on the remaining ones.
5541 Change various comments according to coding standard.
5543 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
5545 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
5546 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
5547 (CR0_REGNO_P) Remove.
5548 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
5549 setup_incoming_varargs, mtcrf_operation, print_operand,
5550 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
5551 Use the above macros.
5553 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
5555 * config/rs6000/rs6000.md: Added a new alternative for each
5556 pattern that had a 'x' alternative but no 'y' alternative.
5557 Added a new split for each of the above patterns.
5559 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5561 * aix41.h (ASM_CPU_SPEC): Delete.
5562 (CPP_CPU_SPEC): Delete.
5564 * aix.h (RS6000_OUTPUT_BASENAME): Define.
5565 (ASM_OUTPUT_LABEL): Define.
5566 (ASM_GLOBALIZE_LABEL): Define.
5567 (STRIP_NAME_ENCODING): Define.
5568 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
5569 (STRIP_NAME_ENCODING): Don't define.
5570 (ASM_OUTPUT_LABEL): Don't define.
5571 (ASM_GLOBALIZE_LABEL): Don't define.
5572 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
5573 names, and ASM_OUTPUT_LABEL to output labels, rather than
5575 (ASM_OUTPUT_LABEL): Define.
5576 (ASM_OUTPUT_INT): Use assemble_name.
5577 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
5578 (STRIP_NAME_ENCODING): Don't undefine first.
5579 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
5581 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
5582 specified with 'asm' even with -fleading-underscore.
5583 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
5584 (output_epilog): Likewise.
5585 (output_toc): Likewise.
5586 * tramp.asm: Handle -fleading-underscore correctly.
5588 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
5590 (nonlocal_goto_receiver): Delete.
5591 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
5593 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
5594 (SET_ASM_OP): Define.
5595 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
5597 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
5600 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
5601 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
5603 * rs6000.h: Add 'u' to more constants.
5605 2000-02-18 David Edelsohn <edelsohn@gnu.org>
5607 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
5609 2000-02-15 David Edelsohn <edelsohn@gnu.org>
5611 * rs6000.c (reg_or_u_cint_operand): New function.
5612 (logical_operand): Handle 64-bit hosts.
5613 (logical_u_operand): New function.
5614 (non_logical_cint_operand): Handle 64-bit hosts.
5615 (non_logical_u_cint_operand): New function.
5616 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
5617 (PREDICATE_CODES): Define new functions.
5618 * rs6000-protos.h: Declare new functions.
5619 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
5620 (movdi_64): Bracket code intended for 64-bit hosts. Create
5621 CONST_DOUBLE for 32-bit values.
5622 (scc insns): Generate DImode compares.
5623 (mfcr insns): Create DImode versions.
5624 (sge matchers): New patterns.
5626 2000-02-15 Gabriel Paubert <paubert@iram.es>
5628 * rs6000.md: Correct instructions length attributes and
5629 constraints on unsigned compare instructions.
5630 (*ne0): Disable for PowerPC64.
5632 2000-02-11 Geoff Keating <geoffk@cygnus.com>
5634 * rs6000.c (output_function_profiler): Use .long for a 32-bit
5635 quantity, fix profile1.C test failure under -fPIC.
5637 * rs6000.c: Add 'u' to many constants to suppress warnings.
5638 (constant_pool_expr_1): Make static.
5639 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
5640 * rs6000.h: Add 'u' to many constants to suppress warnings.
5642 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
5643 for the start of the TOC, instead of LCTOC..0.
5644 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
5646 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
5647 (load_toc_aix_di): Use LCTOC..1.
5649 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
5650 * rs6000.c (rs6000_legitimize_address): New function from
5651 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
5652 symbols in the constant pool that really are TOC references.
5653 (print_operand_address): For ELF, write TOC offsets under
5654 -fPIC as subtractions in the insn.
5655 (output_toc): For ELF, define symbols in TOC as normal labels,
5657 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
5658 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
5659 (create_TOC_reference): Prototype only when RTX_CODE is defined.
5660 * rs6000.md (movsi): Only use create_TOC_reference on
5661 symbols in the constant pool that really are TOC references.
5663 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
5664 * rs6000.c (rs6000_reorg): Delete.
5665 * rs6000-protos.h (rs6000_reorg): Delete.
5667 2000-02-09 Geoff Keating <geoffk@cygnus.com>
5669 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
5671 * aix.h (SETUP_FRAME_ADDRESSES): Define.
5672 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
5673 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
5674 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
5675 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
5676 rs6000_aix_emit_builtin_unwind_init.
5677 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
5678 rs6000_emit_eh_toc_restore on AIX.
5679 (return_eh_si): Use r2.
5680 (return_eh_di): Use r2.
5682 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
5683 since we're breaking binary compatibility anyway.
5685 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
5687 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
5688 constant_pool_expr_p): Declare them.
5689 (constant_pool_expr_p): Declare it.
5690 * config/rs6000/rs6000.c (toc_label_name): Define.
5691 (rs6000_override_options): Set toc_label_name.
5692 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
5693 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
5694 uses_TOC): New functions.
5695 (print_operand): Delete old '*' case.
5696 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
5697 and strip off rtl for TOC before calling output_addr_const.
5698 (rs6000_emit_load_toc_table): Use toc_label_name.
5699 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
5701 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
5702 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
5703 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
5704 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
5705 into explicit TOC_REGISTER offsets.
5706 (TOC_REGISTER): New macro.
5707 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
5708 TARGET_TOC to reference TOC_REGISTER.
5709 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
5710 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
5711 uses_TOC before emitting label references.
5713 2000-02-05 Geoff Keating <geoffk@cygnus.com>
5715 * rs6000.md (stack_tie): Fix warning.
5717 * eabi-ctors.c: Use 'asm' names for the start/end variables,
5718 to handle -fleading-underscore.
5719 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
5720 (USER_LABEL_PREFIX): New macro.
5721 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
5722 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
5723 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
5724 call-linux can use the same multilibs.
5725 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
5726 and call-linux multilibs. Do multilib with -fleading-underscore.
5727 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
5728 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
5731 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
5732 have MASK_SOFT_FLOAT set.
5733 (CPP_FLOAT_DEFAULT_SPEC): New macro.
5734 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
5735 CPP_FLOAT_DEFAULT_SPEC.
5737 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
5738 * rs6000.md: Whitespace change.
5739 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
5740 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
5742 2000-02-05 Geoff Keating <geoffk@cygnus.com>
5744 * rs6000.md (eh_epilogue): New expander.
5745 (eh_reg_restore): New expand/split/insn combination.
5746 (return_eh_si): New insn.
5747 (return_eh_di): New insn.
5749 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
5750 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
5751 * eabi-ctors.c (__do_global_ctors): Register this object's
5752 frame. Clean up. Call atexit() after the constructors.
5753 (__do_global_dtors): Deregister this object's frame. Clean up.
5754 Allow for recursive calls to exit().
5755 * rs6000.c (fixuplabelno): New variable.
5756 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
5757 TARGET_RELOCATABLE, it slows down exec() under linux.
5758 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
5760 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
5761 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
5762 (ASM_OUTPUT_DWARF_DELTA2): New macro.
5763 (ASM_OUTPUT_DWARF_DELTA4): New macro.
5764 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
5765 (ASM_OUTPUT_DWARF_ADDR): New macro.
5766 (ASM_OUTPUT_DWARF_DATA4): New macro.
5767 (ASM_OUTPUT_DWARF_DATA2): New macro.
5768 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
5769 (ASM_OUTPUT_DWARF_OFFSET): New macro.
5770 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
5772 2000-02-03 Geoff Keating <geoffk@cygnus.com>
5774 * rs6000.c (rs6000_sr_alias_set): New variable.
5775 (rs6000_override_options): Initialise rs6000_sr_alias_set.
5776 (rs6000_emit_stack_tie): New function.
5777 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
5778 in a way that dwarf2out can understand.
5779 (rs6000_frame_related): New function.
5780 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
5781 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
5782 Use rs6000_emit_stack_tie when needed.
5783 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
5784 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
5785 * rs6000.md (stack_tie): New insn.
5786 (return_internal_si): Allow return value to be in the count
5788 (return_internal_di): Likewise.
5790 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
5792 2000-02-03 Geoff Keating <geoffk@cygnus.com>
5794 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
5796 2000-01-31 Geoff Keating <geoffk@cygnus.com>
5798 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
5800 * rs6000.md (stmw): Use the right POWER opcode.
5803 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5805 * rs6000-protos.h: New file.
5807 * rs6000.c: Include tm_p.h. Fix compile time warnings.
5809 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
5812 * sysv4.h: Likewise.
5814 2000-01-28 Geoff Keating <geoffk@cygnus.com>
5816 * ../../configure.in: Delete powerpcle-*-winnt*
5817 and powerpcle-*-pe|powerpcle-*-cygwin*.
5818 * ../../configure: Regenerated.
5820 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
5821 (TARGET_WINDOWS_NT): Delete.
5823 (CALL_NT_DLLIMPORT): Delete.
5824 Delete NT-specific code.
5825 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
5828 * nt-ci.asm: Delete.
5829 * nt-cn.asm: Delete.
5830 * ntstack.asm: Delete.
5832 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5834 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
5835 (ASM_FILE_START): Likewise.
5836 (ASM_DECLARE_FUNCTION_NAME): Likewise.
5837 (ASM_OUTPUT_LABELREF): Likewise.
5838 (ASM_OUTPUT_SKIP): Likewise.
5839 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
5840 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5841 (ASM_OUTPUT_CASE_LABEL): Likewise.
5842 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5843 (ASM_OUTPUT_ASCII): Likewise.
5845 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
5847 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
5848 reload_toc_labelno for non-prologue TOC reloads. Also, don't
5849 increment rs6000_pic_labelno here.
5850 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
5851 and increment rs6000_pic_labelno here.
5853 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
5855 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
5856 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
5857 allocation knows (reg) is dead before the insn.
5859 2000-01-21 Geoff Keating <geoffk@cygnus.com>
5861 * rs6000.md (movsi_to_cr): Correct typo in output template.
5863 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
5865 * rs6000.c (rs6000_pic_labelno): Always define.
5866 (rs6000_pic_func_labelno): Delete.
5867 (lmw_operation): Check for a zero base register,
5868 which doesn't mean what we want.
5869 (stmw_operation): New function.
5870 (print_operand): Define new 'l' modifier.
5871 (rs6000_stack_info): We must save all 64 bits of the registers
5872 if TARGET_POWERPC64.
5873 (rs6000_output_load_toc_table): Delete.
5874 (rs6000_emit_load_toc_table): New function.
5875 (rs6000_allocate_stack_space): Delete.
5876 (rs6000_emit_allocate_stack): New function.
5877 (rs6000_emit_prologue): New function.
5878 (output_prolog): Use rs6000_emit_prologue.
5879 (rs6000_emit_epilogue): Change a few variable names to be
5880 more accurate. Restore all 64 bits of the registers if
5881 TARGET_POWERPC64. Only restore the FP registers which were used
5882 if they are being saved/restored one-at-a-time.
5883 (output_mi_thunk): Delete inefficient code generation.
5884 (output_function_profiler): Don't use rs6000_output_load_toc_table.
5885 * rs6000.h: Declare rs6000_emit_load_toc_table,
5886 rs6000_allocate_stack_space, stmw_operation. Don't declare
5887 rs6000_output_load_toc_table.
5888 * rs6000.md (elf_high): Allow register 0, but discourage it
5890 (elf_low): Support loading into register 0.
5891 (load_toc_aix_si): New pattern.
5892 (load_toc_aix_di): New pattern.
5893 (load_toc_v4_pic_si): New pattern.
5894 (load_toc_v4_pic_di): New pattern.
5895 (load_toc_v4_PIC_1): New pattern.
5896 (load_toc_v4_PIC_1b): New pattern.
5897 (load_toc_v4_PIC_2): New pattern.
5898 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
5899 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
5900 (prologue): New expander.
5901 (movesi_from_cr): New pattern.
5902 (stmw): New pattern.
5903 (save_fpregs_si): New pattern.
5904 (save_fpregs_di): New pattern.
5906 2000-01-19 Geoff Keating <geoffk@cygnus.com>
5908 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
5913 2000-01-19 Geoff Keating <geoffk@cygnus.com>
5915 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
5917 (movsi_got_internal): Likewise.
5918 (movsi_got_internal+1): Likewise.
5919 (set_sp): 'unspec 7' does a SImode clobber.
5921 2000-01-19 Geoff Keating <geoffk@cygnus.com>
5923 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
5924 allocate a stack temporary.
5925 (floatsidf2_internal): Likewise.
5926 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
5928 (floatunssidf2): Don't use the fpmem "register", just
5929 allocate a stack temporary.
5930 (floatunssidf2_internal): Likewise.
5931 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
5933 (floatsidf2_loadaddr): Delete.
5934 (floatsidf2_store1): Delete.
5935 (floatsidf2_store2): Delete.
5936 (floatsidf2_load): Delete.
5937 (fix_truncdfsi2): Don't use the fpmem "register", just
5938 allocate a stack temporary.
5939 (fix_truncdfsi2_internal_si): Delete.
5940 (fix_truncdfsi2_internal_di): Delete.
5941 (fix_truncdfsi2_internal): New insn.
5942 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
5943 (fix_truncdfsi2_store): Delete.
5944 (fix_truncdfsi2_load): Delete.
5945 (fctiwz): Produce gen_fctiwz.
5947 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
5949 * eabi.h (INVOKE__main): Define.
5950 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
5952 (rs6000_emit_prologue): Likewise.
5953 * rs6000.h (struct rs6000_stack): Don't keep track of whether
5954 this is the main program.
5956 2000-01-19 Geoff Keating <geoffk@cygnus.com>
5958 * rs6000.c (rs6000_va_arg): Delete some unused variables.
5960 2000-01-19 Geoff Keating <geoffk@cygnus.com>
5962 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
5963 goes after the argument.
5965 2000-01-12 Geoff Keating <geoffk@cygnus.com>
5967 * rs6000.md: Document 'unspec' values used.
5968 (epilogue): New expander.
5969 (movesi_to_cr_one): New expander.
5970 (movesi_to_cr and following): New pattern.
5972 (return_internal_si): New pattern.
5973 (return_internal_di): New pattern.
5974 (return_and_restore_fpregs_si): New pattern.
5975 (return_and_restore_fpregs_di): New pattern.
5976 * rs6000.h: Declare new functions.
5977 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
5978 rather than rs6000_calls_p.
5979 (rs6000_makes_calls): Delete.
5980 (lmw_operation): New function.
5981 (mtcrf_operation): New function.
5982 (rs6000_emit_epilogue): New function.
5983 (output_epilog): Call rs6000_emit_epilogue and final if
5984 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
5986 2000-01-12 Geoff Keating <geoffk@cygnus.com>
5988 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
5989 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
5990 * aix.h (SUBTARGET_SWITCHES): Document switches.
5991 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
5992 sched-prolog and sched-epilog the same. Document all the
5994 (TARGET_OPTIONS): No longer allow -mdebug-.
5996 2000-01-12 Geoff Keating <geoffk@cygnus.com>
5998 * rs6000.h (ASM_FILE_END): Move to aix.h.
5999 (EXTRA_SECTIONS): Move to aix.h.
6000 (READONLY_DATA_SECTION): Move to aix.h.
6001 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
6002 (SELECT_SECTION): Move to aix.h.
6003 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
6004 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
6005 (LINK_REGISTER_REGNUM): New definition.
6006 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
6007 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
6009 * sysv4.h: Delete the code between the inclusion of rs6000.h
6011 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
6012 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
6013 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
6014 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
6015 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
6016 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
6017 (fix_truncdfsi2_internal_di): New pattern.
6018 (fix_truncdfsi2_store): The second arg here is Pmode too.
6019 (fix_truncdfsi2_load): The second arg here is Pmode too.
6020 (tablejumpdi): Now that switch tables hold only SImode values,
6021 gcc needs to know how to add them to the pc which is DImode.
6022 * rs6000.c (rs6000_stack_info): Use symbolic name for
6023 LINK_REGISTER_REGNUM.
6024 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
6025 (output_toc): Delete unused variables s1 and s2.
6026 (output_ascii): Use fputs not fprintf on a variable string.
6028 2000-01-07 David Edelsohn <edelsohn@gnu.org>
6030 * rs6000.c (processor_target_table): Add power3 as alias for 630.
6031 * aix43.h: Revert Aug 2 change.
6032 (HAS_INIT_SECTION): Define, not visible yet.
6033 (LD_INIT_SWITCH): Define, not visible yet.
6034 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
6036 2000-01-04 Joel Sherrill (joel@OARcorp.com>
6038 * config/rs6000/rtems.h: Include config/rtems.h.
6040 2000-01-04 David Edelsohn <edelsohn@gnu.org>
6042 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
6043 (SLOW_UNALIGNED_ACCESS): Define.
6044 (CASE_VECTOR_MODE): Always use 32-bit offsets.
6045 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
6046 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
6047 (toc_section): Likewise and .toc pseudo-op.
6048 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
6050 (TEXT_SECTION_ASM_OP): Likewise.
6051 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
6054 1999-12-17 Jakub Jelinek <jakub@redhat.com>
6056 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
6057 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
6060 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6062 * rs6000.h: Move more stuff from here...
6064 * sysv4.h: Cleanup accordingly.
6065 * netware.h: Likewise
6067 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6069 * rs6000.h: Continue cleanup.
6072 * netware.h: Likewise.
6074 * sysv4.h: Likewise.
6075 * win-nt.h: Likewise.
6077 * rs6000.h (TARGET_SWITCHES): Add descriptions.
6078 (TARGET_OPTIONS): Likewise.
6080 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
6081 (SUBTARGET_OPTIONS): Likewise.
6083 * rs6000.md: Fix compile time warnings.
6085 2000-01-04 Geoff Keating <geoffk@cygnus.com>
6087 vxworks patches from the Cygnus tree originally by
6088 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
6089 <vmakarov@cygnus.com>.
6090 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
6091 (ENDFILE_SPEC): Likewise.
6092 (LIB_VXWORKS_SPEC): New macro.
6093 (STARTFILE_VXWORKS_SPEC): New macro.
6094 (ENDFILE_VXWORKS_SPEC): New macro.
6095 (LINK_START_VXWORKS_SPEC): New macro.
6096 (LINK_OS_VXWORKS_SPEC): New macro.
6097 (CPP_OS_VXWORKS_SPEC): New macro.
6098 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
6099 * vxppc.h: Rewrite to use proper configuration method.
6100 * vxppcle.h: New file.
6101 * ../../configure.in: Add powerpcle-wrs-vxworks*.
6102 * ../../configure: Rebuilt.
6104 2000-01-04 Geoff Keating <geoffk@cygnus.com>
6106 Lots of changes to rs6000.h, sysv4.h, aix.h,
6107 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
6108 with the aim that rs6000.h is the first header
6109 included and the others override it.
6112 * x-aix41-gld: Remove.
6114 * x-aix41: Remove target-specific switches, and don't specify
6115 -Wl,-bbigtoc as we don't need it any more.
6116 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
6117 Use t-aix43 for AIX 4.3 and above.
6118 * ../../configure: Regenerated.
6120 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
6121 options, that don't do anything yet.
6122 (MASK_SCHED_PROLOG): New macro.
6123 (MASK_SCHED_EPILOG): New macro.
6124 (TARGET_SCHED_PROLOG): New macro.
6125 (TARGET_SCHED_EPILOG): New macro.
6127 2000-01-04 Geoff Keating <geoffk@cygnus.com>
6129 * rs6000.c: Correct comment, the `minimal' TOCs are actually
6130 one per translation unit, not one per function.
6131 (output_toc): Also do duplicate constant elimination
6132 for per-translation-unit TOCs.
6134 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
6135 a comment explaining _exactly_ when this pattern gets used.
6136 (builtin_setjmp_receiver): New pattern for better clarity.
6137 (init_v4_pic): Move it into a section dealing with TOC registers.
6139 1999-12-30 Geoff Keating <geoffk@cygnus.com>
6141 * rs6000.c (toc_hash_table): New variable.
6142 (rs6000_hash_constant): New function.
6143 (toc_hash_function): New function.
6144 (toc_hash_eq): New function.
6145 (toc_hash_mark_entry): New function.
6146 (toc_hash_mark_table): New function.
6147 (output_toc): Don't output duplicate TOC entries in
6149 (rs6000_add_gc_roots): Add the hash table as a GC root.
6150 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
6151 where they clearly shouldn't be. This may need to be fixed
6152 later when there is a GNU ar for AIX.
6153 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
6154 Don't define BOOT_LDFLAGS as it is now not necessary.
6156 1999-12-29 Geoff Keating <geoffk@cygnus.com>
6158 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
6159 for va_list on AIX. Use unsigned_char_type_node rather than
6160 constructing our own version on svr4.
6162 1999-12-17 Geoff Keating <geoffk@cygnus.com>
6164 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
6165 since patently it's not.
6167 1999-12-08 Geoff Keating <geoffk@cygnus.com>
6169 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
6170 define_expand/define_insn pair, and handle restore of the
6171 SVR4 -fpic register.
6173 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
6175 * acconfig.h (HAVE_GAS_WEAK): New define.
6176 * configure.in (assembler weak support): Check for .weak support.
6177 * config.in, configure: Rebuilt.
6178 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
6179 HAVE_GAS_WEAK is defined.
6181 2000-03-15 Nick Clifton <nickc@cygnus.com>
6183 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
6186 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
6188 * cppfiles.c (open_include_file): New function.
6189 (find_include_file, cpp_read_file): Use it.
6191 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
6193 * cpphash.c (dump_hash_helper): Take the slot, not the element.
6195 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
6197 * flow.c (verify_flow_info): Check for unconditional return.
6199 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
6201 * config/ia64/ia64.md (restore_stack_nonlocal): New.
6202 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
6203 (__ia64_restore_stack_nonlocal): New.
6204 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
6206 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6208 * cpphash.c (collect_formal_parameters): Do not complain about
6209 parameter names that just start with `__VA_ARGS__'.
6211 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
6213 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
6214 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
6215 * i386.c (pentiumpro_cost): Set mul cost to 4.
6216 (x86_use_movx): Set for PPro.
6218 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
6220 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
6221 STACK_BOUNDARY for empty frames now.
6223 2000-03-14 Mark Mitchell <mark@codesourcery.com>
6225 * stor-layout.c (layout_union): Remove.
6226 (layout_union_field): New function, split out from layout_union.
6227 (finish_union_layout): Likewise.
6228 (layout_field): Handle unions by calling layout_union_field.
6229 (finish_record_layout): Handle unions.
6230 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
6231 QUAL_UNION_TYPE handling.
6233 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
6235 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
6236 end of basic block is jump_insn, not barrier; use create_basic_block
6237 instead of creating basic block by hand.
6239 2000-03-14 Jason Eckhardt <jle@cygnus.com>
6241 * flow.c (reorder_basic_blocks): Account for barriers when writing
6242 over NEXT_INSN (last_bb->end).
6243 (verify_flow_info): Add check for missing barriers.
6245 2000-03-14 Greg McGary <gkm@gnu.org>
6247 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
6248 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
6249 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
6250 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
6251 __unbounded, __unbounded__): New keywords.
6252 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
6253 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
6254 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
6256 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
6258 * cselib.h: New file.
6259 * alias.c: Include "cselib.h".
6260 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
6261 MEMs as two new arguments.
6262 (get_addr): New static function.
6263 (find_base_term): Handle VALUEs.
6264 (memrefs_conflict_p): Likewise.
6265 (true_dependence): Call get_addr on the addresses.
6266 Call fixed_scalar_and_varying_struct_p with addresses that have been
6267 passed through get_addr and canon_rtx.
6268 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
6269 with true_dependence.
6270 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
6271 * loop.c: Include "cselib.h".
6272 (load_mems): Process extended basic block that enters the loop with
6273 cselib. Use that information to change initialization of the shadow
6274 register so that a constant equivalence is seen by later passes.
6275 * reload1.c: Include "cselib.h".
6276 (reload_cse_invalidate_regno): Delete function.
6277 (reload_cse_mem_conflict_p): Likewise.
6278 (reload_cse_invalidate_mem): Likewise.
6279 (reload_cse_invalidate_rtx): Likewise.
6280 (reload_cse_regno_equal_p): Likewise.
6281 (reload_cse_check_clobber): Likewise.
6282 (reload_cse_record_set): Likewise.
6283 (reg_values): Delete static variable.
6284 (invalidate_regno_rtx): Likewise.
6285 (reload_cse_delete_noop_set): New static function.
6286 (reload_cse_simplify): New static function, broken out of
6288 (reload_cse_noop_set_p): Delete unused argument INSN.
6289 Just call rtx_equal_for_cselib_p on set source and destination.
6290 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
6291 reload_cse_delete_noop_set. Delete code to keep track of values; use
6292 cselib functions instead. Delete code to push/pop obstacks.
6293 (reload_cse_simplify_set): Use cselib to find equivalent values.
6294 Delete code to push/pop obstacks.
6295 (reload_cse_simplify_operands): Likewise.
6296 * rtl.def (VALUE): New rtx code.
6297 * rtl.h (union rtunion_def): New elt rt_cselib.
6298 (X0CSELIB, CSELIB_VAL_PTR): New macros.
6299 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
6300 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
6301 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
6302 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
6303 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
6304 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
6305 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
6306 cselib_record_set, cselib_record_sets): New static functions.
6307 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
6308 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
6309 references_value_p): New functions.
6310 (MAX_USELESS_VALUES, REG_VALUES): New macros.
6311 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
6312 n_useless_values, reg_values, callmem, cselib_obstack,
6313 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
6314 New static variables.
6315 * varray.h (union varray_data_tag): New elt te.
6316 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
6317 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
6320 2000-03-14 Nick Clifton <nickc@cygnus.com>
6322 * gcc.c (do_spec_1): Catch the case where %* is used in a
6323 substitution pattern, but it has not been initialised.
6324 Issue a meaningful error message if an unrecognised operator
6325 is encountered in a spec string.
6327 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
6329 * function.c (prepare_function_start): Correctly initialize
6330 cfun->stack_alignment_needed.
6332 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
6334 * cppfiles.c (find_include_file): Don't assume nshort is a
6337 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
6339 * configure.in (hppa configurations): Add pa32-regs.h to the
6340 list of tm files as appropriate.
6341 * configure: Rebuilt.
6342 * pa.c (compute_frame_size): Remove explicit knowledge about FP
6344 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
6345 (fmpyaddoperands, fmpysuboperands): Likewise.
6346 * pa.h: Remove various definitions which depend on knowing
6347 how registers are numbered.
6348 * pa32-regs.h: New file with PA32 register numbering specific
6351 2000-03-14 Richard Henderson <rth@cygnus.com>
6353 * regmove.c (combine_stack_adjustments): New.
6354 (stack_memref_p, single_set_for_csa): New.
6355 (free_csa_memlist, record_one_stack_memref): New.
6356 (try_apply_stack_adjustment): New.
6357 (combine_stack_adjustments_for_block): New.
6358 * rtl.h (combine_stack_adjustments): Declare.
6359 * toplev.c (rest_of_compilation): Call it.
6361 * i386.md: Revert 2000-01-16 change.
6363 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
6365 * gccbug.in: Add web category, gcc specific classes.
6367 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
6369 * stor-layout.c (finalize_record_size): Fix typo.
6371 2000-03-14 Stan Shebs <shebs@apple.com>
6373 * c-typeck.c (c_alignof): Error on incomplete types.
6374 * extend.texi (Alignment): Document this.
6376 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
6378 * cppfiles.c: Include mkdeps.h.
6379 (find_include_file, read_include_file): Remove _cpp_ prefix
6380 from name, make static.
6381 (_cpp_execute_include): New function, broken out of
6384 * cpplib.c: Don't include mkdeps.h.
6385 (struct directive): Remove type field. Reorder entries. The
6386 function takes only one argument.
6387 (struct if_stack): Make type field an int.
6388 (directive_table): Rename to dtable. Generate it, the
6389 prototypes of the directive handlers, and the enum for the
6390 directive numbers, from a template macro.
6391 (do_ifndef, do_include_next, do_import): New functions.
6392 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
6393 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
6394 do_ident, do_assert, do_unassert, do_sccs): Take only one
6396 (do_sccs): Define always, but alter behavior based on
6398 (_cpp_handle_directive, consider_directive_while_skipping):
6399 Restructure for new directive table layout.
6401 (pass_thru_directive): Take a directive number, not a pointer
6402 to a struct directive.
6403 (parse_include): New function, broken out of do_include.
6404 (do_include, do_import, do_include_next): Use parse_include
6405 and _cpp_execute_include.
6406 (do_elif, do_else): Test for T_ELSE specifically when checking
6407 for #elif/#else after #else.
6408 (parse_ifdef): New function, broken out of do_ifdef.
6409 (validate_else): Expect a name arg without a leading #.
6410 (if_directive_name): Delete.
6411 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
6412 directive handlers with only one argument.
6414 * cpphash.h: Update prototypes.
6415 (enum node_type): Remove entries for directives.
6416 * Makefile.in: Update dependencies.
6418 * cpphash.c (dump_hash_helper): Only dump nodes of type
6419 T_MACRO. Emit a newline after each definition.
6421 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
6423 * gccbug.in: New file.
6424 * configure.in (all_outputs): Add gccbug.
6425 * Makefile.in (install-common): Install gccbug.
6426 (GCCBUG_INSTALL_NAME): New variable.
6427 * configure: Rebuilt.
6429 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
6431 * function.c (put_var_into_stack): Use type_for_mode to calculate
6432 part_type. Use MEM_SET_IN_STRUCT_P.
6433 * expr.c (store_field): Handle CONCAT.
6434 (store_constructor): Use fields_length.
6435 * tree.c (fields_length): New fn.
6436 * tree.h: Declare it.
6438 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
6440 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
6441 (cpplex.o): New target.
6442 * po/POTFILES.in: Add cpplex.c.
6444 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
6445 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
6446 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
6447 skip_block_comment, skip_line_comment, skip_comment,
6448 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
6449 _cpp_parse_name, skip_string, parse_string,
6450 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
6451 _cpp_get_directive_token, find_position,
6452 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
6453 (maybe_macroexpand, _cpp_lex_token): New functions.
6455 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
6456 parse_goto_mark): Delete.
6457 (_cpp_handle_eof): New function.
6458 (_cpp_handle_directive): Rename from handle_directive.
6459 (_cpp_output_line_command): Rename from output_line_command.
6460 (do_if, do_elif): Call _cpp_parse_expr directly.
6461 * cppfiles.c (_cpp_read_include_file): Don't call
6462 init_input_buffer here.
6463 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
6464 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
6465 here; pop the token_buffer and skip the rest of the line here.
6466 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
6469 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
6471 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
6472 CPP_GOTO_MARK): New macros.
6473 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
6474 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
6475 _cpp_read_and_prescan, _cpp_init_input_buffer,
6476 _cpp_grow_token_buffer, _cpp_get_directive_token,
6477 _cpp_handle_directive, _cpp_handle_eof,
6478 _cpp_output_line_command): Prototype them here.
6479 * cpplib.h (enum cpp_token): Add CPP_MACRO.
6480 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
6481 quote_string, output_line_command): Remove.
6483 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
6485 * stmt.c (expand_end_case): RANGE may be signed, and when checking
6486 whether it is too large we must also verify that it isn't negative.
6488 2000-03-13 Jakub Jelinek <jakub@redhat.com>
6490 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
6491 (movsi_zero_liveg0): Remove.
6492 (movsf_insn_novis_liveg0): Remove.
6494 (negsi2_not_liveg0): Rename to negsi2.
6495 (one_cmplsi2): Remove.
6496 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
6497 (one_cmplsi2_liveg0): Remove.
6498 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
6499 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
6500 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
6501 (PREDICATE_CODES): Remove zero_operand.
6502 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
6503 TARGET_BROKEN_SAVERESTORE.
6504 (zero_operand): Remove.
6505 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
6506 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
6508 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6509 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
6510 TARGET_BROKEN_SAVERESTORE): Remove.
6511 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
6513 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
6515 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
6518 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
6520 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
6522 * cpplib.c (do_pragma_implementation): Fix off-by-one error
6523 truncating a string. Don't assume tokens are nul terminated.
6524 Problem noted by Andreas Jaeger <aj@suse.de>
6526 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
6528 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
6529 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
6530 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
6532 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
6534 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
6535 STRUCTURE_SIZE_BOUNDARY.
6537 2000-03-13 Mark Mitchell <mark@codesourcery.com>
6539 * tree.h (record_layout_info_s): New structure.
6540 (record_layout_info): New type.
6541 (new_record_layout_info): New function.
6542 (layout_field): Likewise.
6543 (finish_record_layout): Likewise.
6544 * stor-layout.c (layout_record): Remove.
6545 (new_record_layout_info): New function.
6546 (layout_field): New function, broken out from layout_record.
6547 (finalize_record_size): Likewise.
6548 (compute_record_mode): Likewise.
6549 (finalize_type_size): New function, broken out from layout_type.
6550 (finish_record_layout): Likewise.
6551 (layout_type): Use them.
6553 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
6555 * cpphash.c: Don't include version.h.
6556 (special_symbol) [case T_VERSION]: Look for the string in
6557 hp->value.cpval; don't use version_string.
6558 * cppinit.c (initialize_builtins): Set hp->value.cpval for
6559 __VERSION__ to version_string.
6560 * Makefile.in (cpphash.o): Update deps.
6562 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
6564 Convert cpplib to use libiberty/hashtab.c.
6566 * cpplib.h (struct cpp_reader): Make hashtab and
6567 all_include_files of type 'struct htab *'. Delete HASHSIZE
6568 and ALL_INCLUDE_HASHSIZE macros.
6570 * cpphash.h: Update prototypes.
6571 (struct hashnode): Remove next, prev, and bucket_hdr members.
6572 Make length a size_t. Add hash member.
6573 (struct ihash): Remove next member. Add hash member. Make
6574 name a flexible array member.
6576 * cppfiles.c: Include hashtab.h.
6577 (include_hash): Delete.
6578 (IHASHSIZE): New macro.
6579 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
6580 (cpp_included): Do the hash lookup here.
6581 (_cpp_find_include_file): Rewrite.
6582 (cpp_read_file): Put the "fake" hash entry into the hash
6583 table. Honor the control_macro, if it turns out we've seen
6584 the file before. Don't push the buffer here.
6585 (_cpp_read_include_file): Push the buffer here.
6586 (OMODES): New macro. Use it whenever we call open(2).
6588 * cpphash.c: Include hashtab.h.
6589 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
6590 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
6591 _cpp_lookup_slot): New functions.
6592 (HASHSIZE): new macro.
6593 (hashf, _cpp_install, _cpp_delete_macro): Delete.
6594 (_cpp_lookup): Use hashtab.h routines.
6596 * cppinit.c: Include hashtab.h.
6597 (cpp_reader_init): Call _cpp_init_macro_hash and
6598 _cpp_init_include_hash. Don't allocate hashtab directly.
6599 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
6600 pfile->all_include_files.
6601 (initialize_builtins): Use _cpp_make_hashnode and
6602 htab_find_slot to add hash entries.
6603 (cpp_finish): Just call _cpp_dump_macro_hash.
6604 * cpplib.c: Include hashtab.h.
6605 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
6606 create hash entries.
6607 (do_pragma_poison, do_assert): Likewise.
6608 (do_include): Don't push the buffer here. Don't increment
6609 system_include_depth unless _cpp_read_include_file succeeds.
6610 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
6612 (do_pragma_implementation): Use alloca to create copy.
6614 * Makefile.in: Update dependencies.
6616 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6618 * cppinit.c (cl_directive_handler): More K&R fixing.
6620 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
6622 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
6624 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
6626 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6628 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
6629 Change from char[] to macros.
6631 2000-03-12 Neil Booth <NeilB@earthling.net>
6633 * cppinit.c (cpp_start_read): Update indirect function
6636 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
6638 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
6641 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6642 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
6644 2000-03-11 Neil Booth <NeilB@earthling.net>
6646 * cppinit.c (struct pending option): Replace undef with a
6647 pointer to a directive handling routine.
6648 (struct cpp_pending): Replace separate assert_ and define_
6649 lists with one directive_ list.
6650 (new_pending_define): Rename new_pending_directive. Extra
6651 argument is the directive's handling routine.
6652 (handle_option): Update to use new_pending_directive.
6654 2000-03-11 Neil Booth <NeilB@earthling.net>
6656 * cppfiles.c (file_cleanup, _cpp_find_include_file,
6657 remap_filename, _cpp_read_include_file, actual_directory,
6658 hack_vms_include_specification): Replace bcopy(), index() etc
6659 calls. Add casts to some allocations. Make some variables
6660 pointers to const [unsigned] char.
6661 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
6662 collect_formal_parameters): Similarly.
6663 * cppinit.c (struct pending_option, append_include_chain,
6664 cpp_options_init, cpp_reader_init, initialize_standard_includes,
6665 cpp_start_read, new_pending_define, handle_option): Similarly.
6666 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
6667 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
6668 do_pragma_implementation, detect_if_not_defined,
6669 do_ifdef, skip_if_group, cpp_get_token, parse_string,
6670 do_assert, do_unassert): Similarly.
6671 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
6672 function prototypes.
6673 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
6675 2000-03-10 Richard Henderson <rth@cygnus.com>
6677 * builtins.c (expand_builtin_strlen): Revert last change.
6678 Use emit_insn_before if we're at the beginning of a sequence.
6680 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
6682 * builtins.c (expand_builtin_strlen): Make sure that we have something
6683 at the beginning of the sequence.
6685 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
6688 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
6690 2000-03-10 Richard Henderson <rth@cygnus.com>
6692 * except.c (can_throw): Use INTVAL on a CONST_INT.
6693 (reachable_handlers): Likewise.
6694 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
6696 2000-03-10 Andreas Jaeger <aj@suse.de>
6698 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
6699 MD_STARTFILE_PREFIX since those are not needed on linux.
6700 (ASM_FILE_START): New, from mips/gnu.h.
6702 2000-03-09 Richard Henderson <rth@cygnus.com>
6703 Alex Samuel <samuel@codesourcery.com> and others
6705 * Makefile.in (ssa.o): New rule.
6707 (STAGESTUFF): Add *.ssa and *.ussa.
6708 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
6709 * rtl.def (PHI): New RTL expression.
6710 * rtl.h (clear_log_links): New declaration.
6711 (convert_to_ssa): Likewise.
6712 (convert_from_ssa): Likewise.
6713 * flow.c (split_edge): If the entry node falls through to the
6714 split edge's source block, split the entry edge.
6715 (clear_log_links): New function.
6716 * toplev.c (ssa_dump): New variable.
6717 (flag_ssa): Likewise.
6718 (f_options): Add "ssa".
6719 (compile_file): Create SSA dump files.
6720 (rest_of_compilation): Go to and from SSA if enabled.
6721 (decide_d_option): Handle -de for SSA dump files.
6724 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
6726 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
6729 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
6731 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
6733 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
6735 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
6736 (MD_STARTFILE_PREFIX_1): New macro.
6738 2000-03-09 Robert Lipe <robertl@sco.com>
6740 * config/ia64/ia64.c: Include system.h.
6742 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
6744 * except.c (nothrow_function_p): If -fno-exceptions, just return.
6745 (init_eh_nesting_info): Likewise.
6747 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
6748 (TREE_NOTHROW): Rename from TREE_RAISES.
6749 * toplev.c (rest_of_compilation): Set it.
6750 * print-tree.c (print_node): Adjust.
6751 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
6752 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
6753 * calls.c (emit_call_1): Add 'nothrow' parm. Add
6754 REG_EH_REGION note as appropriate.
6755 (libfunc_nothrow): New fn.
6756 (emit_library_call, emit_library_call_value): Use it.
6757 (expand_call): Check TREE_NOTHROW.
6759 * varasm.c (make_decl_rtl): Skip initial '*' when setting
6760 DECL_ASSEMBLER_NAME.
6762 2000-03-09 Andreas Jaeger <aj@suse.de>
6764 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
6765 (TARGET_MEM_FUNCTIONS): Define.
6767 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
6769 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
6771 * except.c (can_throw): See through a SEQUENCE.
6772 (nothrow_function_p): New fn.
6773 * except.h: Declare it.
6774 * function.c (current_function_nothrow): New var.
6775 (prepare_function_start): Initialize it.
6776 * output.h: Declare it.
6777 * toplev.c (rest_of_compilation): Set it.
6778 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
6780 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
6782 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
6783 match. (cpp_compare_defs): Count the nul separator when
6784 advancing over argument names.
6786 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
6788 * recog.c (preprocess_constraints): Matching constraints affect
6789 same alternative/different operand, not same operand/different
6792 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
6793 register and a constant specially.
6795 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6797 * libgcc2.h: New file.
6798 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
6800 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
6802 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
6803 * configure: Regenerate.
6806 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
6808 * Makefile.in (LIBCPP_DEPS): New macro.
6809 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
6811 * cpperror.c: Include cpphash.h.
6812 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
6814 (lex): Don't use CPP_WARN_UNDEF.
6815 (_cpp_parse_expr): Return an int, the truth value.
6816 * cppfiles.c: Include cpphash.h.
6817 (_cpp_merge_include_chains): Move to cppinit.c and make static.
6818 * cppinit.c (include_defaults_array): Disentangle.
6819 (cpp_cleanup): Don't free the if stack here.
6820 (cpp_finish): Pop off all buffers, not just one.
6821 * cpplib.c (eval_if_expr): Return int.
6822 (do_xifdef): Rename do_ifdef.
6823 (handle_directive): Don't use CPP_PREPROCESSED.
6824 (cpp_get_token): Don't use CPP_C89.
6825 * fix-header.c: Don't use CPP_OPTIONS.
6827 * cpplib.h: Move U_CHAR, enum node_type, struct
6828 file_name_list, struct ihash, is_idchar, is_idstart,
6829 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
6830 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
6831 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
6832 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
6833 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
6834 of _cpp_simplify_pathname, _cpp_find_include_file,
6835 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
6836 Move struct if_stack to cpplib.c. Move struct cpp_pending to
6838 Change all uses of U_CHAR to be unsigned char instead.
6839 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
6841 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
6843 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
6844 (dwarf2out_begin_prologue): Set it.
6845 (output_call_frame_info): Don't emit EH unwind info for leaves.
6847 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
6848 can occur outside of an EH region.
6849 * except.c: Correct comments about rethrow behavior.
6850 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
6852 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
6854 * flow.c (make_edges): Always call make_eh_edge for calls.
6856 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
6858 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
6859 (struct cpp_buffer): Remove fname and underflow fields.
6860 (struct cpp_reader): Remove get_token field.
6861 (struct include_hash): Rename to struct ihash. Add typedef to
6863 (struct if_stack): Remove fname field.
6864 (IF_STACK_FRAME): Rename to IF_STACK.
6866 * cpperror.c (print_containing_files): Trust that there are no
6867 macro buffers below the top file buffer.
6868 * cppfiles.c: Replace all references to 'struct include_hash'
6869 with 'IHASH'. Rename initialize_input_buffer to
6870 init_input_buffer. Don't set or reference cpp_buffer->fname,
6871 use buffer->ihash->name instead.
6872 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
6873 not CPP_NULL_BUFFER.
6874 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
6875 IF_STACK_FRAME, IHASH not struct include_hash.
6876 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
6877 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
6878 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
6879 references to cpp_buffer->fname (delete entirely, or use
6880 ->ihash->name instead) and IF_STACK->fname.
6881 (cpp_push_buffer): Don't set new->underflow.
6882 (do_include): Use cpp_file_buffer.
6884 * cpphash.c (collect_formal_parameters): Remove duplicate
6885 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
6886 used as a macro argument name. Don't append "..." to namebuf
6887 for varargs macros. After we're done scanning, go through
6888 namebuf and make it NUL separated, not comma separated.
6889 (_cpp_compare_defs): Remove register tag from variables.
6890 Expect defn->argnames to be NUL separated.
6891 (_cpp_dump_definition): Expect defn->argnames to be NUL
6892 separated and in forward order.
6893 * cpphash.h: Update documentation of argnames field.
6895 2000-03-08 Richard Henderson <rth@cygnus.com>
6897 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
6898 to fail. Don't pre-expand the source operand.
6900 * i386.md (strlensi): Initialize eoschar and align before use.
6902 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
6904 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
6905 CONSTRUCTOR element.
6907 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
6909 * mips.c (mips_expand_prologue): If the last
6910 named argument is the vararg marker "va_list", treat it as
6911 an unnamed argument.
6913 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
6915 * dbxout.c (dbxout_parms): When correcting for promoted
6916 big-endian parameters, use the mode of the DECL_RTL rather
6917 than UNITS_PER_WORD.
6919 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
6921 * c-common.h (make_fname_decl): Declare.
6922 * c-common.c (make_fname_decl): Define.
6923 (declare_hidden_char_array): Remove.
6924 (declare_function_name): Use make_fname_decl.
6925 * c-decl.c (c_make_fname_decl): New function.
6926 (init_decl_processing): Set make_fname_decl.
6928 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
6930 * cccp.c (handle_directive): Initialize backslash_newlines_p.
6932 2000-03-07 Philipp Thomas <pthomas@suse.de>
6934 * po/POTFILES.in: Remove cppalloc.c from file list.
6936 2000-03-07 Steve Chamberlain <sac@pobox.com>
6938 * pj.c (pj_expand_prologue): current_function->args_info is
6939 now current_function_args_info.
6941 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
6942 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
6943 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
6945 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6947 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
6948 output as hexadecimal rather than the default octal.
6950 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
6952 * cpphash.c (special_symbol): Fix thinko in previous commit.
6954 2000-03-07 Neil Booth <NeilB@earthling.net>
6956 * cppexp.c (struct operation, left_shift, right_shift,
6957 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
6958 "int"s to "unsigned int"s.
6959 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
6961 * cpplib.h: Update for above.
6962 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
6963 returned from allocations.
6965 * cppinit.c (opt_comp, parse_options): New functions.
6966 (handle_option): Use parse_option to parse a single command
6967 line option, that possibly takes an argument.
6968 (cpp_handle_options): Sort the array of command line options on
6969 first invocation (non-ASCII hosts only).
6970 (print_help): Update.
6972 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
6974 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
6975 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
6977 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
6979 * cppinit.c (cpp_cleanup): Free imp->nshort also.
6981 * cpperror.c (cpp_print_containing_files,
6982 cpp_print_file_and_line, v_cpp_message): Rename to
6983 print_containing_files, print_file_and_line, and v_message.
6984 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
6985 to _cpp_parse_expr, parse_escape, and lex.
6986 (parse_charconst): Remove broken multibyte support.
6987 * cppfiles.c (include_hash): Make static.
6988 (cpp_included): New function.
6989 (merge_include_chains, find_include_file, finclude,
6990 simplify_pathname): Rename to _cpp_merge_include_chains,
6991 _cpp_find_include_file, _cpp_read_include_file, and
6992 _cpp_simplify_pathname.
6993 * cpphash.c (cpp_lookup, free_definition, delete_macro,
6994 cpp_install, create_definition, macroexpand, compare_defs,
6995 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
6996 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
6997 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
6998 * cppinit.c (cpp_handle_option): Rename to handle_option, make
7000 * cpplib.c: Remove extern prototype of cpp_parse_expr.
7002 * cpphash.h: Update prototypes.
7003 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
7005 2000-03-07 Andrew Haley <aph@cygnus.com>
7007 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
7008 PTRDIFF_TYPE should be based solely on Pmode.
7011 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7013 * rtl.h (rtunion_def): Constify member `rtstr'.
7014 (emit_line_note_after, emit_line_note, emit_line_note_force,
7015 emit_note, decode_asm_operands): Constify.
7017 * cse.c (canon_hash): Likewise.
7019 * dbxout.c (dbxout_block): Likewise.
7021 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
7022 v_warning_for_asm): Likewise.
7024 * dwarfout.c (function_start_label): Likewise.
7026 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
7027 emit_line_note_force): Likewise.
7029 * final.c (last_filename, asm_insn_count, final_scan_insn,
7030 output_source_line): Likewise.
7032 * function.h (struct emit_status): Likewise.
7034 * gcse.c (hash_expr_1): Likewise.
7036 * genattr.c (gen_attr, main): Likewise.
7038 * genattrtab.c (struct function_unit, current_alternative_string,
7039 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
7040 attr_numeral, check_attr_test, check_attr_value,
7041 convert_set_attr_alternative, convert_set_attr,
7042 compute_alternative_mask, simplify_by_exploding, gen_attr,
7043 gen_unit): Likewise.
7045 * genflags.c (gen_insn): Likewise.
7047 * gengenrtl.c (type_from_format): Likewise.
7049 * genopinit.c (gen_insn): Likewise.
7051 * genoutput.c (n_occurrences, process_template, process_template):
7054 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
7057 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
7060 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
7061 ggc_set_mark, ggc_get_size): Likewise.
7063 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
7065 * optabs.c (init_one_libfunc): Likewise.
7067 * output.h (assemble_start_function): Likewise.
7069 * recog.c (decode_asm_operands): Likewise.
7071 * toplev.c (rest_of_compilation): Likewise.
7073 * tree.h (emit_line_note_after, emit_line_note,
7074 emit_line_note_force): Likewise.
7076 * varasm.c (asm_output_bss, asm_output_aligned_bss,
7077 asm_emit_uninitialised, assemble_start_function,
7078 assemble_variable, const_hash, compare_constant_1,
7079 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
7081 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
7083 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
7085 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
7087 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
7089 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
7090 arm_dllimport_name_p): Likewise.
7092 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
7095 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
7097 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7099 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
7100 arm_mark_dllexport, arm_mark_dllimport,
7101 arm_pe_encode_section_info): Likewise.
7103 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
7104 ASM_FINISH_DECLARE_OBJECT): Likewise.
7106 * arm/thumb.c (thumb_function_prologue): Likewise.
7108 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
7110 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7112 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
7114 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
7116 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
7118 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7120 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
7121 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
7123 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
7125 * i386/i386.c (asm_output_function_prefix): Likewise.
7127 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
7129 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7131 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
7133 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
7134 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
7135 ASM_OUTPUT_SECTION_NAME): Likewise.
7137 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
7139 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
7141 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
7143 * m32r/m32r.c (m32r_encode_section_info): Likewise.
7145 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7147 * mcore/mcore.c (mcore_encode_section_info): Likewise.
7149 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7151 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7153 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7155 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
7157 * mips/mips.md (movdi, movsi): Likewise.
7159 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7161 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7163 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
7165 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
7166 ASM_OUTPUT_ASCII): Likewise.
7168 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
7169 output_mi_thunk, output_toc): Likewise.
7171 * rs6000/rs6000.md (movsi): Likewise.
7173 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
7175 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
7177 * v850/v850.c (print_operand, print_operand_address,
7178 v850_encode_data_area): Likewise.
7180 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
7182 * config/mips/mips.md (zero_extendsidi2): Always force operand
7183 one to memory for mips16.
7185 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7187 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
7188 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
7189 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
7190 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
7191 (min_precision): Result is unsigned.
7192 (add_double, neg_double, mul_double): Low word is unsigned.
7193 (lshift_double, rshift_double, lrotate_double): Likewise.
7194 (rrotate_double, div_and_round_double): Likewise.
7195 (tree_floor_log2, compare_tree_int): New functions.
7196 (preserve_rtl_expr_temps): New declaration.
7197 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
7198 (decl_attributes): Use tree_log2 to find alignment.
7199 Check for TREE_INT_CST_HIGH for format args.
7200 (min_precision): Now unsigned.
7201 Use tree_floor_log2.
7202 (truthvalue_conversion): Delete long-disabled code.
7203 * c-decl.c (finish_struct): Clean up tests on field width.
7204 (finish_function): Use compare_tree_int.
7205 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
7206 * c-typeck.c (comptypes): Use tree_int_cst_equal.
7207 (default_conversion, digest_init): Use compare_tree_int.
7208 (build_binary_op): Use integer_all_onesp and compare_tree_int.
7209 Fix type errors in forming masks.
7210 * calls.c (initialize_argument_information): Use compare_tree_int.
7211 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
7212 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
7213 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
7214 (store_field): Use compare_tree_int.
7215 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
7216 (expand_expr, case ARRAY_REF): Use compare_tree_int.
7217 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
7218 (do_store_flag): Use compare_tree_int.
7219 * fold-const.c (encode, decode): Low part is always unsigned.
7220 (force_fit_type, add_double, neg_double, mul_double): Likewise.
7221 (lshift_double, rshift_double, lrotate_double): Likewise.
7222 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
7223 (fold_convert): Use compare_tree_int.
7224 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
7225 (invert_truthvalue, case INTEGER_CST): Likewise.
7226 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
7227 * mkdeps.c (deps_dummy_targets): Make I unsigned.
7228 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
7229 (lshift_double, rshift_double, lrotate_double, rrotate_double):
7231 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
7232 (expand_end_case): Use compare_tree_int.
7233 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
7234 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
7235 (layout_decl): Likewise.
7236 (layout_record, layout_union): Make sizes unsigned.
7237 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
7238 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
7239 * tree.c (struct type_hash): hashcode is unsigned.
7240 (build_type_attribute_variant, type_hash_list): Likewise.
7241 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
7242 (attribute_hash_list, build_array_type, build_method_type): Likewise.
7243 (build_complex_type): Likewise.
7244 (real_value_from_int_cst): Remove unneeded casts.
7245 (integer_all_onesp): Add casts.
7246 (tree_floor_log2, compare_tree_int): New functions.
7247 (build_index_type): Use tree_int_cst_sgn.
7248 * varasm.c (assemble_variable): Use compare_tree_int.
7250 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
7252 * cpphash.c (collect_expansion): Also catch ## at start of macro.
7254 * varasm.c (make_decl_rtl): Don't add a number to members of
7256 (make_function_rtl): Likewise.
7258 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7260 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
7261 patch from 2000-01-28.
7263 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
7265 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
7266 filled with an insn from the jump target.
7268 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7270 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
7271 (c4x_external_ref): Likewise.
7272 * config/c4x/c4x.c (struct name_list): Likewise.
7274 1999-12-16 Ben Collins <bcollins@debian.org>
7276 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
7277 argument to genmultilib.
7278 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
7279 the contents into the multilib.h header.
7280 * gcc.c: Declare multilib_exclusions for the specs file.
7281 (set_multilib_dir): Use it.
7282 (print_multilib_info): Likewise.
7283 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
7284 to pass to genmultilib.
7286 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7288 * builtins.c (built_in_class_names, built_in_names): Constify a
7291 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
7293 (_mcleanup): Ensure value matches format specifier in sprintf.
7295 * cpphash.c (special_symbol): Don't needlessly cast away
7298 * cppinit.c (base_name): Delete unused prototype.
7300 * mkdeps.c (deps_init): Make definition K&R safe.
7302 * tree.h (built_in_class_names, built_in_names): Constify a
7305 2000-03-06 Jakub Jelinek <jakub@redhat.com>
7307 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
7308 floating point instructions for epilogue delay.
7310 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
7311 to gas if it supports .register pseudo.
7313 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
7314 LONG_DOUBLE_TYPE_SIZE if not defined.
7315 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
7316 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
7318 * gengenrtl.c: Likewise.
7319 * print-rtl.c: Likewise.
7321 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
7322 MASK_LONG_DOUBLE_128.
7323 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
7324 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
7325 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
7326 (SUBTARGET_SWITCHES): Define.
7327 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
7328 with -mlong-double-128.
7329 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
7330 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
7331 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
7332 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
7333 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
7334 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
7335 with -mlong-double-128.
7336 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
7337 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
7338 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
7339 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
7340 TARGET_LONG_DOUBLE_128): Define.
7341 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
7342 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
7343 long double on TARGET_ARCH64.
7345 2000-03-06 Mark Mitchell <mark@codesourcery.com>
7347 * function.c (free_temps_for_rtl_expr): Don't free slots
7348 that have been pushed into a higher level.
7351 2000-03-05 Mark Mitchell <mark@codesourcery.com>
7353 2000-03-05 Mark Mitchell <mark@codesourcery.com>
7355 * basic-block.h (ALLOCA_REG_SET): Remove.
7356 (INITIALIZE_REG_SET): New macro.
7357 * flow.c (update_life_info): Use it.
7358 (calculate_global_regs_live): Likewise.
7359 (propagate_block): Likewise.
7360 * global.c (build_insn_chain): Likewise.
7361 * haifa-sched.c (schedule_region): Likewise.
7363 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
7365 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
7366 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
7367 (DWARF_ARANGES_PAD_SIZE): New define.
7368 (output_aranges): Use it to pad the address range header.
7369 (DWARF_ROUND): Fix for non power of 2 rounding.
7371 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
7373 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
7375 2000-03-05 Mark Mitchell <mark@codesourcery.com>
7377 * tree.def (RTL_EXPR): Update documentation.
7378 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
7379 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
7380 * function.c (preserve_rtl_expr_temp): New function.
7381 (preserve_rtl_expr_temps): Likewise.
7382 (preserve_rtl_expr_result): Use it.
7385 2000-03-04 Mark Mitchell <mark@codesourcery.com>
7387 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
7389 * regmove.c (copy_src_to_dest) Do not create src->dest move
7390 for unchanging destination.
7392 2000-03-04 Mark Mitchell <mark@codesourcery.com>
7394 * function.h (struct sequence_stack): Remove rtl_expr.
7395 (struct emit_staus): Likewise.
7396 (seq_rtl_expr): Remove.
7397 * tree.h (free_temps_for_rtl_expr): Don't declare.
7398 (start_sequence_for_rtl_expr): Likewise.
7399 * rtl.h (preserve_rtl_expr_result): Likewise.
7400 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
7401 (start_sequence_for_rtl_expr): Remove.
7402 (push_topmost_sequence): Don't save sequence_rtl_expr.
7403 (pop_topmost_sequence): Remove comment about not restoring it.
7404 (end_sequence): Don't set seq_rtl_expr.
7405 (init_emit): Don't initialize it.
7406 (mark_sequence_stack): Don't mark it.
7407 (mark_emit_status): Likewise.
7408 * except.c (protect_with_terminate): Use
7409 start_sequence_for_rtl_expr, not start_sequence.
7410 * expr.c (expand_expr, case RTL_EXPR): Don't call
7411 preserve_rtl_expr_result or free_temps_for_rtl_expr.
7412 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
7413 (preserve_rtl_expr_result): Remove.
7414 (free_temps_for_rtl_expr): Likewise.
7415 (pop_temp_slots): Likewise.
7416 (mark_temp_slot): Don't mark the rtl_expr.
7417 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
7418 start_sequence_for_rtl_expr.
7420 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
7422 * mkdeps.c, mkdeps.h: New files.
7423 * po/POTFILES.in: Add them.
7424 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
7425 (cpplib.o, cppinit.o): Depend on mkdeps.h.
7426 (mkdeps.o): New target.
7428 * cppfiles.c: Delete deps_output.
7429 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
7430 OBJECT_SUFFIX, and base_name.
7431 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
7433 (initialize_dependency_output): Use deps_init,
7434 deps_add_target, deps_calc_target, and deps_add_dep. Remove
7435 all the unnecessary string bashing.
7436 (cpp_finish): Use deps_write. Remove an unnecessary nesting
7438 * cpplib.c (do_include): Use deps_add_dep.
7439 * cpplib.h (struct cpp_reader): Replace deps_buffer,
7440 deps_allocated_size, deps_size, deps_column members with
7441 single pointer to a struct deps. Delete prototype of
7444 * cppinit.c: Fix thinko in previous patch.
7446 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7448 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
7449 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
7450 (mode_for_size_tree): New function.
7451 (layout_decl, layout_type): Call it and clean up BLKmode checks.
7452 * tree.h (mode_for_size_tree): New declaration.
7454 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
7456 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
7458 * stmt.c (is_body_block): Move...
7459 * dwarfout.c, dwarf2out.c: ...from here.
7460 * tree.h: Declare it.
7461 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
7462 * final.c (final_start_function): Do call remove_unnecessary_notes
7465 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
7467 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
7469 * cpplib.h (_dollar_ok): New macro.
7470 (is_idchar, is_idstart): Use it.
7471 (IStable): Rename to _cpp_IStable. Declare it const if
7472 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
7473 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
7474 is_space): Update for renamed IStable.
7476 * cppinit.c: Delete all references to FAKE_CONST and CAT
7477 macros. Define init_IStable as empty macro if gcc >=2.7 or
7478 C99. Change TABLE() to ISTABLE and hardcode name of table.
7479 (cpp_start_read): Don't change the IStable based on
7482 * cpphash.c (unsafe_chars): Add pfile argument. All callers
7483 changed. Handle '$' for char1 correctly.
7484 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
7486 * cppexp.c (tokentab2): Make const.
7487 (cpp_lex): Make toktab const.
7488 * cppinit.c (include_defaults_array): Make const.
7489 (initialize_standard_includes): Make default_include const.
7491 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
7493 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
7494 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
7495 (gen_decl_die): Likewise.
7496 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
7497 (output_decl): Likewise.
7499 * varasm.c (make_function_rtl): If we change the name used in the
7500 rtl, update DECL_ASSEMBLER_NAME accordingly.
7501 (make_decl_rtl): Likewise.
7503 * toplev.c (rest_of_compilation): Tweak formatting.
7505 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
7506 remove_unnecessary_notes.
7507 (debug_ignore_block): New fn.
7508 * toplev.h: Declare it.
7509 * emit-rtl.c (remove_unncessary_notes): Call it.
7510 * dwarf2out.c (dwarf2out_ignore_block): New fn.
7511 * dwarf2out.h: Declare it.
7512 * final.c (final_start_function): Don't call remove_unnecessary_notes
7513 if we did insn scheduling.
7515 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
7517 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
7518 * cpplib.h: Delete SET_CPP_PEDANTIC.
7520 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7522 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
7523 result is a RECORD_TYPE.
7525 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
7527 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
7529 2000-03-03 Richard Henderson <rth@cygnus.com>
7531 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
7532 addition over compliments over shifts.
7534 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7536 * reload1.c (reload_combine_note_use): Handle return register USEs.
7537 REG case: Handle multi-hard-register hard regs.
7539 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7541 * md.texi: Document use of '*' in insn pattern name.
7543 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
7545 * calls.c (special_function_p): operator new may not be malloc-like.
7547 * gcse.c (dump_hash_table): Really fix error in last change.
7549 2000-03-02 Denis Chertykov <denisc@overta.ru>
7551 * avr.c (print_operand): Use print_operand_address instead of
7553 * avr/libgcc.S: Cleanup code.
7555 2000-03-02 Richard Henderson <rth@cygnus.com>
7557 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
7559 2000-03-02 Mark Mitchell <mark@codesourcery.com>
7561 * tree.h (TYPE_ALIGN_UNIT): New macro.
7563 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
7565 * i386.c: (constant_call_address_operand): Reject CONST_INT.
7567 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
7569 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
7571 (SET_CPP_PEDANTIC): New macro.
7572 * cpplib.c (do_include): Don't bother checking system_header_p.
7573 (do_warning, do_ident, do_assert, do_unassert): Likewise.
7574 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
7576 * function.h (struct expr_status): Add x_arg_space_so_far.
7577 (arg_space_so_far): New macro.
7578 * expr.c (init_expr): Initialize it.
7579 * calls.c (emit_call_1): Reset it.
7580 (compute_argument_block_size, expand_call): Use it.
7581 (expand_call, store_one_arg): Increment it.
7583 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7585 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
7588 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
7590 * cppfiles.c (cpp_read_file): New function.
7592 * cpphash.c (collect_expansion): Make sure to reset last_token
7593 to NORM when we hit a string. Handle trailing whitespace
7594 properly when the expansion is empty.
7595 (create_definition): Disable line commands while parsing the
7597 (dump_definition): If pfile->lineno == 0, output a line
7598 command ahead of the dump, and add a trailing newline.
7600 * cppinit.c (append_include_chain): Add fifth argument, which
7601 indicates whether or not system headers are C++ aware.
7602 (initialize_standard_includes): New function,
7603 broken out of read_and_prescan. Pass 'cxx_aware' value from
7604 the include_defaults_array on to append_include_chain.
7605 (dump_special_to_buffer): Const-ify char array.
7606 (builtin_array): Don't dump __BASE_FILE__.
7607 (cpp_start_read): Use cpp_read_file. Reorder code for
7608 clarity. Don't output line commands here for -D/-A/-U
7609 switches. Don't call deps_output for files included with
7610 -include or -imacros.
7612 * cpplib.c (do_define): Don't pay any attention to the second
7614 (cpp_expand_to_buffer): Disable line commands while scanning.
7615 (output_line_command): Work in the file buffer.
7616 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
7617 Fix formatting of comments. Prototype cpp_read_file.
7619 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7621 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
7622 reference the language-equivalent of sizetype.
7623 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
7624 * fold-const.c (size_binop, size_diffop): Put back checks.
7625 * gcse.c (dump_hash_table): Fix minor error in last change.
7626 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
7627 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
7630 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
7632 * calls.c (expand_call) Do not attempt to combine stack adjustments
7633 with inhibit_defer_pop set.
7635 2000-03-01 Mark Mitchell <mark@codesourcery.com>
7637 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
7638 the DECL_SIZE for a FIELD_DECL.
7640 2000-03-01 Bruce Korb <bkorb@gnu.org>
7642 * fixinc/inclhack.tpl: remove unused symlinks
7643 * fixinc/README: GCC Maintainer info
7644 * fixinc/inclhack.sh: regen
7645 * fixinc/fixincl.sh: regen
7647 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
7649 * cpphash.c (collect_expansion): Trim trailing white space
7650 from macro definitions, but don't go past the last insertion
7653 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
7655 * i386.md (mulqi3): New pattern.
7657 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
7659 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
7661 (struct cpp_reader): Add parsing_if_directive and
7662 parsing_define_directive flags.
7663 (struct cpp_options): Remove output_conditionals flag.
7664 (check_macro_name): Delete prototype.
7666 * cpphash.h (struct macrodef): Delete.
7667 (struct reflist): Separate from struct definition.
7668 (struct definition): Remove unused fields. Add column number.
7669 (create_definition): Returns a DEFINITION *. Takes a
7670 cpp_reader * and an int.
7672 * cpphash.c (SKIP_WHITE_SPACE): Delete.
7673 (PEEKC): Copy defn from cpplib.c.
7674 (rest_extension, REST_EXTENSION_LENGTH): Delete.
7676 (struct arglist): Simplify.
7677 (collect_expansion): Rewrite. Get tokens by calling
7678 cpp_get_token. Add more error checking.
7679 (collect_formal_parameters): New function, broken out of
7680 create_definition and reworked to use get_directive_token.
7681 (create_definition): All real work is now in collect_expansion
7682 and collect_formal_parameters. do_define handles finding the
7683 macro name. Return a DEFINITION, not a MACRODEF.
7684 (macroexpand): Replace bcopy with memcpy throughout. Replace
7685 character-at-a-time copy loop with memcpy and pointer increments.
7686 (compare-defs): d1->argnames / d2->argnames might be null.
7688 * cpplib.c (copy_rest_of_line): Delete function.
7689 (skip_rest_of_line): Do all the work ourselves.
7690 (skip_string): New function.
7691 (parse_string): Use skip_string.
7692 (get_macro_name): New function.
7693 (check_macro_name): Delete.
7694 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
7695 (cpp_skip_hspace): Use CPP_BUMP_LINE.
7696 (handle_directive): ICE if we're called on a macro buffer.
7697 (do_define): Determine macro name and type (funlike/objlike)
7698 here. Expunge all uses of MACRODEF.
7699 (cpp_push_buffer): Set line_base to NULL.
7700 (do_undef, read_line_number): Don't worry about getting a POP token.
7701 (eval_if_expression): Set/reset parsing_if_directive around
7702 cpp_parse_expr. Don't clear only_seen_white.
7703 (skip_if_group): Remove output_conditionals logic. Use
7705 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
7706 tokens under appropriate conditions.
7707 (cpp_unassert): Call do_unassert not do_assert. Oops.
7709 * cppexp.c (parse_defined): New function, break out of
7711 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
7712 ourselves, with cpp_defined.
7713 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
7715 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
7716 * gcc.dg/strpaste-2.c: New.
7718 2000-02-29 Mark Mitchell <mark@codesourcery.com>
7720 * fold-const.c (size_binop): Don't asert inputs are the same and
7721 have TYPE_IS_SIZETYPE set.
7722 (size_diffop): Likewise.
7724 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
7726 * dwarfout.c (output_block): Output abstract blocks even if they
7727 don't have TREE_ASM_WRITTEN set.
7729 * calls.c (emit_library_call): Check for null REG.
7731 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
7733 * c-decl.c (current_function_decl): Move to toplev.c.
7734 (init_decl_processing): Don't add current_function_decl as a ggc
7736 * dbxout.c (dbxout_symbol): Change return type to int.
7737 (dbxout_symbol_location, dbxout_syms): Likewise.
7738 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
7739 any locals. Use current_function_func_begin_label if set.
7740 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
7741 * dwarf2out.c (dwarf2out_begin_prologue): Set
7742 current_function_func_begin_label.
7743 * final.c (final_start_function): Reset it.
7744 * toplev.c (current_function_decl): Define it here.
7745 (current_function_func_begin_label): New variable.
7746 (main): Add both as ggc roots.
7747 * tree.h (current_function_func_begin_label): Declare.
7749 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7751 * gcse.c: Cleanups throughout: mostly white-space, but also
7752 some minor rearrangement of code.
7754 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
7756 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
7757 returns a PARALLEL. Use emit_group_load and use_group_regs
7759 (emit_library_call_value): Similarly.
7761 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
7762 * pa/quadlib.asm: Remove.
7763 * pa/quadlib.c: New file.
7765 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
7766 * configure: Rebuilt.
7768 2000-02-29 Philip Blundell <pb@futuretv.com>
7770 * config/arm/conix-elf.h: New file.
7771 * configure.in (arm*-*-conix*): New configuration.
7772 * configure: Regenerate.
7774 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
7776 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
7777 don't have TREE_ASM_WRITTEN set.
7779 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7781 * Eliminate DECL_FIELD_SIZE.
7782 * builtins.c (built_in_class_names, built_in_names): New variables.
7783 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
7784 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
7785 DECL_SIZE, not DECL_FIELD_SIZE.
7786 * print-tree.c (print_node): Remove code that prints extra blank
7787 lines in some cases.
7788 Properly handle inline and builtin function cases.
7789 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
7790 * tree.h (built_in_class_named, built_in_names): New declarations.
7791 (union tree_decl): Rename internal unions to u1 and u2 and change
7792 some of their components.
7793 Add new field built_in_class.
7794 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
7795 Reflect above changes.
7796 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
7797 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
7798 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
7799 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
7801 2000-02-28 Dmitri Makarov <dim@windriver.com>
7803 * extend.texi: Document ARM's support for long/short calls.
7805 * invoke.texi: Document ARM's -mlong-calls command line switch.
7807 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
7808 (arm_encode_call_attribute): Add prototype.
7809 (arm_set_default_type_attribute): Add prototype.
7810 (arm_strip_name_encoding): Add prototype.
7812 * config/arm/arm.c (arm_init_cumulative_args): replace
7813 initialisation og 'long_calls' field with initialisation of
7814 'call_cookie' field.
7815 (enum arm_pragma_enum): New enum.
7816 (arm_pragma_long_calls): New static variable.
7817 (arm_process_pragma): Also process "#pragma long_calls_off".
7818 (arm_valid_type_attribute_p): Accept short_call attribute.
7819 (arm_comp_type_attributes): Check long/short call attributes.
7820 (arm_encode_call_attribute): New function: Encode long_call
7821 or short_call attribute in function name.
7822 (arm_set_default_type_attributes): New function: Assign
7823 default attributes to newly defined type.
7824 (current_file_function_operand): New function: Return true if
7825 the symbol is a function which has already been compiled.
7826 (arm_is_longcall_p): New function: Return true if the
7827 indicated function should be called via a long call.
7828 (arm_get_strip_length): New function. Returns number of
7829 prefix characters to be stripped from a function's name.
7830 (arm_strip_name_encoding): New function. Strip prefix characters
7831 from a function's name.
7833 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
7835 (SHORT_CALL_FAG_CHAR): Define.
7836 (LONG_CALL_FAG_CHAR): Define.
7837 (ENCODED_SHORT_CALL_ATTR_P): Define.
7838 (ENCODED_LONG_CALL_ATTR_P): Define.
7839 (ARM_NAME_ENCODING_LENGTHS): Define.
7840 (STRIP_NAME_ENCODING): Define.
7841 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
7842 (ARM_ENCODE_CALL_TYPE): Define.
7843 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
7844 (ARM_DECLARE_FUNCTION_SIZE): Define.
7845 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
7847 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
7848 if a long call is needed.
7849 (call_value): Ditto.
7850 (call_symbol): Ditto.
7852 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
7853 ARM_DECLARE_FUNCTION_SIZE.
7855 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
7856 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
7857 (ARM_STRIP_NAME_ENCODING): Undefine.
7858 (STRIP_NAME_ENCODING): Undefine.
7859 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
7860 (ASM_DECLARE_FUNCTION_NAME): Ditto.
7861 (ASM_OUTPUT_COMMON): Ditto.
7862 (ASM_DECLARE_OBJECT_NAME): Ditto.
7864 * config/arm/pe.c (arm_dllexport_name_p): Check for
7866 (arm_dllimport_name_p): Ditto.
7867 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
7868 (arm_mark_dllimport): Ditto.
7870 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7872 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
7874 2000-02-28 Mark Mitchell <mark@codesourcery.com>
7876 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
7878 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
7880 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
7881 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
7882 NO_BUILTIN_WCHAR_TYPE is not defined.
7883 (CPP_WCHAR_TYPE): Delete.
7884 * cccp.c (main): Don't change wchar_type if cplusplus.
7885 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
7887 2000-02-28 Nick Clifton <nickc@cygnus.com>
7889 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
7891 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
7893 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
7894 (ASM_WEAKEN_LABEL): Define.
7896 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
7898 * expr.c (store_constructor): Do not emit USE.
7899 * rtl.h (stupid_life_analysis): Remove.
7901 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7903 * function.c (number_blocks): Reset next_block_index based on
7904 what debugging format is used, not what is defined.
7906 * lcm.c: Minor reformatting throughout.
7907 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
7909 * toplev.c (rest_of_compilation): Account for time in
7910 optimize_mode_switching.
7912 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
7913 if only marking labels.
7915 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
7917 * calls.c (expand_call): Attempt to combine stack adjustments with
7918 pending stack adjustments.
7920 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7922 * loop.c (reg_in_basic_block_p): Don't abort when falling through
7923 to the end of the function.
7925 2000-02-27 Mark Mitchell <mark@codesourcery.com>
7927 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
7929 * final.c (next_block_index): Remove.
7930 (max_block_depth): Likewise.
7931 (pending_blocks): Likewise.
7932 (init_final): Don't initialize them.
7933 (final_start_function): Don't set next_block_index. Set up
7935 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
7936 * function.h (number_blocks): New function.
7937 * function.c (get_block_vector): New function.
7938 (identify_blocks): Use it.
7939 (reorder_blocks): Set NOTE_BLOCK.
7940 (number_blocks): New function.
7941 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
7942 * tree.h (BLOCK_NUMBER): New macro.
7943 (tree_block): Add block_num field.
7944 * dbxout.c (next_block_number): Remove.
7945 (dbxout_init): Don't set it.
7946 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
7947 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
7949 * toplev.c (rest_of_compilation): Always call
7950 find_loop_tree_blocks. Fix indentation.
7951 * dwarf2out.c (next_block_number): Remove.
7952 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
7953 to determine block numbers.
7954 (gen_inlined_subroutine_die): Likewise.
7955 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
7956 (decls_for_scope): Don't increment next_block_number.
7957 * dwarfout.c (next_block_number): Remove.
7958 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
7959 to determine block numbers.
7960 (output_inlined_subroutine_die): Likewise.
7961 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
7962 (output_decls_for_scope): Don't increment next_block_number.
7963 * sdbout.c (next_block_number): Remove.
7964 (sdbout_block): Use BLOCK_NUMBER.
7965 (sdbout_begin_block): Simplify.
7966 * xcoffout.c (next_block_number): Remove.
7967 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
7968 (xcoffout_begin_block): Don't set next_block_number.
7969 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
7972 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7974 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
7975 (expand_builtin_strcpy): Pass correct type to size_binop.
7976 (expand_builtin_strcmp): Likewise.
7977 Clean up conditional structure.
7978 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
7979 (complete_array_type): Don't use size_binop for MAXINDEX.
7980 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
7981 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
7982 (c_alignof): Use size_one_node.
7983 (build_unary_op): Pass arg of proper type to size_binop.
7984 (really_start_incremental_init, push_init_level): Use sizetype for
7985 constructor{,_bit,_unfilled}_index.
7986 (pop_init_label, output_init_element): Likewise.
7987 (output_pending_init_elements, process_init_element): Likewise.
7988 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
7989 * expr.c (store_expr): Use size_int.
7990 (store_constructor): Use proper types for size_binop args.
7991 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
7992 (expand_expr_unaligned): Likewise.
7993 (string_contant): Return object of sizetype.
7994 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
7995 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
7996 (ARGS_SIZE_TREE): Pass proper types to size_binop.
7997 * fold-const.c (int_const_binop): Refine when size_int is called.
7998 (fold_convert): Likewise.
7999 (size_int_wide): Rework to take KIND as arg, only take low order
8000 bits, handle new sizetype_tab datatype, and chain entries in
8002 (size_int_type_wide): New function.
8003 (size_binop): Validate types of arguments.
8004 (ssize_binop): Deleted.
8005 (size_diffop): New function.
8006 (extract_muldiv): Only fold division into multiplication for sizetypes.
8007 * function.c (assign_parms): Use size_diffop and make sure
8008 VAR field is of ssizetype; also pass proper type to size_binop.
8009 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
8010 (round_down): Deleted from here.
8011 * store-layout.c (sizetype_tab): Now an array.
8012 (sizetype_set, early_root_list): New variables.
8013 (variable_size): Use size_one_node.
8014 (round_up): Pass proper type to size_binop.
8015 (round_down): Moved to here and corrected as above.
8016 (layout_record): Pass proper arg types to size_binop.
8017 (layout_type): Likewise.
8018 If sizetype_set is zero, record the type just laid out.
8019 (make_unsigned_type): Don't call set_sizetype;
8020 (make_signed_type): Likewise; also, call fixup_signed_type.
8021 (initialize_sizetypes): New function.
8022 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
8023 set name of bitsizetype to "bit_size_type".
8024 Fix up type of sizes of all types made before call.
8025 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
8026 * tree.c (fix_sizetype): Deleted.
8027 (build_common_tree_nodes): Call initialize_sizetypes.
8028 (build_common_tree_nodes_2): Don't call fix_sizetype.
8029 * tree.h (TYPE_IS_SIZETYPE): New macro.
8030 (initialize_sizetype): New declaration.
8031 (enum size_type_kind): New type.
8032 (struct sizetype_tab): Deleted.
8033 (sizetype_tab): Now array; adjust sizetype macros.
8034 (size_diffop, size_int_type_wide): New functions.
8035 (size_int_wide): Change number of args and type; access macros changed.
8036 (ssize_int, sbitsize_int): New macros.
8037 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
8038 (ROUND_TYPE_SIZE_UNIT): New macro.
8040 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
8042 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
8044 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8046 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
8047 Mark as possibly unused.
8049 * cse.c (cse_insn): Delete dead code involving tablejump.
8050 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
8052 * Makefile.in (libcpp.a): Start by deleting it.
8054 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8056 * cpplib.h (enum file_change_code): Added rename_file.
8057 * cpplib.c (do_line): If a filename is given, set file_change to
8059 (output_line_command): If file_change is rename_file, always
8060 output a # directive with the file name.
8062 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
8064 2000-02-26 Mark Mitchell <mark@codesourcery.com>
8066 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
8067 when copying a PARM_DECL or RESULT_DECL.
8069 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8071 * fix-header.c (recognized_function): Also fix prototypes for
8072 functions taking "void".
8074 2000-02-26 Geoff Keating <geoffk@cygnus.com>
8076 * reload1.c (do_output_reload): Check reg_reloaded_valid before
8077 looking at reg_reloaded_contents.
8079 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
8081 * Makefile.in (STMP_FIXINC): New toggle.
8082 (LIBGCC2_DEPS): Delete all references.
8083 (stmp-headers): Delete target. All references either deleted
8084 or changed to stmp-int-headers.
8085 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
8086 (LIBCPP_OBJS): Take out cppalloc.o.
8087 (cppalloc.o): Delete target.
8088 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
8089 (gen-protos, fix-header): Link with libiberty.a.
8090 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
8093 * configure.in: Remove refs to strerror.
8094 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
8095 * system.h: Take out strerror stanza.
8097 * cpperror.c (my_strerror): Delete function.
8098 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
8099 * cppmain.c (main): Call xmalloc_set_program_name first thing.
8100 * cppalloc.c: Delete file.
8101 * gen-protos.c: Don't provide xrealloc.
8103 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
8104 xstrerror throughout.
8106 2000-02-26 Bruce Korb <bkorb@gnu.org>
8108 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
8109 match for DOS headers, too.
8110 * fixinc/inclhack.sh,fixincl.x: Regenerate.
8112 2000-02-26 Geoff Keating <geoffk@cygnus.com>
8114 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
8115 is right for most ELF targets.
8116 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
8117 Let the default file use %U properly.
8118 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
8121 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
8124 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8126 * toplev.c (documented_lang_options): Correct spelling error.
8127 (decode_d_option, decode_f_option, main): Likewise.
8129 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
8131 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
8132 to tell assembler it is permitted to expand large constants.
8134 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
8136 * protoize.c: (AUX_INFO_SUFFIX): New macro.
8137 (aux_info_suffix): Use.
8138 (SAVE_SUFFIX): New macro.
8140 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
8141 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
8142 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
8144 * invoke.texi (Running Protoize): Update documentation.
8146 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
8148 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
8150 2000-02-25 John Wehle (john@feith.com)
8152 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
8154 2000-02-25 Anthony Green <green@cygnus.com>
8156 * toplev.c (rest_of_compilation): Rebuild jump labels if
8157 combine_instructions has created a new direct jump.
8158 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
8160 (combine_instructions): Call try_combine with new argument.
8161 Return non-null value when new direct jump instruction is created.
8162 * rtl.h: combine_instructions returns an int.
8164 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
8166 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
8167 jump when changing a computed jump into a jump to a known
8170 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
8172 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
8173 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
8175 * i386.md (define_expand "clrstrsi"): Fix typo.
8177 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
8179 * rtl.texi: Fix typo.
8181 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8183 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
8184 UNITS_PER_WORD. Change caller initial_elimination_offset.
8185 (rounded_frame_size): Take into account that argument pushed has
8186 changed. Fix TARGET_ALIGN_DOUBLE problem.
8188 2000-02-25 Geoff Keating <geoffk@cygnus.com>
8190 * haifa-sched.c (schedule_block): Explain the real reason
8191 we delete REG_SAVE_NOTEs on the first insn of a block.
8192 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
8194 2000-02-24 Mark Mitchell <mark@codesourcery.com>
8196 * input.h (push_srcloc): New function.
8197 (pop_srcloc): Likewise.
8198 * toplev.c (push_srcloc): Define it.
8199 (pop_srcloc): Likewise.
8201 2000-02-24 Richard Henderson <rth@cygnus.com>
8203 * flow.c (life_analysis): When collecting reg info, clear
8206 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8208 Fix bug exposed by reload.c no longer rounding the frame
8209 size to BIGGEST_ALIGNMENT:
8210 * sh.c (rounded_frame_size): New function.
8211 (sh_expand_prologue, sh_expand_epilogue): Use it.
8212 (initial_elimination_offset): Likewise.
8214 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8216 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
8217 * sh-protos.h (sh_need_epilogue): Declare.
8218 * sh.c (sh_need_epilogue_known): New static variable.
8219 (sh_need_epilogue): New function.
8220 (function_epilogue): Clear need_epilogue_known.
8221 * sh.md (return): Split into expander / insn pattern.
8222 Make the expander conditional on ! sh_need_epilogue ().
8224 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
8226 * machmode.h (get_mode_alignment): Declare.
8227 (GET_MODE_ALIGNMENT): Call it.
8228 * stor-layout.c (get_mode_alignment): New function. Make
8229 sure alignment is always power of 2.
8231 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
8233 * i386.h: Remove useless definition of "I386" and misleading
8236 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
8238 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
8239 under which TREE_PERMANENT will be set.
8240 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
8241 build1): Use TREE_SET_PERMANENT.
8242 * print-tree.c (print_node): Don't report value of
8243 TREE_PERMANENT if ggc_p is true.
8245 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
8246 decide whether to give a type a new alias set.
8247 * objc/objc-act.c (build_objc_string_object): Never copy the string.
8248 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
8249 of value of 'obstack'.
8252 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8254 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
8256 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8258 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
8259 * cpplib.c (cpp_get_token): Produce them.
8260 * cppexp.c (cpp_lex): Handle them.
8262 2000-02-23 Nick Clifton <nickc@cygnus.com>
8264 * config/arm/arm.c (arm_comp_type_attributes): Simply and
8265 comment tests on type attributes.
8267 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8269 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
8270 conform to documentation.
8271 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
8272 to check for special cases.
8273 * sh-protos.h (sh_loop_align): Declare.
8274 * sh.c (sh_loop_align): Define.
8276 2000-02-22 Andrew Haley <aph@cygnus.com>
8278 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
8279 (SIZE_TYPE): Is 32 bits when using -mgp32.
8280 (PTRDIFF_TYPE): Ditto.
8282 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8284 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
8286 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
8288 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
8289 BIGGEST_FIELD_ALIGNMENT a constant.
8291 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
8293 * dwarf2out.c (output_line_info): Put the marker for the end of
8294 the line number info at the actual end.
8295 (gen_struct_or_union_type_die): Use decl_function_context
8296 to check for local classes.
8297 * dwarfout.c (output_type): Likewise.
8299 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
8301 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
8302 for arguments with a mode, but no type.
8303 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
8304 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
8305 * pa/long_double.h: New file.
8306 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
8307 both have 128bit wide long doubles.
8308 * configure: Rebuilt.
8310 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8312 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
8314 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
8315 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
8316 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
8318 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
8320 * integrate.c (compare_blocks, find_block): Likewise.
8322 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
8324 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
8326 * stmt.c (stmt_status, set_file_and_line_for_stmt,
8327 expand_asm_operands): Likewise.
8329 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
8331 * predict.c (estimate_probability): Added the pointer heuristic to
8332 the collection of static branch predictors.
8334 2000-02-21 Catherine Moore <clm@cygnus.com>
8336 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
8337 * invoke.texi (-mfix7000): Document.
8339 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
8341 * diagnostic.c (init_output_buffer): Make it possible to output at
8342 least 32 characters if we're given a too long prefix.
8344 2000-02-20 Mark Mitchell <mark@codesourcery.com>
8346 * varasm.c (initializer_constant_valid_p): Call
8347 lang_expand_constant to simplify the constant.
8349 2000-02-20 Bruce Korb <bkorb@gnu.org>
8351 * fixinc/inclhack.def(stdio_va_list):
8352 typedef needs to be disabled.
8353 * fixinc/inclhack.sh: regen
8354 * fixinc/fixincl.x: regen
8356 2000-02-20 Geoff Keating <geoffk@cygnus.com>
8358 * print-rtl.c (print_rtx): Don't print addresses when
8359 flag_dump_unnumbered.
8361 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8363 * sparc.c (sparc_output_scratch_registers): Mark parameter with
8365 (sparc_va_arg, sparc_flat_output_function_prologue,
8366 sparc_flat_output_function_epilogue): Cast value to unsigned in
8368 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
8370 * sparc.md: Add default case in switch.
8372 2000-02-19 Richard Henderson <rth@cygnus.com>
8374 * c-typeck.c (add_pending_init): Don't abort for multiple
8375 fields at the same offset.
8376 (pending_init_member): Test the correct member.
8378 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8380 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
8382 (start_catch_handler) : Same.
8384 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
8386 * Makefile.in: Have flow.o depend on $(EXPR_H)
8388 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8390 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
8391 * c-decl.c (duplicate_decls, finish_enum): Likewise.
8392 (finish_decl): Remove -Wlarger-than code from here.
8393 * flags.h (id_clash_len): Now int.
8394 (larger_than_size): Now HOST_WIDE_INT.
8395 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
8396 Clean up checking to see if in table.
8397 (make_bit_field_ref): Remove extra parm to bitsize_int.
8398 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
8399 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
8400 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
8401 and for computing size of decl.
8402 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
8403 Move -Wlarger-than code to here.
8404 (layout_record): Remove extra arg to bitsize_int.
8405 Set TYPE_BINFO_SIZE_UNIT.
8406 (layout_union): Remove extra arg to bitsize_int.
8407 Use proper type for size of QUAL_UNION.
8408 (layout_type): Remove extra arg to bitsize_int.
8409 * toplev.c (id_clash_len): Now int.
8410 (larger_than_size): Now HOST_WIDE_INT.
8411 (decode_W_option): Clean up id-clash and larger-than- cases.
8412 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
8413 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
8414 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
8415 (struct tree_decl): New field size_unit.
8416 (size_int_wide): No HIGH operand; NUMBER is now signed.
8417 (size_int_2): Deleted.
8418 (size_int, bitsize_int): Don't use it and rework args.
8419 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
8421 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
8423 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
8425 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8427 * invoke.texi (Warning Options): Add an explanation of why
8428 you might want the -Wfloat-equal flag.
8430 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8432 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
8433 * cppinit.c (new_pending_define): Add cast to avoid warning.
8434 * expmed.c (extract_bit_field): Likewise.
8435 * flow.c (enum reorder_skip_type): New type.
8436 (skip_insns_between_blcok): New it.
8437 Rework to avoid warning about possibly undefined variable.
8438 * function.c (assign_parms): Make thisparm_boundary unsigned.
8439 * genrecog.c (write_switch): Cast XWINT result to int.
8440 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
8441 * mips-tfile.c (init_file): Make two versions of FDR intializer:
8442 one for MIPS and one for Alpha.
8443 (get_tag, copy_object): Add casts to avoid warnings.
8444 * optabs.c (init_one_libfunc): Cast NAME to (char *).
8445 * reload.c (find_reloads): Make TYPE enum reload_type.
8446 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
8447 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
8448 * varasm.c (compare_constant_1): Add cast to avoid warning.
8449 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
8451 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
8452 Cast switch operand of size to int.
8453 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
8454 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
8457 2000-02-18 Nick Clifton <nickc@cygnus.com>
8459 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
8460 anything for an alignment of zero.
8462 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
8463 anything for an alignment of zero.
8465 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
8467 * gcc.texi (Bug Reporting): Refer to bugs.html.
8468 (Bug Lists): Likewise.
8469 * system.h (GCCBUGURL): New preprocessor define.
8470 * rtl.c (fancy_abort): Use it.
8471 * gcc.c (main): Likewise.
8473 2000-02-18 Richard Henderson <rth@cygnus.com>
8475 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
8476 (life_analysis_1): Subsume into ...
8477 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
8478 Use update_life_info for the relaxation.
8479 (update_life_info): Update REG_BASIC_BLOCK for registers live on
8480 entry and regs_live_at_setjmp.
8481 (set_noop_p): Simplify.
8482 (notice_stack_pointer_modification_1): Renamed from s/_1//.
8483 (record_volatile_insns): Split into ...
8484 (delete_noop_moves): ... here,
8485 (notice_stack_pointer_modification): ... here,
8486 (insn_dead_p): ... and here.
8487 (propagate_block): Don't query INSN_VOLATILE.
8488 (mark_used_regs): Mind !PROP_REG_INFO.
8489 * toplev.c (rest_of_compilation): Call mark_constant_function here,
8490 not in life_analysis.
8492 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
8494 * loop.c (canonicalize_condition): New function,
8495 broken out of get_condition.
8496 (get_condition): Use it.
8497 * expr.h (canonicalize_condition): Prototype it.
8499 * tree.h (tree_int_cst_msb): Declare.
8500 * tree.c (tree_int_cst_msb): New function.
8502 2000-02-17 Mark Mitchell <mark@codesourcery.com>
8504 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
8507 * invoke.texi (-fmessage-length=n): Document.
8509 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
8511 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
8513 2000-02-17 Mark Mitchell <mark@codesourcery.com>
8515 * function.c (thread_prologue_and_epilogue_insns): Put a line note
8518 2000-02-17 Nick Clifton <nickc@cygnus.com>
8520 * config/arm/thumb.c: Replace includes of system headers with
8521 #include "system.h".
8523 2000-02-16 Richard Henderson <rth@cygnus.com>
8525 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
8526 Add crtbeginS.o and crtendS.o.
8527 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
8528 (ENDFILE_SPEC): Use crtendS.o.
8529 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
8531 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
8532 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
8534 (__dso_handle): New variable.
8535 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
8536 bias to __CTOR_END__.
8538 2000-02-16 Richard Henderson <rth@cygnus.com>
8540 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
8542 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
8544 * longlong.h (__clz_tab): Declare as static to match definition.
8546 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
8547 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
8548 (XREF_FILE_NAME): Define.
8550 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
8551 (EH_FRAME_SECTION_ASM_OP): Define.
8552 (IDENT_ASM_OP): Define.
8553 (TEXT_SECTION_ASM_OP): Define.
8555 (CTORS_SECTION_ASM_OP): Define.
8556 (CTOR_SECTION_FUNCTION): Use it.
8557 (DTORS_SECTION_ASM_OP): Define.
8558 (DTOR_SECTION_FUNCTION): Use it.
8560 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
8562 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
8565 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
8566 debug_bb_n): New functions.
8567 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
8568 * basic-block.h: Prototype new functions.
8570 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
8572 * configure.in: Add support for avr target.
8573 * configure: Rebuilt.
8575 * invoke.texi: Add AVR invocation docs.
8576 * install.texi: Add information about AVR.
8577 * md.texi: Add AVR constraint letters description.
8578 * extend.texi: Add description for AVR specific attributes.
8580 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
8582 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
8584 2000-02-16 Nick Clifton <nickc@cygnus.com>
8586 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
8587 (make_insn_raw): Move RTL check here.
8589 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8591 * version.c: Include gansidecl.h and version.h.
8593 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
8595 * configure.in (gcc_version): When setting, narrow search to
8596 lines containing `version_string'.
8598 * Makefile.in (mainversion): Likewise.
8599 (GCC_H): New variable.
8600 (gcc.h): Delete target.
8601 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
8602 (version.o): Depend on version.h.
8603 (dbxout.o): Don't depend on gcc.h.
8605 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
8606 Michael Meissner <meissner@cygnus.com>
8608 * md.texi (Simple Constraints): Add item about whitespace.
8609 * genoutput.c (strip_whitespace): New.
8610 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
8611 strip_whitespace for constraints.
8612 Test pointer using NULL, not 0.
8614 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8616 * cpplib.c (do_line): Pedwarn for #line > 32767.
8618 * c-lex.c (readescape): Warn about '\x', but do not reject it.
8620 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
8622 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
8623 to default cpp spec.
8624 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
8625 * cpp.texi: Document __GNUC_PATCHLEVEL__.
8628 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
8631 2000-02-15 Denis Chertykov <denisc@overta.ru>
8633 * configure.in: Add support for avr target.
8635 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8637 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
8638 (sh_addr_diff_vec_mode): Don't declare.
8639 * sh.c (sh_addr_diff_vec_mode): Delete.
8641 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8643 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
8645 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8647 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
8648 (smulsi3_highpart_i): Name.
8649 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
8650 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
8651 (smulsi3_highpart, umulsi3_highpart): Likewise.
8653 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
8654 correctly independent of endianness.
8655 (mulsidi3, umulsidi3): Now define_insn. Hide details that
8656 confuse the optimizers.
8657 (mulsidi3+1, umulsidi3+1): New define_split.
8659 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
8661 * config/sh/sh.md: Guard insn splits against illegal registers.
8662 * config/sh/sh.h: Correct comment about macros.
8664 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8665 Andrew MacLeod <amacleod@cygnus.com>
8667 * Makefile.in (lcm.o): Depend on insn-attr.h.
8668 * basic-block.h (optimize_mode_switching): Declare.
8669 * lcm.c (tm_p.h, insn-attr.h): #include.
8670 (seginfo, bb_info): New structs.
8671 (antic, transp, comp, delete, insert) : New file-scope static variables.
8672 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
8673 (reg_becomes_live, optimize_mode_switching): Likewise.
8674 * tm.texi: Add description of mode switching macros.
8675 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
8677 * sh-protos.h (remove_dead_before_cse): Remove prototype.
8678 (fldi_ok, fpscr_set_from_mem): New prototypes.
8679 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
8680 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
8681 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
8682 (sh_flag_remove_dead_before_cse): Remove declaration.
8683 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
8684 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
8685 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
8686 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
8687 (barrier_align): Allow for JUMP_INSNS containing a parallel.
8688 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
8689 (fldi_ok): New function.
8690 (get_fpscr_rtx): Add fpscr_rtx as GC root.
8691 (emit_sf_insn): Only generate fpu switches when optimize < 1.
8692 (emit_df_insn): Likewise.
8693 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
8694 (sh_flag_remove_dead_before_cse): Delete.
8695 (get_free_reg, fpscr_set_from_mem): New functions.
8696 * sh.md (movdf, movsf): Remove no_new_pseudos code.
8697 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
8699 2000-02-15 Loren Rittle <ljrittle@acm.org>
8701 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
8703 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8705 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
8706 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
8708 * cccp.c: Include version.h and/or don't declare `version_string'.
8709 * collect2.c: Likewise.
8710 * alpha.c: Likewise.
8711 * arm/aof.h: Likewise.
8712 * arm/coff.h: Likewise.
8713 * arm/elf.h: Likewise.
8714 * arm/pe.h: Likewise.
8715 * arm/tcoff.h: Likewise.
8716 * arm/telf.h: Likewise.
8717 * arm/tpe.h: Likewise.
8718 * arm/vxarm.h: Likewise.
8719 * convex/convex.c: Likewise.
8720 * i386/dgux.c: Likewise.
8721 * i386/sun386.h: Likewise.
8722 * m88k/m88k.c: Likewise.
8723 * mcore/mcore-pe.h: Likewise.
8724 * mips/mips.h: Likewise.
8725 * romp/romp.h: Likewise.
8726 * sh/sh.c: Likewise.
8727 * cpphash.c: Likewise.
8728 * cppinit.c: Likewise.
8729 * dwarf2out.c: Likewise.
8730 * dwarfout.c: Likewise.
8733 * mips-tfile.c: Likewise.
8734 * protoize.c: Likewise.
8735 * toplev.c: Likewise.
8738 * version.c (version_string): Constify a char*.
8740 * version.h: New file.
8742 2000-02-14 Nick Clifton <nickc@cygnus.com>
8744 * configure.in: Add mcore-elf and mcore-pe targets.
8745 * configure: Regenerate.
8747 * NEWS: Add note that MCore port has been contributed.
8749 * invoke.texi: Document command line switches for MCore port.
8750 * install.texi: Add MCore to list of supported targets.
8752 2000-02-14 Geoff Keating <geoffk@cygnus.com>
8754 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
8755 then we will need to import the frame handling functions.
8756 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
8757 to import the frames themselves.
8759 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
8760 Jason Eckhardt <jle@cygnus.com>
8762 * basic_block.h: Added prototype for reorder_basic_blocks.
8763 * toplev.c: Changes to add -freorder-blocks and graph dump after
8764 block reordering is done.
8765 * flow.c (reorder_block_def): New structure for use during block
8767 (REORDER_BLOCK_*): New macros to access members of above structure.
8768 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
8769 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
8770 functions for block reordering.
8772 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
8774 * gcc.texi (Passes): Fix typo.
8775 * md.texi (Standard Names): Ditto.
8776 * tm.texi (Storage Layout): Ditto.
8778 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
8780 * cpplib.c (do_define): Only free the old definition if it
8783 2000-02-13 Neil Booth <NeilB@earthling.net>
8785 * cppfiles.c (read_and_prescan): When emitting deferred
8786 newlines, test speccase[] again instead of checking each
8787 possible whitespace character in turn. When we encounter \r,
8788 look behind for \n first, then ahead.
8790 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
8792 * cse.c (cse_altered): New internal flag.
8793 (cse_insn): Set it if we changed an insn.
8794 (cse_main): Clear cse_altered before each basic block.
8795 Only garbage collect if cse_altered is true afterward.
8797 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8799 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
8801 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
8803 * combine.c (simplify_comparison): Fix typo.
8805 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
8807 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
8810 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8812 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
8813 previously inserted node instead of root node. Caller changed.
8815 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8817 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
8819 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8821 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
8822 __dereg_frame_dtor): Add prototype argument.
8824 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
8826 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
8828 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
8830 * gthr-vxworks.h (__gthread_once): Likewise.
8832 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
8834 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
8836 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
8837 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
8838 stack pointer in functions w/o saved registers, output LEAVE more often
8839 on TARGET_USE_LEAVE machines.
8841 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
8843 * config/arm/arm.c (arm_init_cumulative_args); New function:
8844 Initlaise the CUMULATIE_ARGS strcuture for a function
8846 (arm_function_arg): New function: Determine where to place a
8847 function's argument. Also handles deciding the function's
8849 (current_file_function_operand): New function: Return true if
8850 the symbol is a function which has already been compiled.
8851 (arm_is_long_call_p): New function: Return true if the
8852 indicated function should be called via a long call.
8853 (arm_valid_type_attribute_p): New function: Return true if the
8854 attribute is a valid, arm specific, attribute.
8855 (arm_comp_type_attribute): New function: Return true if the
8856 two types have compatable, arm specific, attributes.
8858 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
8860 (FUNCTION_ARG): Redefine to call arm_function_arg.
8861 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
8863 (INIT_CUMULATIVE_ARGS): Redefine to call
8864 arm_init_cumulative_args.
8865 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
8867 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
8869 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
8871 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
8872 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
8873 (COMP_TYPE_ATTRIBUTES): Define.
8875 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
8876 if a long call is needed.
8877 (call_value): Call arm_is_long_call_p to decide if a long call
8879 (call_symbol): Call arm_is_long_call_p to decide if a long call
8882 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
8884 2000-02-11 Denis Chertykov <denisc@overta.ru>
8886 * README.AVR: New file with information about the avr ports.
8887 * config/avr: New directory with avr port files.
8889 2000-02-11 Andreas Jaeger <aj@suse.de>
8891 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
8893 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
8895 * cpphash.c: Fix formatting, update commentary.
8896 (dump_definition): Take three separate arguments instead of a
8897 MACRODEF structure argument.
8898 * cpphash.h: Update prototype of dump_definition.
8899 * cppinit.c (cpp_finish): Update call of dump_definition.
8901 * cpplib.c (do_define): Always create new hash entry with
8902 T_MACRO type. Remove redundant check for redefinition of
8903 poisoned identifier. Update call of dump_definition.
8904 (do_undef): Don't call check_macro_name. Rename sym_length to
8906 (do_error, do_warning): Don't use copy_rest_of_line or
8908 (do_warning): Don't use pedwarn for the actual warning,
8909 only the notice about its not being in the standard. (Fixes
8910 bug with #warning in system headers.)
8911 (do_ident): Stricter argument checking - accept only a single
8912 string after #ident. Also, macro-expand the line.
8913 (do_xifdef): Use cpp_defined. De-obfuscate.
8915 (do_pragma): Split out specific pragma handling to separate
8916 functions. Use get_directive_token. Update commentary. Do
8917 not pass on #pragma once or #pragma poison to the front end.
8918 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
8919 do_pragma_default): New.
8921 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
8923 * jump.c (jump_optimize_1): The first operand in a relational
8925 * optabs.c (emit_conditional_move): Handle relationals which
8926 have a known true/false result.
8928 2000-02-11 Geoff Keating <geoffk@cygnus.com>
8930 * function.c (thread_prologue_and_epilogue_insns): Don't insert
8931 a RETURN insn into a block which already ends with a jump.
8933 2000-02-11 Geoff Keating <geoffk@cygnus.com>
8935 * haifa-sched.c (BUF_LEN): Increase a lot.
8937 2000-02-11 Nick Clifton <nickc@cygnus.com>
8939 * configure.in: Add tm_p_file specification for thumb targets.
8940 * configure: Regenerate.
8942 * config/arm/thumb-protos.h: New file: Prototypes for exported
8943 functions defined in thumb.c.
8945 2000-02-11 Robert Lipe <robertl@sco.com>
8947 * Makefile.in (bootstrap-lean): Remove additional files.
8948 (bootstrap2-lean): Likewise.
8949 (VOL_FILES): List of files for above.
8951 2000-02-11 Nathan Sidwell <nathan@acm.org>
8953 * cpphash.c (special_symbol): Remove spurious argument to
8956 2000-02-11 Joel Sherrill (joel@OARcorp.com>
8958 * configure.in: (i*86-*-rtems*): Swapped elf and coff
8960 * configure: Rebuilt.
8962 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
8964 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
8966 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
8968 * pa.c, pa.h: Remove trigraph sequences within comments.
8970 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
8972 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
8974 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
8976 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
8978 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8980 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
8982 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8984 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
8985 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
8986 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8987 (ASM_FILE_END): Use c4x_file_end.
8988 * config/c4x/c4x.c (c4x_global_label): New function.
8989 (c4x_external_ref, c4x_file_end): Likewise.
8991 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
8992 (c4x_external_ref, c4x_end_file): Likewise.
8994 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
8996 * cppexp.c: Don't include cpphash.h.
8997 (parse_charconst, cpp_lex): Use cpp_defined.
8998 (cpp_lex): Use get_directive_token throughout. Remove
8999 unnecessary cases from switch. Move assertion-handling code
9001 (cpp_parse_expr): If we see '+' or '-', check the context to
9002 determine if they are unary or binary operators. Streamline
9003 the jumps a bit. Do not call skip_rest_of_line.
9005 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
9006 static. Export get_directive_token. Update commentary.
9007 (cpp_defined): New function.
9008 (do_define): Remove reference to T_PCSTRING. Call
9009 free_definition to release memory for old definition, when
9011 (eval_if_expression): Set only_seen_white to 0 before calling
9012 cpp_parse_expr. Call skip_rest_of_line after it returns.
9013 (cpp_read_check_assertion): Don't preserve a pointer into the
9014 token buffer across a call to cpp_get_token.
9016 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
9017 * cppfiles.c (redundant_include_p): Use cpp_defined.
9018 * cpphash.c (free_definition): New function.
9019 (delete_macro): Use it. Update commentary.
9020 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
9022 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
9023 from enum node_type. Prototype cpp_defined and get_directive_token.
9024 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
9026 * fix-header.c (check_macro_names): Use cpp_defined.
9027 (read_scan_file): Set inhibit_warnings and inhibit_errors in
9028 the options structure.
9030 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9032 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
9034 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
9036 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
9037 rather than die->die_tag.
9039 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9041 * combine.c (make_extraction, force_to_mode): Avoid warning on
9042 mixed-signedness conditionals.
9043 (make_field_assignment, nonzero_bits): Likewise.
9044 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
9045 (store_split_bit_field, extract_split_bit_field): Likewise.
9046 (extract_fixed_bit_field, store_bit_field,
9047 * expr.c: Change alignment to be unsigned everywhere.
9048 (move_by_pieces, store_constructor_field, store_constructor):
9049 Alignment parm is unsigned.
9050 (emit_block_move, emit_group_load, emit_group_store): Likewise.
9051 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
9052 (do_compare_rtx_and_jump): Likewise.
9053 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
9054 Compare align with GET_MODE_ALIGNMENT.
9055 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
9056 (get_inner_reference): Likewise.
9057 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
9058 (expand_assignment): Local vars for alignment now unsigned.
9059 (store_constructor, store_field, expand_expr, do_jump): Likewise.
9060 (do_compare_and_jump): Likewise.
9061 (store_field): Call new function expr_align.
9062 * expr.h (emit_block_move, emit_group_load, emit_group_store):
9063 Alignment arg now unsigned.
9064 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
9065 (do_compare_rtx_and_jump, store_bit_field): Likewise.
9066 (extract_bit_field): Likewise.
9067 * fold-const.c (add_double): Add cast to eliminate signedness warning.
9068 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
9069 (get_best_mode): Alignment arg is unsigned.
9070 * rtl.h (move_by_pieces): Likewise.
9071 * store-layout.c (maximum_field_alignment, set_alignment):
9073 (layout_decl): Alignment arg is now unsigned.
9074 Remove unneeded casts.
9075 (layout_record, layout_union, layout_type): Remove unneeded casts.
9076 Local alignment variables now unsigned.
9077 (get_best_mode): Alignment arg now unsigned.
9078 * tree.c (expr_align): New function.
9079 * tree.h (expr_align): Likewise.
9080 (maximum_field_alignment, set_alignment): Now unsigned.
9081 (get_inner_reference): Alignment argument is now pointer to unsigned.
9082 * varasm.c (assemble_variable): Add cast to eliminate warning.
9084 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
9086 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
9087 then store directly into op0.
9089 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
9090 the CALL_INSN, and emit the note immediately after it.
9092 2000-02-10 Nick Clifton <nickc@cygnus.com>
9094 * config/arm/thumb.md (epilogue): Include a (return) in the
9095 generated insn, and emit it using emit_jump_insn not
9098 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
9100 * function.c (assign_temp): Change zero-sized arrays to size 1.
9101 * integrate.c (expand_inline_function): Do not update
9102 stack_alignment_needed
9103 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
9104 add some sanity checking, remove optimization for function with
9107 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9109 * flow.c (mark_regs_live_at_end): Delete unused variables.
9111 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
9113 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
9114 in macro FRAME_GROWS_DOWNWARD.
9116 * stmt.c (expand_end_bindings): Delete unused variable.
9118 * unroll.c (iteration_info): Mark parameter `loop' with
9121 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9123 * fixinc/server.c (load_data): Return NULL if the marker line is
9125 (run_shell): If load_data returns NULL, retry the command once, in
9128 * configure: Rebuilt.
9130 2000-02-09 Bruce Korb <bkorb@gnu.org>
9132 * gcc/fixincludes: ** DELETED **
9133 * gcc/fixcpp: ** DELETED **
9134 * gcc/fixinc-nt.sed: ** DELETED **
9135 * gcc/just-fixinc: ** DELETED **
9136 * gcc/Makefile.in: Removed out-dated commentary
9137 * gcc/configure.in: Removed fast-fixincludes disablement.
9138 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
9140 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
9141 * function.c (thread_prologue_and_epilogue_insns): Uncomment
9144 2000-02-09 Richard Henderson <rth@cygnus.com>
9146 * jump.c (delete_insn): Don't delete user labels at -O0.
9148 2000-02-09 Robert Lipe <robertl@sco.com>
9150 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
9151 Don't link with HOST_LIBS.
9153 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
9155 * configure.in: Correct --help text for --with-dwarf2.
9156 Put tm-dwarf2.h after other tm files, if it's requested.
9157 * configure: Regenerate.
9158 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
9161 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
9163 * cpplib.h: Provide HASHNODE typedef and forward decl of
9164 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
9165 DEFINITION, struct hashnode, struct macrodef, struct
9166 definition, scan_decls prototype, default defn of
9167 INCLUDE_LEN_FUDGE moved elsewhere.
9169 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
9170 definition, and struct hashnode moved here. Remove the unused
9171 'predefined' field from struct definition. Replace the 'args'
9172 union with its sole member. All users updated (cpphash.c).
9173 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
9174 multiple include guard.
9176 * cpphash.c (hashf): Make static; use better algorithm; drop
9177 HASHSIZE parameter; return an unsigned int.
9178 (cpp_lookup): Drop HASH parameter. PFILE parameter is
9179 used. Calculate HASHSIZE modulus here.
9180 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
9182 (create_definition): Drop PREDEFINITION parameter.
9183 * cpplib.c (do_define): Don't calculate a hash value here.
9184 Don't pass (keyword == NULL) to create_definition.
9186 * scan.h: Prototype scan_decls here.
9187 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
9188 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
9189 callers of cpp_lookup and cpp_install updated.
9191 * cpphash.c (macarg): Hoist all the flag diddling out of the
9193 (macroexpand): ... and out of the loop that calls macarg.
9194 Skip over the initial paren before macro arguments with
9195 cpp_get_non_space_token; point may be some distance before
9196 that paren. Abort if it's not there.
9198 * cpplib.c (parse_clear_mark): Delete function.
9199 (parse_set_mark, parse_goto_mark): Make static.
9200 (ACTIVE_MARK_P): New macro.
9201 (skip_block_comment, skip_line_comment): Do not bump the line
9202 if ACTIVE_MARK_P is true.
9203 (cpp_pop_buffer): The buffer to be popped may not have an
9205 (cpp_get_token): When looking for the initial paren before
9206 macro arguments, only set a mark in a file buffer, Always
9207 return to that mark before proceeding to call macroexpand or
9208 return a NAME token.
9210 * cpplib.h: Remove prototypes of parse_set_mark,
9211 parse_clear_mark, parse_goto_mark.
9212 (struct cpp_options): Rename 'put_out_comments' to
9213 'discard_comments' and invert its sense.
9214 * cppinit.c, cpphash.c, cpplib.c: All users of
9215 put_out_comments changed to use discard_comments, with
9218 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
9220 * function.c (thread_prologue_and_epilogue_insns): Don't delete
9221 the edge from a block that both jumps and falls through to the
9224 2000-02-09 Scott Bambrough <scottb@netwinder.org>
9226 * config/arm/arm.md (movsi): In PIC mode, make sure that a
9227 constant source address is legitimate.
9229 2000-02-09 Philip Blundell <pb@futuretv.com>
9231 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
9234 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
9236 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
9238 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
9240 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
9241 ends with a newline and a NUL. Don't be so clever manipulating
9244 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
9246 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
9247 not to BIGGEST_ALIGNMENT.
9249 2000-02-08 Geoff Keating <geoffk@cygnus.com>
9251 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
9252 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
9253 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
9254 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
9255 * frame.c (execute_cfa_insn): Handle
9256 DW_CFA_GNU_negative_offset_extended.
9258 2000-02-08 Richard Henderson <rth@cygnus.com>
9260 * flow.c (tidy_fallthru_edges): Split out from ...
9261 (delete_unreachable_blocks): ... here.
9262 (find_basic_blocks): Use it.
9264 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9266 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
9268 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
9270 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
9271 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
9272 (fix-header.o): Don't depend on cpphash.h.
9274 * scan.c (hashstr): New function.
9275 * scan.h: Prototype it.
9276 * fix-header.c: Don't include cpphash.h. Use hashstr.
9277 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
9278 hashstr. Report hash table statistics. Add private
9279 definition of xrealloc.
9281 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9283 * i386.h (TARGET_SWITCHES): Fix typo in option name.
9285 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
9287 * function.c (thread_prologue_and_epilogue_insns): Don't replace
9288 jumps with returns unless they are jumps to the fallthru block.
9290 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
9292 * i386.md (addqi3_cc): Fix contraints.
9294 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
9296 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
9298 2000-02-07 Mark Mitchell <mark@codesourcery.com>
9300 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
9301 carriage return after a macro name.
9303 2000-02-07 Fred Fish <fnf@be.com>
9305 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
9306 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
9308 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
9310 * cppfiles.c (deps_output): Count spacers in deps_column.
9312 2000-02-07 Neil Booth <NeilB@earthling.net>
9314 * cppinit.c (initialize_dependency_output): If there is no
9315 suffix, don't try to look for known suffixes. Use strrchr.
9316 (cpp_start_read): Remove duplicate initialization.
9318 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
9320 * calls.c (compute_argument_block_size): New argument
9321 preferred_stack_boundary.
9322 (expand_call): update cfun->preferred_stack_boundary, update call of
9323 compute_argument_block_size
9324 (emit_library_call): Increate cfun->preferred_stack_boundary
9325 to PREFERRED_STACK_BOUNDARY
9326 (emit_library_call_value): Likewise.
9327 * explow.c (allocate_dynamic_stack_spave): Likewise.
9328 * function.c (prepare_function_start): Set
9329 cfun->preferred_stack_boundary
9330 * function.h (struct function): Add preferred_stack_boundary field.
9331 * integrate.c (expand_inline_function): Update
9332 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
9333 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
9334 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
9336 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
9338 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
9339 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
9340 cpp_pedwarn, cpp_pedwarn_with_line,
9341 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
9342 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
9343 v_cpp_error_with_line, v_cpp_warning_with_line,
9344 cpp_message_from_errno, cpp_perror_with_name): Delete.
9346 * cpperror.c (cpp_print_containing_files): Take starting
9348 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
9349 (v_cpp_message): Now called directly by all entry points.
9351 (cpp_pfatal_with_name, cpp_message): Delete.
9352 (cpp_notice_from_errno, cpp_ice): New functions.
9353 (cpp_notice): Is now for reporting error conditions, just
9354 without an associated file.
9355 (cpp_error, cpp_error_with_line): Don't do anything if
9356 opts->inhibit_errors is on.
9357 (cpp_pedwarn_with_file_and_line): Take column argument also.
9359 * cpplib.h: Update prototypes of exported functions.
9360 (struct cpp_options): Add inhibit_errors.
9362 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
9363 non-error messages. Include intl.h.
9365 * cppinit.c, cppmain.c: Likewise. Also, use
9366 cpp_notice_from_errno instead of cpp_perror_with_name or
9367 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
9369 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
9370 report internal errors.
9372 * cpplib.c (do_define): Switch bcopy to memcpy.
9373 Give cpp_pedwarn_with_file_and_line a dummy column argument.
9375 * cpplib.c (copy_rest_of_line): Revert previous change: don't
9376 bail out early if we hit a line comment.
9378 2000-02-06 Richard Henderson <rth@cygnus.com>
9380 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
9381 * basic-block.h: Declare them.
9382 * emit-rtl.h (active_insn_p): New.
9383 (next_active_insn, prev_active_insn): Use it.
9384 * rtl.h: Declare it.
9385 * function.c (emit_return_into_block): New.
9386 (thread_prologue_and_epilogue_insns): Insert return insns instead
9387 of epilogues when possible.
9388 * jump.c (jump_optimize_1): Remove code to insert a return insn
9389 on the fallthru to the exit block.
9391 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
9392 and for non-empty stack frames.
9393 * i386.md (return): Expand to return-pop as needed.
9395 2000-02-06 Richard Henderson <rth@cygnus.com>
9397 * simplify-rtx.c (simplify_relational_operation): Canonicalize
9398 constant to op1 for testing.
9400 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9402 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
9403 (fixuns_truncqfqi2): Use it.
9405 2000-02-06 Richard Henderson <rth@cygnus.com>
9407 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
9410 * i386.md (widening and peepholes): Mask the constant instead of
9413 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
9415 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
9416 input pointer before possibly branching off to the backslash
9418 * cpphash.c (macroexpand): Correctly delete \r escapes when
9419 stringifying parameters.
9420 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
9421 if we can; bail out early if we hit a line comment.
9422 (handle_directive): Treat '# 123' in an .S file just like
9423 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
9424 Return 1 for '# not_a_directive'.
9425 (get_directive_token): Pop macro buffers here, so that
9426 cpp_get_token can't sneakily move past a newline.
9428 (cpp_get_token): goto randomchar if handle_directive returns 0.
9430 * cppalloc.c: Update copyright.
9431 * cpplib.c: Merge all the static function prototypes into one
9433 * cpplib.h: Remove #if 0 block.
9435 * cpperror.c: Remove #ifdef EMACS block.
9436 * cppmain.c: Likewise.
9437 * cpphash.c: Remove #if 0 blocks.
9438 * cppinit.c: Remove #if 0 blocks, and the -lint option.
9439 * cpplib.c: Remove #if 0 blocks and code referencing
9440 pcp_inside_if or for_lint. Remove duplicate error message.
9441 Fix error messages for #else after #else or #elif. Reformat.
9442 Remove archaic TODO list.
9443 * cpplib.h: Remove pcp_inside_if and for_lint flags.
9445 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
9447 * i386/osf1elf.h: Add missing backslash to multiline string.
9449 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9451 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
9453 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9455 * Makefile.in (c-common.o): Depend on $(EXPR_H).
9457 * c-common.c: Include expr.h.
9459 * c-pragma.c (mark_align_stack): Add prototype.
9461 * caller-save.c (add_stored_regs): Likewise.
9463 * combine.c (record_promoted_value): Likewise.
9465 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
9468 * cppinit.c (new_pending_define): Likewise.
9470 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
9472 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
9473 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
9474 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
9475 class_scope_p): Likewise.
9477 * dwarf2out.h (dwarf2out_set_demangle_name_func,
9478 dwarf2out_add_library_unit_info): Likewise.
9480 * ggc.h (ggc_page_print_statistics): Likewise.
9482 * haifa-sched.c (propagate_deps): Likewise.
9484 * reg-stack.c (next_flags_user, record_label_references): Likewise.
9486 * rtl.h (set_stack_check_libfunc): Likewise.
9488 * toplev.h (set_fatal_function): Likewise.
9490 * toplev.c (set_fatal_function): Delete prototype.
9492 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
9494 2000-02-05 Geoff Keating <geoffk@cygnus.com>
9496 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
9497 (FUNC_END): Likewise.
9499 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9501 * caller-save.c: Include tm_p.h.
9503 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9505 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
9507 2000-02-04 Neil Booth <NeilB@earthling.net>
9509 * cccp.c (main): Check 'dir' for a NULL pointer before passing
9512 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
9514 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
9515 * genflags.c: Use the max_operand_1 logic from genemit.c to
9516 calculate how many arguments gen_insn prototypes have. Remove
9517 NO_MD_PROTOTYPES ifdefs from the generated file.
9518 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
9519 file. Cast gen_insn initializers to insn_gen_fn.
9520 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
9521 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
9523 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9525 * fixinc/Makefile.in (HDR): Add machname.h.
9528 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9530 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
9531 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
9532 (c4x_cpu_version): Ditto.
9533 * config/c4x/c4x-protos.h: ... here.
9535 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
9537 * dwarf2out.c (add_abstract_origin_attribute): Don't call
9538 gen_abstract_function on our context if we're a nested function.
9540 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9542 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
9543 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
9545 2000-02-04 Bruce Korb <bkorb@gnu.org>
9547 * fixinc/genfixes(machname.h):
9548 Move the functionality from gen-machine.h into this file.
9549 UNdef MN_NAME_PAT if there are no names to change.
9550 Also, be a little kinder when AutoGen is not present.
9552 * fixinc/Makefile.in(machname.h):
9553 Change the generation rule to use genfixes.
9555 * fixinc/fixfixes.c(machine_name):
9556 machine_name_fix's functionality now dependent upon whether
9557 MN_NAME_PAT is defined.
9559 * fixinc/fixtests.c(machine_name):
9562 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
9565 * fixinc/fixlib.h(mn_get_regexps):
9568 * fixinc/gen-machine.h: DELETED
9570 2000-02-04 Jan Hubicka <jh@suse.cz>
9571 Richard Henderson <rth@cygnus.com>
9573 * i386.c (SAVE_REGS_FIRST): Remove.
9574 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
9575 (ix86_compute_frame_size): Likewise.
9576 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
9577 (ix86_emit_restore_regs): Remove.
9578 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
9579 when a frame pointer is in use.
9580 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
9581 instead of pop to restore a register when profitable; emit leave
9583 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
9585 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
9586 * i386.md (prologue_allocate_stack): Remove.
9587 (epilogue_deallocate_stack): Remove.
9588 (pro_epilogue_adjust_stack): New.
9590 2000-02-04 Richard Henderson <rth@cygnus.com>
9592 * function.c (diddle_return_value): Rework to use a callback function.
9593 Use current_function_return_rtx if it's been set up.
9594 (do_clobber_return_reg, clobber_return_register): New.
9595 (do_use_return_reg, use_return_register): New.
9596 (expand_function_end): Use them.
9597 * stmt.c (expand_null_return): Likewise.
9598 * function.h: Declare them.
9599 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
9600 (mark_reg): Change arguments as appropriate for callback.
9601 * integrate.c (expand_inline_function): Revert 19 Jan change.
9603 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
9605 * tm.texi (Values in Registers): Fix typo: "fo" "for".
9606 (Misc): Say the scheduler, not the Haifa scheduler.
9608 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
9610 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
9611 when in_mem is set. Update all callers.
9613 2000-02-04 Richard Henderson <rth@cygnus.com>
9615 * i386/openbsd.h (INT_ASM_OP): Define.
9617 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
9619 * tm.texi: Fix various typos.
9621 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
9623 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
9624 (MD_STARTFILE_PREFIX_1): New macro.
9626 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
9628 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
9629 destination when needed.
9630 (strmovsi, strsetsi): New expander.
9631 (strmovsi_1, strsetsi_1): New pattern.
9632 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
9633 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
9634 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
9635 * invoke.texi (align-stringops, inline-all-stringops): Document.
9637 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
9639 * i386/netbsd.h (INT_ASM_OP): Define.
9641 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
9643 * cpplib.h (cpp_reader): Add new flag, no_directives.
9644 * cpphash.c (macarg): Set it.
9645 * cpplib.c (handle_directive): If no_directives is on and we
9646 find a directive, issue an error and discard the line.
9648 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
9650 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
9651 FP constants. Add ! TARGET_FPU check for FP constants.
9653 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
9655 * flow.c (find_basic_blocks): Don't kill label_value_list
9657 (cleanup_cfg): Kill it here.
9659 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9661 * expr.c (store_field): Ensure ALIGN is no stricter than the
9664 2000-02-02 Richard Henderson <rth@cygnus.com>
9666 * jump.c (delete_insn): Partially revert 19 Jan change;
9667 don't convert unused code labels to notes at -O0.
9669 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9671 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
9672 split_all_insns to recreate REG_LABEL notes for flow2 pass.
9674 2000-02-01 Richard Henderson <rth@cygnus.com>
9676 * i386.c (general_no_elim_operand): New.
9677 (nonmemory_no_elim_operand): New.
9678 (ix86_expand_move): Copy eliminable operands before a push.
9679 * i386-protos.h: Declare new functions.
9680 * i386.h (CAN_ELIMINATE): Simplify.
9681 (PREDICATE_CODES): Update.
9682 * i386.md (push insns): Don't allow eliminable register operands.
9684 2000-02-01 Richard Henderson <rth@cygnus.com>
9686 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
9687 replace BLKmode with DECL_RTL's mode.
9689 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
9691 * frame.c (find_fde): Convert for loop to do-while so compiler
9692 sees it's always executed at least once.
9693 * libgcc2.c (BBINBUFSIZE): Kill.
9694 (__bb_init_prg): Use fgets.
9695 (__bb_exit_trace_func): Don't paste strings.
9696 * unroll.c (unroll_loop): Initialize unroll_type, not
9697 unroll_number, and tweak logic to match.
9699 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
9701 (ix86_flags_dependant): Likewise. Disentangle control flow.
9702 (ix86_sched_reorder): Break guts out to
9703 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
9704 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
9707 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
9708 use string concatenation. Don't save and restore esi.
9710 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
9711 (machname.h): Remove script to separate file. Use two-step
9712 sequence so target is not created if script fails.
9713 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
9714 identifiers are defined.
9715 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
9716 an empty string, machine_name doesn't need to do anything at
9718 (is_cxx_header): Add more cases to regexp.
9719 * fixinc/fixlib.h: Update prototype.
9720 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
9722 * fixinc/fixincl.c: Define NO_BOGOSITY.
9724 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
9725 (hp_sysfile): Add missing comma.
9726 (math_exception): Put the wrapper ifdefs at the beginning and
9727 the end of the file.
9728 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
9730 2000-02-01 Richard Henderson <rth@cygnus.com>
9732 * sparc.c (fp_zero_operand): Turn into a normal predicate.
9733 Use CONST0_RTX. Update all callers.
9734 * sparc.h, sparc-protos.h: Update accordingly.
9735 * sparc.md (fp mov insns): Use fp_zero_operand directly
9738 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
9740 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
9743 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9745 * Makefile.in (specs.ready): New target.
9746 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
9748 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9750 * fixinc.irix: Use unique filenames for writing into /tmp,
9751 * fixinc.ptx: Likewise.
9752 * fixinc.sco: Likewise.
9753 * fixinc.svr4: Likewise.
9754 * fixinc.winnt: Likewise.
9756 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9758 * tsystem.h: New file.
9760 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
9761 s-crtS): Depend on tsystem.h.
9763 * crtstuff.c: Include tsystem.h.
9764 * frame.c: Likewise.
9765 * libgcc2.c: Likewise.
9767 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
9769 * builtins.c (expand_builtin_memset): Expand for variable sized
9772 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
9774 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
9777 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
9779 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
9781 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
9783 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
9785 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
9786 case 3->2 combining (combining with splitting) in which 2 is CC0
9787 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
9788 checked at the begining of the function with the aid of calling
9789 function 'can_combine_p'.
9791 2000-01-31 Dave Brolley <brolley@redhat.com>
9793 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
9795 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
9797 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
9800 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9802 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
9804 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
9807 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
9809 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
9810 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
9811 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
9812 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
9813 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
9814 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
9815 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
9816 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
9817 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
9818 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
9820 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
9821 Add %(cpp_cpu) to CPP_SPEC.
9823 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
9824 Add %(cc1_cpu) to CC1_SPEC.
9826 2000-01-28 Ulrich Drepper <drepper@redhat.com>
9828 * c-decl.c (c_decode_option): Accept optional numeric argument to
9829 -Wformat and set warn_format.
9830 * c-common.c: Don't emit warning about non-constant printf format
9831 string unless warn_format > 1.
9833 2000-01-30 Richard Henderson <rth@cygnus.com>
9835 * alpha.md (return_internal): Allow after reload only.
9837 2000-01-30 Richard Henderson <rth@cygnus.com>
9839 * i386.c (ix86_compute_frame_size): Omit padding1 if the
9840 local frame size is zero.
9842 2000-01-30 Richard Henderson <rth@cygnus.com>
9844 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
9845 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
9846 * alpha.md (return): Turn into an expander.
9847 (return_internal): Don't use $26.
9848 (epilogue): Emit the return insn.
9850 2000-01-30 Richard Henderson <rth@cygnus.com>
9852 * alpha.md (negtf2, abstf2): Fix word order thinko.
9854 (trunctfsf2): Avoid intermediate rounding errors.
9856 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
9858 * cppfiles.c (find_position): Drop 'colp' argument, return the
9860 (read_and_prescan): Adjust to match. Don't ever manipulate
9861 line or line_base except via find_position.
9863 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
9865 * c-parse.in: Apply Ulrich's changes from c-parse.y.
9866 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
9869 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
9871 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
9872 just print "<command line>". If 'filename' is null or an
9873 empty string, print "<stdin>" for the filename.
9874 * cpplib.c (do_define): Don't print the 'location of the
9875 previous definition' message if we're still parsing the
9877 (cpp_pedwarn_with_file_and_line): Always call
9878 cpp_file_line_for_message.
9880 2000-01-29 Mark Mitchell <mark@codesourcery.com>
9882 * flow.c (mark_regs_live_at_end): Fix typo.
9884 2000-01-28 Ulrich Drepper <drepper@redhat.com>
9886 * c-common.c: Adjust variable names, comments, help strings to c99.
9887 * c-lex.c: Likewise.
9888 * c-parse.y: Likewise.
9889 * c-tree.h: Likewise.
9891 * cpplib.h: Likewise.
9892 * c-decl.c: Likewise. Recognize options with names "*99" as well.
9893 * cppinit.c: Likewise.
9895 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9897 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
9898 * c4x.c: Define the optab rtx values.
9899 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
9900 (c4x_emit_libcall): Use new optab rtx values.
9901 (c4x_emit_libcall3): Likewise.
9902 (c4x_emit_libcall_mulhi): Likewise.
9903 * c4x-protos.h: Add prototypes for optab rtx values and change
9904 prototypes for above c4x_emit_libcall functions.
9906 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9908 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
9910 (c4x_function_prologue): Use regnames intead of float_reg_names when
9912 (c4x_function_epilogue): Likewise.
9913 (c4x_print_operand): Likewise.
9914 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
9915 * c4x.md (set_high): Disable for TARGET_TI.
9917 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9919 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
9920 of framepointer + constant to ADDR_REGS class.
9921 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
9922 * c4x.c (std_or_reg_operand): New function.
9923 * c4x-protos.h (std_or_reg_operand): Prototype it.
9925 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9927 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
9928 object names as libgcc2.c.
9929 * libgcc.S: Use newly defined names.
9931 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
9932 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
9934 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
9935 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
9936 (FLOW_LOOP_LAST_BLOCK): Likewise.
9938 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9940 * basic-block.h (struct loop): New fields 'first' and 'last'.
9941 * flow.c (flow_loops_find): Compute loop->first and loop->last.
9942 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
9943 and loop->last to check for NOTE_INSN_LOOP_END.
9945 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
9947 * predict.c (estimate_probability): Use the new FIRST and LAST fields
9948 of the loop descriptor rather than HEADER and LATCH. Also added
9949 missing break statements as well making some coding style modifications
9950 as suggested by Michael Hayes.
9952 2000-01-28 Richard Henderson <rth@cygnus.com>
9954 * flow.c (find_basic_blocks): Remove do_cleanup argument.
9955 Break out that code ...
9956 (cleanup_cfg): ... here.
9957 (commit_one_edge_insertion): Detect a return instruction being
9958 emitted to an edge. Emit a barrier following; clear fallthru.
9959 (commit_edge_insertions): Verify CFG consistency.
9960 * function.c (expand_function_start): Kill unused variable.
9961 (expand_function_end): Likewise.
9962 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
9963 to insert the epilogue.
9965 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
9966 (delete_null_pointer_checks): Likewise.
9967 * output.h: Likewise.
9968 * reg-stack.c (reg_to_stack): Likewise.
9969 * toplev.c (rest_of_compilation): Likewise. Run
9970 thread_prologue_and_epilogue_insns after rebuilding the CFG.
9972 2000-01-28 Richard Henderson <rth@cygnus.com>
9974 * Makefile.in (flow.o): Revert 24 Jan change.
9975 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
9976 FUNCTION_VALUE result to DECL_RESULT's mode.
9978 * haifa-sched.c (schedule_insns): Don't recompute reg info
9981 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
9983 * configure.in: Make --enable-cpplib the default.
9984 * configure: Regenerate.
9985 * gcc.dg/990119-1.c: No longer expected to fail.
9987 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
9989 * jump.c (jump_optimize_1): Delete an optimization that is also done
9990 by merge_blocks in flow.
9992 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9994 * diagnostic.c (build_message_string, output_printf,
9995 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
9996 (build_location_prefix): Fix non-literal format string.
9998 2000-01-27 Richard Henderson <rth@cygnus.com>
10000 * alpha.md (trunctfsf2): New.
10002 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
10004 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
10006 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
10008 * cppinit.c (cpp_handle_option): Recognize C++ comments under
10010 * cpplib.c (skip_block_comment, skip_line_comment): Split code
10012 (skip_comment) ... here. Permit C++ comments in system
10013 headers always. Warn about C++ comments in user code under
10014 -std=gnu89 -pedantic.
10015 (copy_comment): Use skip_comment.
10016 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
10018 (consider_directive_while_skipping, do_else, do_endif): Call
10019 validate_else unconditionally.
10020 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
10021 text after the conditional in a system header.
10022 * cpplib.h (struct cpp_buffer): Add flag
10023 warned_cplusplus_comments.
10025 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
10027 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
10028 Use unshare_all_rtl_1.
10029 (unshare_all_rtl_again): New function.
10030 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
10032 * function.c (purge_addressof_1): Use unshare_all_rtl_again
10033 rather than resetting the 'used' flags ourself.
10035 * toplev.c (rest_of_compilation): Add current_function_decl
10036 to the unshare_all_rtl call.
10037 * tree.h: Prototype unshare_all_rtl.
10038 * rtl.h: Prototype unshare_all_rtl_again here.
10040 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
10042 * genoutput.c (output_prologue): Include ggc.h in generated
10044 * Makefile.in (insn-output.o): Depends on ggc.h.
10046 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
10047 Hans-Peter Nilsson <hp@bitrange.com>
10049 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
10050 Remove redundant include of xm-ns32k.h.
10051 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
10052 Remove redundant include of xm-ns32k.h.
10053 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
10054 Remove redundant include of xm-ns32k.h.
10055 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
10057 * ns32k/ns32k.h: Update comment on multiply-add instructions.
10058 (TARGET_SWITCHES): Add documentation strings.
10059 (DWARF_FRAME_REGNUM): Override default definition.
10060 (REG_CLASS_CONTENTS): Add comments.
10061 (SUBSET_P): Format to reduce line length.
10062 (SMALL_REGISTER_CLASSES): Make a run time option.
10063 (GO_IF_NONINDEXED_ADDRESS): Reformat.
10064 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
10065 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
10066 (regclass_map): fix typo in comment.
10067 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
10068 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
10069 (trace, reg_or_mem_operand): Delete, unused function.
10070 (calc_address_cost): Small offsets are cheaper than large ones.
10071 (expand_block_move): Generate more efficient code when bytes is a
10072 known at compile time.
10073 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
10074 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
10075 instead of reg_or_mem_operand.
10077 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
10078 not general_operand. Similarly use "=rm" or stricter, not "=g".
10079 For input operands, use stricter constraints than "g" if not
10080 general_operand. Similarly use stricter predicate than
10081 "general_operand" when stricter constraints than "g" are present,
10082 except for matching constraints.
10083 (movstrsi): Use "memory_operand" for operands 0 and 1.
10084 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
10085 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
10086 not reg_or_mem_operand.
10087 (udivmoddisi4): Ditto.
10088 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
10089 Use nonimmediate_operand for operand 3, not register_operand.
10090 (udivmoddiqi4_internal): Use register_operand for operand 1, not
10091 reg_or_mem_operand.
10093 2000-01-27 Fred Fish <fnf@be.com>
10095 * gthr-posix.h: Fix typo; compatibily -> compatibility.
10096 * gthr-single.h: Likewise.
10097 * gthr-solaris.h: Likewise.
10098 * gthr-vxworks.h: Likewise.
10099 * gthr-win32.h: Likewise.
10100 * gthr.h: Likewise.
10102 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
10104 * cppinit.c: Add " (cpplib)" to end of string printed by
10107 2000-01-27 Richard Henderson <rth@cygnus.com>
10109 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
10110 testing for a signed comparison.
10111 (alpha_emit_floatuns): New.
10112 * alpha-protos.h: Declare it.
10113 * alpha.md (floatunsdisf2, floatunsdidf2): New.
10114 (extendsfdf2): Tidy.
10116 2000-01-27 Jakub Jelinek <jakub@redhat.com>
10118 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
10119 no -g option specifying debugging format, default to -gstabs+.
10121 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
10123 * calls.c (special_function_p): New argument fork_or_exec.
10124 (expand_call): When profile_arc_flag is set and the function
10125 is in the fork_or_exec group, call __bb_fork_func first.
10126 * libgcc2.c, _bb module (__bb_fork_func): New function.
10127 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
10129 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
10130 * tree.h (special_function_p): Update prototype.
10132 2000-01-26 Richard Henderson <rth@cygnus.com>
10134 * alpha.c (alpha_split_tfmode_pair): New.
10135 * alpha-protos.h: Declare it.
10136 * alpha.md (abstf2, negtf2): New.
10137 (movtf insn): Add input G constraint.
10138 (movtf splitter): Use alpha_split_tfmode_pair.
10140 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10142 * i386/cygwin.h: PROTO -> PARAMS.
10144 2000-01-26 Jakub Jelinek <jakub@redhat.com>
10146 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
10147 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
10148 using _Qp_cmp/_Q_cmp and testing the return value.
10149 (print_operand): Call reverse_condition_maybe_unordered if
10150 we are handling CCFPmode or CCFPEmode.
10151 Handle ORDERED, UN* and LTGT comparisons.
10152 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
10153 if not TARGET_HARD_QUAD.
10154 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
10155 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
10156 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
10157 Adjust gen_b* calls so that they reflect return comparison of
10158 sparc_emit_float_lib_cmp.
10160 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10162 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
10163 incoming operands array is large enough for one more operand.
10164 (alpha_emit_xfloating_arith): Likewise.
10166 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
10168 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
10169 file with one line and no trailing newline.
10170 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
10171 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
10172 checking if the match is on the line.
10173 * fixinc/gnu-regex.c: Provide regerror not __regerror.
10175 2000-01-25 Richard Henderson <rth@cygnus.com>
10177 * sparc.c (output_cbranch): Fix accidental squashing of the
10178 fp branch pre-delay nop.
10180 2000-01-25 Richard Henderson <rth@cygnus.com>
10182 * tree.def (UNNE_EXPR): Remove.
10183 * c-typeck.c (build_binary_op): Don't handle it.
10184 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
10186 * rtl.def (UNNE): Remove.
10188 * jump.c (reverse_condition): Update accordingly.
10189 (swap_condition): Likewise.
10190 (comparison_dominates_p): Handle unordered comparisons.
10191 (reverse_condition_maybe_unordered): New.
10192 * rtl.h (reverse_condition_maybe_unordered): Declare.
10194 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
10195 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
10196 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
10197 * sparc.md (bltgt): New.
10199 2000-01-25 Nick Clifton <nickc@redhat.com>
10201 * emit-rtl.c (emit_insn): Only check machine class insns for
10202 improper emission of a RETURN.
10204 2000-01-25 Richard Henderson <rth@cygnus.com>
10206 * Makefile.in (flow.o): Depend on $(EXPR_H).
10207 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
10208 duplicate the structure of diddle_return_value for keeping regs live.
10210 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10212 * loop.c (current_loop_info): Delete.
10213 (consec_sets_invariant_p): Add loop argument, update callers.
10214 (get_condition_for_loop): Likewise.
10215 (count_nonfixed_reads, update_giv_derive): Likewise.
10216 (simplify_giv_expr, general_induction_var): Likewise.
10217 (consec_sets_giv, recombine_givs): Likewise.
10218 (move_movables): Delete loop_start and loop_end arguments,
10219 add loop argument, and update callers.
10220 (find_mem_givs, check_final_value): Likewise.
10221 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
10222 (loop_invariant_p): Rename from invariant_p, add loop argument, and
10224 (basic_induction_var): Add loop argument, delete loop_level argument,
10225 and update callers.
10226 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
10227 add loop argument, and update callers.
10228 (find_splittable_regs, find_splittable_givs): Likewise.
10229 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
10230 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
10231 (biv_total_increment): Delete loop_start and loop_end arguments;
10233 (precondition_loop_p): Delete loop_start and loop_info arguments;
10235 * loop.h (get_condition_for_loop): Add loop argument.
10236 (biv_total_increment): Delete loop_start and loop_end arguments.
10237 (precondition_loop_p): Delete loop_start and loop_info arguments;
10239 (final_biv_value): Delete loop_start and loop_end arguments;
10241 (final_giv_value, back_branch_in_range_p): Likewise.
10243 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
10245 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
10247 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
10249 * Makefile.in (c-gperf.h) : Change the "See" pointer to
10250 point to the new "generated_files" doc.
10252 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
10254 * config/fp-bit.c (_unord_f2): Fix typo.
10256 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
10258 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
10259 c-typeck.c, objc/objc-act.c: Remove all references to obstack
10260 functions obsoleted by GC, such as push_obstacks_nochange,
10261 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
10262 and code which existed only to decide whether or not to call
10263 them. Remove now-unused NESTED argument from start_function;
10264 all callers changed. Do not change behavior based on ggc_p.
10265 The use of the ixp_obstack in c-iterate.c and the util_obstack
10266 in objc/objc-act.c remain; these are not obsoleted by garbage
10268 * c-tree.h: Update prototype for start_function.
10270 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
10272 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
10274 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
10277 2000-01-25 Richard Henderson <rth@cygnus.com>
10279 * sparc-protos.h (select_cc_mode): Declare.
10280 * sparc.c (select_cc_mode): New. Handle unordered compares.
10281 (output_cbranch): Always reverse via code change. Handle
10282 unordered compares. Factor tests and string updates.
10283 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
10284 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
10285 * sparc.md (bunordered, bordered): New.
10286 (bungt, bunlt, buneq, bunge, bunle): New.
10288 2000-01-25 Richard Henderson <rth@cygnus.com>
10290 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
10291 * ggc-common.c (ggc_add_rtx_varray_root): New.
10292 (ggc_mark_rtx_varray): New.
10293 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
10294 functions down below ggc_mark_foo.
10295 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
10297 2000-01-25 Richard Henderson <rth@cygnus.com>
10299 * alpha.c (secondary_reload_class): Don't allocate a secondary
10300 for integral mode memories into FLOAT_REGS. Rearrange the more
10301 complicated memory expression inward.
10303 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
10305 * inclhack.def: Fixes to play nicer with FreeBSD, and
10306 corrections to comments.
10307 (cxx_unready): Add select expression.
10308 (irix_sockaddr): Add bypass expression.
10309 (machine_ansi_h_va_list): New fix.
10310 (stdio_va_list): No need to edit _BSD_VA_LIST_.
10311 Split out addition of "#include <stdarg.h>" to...
10312 (stdio_stdarg_h): ... here.
10313 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
10314 to stdlib.h also. Do not munge _BSD_SIZE_T_.
10315 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
10317 (ultrix_ifdef): Tighten up select expression.
10319 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
10320 re_ct and max_mach to avoid use of shell. Make printed names
10321 match names in inclhack.def. Use static copyright date.
10322 Don't count c_test and test expressions as requiring regex_t
10323 slots. Add some commentary.
10324 * inclhack.tpl: Do not include the 'This script contains N
10325 fixup scripts' line if PROGRAM is defined. Use static
10328 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
10330 * dwarf2out.c: include "varray.h", not dyn-string.h.
10331 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
10332 (addr_const_to_string, addr_to_string): Lose.
10333 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
10334 (struct dw_val_struct): val_addr is now an rtx.
10335 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
10336 (used_rtx_varray): New varray.
10337 (dwarf2out_init): Initialize it.
10338 (save_rtx): New fn.
10339 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
10341 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
10342 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
10343 * Makefile.in (dwarf2out.o): Update dependencies.
10345 2000-01-24 Richard Henderson <rth@cygnus.com>
10347 * i386.c (i386_dwarf_output_addr_const): New.
10348 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
10350 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
10352 * dwarfout.c (output_mem_loc_descriptor): Likewise.
10353 * i386.c (i386_simplify_dwarf_addr): New.
10354 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
10356 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
10358 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
10359 TYPE_STUB_DECL is NULL.
10361 2000-01-24 Richard Henderson <rth@cygnus.com>
10363 * builtins.c (expand_tree_builtin): Move ...
10364 * c-common.c (expand_tree_builtin): ... here.
10366 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10368 * loop.h (LOOP_INFO): New accessor macro.
10369 * basic-block.h (struct loop): Rename field `info' to `aux'.
10370 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
10371 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
10372 * unroll.c (loop_iterations, unroll_loop): Likewise.
10374 2000-01-24 Christopher Faylor <cgf@cygnus.com>
10376 * config/i386/t-cygwin: Accomodate new winsup directory layout
10377 when searching for include files.
10379 2000-01-24 Richard Henderson <rth@cygnus.com>
10381 * rtl.def: Add unordered fp comparisions.
10382 * tree.def: Likewise.
10383 * tree.h: Add ISO C 9x unordered fp comparision builtins.
10385 * builtins.c (expand_tree_builtin): New function.
10386 * c-typeck.c (build_function_call): Use it.
10387 (build_binary_op): Support unordered compares.
10388 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
10390 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
10391 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
10392 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
10393 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
10394 * jump.c (reverse_condition): Don't abort for UNLE etc, but
10396 (swap_condition): Handle unordered compares.
10397 (thread_jumps): Check can_reverse before reversing.
10398 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
10401 * optabs.c (can_compare_p): New argument CODE. Verify branch or
10402 setcc is present before acking for cmp_optab. Update all callers.
10403 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
10404 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
10405 * expr.c (expand_expr): Likewise. Support unordered compares.
10406 (do_jump, do_store_flag): Likewise.
10407 * expr.h (enum libfunc_index): Add unordered compares.
10409 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
10410 (DPBIT_FUNCS): Add _unord_df.
10411 * config/fp-bit.c (_unord_f2): New.
10412 * fp-test.c (main): Try unordered compare builtins.
10414 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
10415 * alpha.c (alpha_comparison_operator): Check mode properly.
10416 (alpha_swapped_comparison_operator): Likewise.
10417 (signed_comparison_operator): Likewise.
10418 (alpha_fp_comparison_operator): New.
10419 (alpha_emit_conditional_branch): Handle unordered compares.
10420 * alpha.h (PREDICATE_CODES): Update.
10421 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
10422 (bunordered, bordered): New.
10424 2000-01-24 Richard Henderson <rth@cygnus.com>
10426 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
10427 * alpha.md (movtf): New expander, insn, and splitter.
10429 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
10431 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
10434 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
10436 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
10437 (FIXED_REGISTERS, CALL_USED_REGISTERS,
10438 REG_ALLOC_ORDER): Add frame pointer
10439 (FRAME_POINTER_REGNUM): Set to 20
10440 (HARD_FRAME_POINTER_REGNUM): New macro.
10441 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
10442 to HARD_FRAME_POINTER.
10443 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
10444 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
10445 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
10446 (HI_REGISTER_NAMES): Add "frame".
10447 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
10448 (debug_reg): Handle FRAME_POINTER_REGNUM.
10449 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
10450 GENERAL_REGS and INDEX_REGS.
10451 * i386.c (SAVED_REGS_FIRST): new macro.
10452 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
10453 (ix86_decompose_address, memory_address_length): Likewise.
10454 (regclass_map): Add frame pointer.
10455 (call_insn_operand): Handle frame_pointer_rtx.
10456 (reg_no_sp_operand): Likewise.
10457 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
10458 (print_operand, legitimize_pic_address): Fix formating.
10459 (ix86_compute_frame_size): Make static, update prototype, new
10460 parameters padding1, padding2, use ix86_nsaved_regs, use
10461 stack_alignment_needed.
10462 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
10463 to HARD_FRAME_POINTER_REGNUM conversions.
10464 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
10465 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
10466 (print_reg): Abort on FRAME_POINTER_REGNUM
10468 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
10470 * i386.h (PREDICATE_CODES): Add aligned_operand.
10471 * i386.c (aligned_operand): New function.
10472 (ix86_aligned_p): Kill.
10473 * i386.md (movhi_1): Emit mov for aligned operands.
10474 (promoting peep2s): Use aligned_operand.
10476 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
10478 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
10479 expression to allow underscores in macro names.
10480 (fix_char_macro_defines): Increment scanning pointer.
10482 2000-01-23 Richard Henderson <rth@cygnus.com>
10484 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
10485 * alpha/osf5.h: New file.
10486 * configure.in (alpha-*-osf5): Add it to tm_file.
10488 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
10490 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
10491 (alpha_emit_xfloating_cvt, function_arg): Declare.
10492 * alpha.c (alpha_emit_conditional_branch): Call
10493 alpha_emit_xfloating_compare for TFmode compares.
10494 (alpha_lookup_xfloating_lib_func): New.
10495 (alpha_compute_xfloating_mode_arg): New.
10496 (alpha_emit_xfloating_libcall): New.
10497 (alpha_emit_xfloating_arith): New.
10498 (alpha_emit_xfloating_compare): New.
10499 (alpha_emit_xfloating_cvt): New.
10500 (print_operand): Add default abort case.
10501 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
10502 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
10503 (BIGGEST_ALIGNMENT): Increase to 128 bits.
10504 (RETURN_IN_MEMORY): True for TF/TCmode.
10505 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
10506 (FUNCTION_ARG): Move to function_arg.
10507 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
10508 (ASM_OUTPUT_LONG_DOUBLE): New.
10509 (ASM_OUTPUT_DOUBLE): Always output bits.
10510 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
10511 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
10512 (extenddftf2, trunctfdf2): New.
10514 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10516 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
10517 * config/sparc/sol2.h: ... here.
10519 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10521 * basic-block.h (struct loops): New field `levels'.
10522 * flow.c (flow_loops_level_compute): Traverse all outer loops.
10523 (flow_loop_level_compute): Initialise level to 1.
10524 (flow_loops_find): Set loops->levels.
10525 (flow_loops_dump): Print loops->levels.
10527 2000-01-23 Richard Henderson <rth@cygnus.com>
10529 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
10530 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
10532 2000-01-23 Richard Henderson <rth@cygnus.com>
10534 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
10535 * i386.h (DBX_REGISTER_NUMBER): Use them.
10536 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
10537 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
10538 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
10539 * i386/sequent.h: Kill incorrect comment.
10541 2000-01-23 Mark Mitchell <mark@codesourcery.com>
10543 * ggc-page.c (struct page_entry): Make `context_depth' an
10545 (struct globals): Likewise.
10547 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
10549 * loop.c (check_dbra_loop): When checking a loop for
10550 reversability, check the source of any stores to ensure
10551 they don't depend on an initial value.
10553 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10555 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
10557 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
10559 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
10560 'pz_scan' into scope of entire function. Only affects
10561 compiles with -DDEBUG.
10563 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
10565 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
10566 section naming to that prior to 2000-01-07 patch.
10567 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
10568 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
10569 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
10570 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
10571 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
10573 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
10575 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
10578 2000-01-21 Jim Wilson <wilson@cygnus.com>
10580 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
10581 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
10583 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
10585 * cpphash.c (change_newlines): Delete function.
10586 (struct argdata): Delete 'newlines' and 'use_count' fields.
10587 (macroexpand): Remove code referencing those fields.
10589 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10591 * loop.c (loops_info): New variable.
10592 (loop_optimize): Allocate loops->array and free it on exit.
10593 Allocate memory for loops_info and assign to each loop,
10595 (find_and_verify_loops): Do not allocate loops->array.
10597 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
10599 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
10601 2000-01-21 Jakub Jelinek <jakub@redhat.com>
10603 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
10604 pseudos if expanded after first flow.
10605 (movdi_pic_label_ref): Likewise.
10607 2000-01-20 Richard Henderson <rth@cygnus.com>
10609 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
10611 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
10613 * Makefile.in (fixinc.sh): Depend on specs.
10614 * fixinc/Makefile.in: Add rule to create machname.h.
10615 (fixlib.o): Depend on machname.h.
10616 * fixinc/fixtests.c (machine_name): New test.
10617 * fixinc/fixfixes.c (machine_name): New fix.
10618 * fixinc/fixlib.c (mn_get_regexps): New helper function for
10619 the machine_name test and fix.
10620 * fixinc/fixlib.h: Prototype it.
10621 * fixinc/inclhack.def (machine_name): Use the C test and fix.
10622 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
10624 * gcc.c (do_spec_1) [case P]: Take care not to create
10625 identifiers with three leading or trailing underscores.
10627 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
10628 (fixincl): Don't specify libraries twice on link line.
10629 (gnu-regex.o): Remove special rule.
10630 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
10631 defined by config.h. Do not define _REGEX_RE_COMP.
10632 (regcomp): Allocate and initialize a fastmap.
10633 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
10635 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
10637 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
10639 2000-01-19 Richard Henderson <rth@cygnus.com>
10641 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
10642 arguments with BB. Update all callers. Tidy line wrapping.
10644 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
10646 * emit-rtl.c (try_split): Return last_insn if we split the
10649 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
10651 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
10652 (ix86_initial_elimination_offset): Declare.
10653 * i386.c (ix86_nsaved_regs): Break out from ...
10654 (ix86_can_use_return_insn_p): ... here.
10655 (ix86_emit_save_regs): Break out from ...
10656 (ix86_expand_prologue): ... here.
10657 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
10659 (ix86_expand_epilogue): ... here.
10660 (ix86_compute_frame_size): Make static, add prototype.
10661 (ix86_initial_elimination_offset): Break out from ...
10662 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
10664 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10666 * recog.h (OUT_FCN): Delete.
10668 * vax.md: Call `get_insn_template' instead of OUT_FCN.
10670 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10672 * cppalloc.c: PROTO -> PARAMS.
10673 * cpperror.c: Likewise.
10674 * cppfiles.c: Likewise.
10675 * cpplib.c: Likewise.
10676 * cpplib.h: Likewise.
10678 * config/arm/arm-protos.h: PROTO -> PARAMS.
10679 * config/arm/arm.c: Likewise.
10680 * config/c4x/c4x.c: Likewise.
10681 * config/fr30/fr30-protos.h: Likewise.
10682 * config/nextstep.c: Likewise.
10683 * config/pa/pa.c: Likewise.
10684 * config/pj/pj.c: Likewise.
10685 * config/rs6000/rs6000.c: Likewise.
10686 * config/v850/v850-protos.h: Likewise.
10687 * config/v850/v850.c: Likewise.
10689 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10691 * i370-protos.h: New file.
10693 * i370.c: Include tm_p.h. Fix compile time warnings.
10695 * i370.h: Move prototypes to i370-protos.h. Fix compile time
10698 * i370.md: Likewise.
10700 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10702 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
10703 (target_isinf, target_isnan, eisnan): Mark parameter with
10705 (eiisinf): Wrap in INFINITY.
10706 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
10707 (ibmtoe): Remove unused variable `rndsav'.
10709 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10711 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
10712 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
10714 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
10716 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
10717 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
10718 (fix_char_macro_defines, fix_char_macro_uses): New functions.
10720 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
10721 Recognize Emacs mode markers also.
10722 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
10723 C++ comments in C++ headers. Call is_cxx_header only if
10726 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
10727 bypass for ncurses.
10728 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
10729 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
10730 ... these, which use the new C fixes.
10731 (math_exception): Escape literal '+' in bypass expression.
10733 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
10736 2000-01-19 Geoff Keating <geoffk@cygnus.com>
10738 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
10741 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10743 * loop.c (loop_optimize): Allocate loop_info structure for each loop
10744 prior to calling scan_loop.
10746 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10748 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
10749 (split_branches, calc_live_regs): Likewise.
10751 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10753 * sh.md (fpu_single, fp_mode): New attributes.
10755 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10757 * loop.c (current_loop_info): Renamed from loop_info_data
10758 and changed to a pointer.
10759 (loop_optimize): Allocate loop_info structure for each loop
10760 and initialise to zero.
10761 (scan_loop): Set current_loop_info.
10763 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
10766 2000-01-19 Richard Henderson <rth@cygnus.com>
10768 * stupid.c: Die die die.
10769 * Makefile.in (OBJS): Remove stupid.o.
10770 (stupid.o): Likewise.
10772 * except.c (emit_eh_context): Don't emit USEs for stupid.
10773 * explow.c (probe_stack_range): Likewise.
10774 * flags.h (obey_regdecls): Remove.
10775 * flow.c (find_basic_blocks): Don't run try_merge_blocks
10776 when not optimizing.
10777 (life_analysis): Limit data collection when not optimizing.
10778 (mark_regs_live_at_end): Always mark the return value registers.
10779 (mark_used_regs): Remove dummy RETURN case.
10780 (print_rtl_with_bb): Don't consult obey_regdecls.
10781 * function.c (use_variable, use_variable_after): Remove.
10782 (assign_parms): Consult optimize not obey_regdecls.
10783 (expand_function_start): Don't emit USEs for stupid.
10784 (expand_function_end): Likewise.
10785 * global.c (build_insn_chain): Export.
10786 * integrate.c (expand_inline_function): Kill return-value USE
10788 * jump.c (jump_optimize_1): Do simple jump optimizations and
10789 dead code elimination.
10790 (calculate_can_reach_end): Remove check_deleted argument.
10791 (delete_insn): Patch out insns even when not optimizing.
10792 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
10793 * rtl.h (use_variable, use_variable_after): Remove declarations.
10794 (build_insn_chain): Declare.
10795 * stmt.c (expand_value_return): Don't emit USEs for stupid.
10796 (expand_end_bindings): Likewise.
10797 (expand_decl): Likewise. Consult optimize not obey_regdecls.
10798 * toplev.c (obey_regdecls): Remove.
10799 (rest_of_compilation): Don't set it. Kill stupid in favour of
10800 flow1, local-alloc, and reload.
10801 (main): Don't set obey_regdecls.
10803 * config/nextstep.c (handle_pragma): Likewise.
10805 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
10807 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
10809 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10811 * alpha-protos.h: PROTO -> PARAMS.
10812 * alpha.c: Likewise.
10814 * h8300.c: Likewise.
10815 * i386-protos.h: Likewise.
10816 * i386.c: Likewise.
10817 * m32r-protos.h: Likewise.
10818 * m32r.c: Likewise.
10819 * mips.c: Likewise.
10820 * mips.md: Likewise.
10821 * gmon-sol2.c: Likewise.
10822 * sparc.c: Likewise.
10824 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10826 * ns32k-protos.h: New file.
10828 * ns32k.c: Fix compile time warnings.
10830 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
10833 * ns32k.md: Likewise.
10835 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10837 * vax-protos.h: New file.
10839 * vax.c: Fix compile time warnings.
10841 * vax.h: Move prototypes to vax-protos.h. Fix compile time
10844 * vax.md: Likewise.
10846 * vaxv.md: Likewise.
10848 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10850 * romp-protos.h: New file.
10852 * romp.c: Fix compile time warnings.
10854 * romp.h: Move prototypes to romp-protos.h. Fix compile time
10857 * romp.md: Likewise.
10859 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10861 * we32k-protos.h: New file.
10863 * we32k.c: Fix compile time warnings.
10865 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
10868 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10870 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
10872 * except.c (eh_regs): Likewise.
10874 * final.c (output_operand): Likewise.
10876 * fold-const.c (target_isinf, target_isnan): Likewise.
10878 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
10880 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
10881 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
10883 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
10884 when optimize_size.
10885 (clrstrsi): Rewrite.
10886 (strsethi, strsetqi): New expanders.
10887 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
10888 (cmpstrsi): Emit compare insn before cmpstrsi_1
10889 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
10890 (strlensi_1): Likewise.
10891 (cmpstrsi_1): Likewise; do not output compare.
10892 (strlen expander): Do not unroll when optimizing for size.
10893 (*subsi3_carry): Rename to subsi3_carry
10894 (addqi3_cc): New pattern.
10895 * i386.h (processor_costs): Add move_ratio field.
10896 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
10897 * i386.c (*_cost): Set move_ratio.
10898 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
10899 (x86_expand_strlensi_1): Rewrite the main loop.
10901 2000-01-17 Richard Henderson <rth@cygnus.com>
10903 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
10904 * cse.c (find_comparison_args, fold_rtx): Likewise.
10905 * integrate.c (subst_constants): Likewise.
10906 * loop.c (get_condition): Likewise.
10908 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
10910 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
10912 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10914 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
10915 (RESTORE_WARN_FLAGS): Unpack it.
10916 Change semantic type of extension to ttype.
10917 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
10918 * c-parse.y, c-parse.c, objc/objc-parse.y,
10919 objc/objc-parse.c: Regenerate.
10921 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
10923 * fixinc/fixlib.c: Add copyright notice.
10924 (compile_re): New function.
10925 * fixinc/fixlib.h: Prototype compile_re.
10927 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
10928 Use compile_re to compile regular expressions.
10930 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
10931 where the pattern matched.
10933 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
10935 (ultrix_ansi_compat): Likewise.
10936 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
10938 (interactv_add2, interactv_add3): Delete.
10939 (x11_sprintf): Don't use filename glob.
10940 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
10943 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10945 * print-rtl.c: PROTO -> PARAMS.
10946 * real.c: Likewise.
10947 * reg-stack.c: Likewise.
10948 * resource.c: Likewise.
10949 * sdbout.h: Likewise.
10950 * simplify-rtx.c: Likewise.
10951 * stor-layout.c: Likewise.
10952 * stupid.c: Likewise.
10953 * xcoffout.c: Likewise.
10954 * xcoffout.h: Likewise.
10956 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10958 * toplev.c: PROTO -> PARAMS.
10959 * toplev.h: Likewise.
10960 * tree.c: Likewise.
10961 * tree.h: Likewise.
10962 * unroll.c: Likewise.
10963 * varasm.c: Likewise.
10964 * varray.c: Likewise.
10965 * varray.h: Likewise.
10967 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10969 * reload.c: PROTO -> PARAMS.
10970 * reload.h: Likewise.
10971 * reload1.c: Likewise.
10972 * reorg.c: Likewise.
10973 * resource.h: Likewise.
10976 * rtlanal.c: Likewise.
10977 * sbitmap.h: Likewise.
10978 * sdbout.c: Likewise.
10979 * stack.h: Likewise.
10980 * stmt.c: Likewise.
10981 * system.h: Likewise.
10983 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10985 * machmode.h: PROTO -> PARAMS.
10986 * mbchar.h: Likewise.
10987 * mips-tdump.c: Likewise.
10988 * mips-tfile.c: Likewise.
10989 * optabs.c: Likewise.
10990 * output.h: Likewise.
10991 * prefix.c: Likewise.
10992 * profile.c: Likewise.
10993 * protoize.c: Likewise.
10994 * real.h: Likewise.
10995 * recog.c: Likewise.
10996 * recog.h: Likewise.
10997 * regclass.c: Likewise.
10998 * regmove.c: Likewise.
10999 * regs.h: Likewise.
11001 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11003 * ggc-common.c: PROTO -> PARAMS.
11004 * ggc-page.c: Likewise.
11005 * ggc-simple.c: Likewise.
11007 * global.c: Likewise.
11008 * graph.c: Likewise.
11009 * gthr-win32.h: Likewise.
11010 * haifa-sched.c: Likewise.
11011 * halfpic.h: Likewise.
11012 * integrate.c: Likewise.
11013 * integrate.h: Likewise.
11014 * jump.c: Likewise.
11016 * local-alloc.c: Likewise.
11017 * loop.c: Likewise.
11018 * loop.h: Likewise.
11020 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11022 * genattr.c: PROTO -> PARAMS.
11023 * genattrtab.c: Likewise.
11024 * gencheck.c: Likewise.
11025 * gencodes.c: Likewise.
11026 * genconfig.c: Likewise.
11027 * genemit.c: Likewise.
11028 * genextract.c: Likewise.
11029 * genflags.c: Likewise.
11030 * gengenrtl.c: Likewise.
11031 * genopinit.c: Likewise.
11032 * genoutput.c: Likewise.
11033 * genpeep.c: Likewise.
11034 * genrecog.c: Likewise.
11036 2000-01-16 Mark Mitchell <mark@codesourcery.com>
11038 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
11040 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11042 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
11043 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
11044 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
11045 * configure, config.in: Rebuilt.
11047 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
11049 * config/i386/i386.md: Add peephole to merge successive stack
11052 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
11054 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
11055 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
11056 when walking backwards to find all the parameter loads when
11057 the basic block ends in a call.
11059 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11061 * loop.c (this_loop_info): Delete.
11062 (uid_loop): Add in place of uid_loop_num. All uses updated.
11063 (loop_number_exit_count): Delete and replace with entry in loop
11064 structure. All uses updated.
11065 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
11066 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
11067 (loop_outer_loop): Likewise.
11068 (loop_invalid, loop_number_exit_labels): Likewise.
11069 (loop_used_count_register): Delete and replace with entry in
11070 loop_info structure.
11071 (find_and_verify_loops): Add loops argument.
11072 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
11073 loop_end, etc. arguments with loop structure pointer. All callers
11075 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
11076 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
11077 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
11078 (insert_bct): Likewise.
11079 (basic_induction_var): New argument level.
11080 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
11081 vtop, and cont. Add used_count_register.
11082 (uid_loop): Delete declaration.
11083 (loop_number_exit_count): Likewise.
11084 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
11085 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
11086 (loop_outer_loop, loop_used_count_register): Likewise.
11087 (loop_invalid, loop_number_exit_labels): Likewise.
11088 (unroll_loop): Replace loop_start and loop_end arguments
11089 with loop structure pointer.
11090 (loop_precondition_p, loop_iterations): Likewise.
11091 Include basic-block.h.
11092 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
11093 with loop structure pointer.
11094 (loop_precondition_p, loop_iterations): Likewise.
11095 * basic-block.h (struct loop): New entries vtop, cont,
11096 cont_dominator, start, end, top, scan_start, exit_labels,
11098 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
11100 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11102 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
11104 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
11106 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
11108 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11110 * pdp11-protos.h: New file.
11112 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
11115 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
11118 * pdp11.md: Likewise.
11120 * 2bsd.h: Likewise.
11122 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11124 * mn10300-protos.h: New file.
11126 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
11129 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
11132 * mn10300.md: Likewise.
11134 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11136 * mn10200-protos.h: New file.
11138 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
11141 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
11144 * mn10200.md: Likewise.
11146 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11148 * h8300-protos.h: New file.
11150 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
11153 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
11156 * h8300.md: Likewise.
11158 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11160 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
11161 (asm_emit_uninitialised): Likewise.
11163 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
11165 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
11166 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
11168 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
11170 * config/mips/mips.c (override_options): Don't turn on extra
11171 alignment for mips16.
11173 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
11175 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
11176 eabi, and make sure queued POSTINCREMENT rtl is emitted at
11179 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
11181 * builtins.c (PAD_VARARGS_DOWN): Define.
11182 (std_expand_builtin_va_arg): Use the above macro.
11183 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
11184 * tm.texi (Register Arguments): Document the above macro.
11186 2000-01-14 Nick Clifton <nickc@cygnus.com>
11188 * emit-rtl.c (emit_insn): If checking is enabled, make sure
11189 that this function has not been used to emit a jump
11192 * jump.c (return_jump_1): Cope with being passed a null rtx.
11194 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11196 * eh-common.h: PROTO -> PARAMS.
11197 * emit-rtl.c: Likewise.
11198 * errors.c: Likewise.
11199 * errors.h: Likewise.
11200 * except.c: Likewise.
11201 * except.h: Likewise.
11202 * explow.c: Likewise.
11203 * expmed.c: Likewise.
11204 * expr.c: Likewise.
11205 * expr.h: Likewise.
11206 * final.c: Likewise.
11207 * fix-header.c: Likewise.
11208 * flow.c: Likewise.
11209 * fold-const.c: Likewise.
11210 * function.c: Likewise.
11211 * function.h: Likewise.
11213 * gcov-io.h: Likewise.
11214 * gcov.c: Likewise.
11215 * gcse.c: Likewise.
11217 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11219 * sh-protos.h: New file.
11221 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
11222 Add static prototypes. Fix compile time warnings.
11224 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
11228 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11230 * arc-protos.h: New file.
11232 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
11235 * arc.h: Move prototypes to arc-protos.h. Fix compile time
11238 * arc.md: Likewise.
11240 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11242 * dsp16xx-protos.h: New file.
11244 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
11247 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
11250 * dsp16xx.md: Likewise.
11252 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11254 * convex-protos.h: New file.
11256 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
11259 * convex.h: Move prototypes to convex-protos.h. Fix compile time
11262 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11264 * elxsi-protos.h: New file.
11266 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
11269 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
11272 * elxsi.md: Likewise.
11274 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
11276 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
11277 case for moving from HI/LO/HI_LO_REG. This makes the behavior
11278 match the comment for MIPS16.
11280 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
11282 * flow.c (split_edge): Do not call set_block_for_insn if we
11283 do not have a basic_block_for_insn structure.
11285 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
11286 and destination functions are 32bit aligned within the trampoline.
11287 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
11288 (TRAMPOLINE_ALIGNMENT): Define.
11290 * cse.c (cse_insn): When changing (set (pc) (reg)) to
11291 (set (pc) (label_ref)), verify the change creates a valid insn.
11293 * fr30.c (call_operand): Tighten and rework to match rules for
11294 call RTL expressions.
11295 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
11296 * fr30.md (call patterns): Improve constraints.
11298 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
11300 * fr30.c (fr30_expand_epilogue): Revert last change.
11301 Use emit_jump_insn for the return insn.
11303 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
11304 Stan Cox <scox@cygnus.com>
11306 * predict.c: New file. Preliminary infrastructure work for static
11307 branch prediction and basic block reordering.
11308 * basic-block.h: Add prototype for estimate_probability.
11309 * Makefile.in: Add rules for predict.o.
11311 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
11313 * fixincludes (va_list): Use __not_va_list__ for the dummy.
11314 * fixinc/*: Likewise.
11316 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11318 * cccp.c: PROTO -> PARAMS.
11319 * cexp.y: Likewise.
11320 * collect2.c: Likewise.
11321 * combine.c: Likewise.
11322 * convert.h: Likewise.
11324 * dbxout.c: Likewise.
11325 * dbxout.h: Likewise.
11326 * diagnostic.c: Likewise.
11327 * doprint.c: Likewise.
11328 * dwarf2out.c: Likewise.
11329 * dwarf2out.h: Likewise.
11330 * dwarfout.c: Likewise.
11331 * dwarfout.h: Likewise.
11332 * dyn-string.h: Likewise.
11334 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11336 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
11337 macro conditionals guarding use.
11339 * dwarf2out.c: Include "tm_p.h".
11341 * function.c (locate_and_pad_parm): Mark parameter with
11343 (expand_function_end): Likewise for variable `context'.
11345 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
11347 2000-01-13 Nick Clifton <nickc@cygnus.com>
11349 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
11350 register to prevent compile time warnings.
11352 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
11354 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
11355 to avoid -Wtraditional warning.
11357 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11359 * 1750a-protos.h: New file.
11361 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
11364 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
11367 * 1750a.md: Likewise.
11369 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11371 * a29k-protos.h: New file.
11373 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
11376 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
11379 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11381 * clipper-protos.h: New file.
11383 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
11386 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
11389 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11391 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
11393 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
11395 * configure.in (--enable-new-gxx-abi): New option.
11396 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
11397 * Makefile.in (GXX_ABI_FLAG): New variable.
11398 * configure: Regenerate.
11400 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11402 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
11403 * tm.texi (FORCE_STRUCT_BLK): Document.
11404 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
11406 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
11408 * config/ns32k/ns32k.md: Revert Jan 9 change.
11410 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
11411 to a mode-test, if the predicate is address_operand.
11413 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
11415 * combine.c (if_then_else_cond): Be careful about what kinds
11416 of RTL expressions are passed to operand_subword.
11418 * flow.c (split_edge): If we have to insert a new jump, make
11419 sure to associate it with a basic block.
11421 * flow.c (commit_one_edge_insertion): A block with one successor
11422 can end in a JUMP_INSN that is not a simplejump.
11424 2000-01-12 Robert Lipe <robertl@sco.com>
11426 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
11427 (BUILD_VA_LIST_TYPE): Define.
11428 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
11431 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
11433 * cccp.c (do_pragma): Add cast to (char *).
11435 2000-01-12 Richard Henderson <rth@cygnus.com>
11436 Fred Fish <fnf@be.com>
11437 Jason Merrill <jason@cygnus.com>
11439 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
11440 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
11441 * i386/beos-elf.h, i386/beos-pe.h: New files.
11443 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
11444 * cross-make (SYSTEM_HEADER_DIR): Define using
11445 CROSS_SYSTEM_HEADER_DIR.
11447 * gcc.c (LIBRARY_PATH_ENV): Provide default.
11448 (process_command): Use it.
11449 (main): Likewise. Kill trailing = from env vars.
11450 (build_search_list): Put it back.
11451 * collect2.c (main): Use LIBRARY_PATH_ENV.
11453 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
11454 * toplev.c: Use NEED_DECLARATION_ENVIRON.
11456 * tm.texi (Frame Layout): Document SMALL_STACK.
11457 * c-common.c (c_common_nodes_and_builtins): Check it.
11459 * system.h: Undef alloca after including glibc's <stdlib.h>,
11460 if USE_C_ALLOCA is defined.
11462 * gcc.c (set_input): New fn.
11463 (main): After all input files are compiled, reset the input file
11466 * aclocal.m4 (rindex, index): If already defined, don't attempt
11469 * ginclude/varargs.h: (__va_list__): Define ifndef.
11470 * ginclude/stdarg.h: Likewise.
11472 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
11473 instead of unsigned char.
11475 * hash.h (true, false, boolean): Undef before enum.
11477 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
11478 proper type of "HOST_WIDE_INT *", rather than their natural type of
11479 "unsigned HOST_WIDE_INT *".
11481 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11483 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
11485 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
11487 * regclass.c (choose_hard_reg_mode): Likewise.
11489 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
11491 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
11493 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11495 * c-common.c: PROTO -> PARAMS.
11496 * c-common.h: Likewise.
11497 * c-decl.c: Likewise.
11498 * c-iterate.c: Likewise.
11499 * c-lang.c: Likewise.
11500 * c-lex.c: Likewise.
11501 * c-lex.h: Likewise.
11502 * c-parse.in: Likewise.
11503 * c-pragma.c: Likewise.
11504 * c-pragma.h: Likewise.
11505 * c-tree.h: Likewise.
11506 * c-typeck.c: Likewise.
11507 * objc/objc-act.c: Likewise.
11508 * objc/objc-act.h: Likewise.
11510 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11512 * m88k-protos.h: New file.
11514 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
11517 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
11519 * m88k.md: Likewise.
11521 * tekXD88.h: Likewise.
11523 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11525 * m68k-protos.h: New file.
11527 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
11530 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
11532 * mot3300.h: Likewise.
11534 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
11536 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
11538 (extract_bitlist): Declare bitlen.
11540 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
11542 * cccp.c: Accept and ignore -lang-fortran.
11544 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
11545 qualifiers don't match at any level of pointerness.
11547 2000-01-12 Robert Lipe <robertl@sco.com>
11549 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
11551 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
11553 * reload1.c (reload_reg_unavailable): New static variable.
11554 (reload_reg_free_p): Test it.
11555 (reload_reg_free_for_value_p): Test it instead of
11557 (choose_reload_regs_init): Compute it.
11559 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
11561 * reorg.c (fill_slots_from_thread): Check modified_in_p
11564 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
11566 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
11567 these nodes even if INTERNALS is not set.
11569 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
11571 * gcse.c (delete_null_pointer_checks_1): Cope when
11572 get_condition cannot determine the condition.
11574 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
11576 * toplev.h (set_message_length): Declare.
11578 * diagnostic.c (obstack_chunk_alloc): Define macro.
11579 (obstack_chunk_free): Likewise.
11580 (struct output_buffer): New data structure.
11581 (vmessage): Remove.
11582 (output_maximum_width): New variable.
11583 (doing_line_wrapping, set_message_length, init_output_buffer,
11584 get_output_prefix, output_space_left, emit_output_prefix,
11585 output_newline, output_append, output_puts, dump_output,
11586 vbuild_message_string, build_message_string, build_location_prefix,
11587 voutput_notice, output_printf, line_wrapper_printf,
11588 vline_wrapper_message_with_location): New functions. Implement
11589 automatic line wrapping.
11590 (v_message_with_decl): Make it handle automatic line wrapping.
11591 (v_error_with_file_and_line): Likewise.
11592 (v_warning_with_file_and_line): Likewise.
11593 (announce_function): Likewise.
11594 (default_print_error_function): Likewise.
11596 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
11598 * cpplib.h (struct cpp_options): Change lang_asm to char.
11600 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
11601 done in cpp_handle_option now.
11602 (initialize_builtins): Take out special case code used only by
11604 (cpp_handle_option): Turn off trigraphs and trigraph warnings
11605 if -traditional. Recognize -lang-fortran and set
11606 lang_fortran, also turn off cplusplus_comments.
11607 (print_help): Document -lang-fortran.
11608 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
11609 lang_asm. Ignore all directives other than `# 123 "file"' if
11611 (cpp_get_token): If -traditional, don't recognize directives
11612 unless the # is in column 1.
11613 (parse_string): If lang_fortran or lang_asm, silently
11614 terminate strings ('' or "") at end of line.
11615 Remove unnecessary braces.
11617 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11618 Richard Henderson <rth@cygnus.com>
11620 * resource.c (mark_referenced_resources): Mark a set strict_low_part
11622 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
11623 strict_low_part when possible.
11625 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11627 * alias.c: PROTO -> PARAMS.
11628 * basic-block.h: Likewise.
11629 * bitmap.c: Likewise.
11630 * bitmap.h: Likewise.
11631 * builtins.c: Likewise.
11632 * c-aux-info.c: Likewise.
11633 * caller-save.c: Likewise.
11634 * calls.c: Likewise.
11636 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11638 * Makefile.in (toplev.o): Depend on regs.h.
11640 * output.h (tdesc_section): Prototype.
11642 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
11644 * sdbout.c: Include "tm_p.h".
11646 * toplev.c: Include "regs.h".
11648 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
11650 * unroll.c (unroll_loop): Add EH support.
11652 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11654 * pa-protos.h: New file.
11656 * pa.c: Include recog.h and tm_p.h.
11657 (compute_zdepwi_operands, compute_movstrsi_length,
11658 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
11659 find_addr_reg, import_milli): Add static prototypes.
11660 (pa_cpu_string, pa_arch_string): Constify a char*.
11661 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
11662 (read_only_operand): Add argument `mode'.
11663 (singlemove_string, output_move_double, output_fp_move_double,
11664 output_block_move, output_and, output_ior, output_ascii,
11665 remove_useless_addtr_insns, milli_names, output_mul_insn,
11666 output_div_insn, output_mod_insn, output_arg_descriptor,
11667 output_cbranch, output_bb, output_bvb, output_dbra, ,
11668 output_millicode_call, output_call, hppa_encode_label,
11669 output_parallel_movb, output_parallel_addb): Constify a char*.
11670 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
11671 (output_parallel_addb): Remove extra arg to `constrain_operands'
11673 * pa.h: Move all prototypes to pa-protos.h.
11674 (pa_cpu_string, pa_arch_string): Constify a char*.
11675 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
11677 * pa.md: Call `function_label_operand' with mode argument.
11678 Likewise for `read_only_operand'.
11679 Fix nesting of parens in call to `symbolic_operand'.
11681 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11683 * i860-protos.h: New file.
11685 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
11688 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
11690 * i860.md: Likewise.
11692 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
11694 * i386.md (movstrsi expander): Rewrite.
11695 (movstrsi_1 insn): Deleted.
11696 (strmovhi, strmovqi expander): New expanders.
11697 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
11698 * i386.c (x86_single_stringop): New global variable.
11699 * i386.h (x86_single_stringop): Declare.
11700 (TARGET_SINGLE_STRINGOP): New macro.
11702 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
11704 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
11705 integer vararg POSTINCREMENT before the destination of the jump
11706 for the hard fp case.
11707 (function_arg_pass_by_reference): Pass a copy of CUM to
11710 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
11711 for CONSTANT_ADDRESS_P above while loop for subreg.
11713 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
11715 * flow.c (propagate_block): When a prologue/epilogue insn
11716 is marked dead, unconditionally clear libcall_is_dead and
11717 insn_is_dead, and only dump rtl if warnings aren't being
11720 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
11722 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
11723 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
11724 (FIXED_REGISTERS): Set dirflag as fixed.
11725 (CALL_USED_REGISTERS): Set dirflag as used.
11726 (REG_ALLOC_ORDER): Set dirflag as last one.
11727 (DIRFLAG_REG): New macro.
11728 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
11729 (HI_REGISTER_NAMES): Add dirflag.
11730 (DEBUF_PRINT_REG): Handle dirflag.
11731 * i386.md (type attribute): New cld and str types.
11732 (length_opcode attribute): Set cld and str to 1.
11733 (memory attribute): Set str to unknown - it is not clear from the
11735 (pent_np function unit): Prefixed string operations takes 12 cycles
11736 minimally; cld takes 2 cycles.
11737 (ppro_uops attribute): Str is "many" and cld is "few".
11738 (ppro_p0 unit): Handle cld here.
11739 (k6_alux unit): Handle cld and str types.
11740 (k6_load unit): It is ocupied by str opcodes.
11741 (k6_store unit): It is ocupied by str opcodes.
11742 (athlon_decode): Str is vector decoded.
11743 (athlon_ieu): Handle str and cld.
11744 (cld pattern): New.
11745 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
11746 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
11747 cmpstrsi_nz_1 insn): Do not output cld instruction
11749 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
11751 * gcc.texi (G++ and GCC): Add Java and Chill.
11752 (Bug Critera): Don't list languages.
11754 * gcc.texi (Incompatibilities): No longer claim most C compilers
11757 * gcc.texi (G++ and GCC): Update other front-ends list.
11759 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
11761 * i386.c (ix86_expand_setcc): Fix typo.
11762 (ix86_expand_movcc): Similarly.
11764 * Band-aid until haifa's bitset implementation is nuked.
11765 * haifa-sched.c (extract_bitlst): New parameter for size of the
11766 bitset in bits. All callers changed. Avoid looking at undefined
11767 bits in the bitset.
11768 (edgeset_bitsize): New variable.
11769 (schedule_region): Initialize edgeset_bitsize.
11771 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11773 * Makefile.in (optabs.o): Depend on real.h
11774 (resource.o): Depend on insn-attr.h
11776 * builtins.c (result_vector): Wrap prototype in macro conditions
11777 governing definition and use.
11779 * c-common.c: Include tm_p.h.
11781 * c-lex.c: Likewise.
11783 * elfos.h: Constify a char*.
11785 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
11786 (get_attr_length, shorten_branches, profile_after_prologue): Mark
11787 parameter with ATTRIBUTE_UNUSED.
11789 * fold-const.c (exact_real_inverse): Wrap variable `i' in
11792 * haifa-sched.c (schedule_insns): Mark parameter with
11795 * optabs.c: Include real.h.
11797 * real.h (ereal_atof): Add prototype arguments.
11799 * resource.c: Include insn-attr.h.
11801 * sdbout.c (sdbout_queue_anonymous_type,
11802 sdbout_dequeue_anonymous_types): Wrap in macro
11803 SDB_ALLOW_FORWARD_REFERENCES.
11804 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
11807 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
11809 * stupid.c: Include tm_p.h.
11811 * tree.c (real_value_from_int_cst): Mark parameter with
11814 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11816 * i960-protos.h: New file.
11818 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
11821 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
11823 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11825 * combine.c (expand_field_assignment): Do not discard SUBREGs
11826 while computing nonzero_bits.
11828 2000-01-09 Nick Clifton <nickc@cygnus.com>
11830 * config/arm/arm.c: Fix compile time warnings about signed vs
11831 unsigned constants.
11832 * config/arm/arm.h: Fix compile time warnings about signed vs
11833 unsigned constants.
11835 2000-01-09 Philip Blundell <philb@gnu.org>
11837 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
11838 than `ldm' with only one register.
11839 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
11842 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
11845 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
11847 * config/ns32k/ns32k.md (load or push effective address): Operand 1
11850 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11852 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
11853 assignment used as truth value.
11855 * function.c (assign_temp): Mark parameter `dont_promote' with
11856 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
11857 PROMOTE_FOR_CALL_ONLY.
11859 * genrecog.c (write_subroutine): Mark variable `operands' with
11862 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
11865 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
11866 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
11868 * toplev.c (note_deferral_of_defined_inline_function): Likewise
11871 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11873 * config/c4x.h: Tidy up comments.
11874 * config/c4x.c: Likewise.
11876 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
11878 * fold-const.c (lshift_double, rshift_double): Handle
11879 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
11881 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11883 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
11884 in prepare_function_start().
11886 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
11888 * config/v850/v850.c (expand_epilogue): Interrupt functions no
11889 longer allocate extra stack for function calls.
11891 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11893 * config/c4x/c4x.md (*subqf3_set): Fix typo.
11895 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11897 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
11899 2000-01-07 David Edelsohn <edelsohn@gnu.org>
11901 * rs6000.c (processor_target_table): Add power3 as alias for 630.
11902 * aix43.h: Revert Aug 2 change.
11903 (HAS_INIT_SECTION): Define, not visible yet.
11904 (LD_INIT_SWITCH): Define, not visible yet.
11905 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
11907 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
11909 * collect2.c (main): Expand ld2 size further.
11910 (export_object_lst): Cast assignment to avoid warning.
11911 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
11912 (scan_prog_file, COFF): Do not collect initialization or
11913 finalization functions generated for entire shared object if
11914 init/fini support present.
11916 2000-01-07 Nick Clifton <nickc@cygnus.com>
11918 * config/elfos.h: Tidy up formatting of marcos. Make sure
11919 that .section directives are always prefixed by a tab.
11921 * config/svr4.h: Add #include "elfos.h" and remove duplicate
11924 2000-01-07 Matt Austern <austern@sgi.com>
11926 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
11929 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
11931 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
11933 (crtbegin.o, s-crtS): Likewise.
11935 2000-01-06 Richard Henderson <rth@cygnus.com>
11937 * alpha.md (adddi_2+1): Limit offset such that it will be
11938 loadable with a single ldah+lda pair.
11939 (adddi_2+2): Explicitly fail split if we can't make it work.
11941 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
11943 * protoize.c: Conditionally include unistd.h.
11944 (IS_SAME_PATH_CHAR): New macro.
11945 (IS_SAME_PATH): New macro.
11946 (CPLUS_FILE_SUFFIX): New macro.
11947 (cplus_suffix): New static variable.
11948 (is_abspath): New static function.
11949 (in_system_include_dir): Handle DOS style pathnames.
11950 (file_could_be_converted): Likewise.
11951 (file_normally_convertible): Likewise.
11952 (directory_specified_p): Likewise.
11953 (file_excluded_p): Likewise.
11954 (abspath): Likewise.
11955 (shortpath): Likewise.
11956 (referenced_file_is_newer): Likewise.
11957 (save_def_or_dec): Likewise.
11958 (do_processing): Likewise.
11960 (edit_file): Likewise. Use rename instead of link.
11961 (rename_c_file): Likewise. Don't rename syscalls file.
11962 (munge_compile_params): Define null device for DOS based systems.
11963 (process_aux_info_file): Use binary mode if appliable.
11964 (edit_file): Likewise.
11965 * invoke.texi (Running Protoize): Document C++ suffixes used.
11967 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
11968 IS_DIR_SEPARATOR macros.
11969 * collect2.c: Likewise.
11970 * cppinit.c: Likewise.
11971 * dwarf2out.c: Likewise.
11973 * gcov.c: Likewise.
11974 * prefix.c: Likewise.
11976 * toplev.c: Likewise.
11977 * system.h: And move to here.
11979 * prefix.c (update_path): Fix typo in variable name.
11981 2000-01-06 Richard Henderson <rth@cygnus.com>
11983 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
11984 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
11985 (count_reg_sets_1, count_reg_references): Likewise.
11986 (flow_loops_level_compute): Start counting actual loop depth at 1.
11987 (flow_loops_find): Likewise.
11988 * local-alloc.c (update_equiv_regs): Likewise.
11989 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
11991 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
11993 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
11994 FIRST_PSEUDO_REGISTER
11995 * dwarf2out.c: Don't include frame.h
11996 * dwarfout.c: Likewise
11997 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
12000 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
12002 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
12005 * i386.c (movsf splitter): Fix typo in my last checkin.
12007 2000-01-05 Nick Clifton <nickc@cygnus.com>
12009 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
12010 own definition of this macro.
12011 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
12012 flag_data_sections or UNIQUE_SECTION_P are true.
12014 * tm.texi (UNIQUE_SECTION): Document that it can be called for
12015 unitialised data decls.
12017 * config/i386/winnt.c (i386_pe_unique_section): Cope with
12018 being called for uninitialised data.
12020 * config/i386/interix.c (i386_pe_unique_section): Cope with
12021 being called for uninitialised data.
12023 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
12024 for uninitialised data.
12026 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
12027 for uninitialised data.
12029 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
12030 for uninitialised data.
12032 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
12033 (UNIQUE_SECTION_P): Always generate a unique section if
12034 flag_data_sections is true.
12035 (UNIQUE_SECTION): Also generate unique sections for
12036 uninitialised data.
12037 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
12038 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
12041 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12043 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
12046 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12048 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
12049 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
12050 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
12051 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
12052 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
12054 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
12056 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
12058 * c-decl.c (finish_enum): Simplify code to determine minimum and
12059 maximum values of the enum, and calculate the type. Remove check
12060 for FUNCTION_DECLs in the values list, which cannot happen. Replace
12061 the DECL_INITIAL of each enumeration constant with a copy converted
12062 to the enumeration type. When updating variant types, don't bother
12063 updating the type itself.
12065 * c-typeck.c (build_binary_op): Simplify conditional expressions
12066 when weeding out spurious signed-unsigned warnings. Add new
12067 spurious warning category: if the unsigned quantity is an enum
12068 and its maximum value fits in signed_type(result_type). Update
12070 (build_conditional_expr): Warn here if one alternative is signed
12071 and the other is unsigned.
12073 2000-01-05 Nick Clifton <nickc@cygnus.com>
12075 * config/fr30/fr30.h: Remove extraneous comments.
12077 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
12079 * reload1.c (choose_reload_regs): When disabling a reload, also
12080 set reload_spill_index to -1.
12082 2000-01-04 Joel Sherrill (joel@OARcorp.com>
12084 * configure.in (m68*-*-rtemscoff*): New target, formal name for
12086 (m68*-*-rtemself*): New target.
12087 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
12088 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
12089 (sparc*-*-rtemself*): New target.
12090 (sparc*-*-rtems*): Now elf not a.out.
12091 * config/i386/rtems.h: Include config/rtems.h.
12092 * config/i386/rtemself.h: Include config/rtems.h.
12093 * config/i960/rtems.h: Include config/rtems.h.
12094 * config/m68k/rtems.h: Include config/rtems.h.
12095 * config/m68k/rtemself.h: Include config/rtems.h.
12096 * config/mips/rtems64.h: Include config/rtems.h.
12097 * config/pa/rtems.h: Include config/rtems.h.
12098 * config/rs6000/rtems.h: Include config/rtems.h.
12099 * config/sh/rtems.h: Include config/rtems.h.
12100 * config/sh/rtemself.h: Include config/rtems.h.
12101 * config/sparc/rtems.h: Include config/rtems.h.
12102 * config/sparc/rtemself.h: Include config/rtems.h
12104 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
12106 * final.c (shorten_branches): Correctly compute length of
12107 asms without operands.
12109 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
12111 * configure.in: Add pj target.
12112 * configure: Regenerate.
12113 * config/pj: New directory.
12114 * config/pj/lib1funcs.S: New file.
12115 * config/pj/linux.h: New file.
12116 * config/pj/pj.c: New file.
12117 * config/pj/pj.md: New file.
12118 * config/pj/pjl.h: New file.
12119 * config/pj/t-pj: New file.
12120 * config/pj/xm-pj.h: New file
12122 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
12124 * toplev.c (rest_of_compilation): Run shorten-branches before
12127 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12129 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
12130 macros so that they're consistent with their names.
12131 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
12132 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
12134 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12136 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
12137 modified inadvertently.
12139 2000-01-04 Joel Sherrill <joel@OARcorp.com>
12141 * configure.in (v850*-*-rtems*): New target.
12142 * configure: Regenerate.
12143 * config/v850/rtems.h: New file.
12145 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
12147 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
12148 (__gthread_key_create): Likewise.
12149 (__gthread_key_dtor): Likewise.
12150 (__gthread_once): Fix logic.
12151 (__gthread_key_delete): Cast away constness.
12153 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
12154 * invoke.texi: Document.
12155 * i386/mingw32.h (CPP_SPEC): Use.
12156 (LIBGCC_SPEC): Likewise.
12157 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
12159 2000-01-04 David Edelsohn <edelsohn@gnu.org>
12161 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
12162 (HANDLE_PRAGMA_PACK): Undefine.
12163 (SLOW_UNALIGNED_ACCESS): Define.
12165 2000-01-04 David Edelsohn <edelsohn@gnu.org>
12167 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
12168 to default definition.
12169 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
12170 (store_fixed_bit_field): Call macro with word_mode and alignment.
12171 (extract_bit_field): Call macro with relevant mode and alignment.
12172 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
12173 to default definition.
12174 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
12176 (move_by_pieces_ninsns): Likewise.
12177 (clear_by_pieces): Likewise.
12178 (emit_push_insn): Likewise.
12179 (store_field): Call macro with relevant mode and alignment.
12180 (expand_expr): Likewise.
12181 (expand_expr_unaligned): Likewise.
12183 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
12184 (SLOW_UNALIGNED_ACCESS): Define.
12185 (CASE_VECTOR_MODE): Always use 32-bit offsets.
12186 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
12187 (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
12188 (toc_section): Likewise and .toc pseudo-op.
12189 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
12191 (TEXT_SECTION_ASM_OP): Likewise.
12192 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
12195 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
12196 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
12197 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
12198 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
12199 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
12201 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
12203 * regclass.c: Revert my Jan 4 change to loop cost computation.
12205 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
12207 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
12210 2000-01-04 Stan Cox <scox@cygnus.com>
12212 * haifa-sched.c (build_control_flow): Change unreachable simple
12213 loop test to check if current block has only one predecessor.
12214 (find_rgns): Initialize degree. Use dest as degree index, not src.
12216 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12218 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
12220 * calls.c (expand_call): Likewise for
12221 `old_stack_arg_under_construction'.
12223 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
12225 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
12228 * gcc.c (execute): Likewise for `ut' and `st'.
12230 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
12232 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
12234 * jump.c (jump_optimize_1): Likewise for `temp2'.
12236 * local-alloc.c (block_alloc): Likewise for `r1'.
12238 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
12240 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
12241 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
12243 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
12246 * reload.c (find_reloads): Likewise for `goal_alternative_number'
12247 and `goal_earlyclobber'.
12249 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
12251 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
12253 * stupid.c (stupid_life_analysis): Likewise for `chain'.
12255 * unroll.c (copy_loop_body): Likewise for `copy'.
12257 * varasm.c (output_constructor): Likewise for `byte'.
12259 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
12261 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
12262 all FP constants for constant->reg moves.
12263 (ix86_split_to_parts): Try to convert memory address into immediate
12264 when available in the constant pool.
12265 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
12267 (LEGITIMATE_CONSTANT_P): Return 1.
12268 * i386.md (pushsf): New splitter to convert constant pool memory
12269 reference to immediate.
12270 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
12273 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
12275 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
12276 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
12277 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
12278 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
12279 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
12281 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
12283 * ginclude/stdbool.h: Support compilation as C++.
12285 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12287 * fold-const.c (make_range): Don't try to reverse an unbounded range.
12289 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
12291 * regclass.c (regclass): Properly compute loop_cost. Adjust
12294 * regclass.c: Fix minor whitespace problems.
12296 2000-01-03 Anthony Green <green@cygnus.com>
12298 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
12299 Restore the pic register if required.
12301 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
12303 * c-common.c (format_char_info): Update comment.
12304 (check_format_info): Recognize 'z' modifier in the same way 'Z'
12305 was recognized. Emit warning for formats new in ISO C99 only
12306 if flag_isoc9x is not set.
12308 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
12310 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
12312 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
12314 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
12315 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
12316 (make_compound_operation): Choose cheaper alternative between
12317 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
12319 * regclass.c (op_costs): Remove global variable.
12320 (record_reg_classes): New parameter "op_costs" and "reg_pref".
12321 (record_operand_costs): Break out from ...
12322 (scan_one_insn): ... here.
12323 (dump_regclass): Make dumps nicer.
12324 (regclass): Dump preferrences choosed and changes done during passes.
12326 2000-01-03 Jakub Jelinek <jakub@redhat.com>
12328 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
12330 2000-01-03 Jakub Jelinek <jakub@redhat.com>
12332 * config/sparc/sparc.c (gen_df_reg): New function.
12333 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
12334 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
12335 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
12336 movtf_cc_reg_sp64+1): Use it.
12338 2000-01-02 Mark Mitchell <mark@codesourcery.com>
12340 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
12341 copied LABEL_DECLs.
12343 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
12345 * config/i386/i386.c (ix86_expand_unary_operator): Function
12346 definition made void.
12347 (ix86_expand_binary_operator): Update outdated preceding comment.
12348 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
12351 * config/i386/i386.c (override_options): Fix option-name typo.
12353 2000-01-02 Mark Mitchell <mark@codesourcery.com>
12355 * system.h (CEIL): Define.
12356 * builtins.c (CEIL): Remove.
12357 * expmed.c (CEIL): Likewise.
12358 * expr.c (CEIL): Likewise.
12359 * stor-layout.c (CEIL): Likewise.
12361 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12363 * expr.c (store_constructor_field): Fix typo introduced with last
12366 2000-01-01 Mark Mitchell <mark@codesourcery.com>
12368 * tree.h (BINFO_N_BASETYPES): New macro.
12370 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
12372 * expmed.c (emit_store_flag): Prevent losing a pending stack
12373 adjust the same way we prevent losing queued increments.
12375 Fri Dec 31 19:10:31 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12377 * function.c (update_temp_slot_address): Handle case where sum of
12378 temporary address plus offset in register is a valid address.
12380 1999-12-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12382 * genrecog.c (change_state) Corrected typo.
12384 1999-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12386 * system.h (bcopy, bcmp, bzero, index, rindex, atof, atol, free,
12387 getcwd, getenv, getwd, sbrk, strstr, malloc, calloc, realloc,
12388 strerror, getrlimit, setrlimit, abort): Add prototype arguments.
12390 1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
12392 * i386.c (ix86_expand_fp_compare): In non-sahf non-TARGET_IEEE
12393 case, expand GT comparisons correctly. Fix a comment before this
12396 1999-12-30 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
12398 * dwarfout.c: Include "frame.h"
12399 * dwarf2out.c: Likewise.
12400 * Makefile.in (dwarfout.o): Depend on frame.h
12401 (dwarf2out.o): Likewise.
12403 1999-12-29 "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
12405 Restore i386 binary compatibility in Dwarf EH info.
12406 * config/i386/i386.h (DWARF_FRAME_REGISTERS): Define as 17, the old
12407 value of FIRST_PSEUDO_REGISTER.
12408 * frame.h (DWARF_FRAME_REGISTERS): Default to FIRST_PSEUDO_REGISTER.
12409 (struct frame_state): Use DWARF_FRAME_REGISTERS.
12410 * dwarfout.c (output_reg_number): Ditto.
12411 * dwarf2out.c (reg_number, expand_builtin_init_dwarf_reg_sizes): Ditto.
12412 (DWARF_FRAME_RETURN_COLUMN): Default to DWARF_FRAME_REGISTERS.
12414 1999-12-29 Bruce Korb <autogen@linuxbox.com>
12416 * fixinc/fixincl.c(wait_for_pid): sometimes a WSTOPSIG of zero is OK
12417 * fixinc/fixincl.tpl(<hack>TEST_CT): Just do the existence test once
12418 (<hack>_RE_CT): not needed
12419 * fixinc/fixlib.c(is_cxx_header): moved from fixtests.c
12420 rewritten to scan the file text once only
12421 "template<..." test added
12422 * fixinc/fixlib.h(apply_fix_p_t): moved from fixtests.c
12423 (is_cxx_header): declaration added
12424 * fixinc/fixtests.c(is_cxx_header): removed
12425 (apply_fix_p_t): removed
12426 (double_slash_test): is_cxx_header is only called once now
12427 * fixinc/hackshell.tpl: indexing the fixes is now done under DEBUG
12428 * fixinc/inclhack.def(FIXINC_DEBUG): added for testing DEBUG state
12429 within the templates.
12430 The borken spelling of "broken" was fixed.
12431 * fixinc/inclhack.tpl: The $VERBOSE level is used on various messages
12432 The default level depends on FIXINC_DEBUG.
12434 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12436 * crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.
12437 Otherwise provide a declaration for atexit.
12438 (init_dummy): Make sure dummy call to atexit is nevertheless
12439 called with correct number of args.
12441 * frame.c: Update comments referring to other files.
12443 * libgcc2.c: Likewise.
12445 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12447 * cse.c (free_element, get_element): Remove unused prototypes.
12449 * fold-const.c (extract_muldiv): Initialize variables `op0' and
12452 * jump.c (invert_exp): Add explicit braces to avoid ambiguous
12455 Wed Dec 29 12:44:54 1999 Donald Lindsay <dlindsay@cygnus.com>
12457 * configure.in,configure: case arm for mn10200-*-* now sets
12458 float_format=i32 so that float.h will correctly claim "double"
12459 to be 32 bits. Ran autoconf to generate configure from .in file.
12461 Wed Dec 29 10:53:21 1999 Jeffrey A Law (law@cygnus.com)
12463 * pa.md (conditional zero): If op1 is a register, force it into
12464 the same register as op0.
12466 1999-12-28 Mark Mitchell <mark@codesourcery.com>
12468 * tree.h (BINFO_BASETYPES): Improve documentation.
12470 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12472 * configure.in (--enable-checking): Use a more portable `for'
12475 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12477 * configure.in (AC_DECL_SYS_SIGLIST, xm-siglist.h,
12478 arm/xm-netbsd.h, NO_SYS_SIGLIST): Don't use.
12480 * xm-siglist.h, arm/xm-netbsd.h, mips/xm-news.h, mips/xm-sysv4.h:
12483 * gcc.texi (NO_SYS_SIGLIST, sys_siglist, SYS_SIGLIST_DECLARED):
12484 Delete descriptions.
12486 * i386/osf1elf.h, i386/xm-cygwin.h, i386/xm-mingw32.h, m68k/3b1.h,
12487 m68k/a-ux.h, m68k/dpx2.h, m68k/plexus.h, m68k/xm-hp320.h,
12488 m88k/xm-m88k.h, mips/x-sni-svr4, pa/xm-pa.h, pa/xm-pahpux.h,
12489 pa/xm-papro.h, we32k/xm-we32k.h, winnt/xm-winnt.h, xm-interix.h,
12490 xm-svr4.h: Remove all instances of sys_siglist handling.
12492 1999-12-27 Jakub Jelinek <jakub@redhat.com>
12494 * config/sparc/sparc.md (cmp_zero_qi,
12495 cmp_zero_extendqisi2_andcc_set, cmp_zero_qi_sp64,
12496 cmp_zero_extendqidi2_andcc_set): New patterns.
12498 1999-12-28 Manfred Hollstein <mhollstein@cygnus.com>
12500 * m68k/t-mot3300-gald (CROSS_LIBGCC1): Define to libgcc1-asm.a.
12501 (LIB1ASMSRC, LIB1ASMFUNCS, LIB2FUNCS_EXTRA): Define.
12502 (fpgnulib.c, xfgnulib.c): Add rules.
12503 * m68k/t-mot3300-gas: Likewise.
12505 1999-12-27 Ian Lance Taylor <ian@zembu.com>
12507 * configure.in: Avoid [[ by using test and changequote. Add
12508 changequote required by 1999-12-14 change.
12509 * configure: Rebuild.
12511 1999-12-27 Clinton Popetz <cpopetz@cygnus.com>
12513 * config/mips/mips.h: Fix typo from 12/17/99 libgcc2 fix.
12515 1999-12-27 Christophe Jaillet <jaillet.christophe@caramail.com>
12517 * alias.c (nonlocal_reference_p): Add else for disjoint ifs.
12518 * flow.c (find_use_as_address): Likewise.
12519 * function.c (fixup_var_refs_1): Likewise.
12520 (walk_fixup_memory_subreg, fixup_stack_1): Likewise.
12521 * jump.c (invert_exp, redirect_exp): Likewise.
12522 * loop.c (replace_call_address): Likewise.
12523 (count_nonfixed_reads): Likewise.
12524 * rtlanal.c (modified_between_p): Likewise.
12525 (modified_in_p, volatile_insn_p, volatile_refs_p): Likewise.
12526 (side_effects_p, replace_regs, jmp_uses_reg_or_mem): Likewise.
12527 * unroll.c (remap_split_bivs): Likewise.
12529 1999-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12531 * diagnostic.c (v_message_with_decl): Use .* format specifier
12532 instead of building the format specifier width manually.
12534 * system.h (strsignal): Don't check HAVE_STRSIGNAL when
12535 determining whether to provide a prototype. Remove the
12536 sys_siglist clause in the conditional.
12538 1999-12-23 Martin v. Löwis <loewis@informatik.hu-berlin.de>
12540 * fold-const.c (operand_equal_p): Use memcmp to compare string
12542 Suggested by D. J. Bernstein
12544 1999-12-17 Jakub Jelinek <jakub@redhat.com>
12546 * config/h8300/h8300.h (TARGET_H8300H, TARGET_H8300S): Make sure
12547 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
12549 * config/mips/mips.h (TARGET_64BIT): Likewise.
12550 * config/rs6000/rs6000.h (TARGET_POWERPC64): Likewise.
12551 * libgcc2.c: Use {,U}{HW,W,DW}type and DWunion everywhere instead
12552 of {SI,DI}type and DIunion. Define these types to QI/HI modes on
12553 dsps. Give routines proper names if SI/DI modes are not used.
12554 * longlong.h: Use DWunion instead of DIunion.
12556 1999-12-26 Zack Weinberg <zack@wolery.cumb.org>
12558 * acconfig.h: New ENABLE flags: TREE_CHECKING, RTL_CHECKING,
12559 GC_CHECKING, GC_ALWAYS_COLLECT.
12560 * configure.in: Allow --enable-checking with an argument
12561 listing check modes to enable.
12562 * config.in, configure: Rebuilt.
12563 * ggc-page.c, ggc-simple.c: Define GGC_POISON (and
12564 GGC_ALWAYS_VERIFY for ggc-simple.c) only if
12565 ENABLE_GC_CHECKING. Define GGC_ALWAYS_COLLECT only if
12566 ENABLE_GC_ALWAYS_COLLECT.
12567 * rtl.h, rtl.c: Change ENABLE_CHECKING to ENABLE_RTL_CHECKING
12569 * tree.h, tree.c: Change ENABLE_CHECKING to
12570 ENABLE_TREE_CHECKING throughout.
12572 Sun Dec 26 07:48:20 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12574 * fold-const.c (fold_truthop): Properly check for FP RHS.
12576 1999-12-24 Mark Mitchell <mark@codesourcery.com>
12578 * toplev.h (note_deferall_of_defined_inline_function): Declare.
12579 * toplev.c (note_deferral_of_defined_inline_function): New
12580 function, split out from ...
12581 (rest_of_compilation): ... here. Use it.
12583 Fri Dec 24 12:34:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12585 * expr.c (store_constructor): Don't call clear_storage if size is
12588 1999-12-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12590 * Makefile.in (toplev.o): Depend on loop.h.
12592 * dwarfout.c: Include tm_p.h.
12594 * emit-rtl.c (restore_emit_status): Mark parameter with
12597 * final.c (final_scan_insn): Likewise.
12599 * flow.c (flow_nodes_print, flow_exits_print, flow_loops_cfg_dump,
12600 flow_loop_nested_p, flow_loop_exits_find, flow_loop_nodes_find,
12601 flow_depth_first_order_compute, flow_loop_pre_header_find,
12602 flow_loop_tree_node_add, flow_loops_tree_build,
12603 flow_loop_level_compute, flow_loops_level_compute,
12604 flow_loop_outside_edge_p): Add prototypes.
12605 (recompute_reg_usage): Mark parameters with ATTRIBUTE_UNUSED.
12607 * ggc-callbacks.c (lang_mark_tree, lang_mark_false_label_stack):
12608 Mark with ATTRIBUTE_NORETURN.
12610 * hash.c (hash_newfunc): Mark parameter with ATTRIBUTE_UNUSED.
12612 * local-alloc.c (no_conflict_p): Likewise.
12614 * loop.c (insert_bct): Hide definitions of variables with hidden
12616 (note_reg_stored): Mark parameter with ATTRIBUTE_UNUSED.
12618 * regclass.c (memory_move_secondary_cost): Mark variable `mem'
12619 with ATTRIBUTE_UNUSED.
12620 (record_reg_classes): Mark parameter with ATTRIBUTE_UNUSED.
12621 (reg_scan): Likewise.
12623 * reload.c (find_reloads): Remove unused variables `changed'.
12625 * reload1.c (reload_reg_class_lower): Don't unnecessarily cast
12627 (allocate_reload_reg): Mark parameter with ATTRIBUTE_UNUSED.
12628 Remove unused variable `insn'.
12630 * toplev.c: Include loop.h.
12631 (report_file_and_line): Remove unnecessary prototype.
12633 * tree.c (build_block): Mark parameter with ATTRIBUTE_UNUSED.
12635 * unroll.c (biv_total_increment): Likewise.
12637 Thu Dec 23 23:15:22 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12639 * reload1.c (emit_input_reload_insns): Restore old behaviour
12640 wrt. 'special' reloads.
12642 1999-12-23 Zack Weinberg <zack@wolery.cumb.org>
12644 * Makefile.in (ggc-simple.c, ggc-page.c): Don't depend on
12645 hash.h. (cse.c): Don't depend on hashtab.h.
12647 * cse.c: Don't include hashtab.h.
12648 (hash_cse_reg_info, cse_reg_info_equal_p): Delete prototypes
12650 * ggc-simple.c: Don't include hash.h.
12652 1999-12-22 Jason Merrill <jason@casey.cygnus.com>
12654 * dwarf2out.c (add_abstract_origin_attribute): Call
12655 gen_abstract_function on our function context.
12657 Thu Dec 23 03:57:10 1999 Hans-Peter Nilsson <hp@bitrange.com>
12659 * Makefile.in (INTEGRATE_H): Fix typo: INTEGRATE_H, not INTREGRATE_H.
12661 1999-12-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12663 * config/c4x/c4x.c (c4x_address_cost): Add statement to default
12666 1999-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12668 * config/c4x/c4x.md (*addqi3_noclobber_reload): Change operand 0
12669 constraints to "a!r".
12671 1999-12-21 Mark Mitchell <mark@codesourcery.com>
12673 * Makefile.in (calls.o): Depend on function.h.
12674 (alias.o): Likewise.
12676 1999-12-21 Bernd Schmidt <bernds@cygnus.co.uk>
12678 * reload1.c (emit_reload_insns): Break out code and variables into...
12679 (input_reload_insns, other_input_address_reload_insns,
12680 other_input_reload_insns, input_address_reload_insns,
12681 inpaddr_address_reload_insns, output_reload_insns,
12682 output_address_reload_insns, outaddr_address_reload_insns,
12683 operand_reload_insns, other_operand_reload_insns,
12684 other_output_reload_insns): ... new static variables, and...
12685 (emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
12686 do_output_reload): ... new functions.
12688 Tue Dec 21 07:06:36 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12690 * pa.h (FUNCTION_ARG_BOUNDARY): Never return 0.
12692 1999-12-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12694 * md.texi: Add c4x constraints documentation.
12696 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
12698 * config/i386/dgux.c (struct option): Rename to
12699 lang_independent_option.
12700 (struct m_options): Add description field.
12701 (output_options): Rename option type, add sep declaration, output
12702 ix86_cpu_string and ix86_arch_string only if set.
12703 (output_file_start): Rename option type.
12705 Mon Dec 20 23:15:36 1999 Mike Stump <mrs@wrs.com>
12707 * Makefile.in (crtbegin.o, crtend.o, s-crtS): Depend on
12709 (libgcc2.a): Similarly.
12711 Mon Dec 20 23:06:47 1999 David Edelsohn <edelsohn@gnu.org>
12713 * longlong.h (_ARCH_PPC): Only protect add_ssaaaa and sub_ddmmss
12714 with W_TYPE_SIZE == 32. Do not fall through to POWER architecture
12715 for umul_ppmm and smul_ppmm if !_ARCH_PPC and !_ARCH_POWER.
12717 Mon Dec 20 23:02:03 1999 Jeffrey A Law (law@cygnus.com)
12719 * fold-const.c (real_hex_to_f): Remove unused "isldouble" variable.
12720 Remove redundant initialization of "frexpon" and "expon".
12722 Mon Dec 20 15:00:04 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12724 * tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.
12726 * expr.c (store_constructor): New argument SIZE; pass to clear_storage.
12727 (store_constructor_field, expand_expr): Pass new arg.
12729 1999-12-20 Mark Mitchell <mark@codesourcery.com>
12731 * Makefile.in (explow.o): Depend on function.h.
12733 * stor-layout.c (set_sizetype): Fix typo.
12735 1999-12-20 Bernd Schmidt <bernds@cygnus.co.uk>
12737 * function.c (cfun): Renamed from current_function. All users
12739 * function.h (cfun): Rename declaration as well.
12741 * reload.h (struct insn_chain): Change live_throughout and dead_or_set
12742 to be of type regset_head, not regset. All users changed by adding
12744 * reload1.c (new_insn_chain): Don't allocate regsets, just clear them.
12746 1999-12-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12748 * config/c4x/rtems.h: New file.
12750 1999-12-19 Bernd Schmidt <bernds@cygnus.co.uk>
12752 * reload1.c (spill_failure): Take class of failed reload as argument
12753 and print it. Caller changed.
12755 Sun Dec 19 07:50:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12757 * rs6000.h (SUBTARGET_DEFAULT): New macro.
12758 (TARGET_SWITCHES): Allow subtargets to default switches.
12759 * rs6000/vxppc.h (SUBTARGET_DEFAULT): New macro.
12761 1999-12-18 Mark Mitchell <mark@codesourcery.com>
12763 * crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
12766 Sat Dec 18 20:42:43 1999 Richard Henderson <rth@cygnus.com>
12768 * cccp.c (main): Define __STDC_VERSION__ as necessary.
12769 * cppinit.c (cpp_handle_option): Likewise.
12771 * ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to
12772 determine when to define.
12774 Sat Dec 18 20:34:00 1999 Richard Henderson <rth@cygnus.com>
12776 * alpha.c (alpha_emit_conditional_move): If TARGET_FIX, handle
12777 cmove with mismatched test and data modes.
12779 Sat Dec 18 20:30:15 1999 Richard Henderson <rth@cygnus.com>
12781 * c-typeck.c (c_expand_start_case): Don't warn for long switch
12784 Sat Dec 18 16:28:43 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12786 * alias.c: Minor reformatting.
12787 * flow.c: Likewise.
12788 * regs.h: Likewise.
12789 * stor-layout.c: Likewise.
12790 * fold-const.c: Likewise.
12791 (OVERFLOW_SUM_SIGN): Renamed from overflow_sum_sign.
12792 (struct cb_args, const_binop_1, const_binop): Pass type of arg,
12794 (size_int_wide): Cache nodes even if garbage collecting.
12795 (twoval_comparison_p): Reenable SAVE_EXPR case if operand
12796 of SAVE_EXPR has no side effects.
12797 * cse.c: Move a comment.
12798 * tree.c: Minor reformatting.
12799 (int_size_in_bytes): Return -1 if constant overflows.
12801 Sat Dec 18 18:30:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12803 * unroll.c (copy_loop_body): Don't treat a REG like a PLUS.
12805 1999-12-18 10:42 -0800 Zack Weinberg <zack@wolery.cumb.org>
12807 * objc/objc-parse.c: Regenerate. This file must be rebuilt
12808 after any change to c-parse.in, even if objc-parse.y didn't
12811 1999-12-18 David S. Miller <davem@redhat.com>
12813 * toplev.c (rest_of_compilation): Restore BLOCK tree
12814 reconstruction and branch shortening changes lost in
12815 December 18th change.
12817 Sat Dec 18 05:29:29 1999 Scott Bambrough <scottb@netwinder.org>
12819 * config/arm/linux-elf.h: Change all instances of
12820 ARM_FLAG_SHORT_BYTES to ARM_FLAG_MMU_TRAPS.
12821 * config/arm/uclinux-elf.h: Likewise.
12823 1999-12-18 Gabriel Dos Reis <gdr@codesourcery.com>
12825 * toplev.c (notice, vmessage, v_message_with_file_and_line,
12826 v_message_with_decl, file_and_line_for_asm,
12827 v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
12828 verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
12829 v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
12830 v_pedwarn_with_file_and_line, vsorry, vnotice, count_error,
12831 pfatal_with_name, fatal_io_error, need_error_newline,
12832 last_error_function, last_error_tick, announce_function,
12833 default_print_error_function, print_error_function,
12834 report_error_function, fnotice, error_with_file_and_line,
12835 error_with_decl, error_for_asm, error, set_fatal_function, fatal,
12836 _fatal_insn, _fatal_insn_not_found, warning_with_file_and_line,
12837 warning_with_decl, warning_for_asm, warning, pedwarn,
12838 pedwarn_with_decl, pedwarn_with_file_and_line, sorry): Move to
12840 (compile_file): Use fnotice instead of notice. Adjust call.
12842 * diagnostic.c: New file.
12844 * Makefile.in (OBJS): Include diagnostic.o
12845 (diagnostic.o): Define dependence.
12847 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12849 * config/c4x/c4x.h (ASM_OUTPUT_XXX): Wrap in do-while(0).
12852 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12854 * config/c4x/c4x.md (rpts_top, rptb_top): Add clobbers for rs and re.
12856 1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
12858 * fixtests.c (is_cxx_header): New fn, split out of
12860 (else_endif_label): Allow "#endif // comment" in C++ headers,
12861 as determined by is_cxx_header.
12862 * fixfixes.c (else_endif_label_fix): Update comment.
12863 * fixincl.c: Don't output VERB_PROGRESS lines if stdout is not
12865 * genfixes: Correct double thinko in commandline parsing.
12866 * hackshell.tpl: Generate correct sh syntax for bypass
12869 * inclhack.def (all): Whenever an inserted preprocessor
12870 conditional is split over multiple lines, use double
12871 backslashes in this file so the fixed header will be readable.
12873 (AAB_fd_zero_glibc_1_0): Rename to AAB_fd_zero_asm_posix_types_h
12874 and add bypass entry for correct version of this header.
12875 (AAB_fd_zero_glibc_1_x): Rename to AAB_fd_zero_gnu_types_h.
12876 (AAB_fd_zero_glibc_2_0): Rename to AAB_fd_zero_selectbits_h.
12878 (hpux8_bogus_inlines): New fix, split from...
12879 (ultrix_atof_param) ... here.
12880 (math_expression): Add bypass entry keyed to glibc comment
12881 indicating the problem has been dealt with; disable
12882 unnecessary sed operations; update commentary.
12883 (math_gcc_ifndefs): Rename to math_huge_val_from_dbl_max,
12884 add select and bypass entries, simplify shell operation.
12885 (math_huge_val_ifndef): Split from math_gcc_ifndefs.
12887 (ip_missing_semi, rs6000_param, tinfo_cplusplus,
12888 ultrix_atof_param): Add select entry.
12889 (stdio_va_list, sunos_mather_decl): Add bypass entry.
12890 (systypes_for_aix, sysv86_string, tinfo_cplusplus): Put the
12891 comments with the fixes they describe.
12893 * c-parse.in (string action): Do not warn about ANSI string
12894 concatenation in system headers. Affects C parser only.
12895 * c-parse.y, c-parse.c, c-parse.h: Rebuild.
12897 1999-12-16 Jakub Jelinek <jakub@redhat.com>
12899 * config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
12900 compiling libgcc2 the macro depends always on arch cpp defines.
12902 Fri Dec 17 10:34:16 1999 Richard Earnshaw <rearnsha@arm.com>
12904 * loop.c (insert_loop_mem): Don't record MEMs from inside
12907 Fri Dec 17 12:08:11 MET 1999 Jan Hubicka <hubicka@freesoftr.cz>
12909 * regclass.c (regclass): Do not use flowgraph when not optimizing.
12911 * gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV
12912 notes too, create one when replacement failed, attempt to simplify
12914 (cprop_insn): Propagate even to registers mentioned only in REG_EQUAL
12915 or REG_EQUIV notes.
12917 1999-12-16 Mark Mitchell <mark@codesourcery.com>
12919 * crtstuff.c (__dso_handle): Declare.
12920 (__cxa_finalize): Likewise.
12921 (do_global_dtors_aux): Call __cxa_finalize if __dso_handle is
12924 * invoke.texi: Document -fuse-cxa-atexit.
12926 * tree.h (ptr_type_node): Document.
12927 (const_ptr_type_node): Likewise.
12929 Fri Dec 17 01:32:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12931 * regmove.c (optimize_reg_copy_1): Ignore LOOP notes.
12932 (optimize_reg_copy_2): Likewise.
12933 (optimize_reg_copy_3): Likewise.
12934 (fixup_match_2): Likewise.
12935 (regmove_optimize): Likewise.
12936 (fixup_match_1): Liekwise.
12938 * i386.md (HI to SImode promoting splitters): Rewrite.
12939 (pushsf mem peep2): New.
12940 (testhi to andhi peep2): Remove.
12941 * i386.h (x86_promote_QImode): New.
12942 (TARGET_PROMOTE_QImode): New.
12943 (PREDICATE_CODES): Add promotable_binary_operator.
12944 * i386.c (x86_promote_QImode0: New.
12945 (promotable_binary_operator): New.
12946 * i386-protos.h (promotable_binary_operator): New.
12948 * i386.md (test?i_1): Use "nonmemory_operand" predicate, simplify
12950 (one_cmpl?i*): Pass "NOT" to unary_operator_ok.
12952 1999-12-16 Mark Mitchell <mark@codesourcery.com>
12954 * Makefile.in (INTREGRATE_H): Rename to INTEGRATE_H.
12955 * function.c (insert_block_after_note): Remove.
12956 (retrofit_block): Likewise.
12957 (identify_blocks): Fix indentation.
12958 (reorder_blocks): Don't NULL out NOTE_SOURCE_FILE for a
12959 NOTE_INSN_BLOCK_BEG or NOTE_INSN_BLOCK_END.
12960 * function.h (insert_block_after_note): Remove prototype.
12961 (retrofit_block): Likewise.
12962 * integrate.c (expand_inline_function): Don't call
12963 find_loop_tree_blocks. Use expand_start_bindings_and_block, not
12964 just expand_start_bindings. Use the block_map to remap old
12965 NOTE_BLOCKs to new ones.
12966 (integrate_decl_tree): Keep track of remapped blocks.
12967 * integrate.h (struct inline_remap): Add block_map.
12968 * stmt.c (expand_fixup): Don't try to retrofit_blocks. Just set
12969 NOTE_BLOCK on the notes.
12970 (expand_start_bindings): Rename to ...
12971 (expand_start_bindings_and_block): Add parameter. Set NOTE_BLOCK.
12972 (expand_end_bindings): Set NOTE_BLOCK.
12973 * toplev.c (rest_of_compilation): In function-at-a-time-mode,
12974 reconstruct the BLOCK tree.
12975 * tree.h (expand_start_bindings): Macroize. Call ...
12976 (expand_start_bindings_and_block): New function.
12978 1999-12-16 Jakub Jelinek <jakub@redhat.com>
12980 * config/sparc/sparc.c (print_operand): Cast fprintf arguments
12981 to match the format.
12983 1999-12-16 David S. Miller <davem@redhat.com>
12985 * expr.c (emit_move_insn_1): Only emit clobbers if one of
12986 the outputs is a SUBREG.
12987 * rtlanal.c (reg_overlap_mentioned_p): Revert December 15th
12990 * config/sparc/sparc.c (epilogue_renumber): Add default case
12993 Thu Dec 16 11:33:57 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12995 * toplev.c (rest_of_compilation): Run branch shortening after
12998 * regclass.c (loop_depth): Remove
12999 (scan_one_insn): Do not handle LOOP_NOTE insns.
13000 (regclass): Go through basic blocks and set loop_cost
13002 Thu Dec 16 02:56:25 1999 Zack Weinberg <zack@bitmover.com>
13004 * tree.h (DECL_FROM_INLINE): Check DECL_ABSTRACT_ORIGIN too.
13006 Thu Dec 16 10:43:35 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13008 * i386.md (movqi): Use "nonimmediate_operand" for output operand.
13009 (movstrictqi, movdi, movsf, movdf, movxf): Likewise.
13010 (adddi, addqi, addhi, subdi, subqi, subhi, ffs): Likewise.
13012 Thu Dec 16 02:41:26 1999 Richard Henderson (rth@cygnus.com)
13014 * loop.c (insert_loop_mem): Ignore memory clobbers.
13016 * combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0)
13019 Thu Dec 16 02:26:11 1999 Jeffrey A Law (law@cygnus.com)
13021 * profile.c: Remove redundant #include "output.h".
13023 * h8300.md (HImode preinc peephole): Fix typo.
13025 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
13027 * function.c (retrofit_block): Abort if we don't find a suitable insn.
13028 (insert_block_after_note): Abort if we don't have a previous block.
13029 Remove FN parameter.
13030 * function.h: Adjust.
13032 1999-12-15 Mark Mitchell <mark@codesourcery.com>
13034 * builtins.c (expand_builtin_mathfn): Make sure not to expand the
13035 argument more than once.
13037 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
13039 * stmt.c (expand_decl): Expand upper bound of a dynamic array.
13041 1999-12-15 Jakub Jelinek <jakub@redhat.com>
13043 * expr.c (emit_group_load): Use dst mode if src is VOIDmode.
13045 Wed Dec 15 16:11:55 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13047 * function.c (PREFERRED_STACK_BOUDNARY): Provide default value.
13048 (assign_stack_local_1): Limit alignment to PREFERRED_STACK_BOUNDARY,
13049 update stack_alignment_needed.
13050 (prepare_function_start): Initialize stack_alignment_needed
13051 * function.h (struct function): Add field stack_alignment_needed.
13053 Wed Dec 15 14:55:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13055 * caller-save.c (insert_one_insn): Returns struct insn_chain *.
13056 Handle live_throughout / dead_or_set instead of live_before /
13058 (save_call_clobbered_regs): Get register livenessinformation from
13059 chain->live_throughout.
13060 (add_stored_regs): New function.
13061 (insert_restore, insert_save): Add restored / saved registers to
13063 * global.c (reg_dies): New parameter chain.
13064 (reg_becomes_live): Third parameter is regs_set now.
13065 Changed all callers.
13066 (reg_dies): New parameter chain. Changed all callers.
13067 (build_insn_chain): Set live_throughout instead of
13068 live_before / live_after.
13069 * reload.h (struct insn_chain): Replace members live_before /
13070 live_after with live_throughout / dead_or_set.
13071 * reload1.c (new_insn_chain): Handle live_throughout / dead_or_set
13072 instead of live_before / live_after.
13073 (maybe_fix_stack_asms, find_reload_regs, finish_spills): Likewise.
13074 (order_regs_for_reload, find_reg, finish_spills): Likewise.
13075 (choose_reload_regs_init): Likewise.
13076 * stupid.c (current_chain, find_clobbered_regs): Delete.
13077 (stupid_life_analysis): Set chain->live_throughout chain->dead_or_set
13078 instead of chain->live_before / chain->live_after.
13079 (mark_hard_ref): New function.
13080 (stupid_mark_refs): Call mark_hard_ref. Clear chain->live_throughout.
13082 1999-12-15 David S. Miller <davem@redhat.com>
13084 * rtlanal.c (reg_overlap_mentioned_p): Handle CONCAT.
13086 Wed Dec 15 15:05:30 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13088 * flow.c (calculate_loop_depth): Make global, remove prototype,
13089 rewrite to use new loop infrastructure.
13090 (find_basic_block): Remove calculate_loop_depth call.
13091 * toplev.c (rest_of_compilation): Call find_basic_block.
13092 * output.h (calculate_loop_depth): Declare.
13094 * flow.c (dump_flow_info): Dump loop_depth.
13095 (flow_loops_nodes_find): Increase loop_depth for basic block in the
13097 (flow_loops_find): Initialize the loop_depth for each basic block.
13099 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
13101 * tree.c (decl_function_context): Handle virtual functions.
13103 * tlink.c (scan_linker_output): Don't look in demangled name when
13104 looking for linker output keywords.
13106 * dwarfout.c (output_type): We can defer namespace-scope classes.
13108 Wed Dec 15 01:23:29 1999 Jeffrey A Law (law@cygnus.com)
13110 * regclass.c (record_reg_classes): Update comment for merging
13111 register class preferences in reg->reg copies. Tighten conditions
13112 for merging register class preferences in reg->reg copies.
13114 Wed Dec 15 02:19:32 1999 David Edelsohn <edelsohn@gnu.org>
13116 * rs6000.md (tablejumpdi): Generate DImode LABEL_REF.
13118 1999-12-14 Geoff Keating <geoffk@cygnus.com>
13120 * config/m68k/m68020-elf.h (ENDFILE_SPEC): Delete.
13121 (INIT_SECTION_ASM_OP): Delete.
13122 (FINI_SECTION_ASM_OP): Delete.
13123 (STARTFILE_SPEC): Define to hold just crtbegin.o.
13125 1999-12-14 Jason Merrill <jason@casey.cygnus.com>
13127 * dwarf2out.c (add_abstract_origin_attribute): Do call abort if
13128 the abstract origin wasn't emitted.
13130 * dwarf2out.c (class_scope_p): New fn.
13131 (gen_subprogram_die): Use it.
13132 (gen_variable_die): Use it. Tweak logic.
13133 (gen_struct_or_union_type_die): Check context_die to determine
13134 if we're function-local.
13135 (dwarf2out_decl): Check DECL_BUILT_IN, not DECL_FUNCTION_CODE.
13137 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
13139 * loop.c (check_dbra_loop): Can't reverse a biv that has
13140 maybe_multiple set.
13142 1999-12-14 Nick Clifton <nickc@cygnus.com>
13144 * config/arm/arm.c: Add support for -mcpu=arm720 command line
13147 Tue Dec 14 18:13:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13149 * loop.c (strength_reduce): Fix sign of giv lifetime calculation
13150 for givs made from biv increments.
13152 Tue Dec 14 08:11:27 1999 Richard Henderson <rth@cygnus.com>
13154 * configure.in (alpha-osf, alpha-linux): Handle ev6[78].
13155 * alpha.c (override_options): Recognize -mcpu=ev67.
13156 * alpha.h (CPP_CPU_EV67_SPEC): New.
13157 (CPP_CPU_DEFAULT_SPEC): Examine TARGET_CPU_DEFAULT to use it.
13158 (EXTRA_SPECS): Update.
13160 Tue Dec 14 08:04:28 1999 Richard Henderson <rth@cygnus.com>
13162 * cppp.c (main): Set trigraphs and __STRICT_ANSI__ as
13163 appropriate for -lang-c89 and -std=*.
13164 * cppinit.c (cpp_handle_option): Likewise.
13165 (new_pending_define): New, split out from cpp_handle_option.
13166 * gcc.c (default_compilers): Don't define __STRICT_ANSI__
13167 or enable trigraphs for -ansi/-std=*.
13169 * ginclude/stdarg.h (__va_copy): New.
13170 (va_copy): Don't define for C89.
13172 Tue Dec 14 08:37:27 CST 1999 Clinton Popetz <cpopetz@cygnus.com>
13174 * config/arm/arm.md (mulsidi3adddi, umulsidi3adddi): New patterns
13175 for long long multiply-accumulate.
13177 Tue Dec 14 13:51:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13179 * regclass.c (scan_one_insn): Set loop_cost to 1 when
13180 optimizing for size.
13182 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
13184 * reload1.c (reload): Can't avoid select_reload_regs/finish_spills
13185 if something changed. Back out that part of yesterday's changes.
13187 * loop.c (loop_max_reg): New static variable.
13188 (loop_optimize): Initialize it. Eliminate one unnecessary call to
13190 (scan_loop): Call reg_scan_update whenever we may have added new
13191 registers, and update loop_max_reg.
13193 Tue Dec 14 12:07:29 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13195 * regclass.c (record_reg_classes): Do not do the copying preferrencing
13196 when source does not die.
13198 * regclass.c (record_reg_classes): Handle INOUT operands propertly.
13200 1999-12-14 Jakub Jelinek <jakub@redhat.com>
13202 * config/sparc/linux64.h (TARGET_LIVE_G0,
13203 TARGET_BROKEN_SAVERESTORE): Don't support weird SPARC
13205 * config/sparc/linux.h (TARGET_LIVE_G0,
13206 TARGET_BROKEN_SAVERESTORE): Likewise.
13207 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
13208 TARGET_BROKEN_SAVERESTORE): Likewise.
13210 * config/sparc/sparc.h (SPARC_DEFAULT_CMODEL): Default to CM_32.
13211 (CONDITIONAL_REGISTER_USAGE): For block profiling fix %g4 on sparc64,
13213 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Use %g4 instead of %g2
13214 as sparc64 block profiling register.
13215 * config/sparc/sparc.c (sparc_override_options): Allow block
13216 profiling with -m32.
13217 (sparc_block_profiler): Use %g4 instead of %g2 as sparc64 block
13218 profiling register.
13219 * config/sparc/linux64.h (MACHINE_STATE_*): Only provide these
13220 macros on TARGET_ARCH32. sparc.h has macros good enough for sparc64.
13221 * config/sparc/sol2.h (MACHINE_STATE_*): Likewise.
13223 * config/sparc/xm-sp64.h: Avoid using __sparc_v9__ when testing
13225 * config/sparc/sparc.h: Likewise.
13226 * config/sparc/xm-sysv4-64.h: Likewise.
13227 * config/float-sparc.h: Likewise.
13228 * glimits.h: Likewise.
13229 * longlong.h: Likewise.
13231 * config/sparc/linux64.h (DEFAULT_VTABLE_THUNKS): Define to 1.
13232 (ASM_IDENTIFY_GCC): Remove.
13234 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
13236 * combine.c (combine_simplify_rtx): Don't make shared rtl.
13237 (simplify_logical): Likewise.
13239 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
13241 * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin.
13242 * cppfiles.c (INO_T_EQ): Likewise.
13244 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
13246 * i386/crtdll.h (STARTFILE_SPEC): Add -pg profiling support.
13247 * i386/mingw32.h (LIB_SPEC): Likewise.
13248 (STARTFILE_SPEC): Likewise.
13249 * i386/uwin.h (LIB_SPEC): Likewise.
13250 (STARTFILE_SPEC): Likewise.
13252 * i386/mingw32.h (SUBTARGET_PROLOGUE): Override Cygwin definition.
13253 * i386/uwin.h (SUBTARGET_PROLOGUE): Likewise.
13255 Mon Dec 13 20:25:29 1999 Jeffrey A Law (law@cygnus.com)
13257 * combine.c (combine_simplify_rtx): Fix order of checks for
13258 (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
13260 1999-12-13 Clinton Popetz <cpopetz@cygnus.com>
13262 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi) Backed out
13263 12/10/99 change, reapplied to merged-arm-thumb-backend-branch.
13265 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
13267 * hard-reg-set.h (inv_reg_alloc_order): Declare if REG_ALLOC_ORDER is
13269 * regclass.c (inv_reg_alloc_order): New array.
13270 (regclass_init): If REG_ALLOC_ORDER is defined, initialize it.
13272 * reload.h (struct insn_chain): Delete fields group_size, group_mode,
13273 counted_for_groups, counted_for_nongroups. Add fields rld and
13275 * reload.c (push_secondary_reload): Don't set nongroup field of
13277 (push_reload): Likewise.
13278 (find_reloads): Delete code to compute nongroup fields.
13279 * reload1.c (reload_insn_firstobj): New static variable.
13280 (pseudos_counted, spilled_pseudos): Now of type regset_head. All
13282 (calculate_needs, find_tworeg_group, find_group, possible_group_p,
13283 count_possible_groups, modes_equiv_for_class_p, new_spill_reg,
13284 dump_needs, maybe_mark_pseudo_spilled, hard_reg_use_compare): Delete
13286 (count_pseudo, select_reload_regs, copy_reloads, find_reg): New
13288 (struct hard_reg_n_uses): Deleted.
13289 (potential_reload_regs): Deleted.
13290 (init_reload): Initialize spilled_pseudos and pseudos_counted.
13291 (reload): Don't try to allocate reload registers if we already know
13292 we have to make another pass. Call select_reload_regs. Free memory
13293 starting with reload_firstobj when starting another pass.
13294 Don't allocate spilled_pseudos.
13295 (calculate_needs_all_insns): Call copy_reloads for an insn that
13296 needs reloads; don't call calculate_needs.
13297 (spill_cost): New static array.
13298 (used_spill_regs_local): New static variable.
13299 (order_regs_for_reload): Rewrite to lose hard_reg_n_uses and the code
13300 to compute potential_reload_regs.
13301 (find_reload_regs): Completely rewritten to use find_reg.
13302 (allocate_reload_reg): Don't test counted_for_groups or
13303 counted_for_nongroups. Lose NOERROR arg and code to give an error;
13304 all cllers changed.
13305 (choose_reload_regs): Add fallback code that uses the existing
13306 register allocation from find_reload_regs.
13308 Mon Dec 13 00:54:14 1999 Philippe De Muyter <phdm@macqel.be>
13310 * flow.c (create_edge_list): Cast xmalloc return value.
13312 Mon Dec 13 00:47:58 1999 Jeffrey A Law (law@cygnus.com)
13314 * doprnt.c: Remove incorrect comment closure.
13316 * cse.c: Fix a few minor whitespace goofs.
13318 1999-12-13 Don Bowman <don@pixstream.com>
13320 * mips/vxworks.h: Fix problem with comment termination.
13321 (EXTRA_SECTIONS): Add in_sbss.
13322 (EXTRA_SECTION_FUNCTIONS): Corresponding changes.
13324 1999-12-12 David S. Miller <davem@redhat.com>
13326 * cse.c (struct cse_reg_info): Add hash_next member,
13327 reorder rest of struct for better packing on 64-bit
13329 (cse_reg_info_tree): Kill.
13330 (REGHASH_SHIFT, REGHASH_SIZE, REGHASH_MASK, reg_hash,
13331 REGHASH_FN): New custom pow2 hash mechanism.
13333 (HASH_SHIFT, HASH_SIZE, HASH_MASK, HASH, table): Rework to
13334 use a pow2 hash table.
13335 (get_cse_reg_info): Rework to use new REGHASH.
13336 (new_basic_block): Likewise, use HASH_SIZE, and inline
13338 (remove_from_table): Rework to use HASH_SIZE/HASH_MASK,
13339 and inline free_element call.
13340 (lookup_as_function, insert, flush_hash_table, invalidate,
13341 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
13342 invalidate_for_call, use_related_value, find_comparison_args,
13343 fold_rtx, equiv_constant, cse_insn, invalidate_memory): Likewise.
13344 (hash_cse_reg_info, cse_reg_info_equal_p, free_element,
13345 get_element): Kill.
13347 Sun Dec 12 21:31:44 1999 Jeffrey A Law (law@cygnus.com)
13349 * cse.c (cse_basic_block): Free qty_table consistently.
13351 1999-12-12 David S. Miller <davem@redhat.com>
13352 Jakub Jelinek <jakub@redhat.com>
13354 * config/sparc/sparc.md (movtf reg/reg split): Don't generate
13355 SUBREGs by hand, gen the appropriate hard reg directly.
13356 (movtf reg/mem split): Likewise and alter_subreg on destination
13358 (movtf mem/reg split): Similarly.
13359 (movdf_cc_sp64): Rename from hidden pattern.
13360 (movtf_cc_hq_sp64): Renamed from movtf_cc_sp64.
13361 (movtf_cc_sp64, following split): New pattern and splitter.
13362 (movdf_cc_reg_sp64): Rename from hidden pattern.
13363 (movtf_cc_reg_hq_sp64): Renamed from movtf_cc_reg_sp64, require
13365 (movtf_cc_reg_sp64, following split): New pattern and splitter.
13367 1999-12-12 Stephen L Moshier <moshier@mediaone.net>
13369 * loop.c (load_mems): Don't hoist written floating point mem
13372 1999-12-12 Mark Mitchell <mark@codesourcery.com>
13374 * except.h (struct eh_queue): Add `next' pointer.
13375 (struct eh_status): Make x_ehqueue a pointer.
13376 (push_ehqueue): Declare.
13377 (pop_ehqueue): Likewise.
13378 * except.c (expand_eh_region_end): Adjust now that ehqueue is a
13380 (expand_fixup_region_end): Likewise.
13381 (expand_leftover_cleanups): Likewise.
13382 (push_ehqueue): Define.
13383 (pop_ehqueue): Likewise.
13384 (emit_cleanup_handler): Use push_ehqueue and pop_ehqueue rather
13385 than doing it inline.
13386 (expand_start_all_catch): Adjust now that ehqueue is a
13388 (mark_eh_queue): Mark all level of the queue.
13389 (mark_eh_status): Adjust now that ehqueue is a
13391 (init_eh_for_function): Allocate ehqueue.
13392 (free_eh_status): Free it.
13393 * stmt.c (expand_cleanups): Save the ehqueue around the cleanup
13394 expansion for a fixup.
13396 1999-12-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13398 * gthr-single.h (__gthread_active_p): Add prototype arguments.
13400 * libgcc2.c (__udivmoddi4): Remove unnecessary decls.
13401 (__dummy, __builtin_saveregs, __bb_exit_trace_func, __bb_init_prg,
13402 __bb_trace_func, __bb_trace_func_ret, __bb_trace_ret,
13403 function_ptr, getpagesize, __enable_execute_stack,
13404 __enable_execute_stack, __clear_insn_cache,
13405 __enable_execute_stack, __do_global_dtors, __do_global_ctors,
13406 _cleanup, _exit, __default_terminate, __terminate_func,
13407 __terminate, __empty, __throw, new_eh_context,
13408 eh_context_initialize, eh_context_static, eh_context_specific,
13409 get_eh_context, __get_eh_context, __get_eh_info,
13410 init_reg_size_table, eh_threads_initialize,
13411 __get_dynamic_handler_chain, __sjthrow, __sjpopnthrow,
13412 __unwinding_cleanup, throw_helper, __throw, __rethrow,
13413 __pure_virtual): Add prototype arguments.
13414 (__bb_exit_func): Cast a sizeof to long when comparing against one.
13415 Cast a signed value to unsigned long when comparing against one.
13416 (new_eh_context): Wrap in _GTHREADS macro.
13417 (__sjthrow, __sjpopnthrow): Initialize variable `cleanup' at
13419 (in_reg_window): Mark parameters with __attribute__ ((__unused__)).
13420 (throw_helper): Initialize variables `handler_p' and `pc_p'.
13422 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13424 * combine.c (record_promoted_value): Remove unused variable
13427 * emit-rtl.c (renumber_insns): Likewise for `old_max_uid'.
13429 * global.c (record_conflicts): Likewise for `j'.
13431 * genoutput.c (output_insn_data): Don't unnecessarily cast away
13434 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13436 * i386-protos.h (output_387_binary_op, output_fix_trunc,
13437 output_fp_compare): Constify a char*.
13439 * i386.c (ix86_split_to_parts, ix86_safe_length_prefix): Add
13441 (override_options, ix86_comp_type_attributes, print_operand,
13442 output_387_binary_op, output_fix_trunc, output_fp_compare):
13444 (ix86_sched_reorder): Mark parameter `clock_var' with
13447 * i386.h (DEBUG_PRINT_REG): Constify a char*.
13449 Fri Dec 10 16:12:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
13451 * tree.def (EXPR_WITH_FILE_LOCATION): Temporarily add a third
13452 operand, for use in the Java front-end.
13454 1999-12-10 Ben Collins <bcollins@debian.org>
13456 * configure.in: Fix typo for "-64" in 64bit as check.
13457 * configure: Rebuilt.
13459 1999-12-10 Jakub Jelinek <jakub@redhat.com>
13461 * longlong.h (__sparc_v9__): Use %rDIGIT instead of %DIGIT where
13464 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13466 * c-parse.in (string): With -Wtraditional, warn if ANSI string
13467 concatenation is utilized.
13469 * invoke.texi (-Wtraditional): Document it.
13471 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13473 * flow.c (flow_loops_dump): Avoid ANSI string concatenation.
13474 Cast a ptrdiff_t to long and pass it to printf with %ld.
13476 1999-12-10 Geoff Keating <geoffk@cygnus.com>
13478 * config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no
13479 68881, we have no 68881 registers at all.
13480 (HARD_REGNO_MODE_OK): It is always OK to put a MODE_FLOAT
13481 value in a 68881 register if it is available.
13483 1999-12-10 Clinton Popetz <cpopetz@cygnus.com>
13485 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi): New patterns
13486 for long long multiply-accumulate.
13488 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
13490 * loop.c (insert_loop_mem): Undo last change.
13492 1999-12-10 David S. Miller <davem@redhat.com>
13494 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p, fp_high_losum_p):
13496 * config/sparc/sparc-protos.h: Add them.
13497 * config/sparc/sparc.h: Add them to PREDICATE_CODES.
13498 (EXTRA_CONSTRAINT_BASE): New macro, handling Q, R, and S
13499 constraints which use those helpers.
13500 (EXTRA_CONSTRAINT): Use this new macro.
13501 * md.texi: Update sparc target constraints documentation.
13502 * config/sparc/sparc.md (clear_sf, clear_sfp, movsf_const_intreg,
13503 movsf_const_high, movsf_const_lo, movsf_insn): Delete.
13504 (movsf_insn_novis_liveg0, movsf_insn_novis_noliveg0,
13505 movsf_insn_vis, movsf_lo_sum, movsf_high): New patterns.
13506 (movsf high/lo_sum split): Rework for new patterns.
13507 (movsf expander): Allow storing fp_zero to memory if ! live_g0.
13509 1999-12-09 Gavin Romig-Koch <gavin@cetus.cygnus.com>
13511 * c-common.c (c_common_nodes_and_builtins):
13512 Create __builtin_ptrdiff_t and __builtin_size_t.
13514 Thu Dec 9 18:05:48 1999 Jeffrey A Law (law@cygnus.com)
13516 * pa/elf.h (MAX_OFILE_ALIGNMENT): Define.
13518 Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13520 * regclass.c (globalize_reg): Re-instate test that allows
13521 fixed registers to be declared as a variable even after functions
13524 Fri Dec 10 00:52:13 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13526 * i386.md (cpu attribute): Add "athlon".
13527 (athlon_decode): New attribute.
13528 (Athlon scheduling units definitions): New.
13529 (fcmp and shld patterns): Set athlon_decode to "vector".
13530 * i386.c (athlon_cost): New.
13532 (x86_use_leave, x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
13533 x86_use_sahf): Set for Athlon.
13534 (x86_use_fiop): Unset for Athlon.
13535 (override_options): Define Athlon alignments and "athlon" name.
13536 (x86_adjust_cost): Penalize AGI and delayed latencies for Athlon.
13537 * i386.h (TARGET_ATHLON): New.
13538 (enum processor_type): Add PROCESSOR_ATHLON.
13539 (TARGET_CPU_DEFAULT_SPEC): Set to "-D__tune_athlon__"
13541 (TARGET_CPP_CPU_SPECS): Set -D__tune_athlon__ for Athlon.
13543 1999-12-09 Andreas Jaeger <aj@suse.de>
13545 * loop.c (record_biv): Declare parameter as int.
13547 * config/i386/i386-protos.h: Declare long_memory_operand.
13549 1999-12-09 Mark Mitchell <mark@codesourcery.com>
13551 * tree.c (copy_node): Do zero the TREE_CHAIN, even for an
13552 EXPR_WITH_FILE_LOCATION.
13554 Thu Dec 9 11:36:24 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13556 * i386.md (neg??, abs?f, one_cmpl?i): Use nonimmediate_operand
13559 * flow.c (recompute_reg_usage): Use basic block info to get loop_depth.
13561 * combine.c (try_combine, distribute_notes): Remove REG_N_REFS
13564 1999-12-09 Jakub Jelinek <jakub@redhat.com>
13566 * config/sparc/linux64.h (TARGET_DEFAULT): Make -mapp-regs
13567 default on linux64 again.
13568 * config/sparc/t-linux64: Add mno-app-regs and non-medlow code
13569 models for multilibing.
13570 * genmultilib: Accept | as alternative separator within a set in
13573 * config/sparc/sparc.h (PROMOTE_FOR_CALL_ONLY): Define.
13575 * calls.c (precompute_arguments): Make sure initial_value contains
13576 value pseudo which CSE expects.
13577 * cse.c (struct set): New entry orig_src.
13578 (cse_insn): Set it early on entry, use it for libcall EQUIV note
13581 Wed Dec 8 22:24:15 1999 Richard Henderson <rth@cygnus.com>
13583 * flow.c (count_basic_blocks): Don't add (use (const_int 0)) insns.
13585 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
13587 * loop.c (insert_loop_mem): Don't hoist volatile mems out of loops.
13589 1999-12-08 Jakub Jelinek <jakub@redhat.com>
13591 * config/sparc/sparc.c (ultra_cmove_results_ready_p,
13592 ultra_fpmode_conflict_exists, ultra_flush_pipeline): Typo fix.
13594 * config/sparc/sparc.h (SPARC_SETHI_P): Don't look at topmost 32 bits
13597 * longlong.h: Merge in changes from glibc.
13598 Also don't clobber %g2 register in 32bit SPARC assembly, so that
13599 -mno-app-regs libgcc can be compiled.
13600 * libgcc2.c: Add defines so that the updated longlong.h
13601 can be used in libgcc2.a. Also, make sure on most architectures
13602 (at least on all which have optimized code in longlong.h defined
13603 for) {SI,W}_TYPE_SIZE is suitable for preprocessor tests.
13605 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13607 * config/sparc/sol2-64.h: Same as sol2-sld-64.h, except that
13608 `-m EMULATION' is added to non-default LINK_ARCH_SPECs.
13609 * configure.in: Use sol2-64.h instead of sol2-sld-64.h if linker
13611 * configure: Rebuilt.
13613 Wed Dec 8 03:45:40 1999 Richard Henderson <rth@cygnus.com>
13615 * alpha.c (secondary_reload_class): For !BWX, sub-simode
13616 outputs require a register.
13618 1999-12-08 Brendan Kehoe <brendan@cygnus.com>
13620 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS): Add _sf_to_usi
13621 _df_to_usi. Required by some targets, so US_SOFTWARE_GOFAST calls to
13622 functions like dptoul will be resolved.
13623 (libgcc2.a): Make sure that the object files from DPBIT are named
13624 differently (prefix `_dp') from those that would be coming from
13627 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Jakub Jelinek <jakub@redhat.com>
13629 * configure.in: When target is sparc* and tm_file contains 64,
13630 test for 64bit support in assembler. If not supported, remove
13631 sparc/t-sol2-64 from target-dependent Makefile fragments.
13632 (AS_SPARC64_FLAG): Define to the assembler flag for 64bit.
13633 (HAVE_AS_OFFSETABLE_LO10): Rework test to use these flags.
13634 (HAVE_AS_REGISTER_PSEUDO_OP): Use config.cache.
13635 * acconfig.h (AS_SPARC64_FLAG): Added.
13636 * configure, config.in: Rebuilt.
13637 * config/sparc/sol2-sld-64.h: Same as sol2.h, if without 64bit
13638 support. Use AS_SPARC64_FLAG.
13640 1999-12-07 Jakub Jelinek <jakub@redhat.com>
13642 * config/sparc/sparc.c (hard_32bit_mode_classes): Mark registers
13643 suitable for holding OFmode values so that gcc works with complex
13645 (hard_64bit_mode_classes): Likewise.
13647 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): Fix pattern
13648 so that it is actually matched.
13649 (sethi_di_medlow): Likewise.
13651 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Consider TFmode 0.0L
13652 as legitimate constant if -mvis.
13653 * config/sparc/sparc.md (movtf): Likewise.
13654 (clear_sf): Use const_double_operand.
13655 (clear_sfp, clear_dfp, clear_tf, clear_tfp): New patterns.
13657 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): New function.
13658 * config/sparc/sparc-protos.h (sparc_emit_float_lib_cmp): Prototype.
13659 * config/sparc/sparc.h (*_LIBCALL): Only use for _Q_*
13660 routines, _Qp_* cannot be handled like that now.
13661 (INIT_TARGET_OPTABS): Likewise.
13662 * config/sparc/sparc.md (cmptf): Accept soft float ARCH64.
13663 (seq, sne, sgt, sge, slt, sle, beq, bne, bgt, bge, blt, ble): Call
13664 sparc_emit_float_lib_cmp if ARCH64 and soft float.
13665 (extendsftf2, extenddftf2, trunctfsf2, trunctfdf2, floatsitf2,
13666 floatditf2, fix_trunctfsi2, fix_trunctfdi2, addtf3, subtf3, multf3,
13667 divtf3, sqrttf3): New expanders.
13668 (extendsftf2_hq, extenddftf2_hq, trunctfsf2_hq, trunctfdf2_hq,
13669 floatsitf2_hq, floatditf2_hq, fix_trunctfsi2_hq, fix_trunctfdi2_hq,
13670 addtf3_hq, subtf3_hq, multf3_hq, divtf3_hq, sqrttf3_hq): Rename from
13673 * configure.in (sparc64-*-linux*): Use posix threads if enabled.
13674 * configure: Rebuilt.
13675 * config/sparc/linux64.h: Default to -mcpu=ultrasparc if no
13676 -mcpu is given and we're doing 64bit compiles.
13678 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
13680 * loop.h (struct induction): Add multi_insn_incr.
13681 * loop.c (basic_induction_var): New multi_insn_incr argument.
13682 Set it if we search back through previous insns for the biv.
13683 (record_biv): New multi_insn_incr argument; fill in struct induction.
13684 (strength_reduce): Discard an iv with multiple bivs, any of
13685 which require multiple insns to increment.
13687 1999-12-07 Martin v. Löwis <loewis@informatik.hu-berlin.de>
13689 * invoke.texi (C Dialect Options): Remove -flang-c9x, add -std
13692 1999-12-06 David S. Miller <davem@redhat.com>
13694 * combine.c (check_promoted_subreg): Do not conditionalize this upon
13695 PROMOTE_FUNCTION_RETURN.
13697 Mon Dec 6 15:12:14 1999 Jim Wilson <wilson@cygnus.com>
13699 * regmove.c (optimize_reg_copy_1): If no REG_DEAD note, check for
13700 and handle REG_UNUSED note on insn.
13702 * combine.c (force_to_mode, case LSHIFTRT): New local inner_mask. Set
13703 inner_mask instead of mask.
13705 1999-12-06 Brendan Kehoe <brendan@cygnus.com>
13707 * dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be
13708 zero if there was an error.
13710 1999-12-06 Jakub Jelinek <jakub@redhat.com>
13712 * config/sparc/sparc.md (return_losum_di): Fix typo in asm
13715 * longlong.h: Fix clobbers in SPARC asm statements.
13717 * config/sparc/sparc.c (input_operand): Allow HImode and QImode
13718 valid sethi operations when TARGET_ARCH64.
13720 * calls.c (save_fixed_argument_area): If save_mode is BLKmode,
13721 always use move_by_pieces to avoid infinite recursion.
13722 (restore_fixed_argument_area): Likewise.
13724 * combine.c (check_promoted_subreg, record_promoted_value): New
13726 (combine_instructions): Use them to retain nonzero and sign bit
13727 information after SUBREGs are eliminated by optimizations in
13728 this pass if PROMOTE_FUNCTION_RETURN.
13730 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Document
13731 .register declaration. Don't use variables with __ prefixes.
13733 Mon Dec 6 12:24:52 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13735 * fold-const.c (optimize_bit_field_compare): Only use one mode
13736 for both RHS and LHS in non-constant case.
13738 1999-12-06 Nathan Sidwell <nathan@acm.org>
13740 * frame.c (start_fde_sort): Only allocate erratic array, if
13741 linear one was allocated. Return allocated flag.
13742 (fde_insert): Only insert, if there's a valid array.
13743 (fde_end_sort): Split, sort and merge if linear and erratic
13744 arrays exist, else just sort linear one.
13745 (search_fdes): New function. Linear search through original fde
13747 (frame_init): Permit multiple initializations. Cope with
13749 (find_fde): Fallback on linear search, if failed to sort array.
13750 (__deregister_frame_info): Only free sorted array, if we
13753 1999-12-06 Jakub Jelinek <jakub@redhat.com>
13755 * config/sparc/sparc.h (MUST_PASS_IN_STACK): New macro.
13757 1999-12-05 Jakub Jelinek <jakub@redhat.com>
13759 * config/sparc/sparc.c (sparc64_initialize_trampoline): Use gen_flushdi.
13761 1999-12-05 Mark Mitchell <mark@codesourcery.com>
13763 * tree.h (special_function_p): Declare.
13764 * calls.c (special_function_p): Make it global. Don't take `name'
13765 as a parameter. Fix typo in 1999-11-28 change.
13766 (expand_cal): Adjust.
13768 1999-12-04 Mark Mitchell <mark@codesourcery.com>
13770 * tree.def (EXPR_WITH_FILE_LOCATION): Fix comment formatting.
13771 * tree.h (EXPR_WFL_FILENAME): Define in terms of
13772 EXPR_WFL_FILENAME_NODE.
13773 (EXPR_WFL_FILENAME_NODE): Use the second operand slot rather than
13775 * print-tree.c (print_note): Print TREE_PRIVATE and
13778 * dwarf2out.c (add_abstract_origin_attribute): Don't abort when
13779 the original die cannot be found.
13781 * varray.h (varray_head_tag): Add elements_used.
13782 (VARRAY_PUSH): New macro.
13783 (VARRAY_POP): Likewise.
13784 (VARRAY_TOP): Likewise.
13785 Add variants of VARRAY_PUSH and VARRAY_POP for all varray element
13787 * varray.c (varray_init): Initialize elements_used.
13788 * Makefile.in (BASIC_BLOCK_H): Add varray.h.
13789 (INTEGRATE_H): New variable.
13790 (integrate.o): Depend on INTEGRATE_H.
13791 (unroll.o): Likewise.
13793 * function.h (insert_block_after_note): Declare.
13794 * function.c (insert_block_after_note): Split out from ...
13795 (retrofit_block): ... here.
13797 * stmt.c (expand_fixup): Fix typo in comment.
13799 Sat Dec 4 14:13:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13801 * regmove.c (copy_src_to_dest): Remove loop_depth parameter.
13802 (optimize_reg_copy_1): Remove REG_N_REFS updating code.
13803 (optimize_reg_copy_2, copy_src_to_dest, fixup_match_2): Likewise.
13804 (regmove_optimize, fixup_match_1): Likewise.
13806 1999-12-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13808 * flow.c (flow_loops_dump): Add missing argument when calling
13809 flow_loop_nested_p.
13811 1999-12-04 Geoffrey Keating <geoffk@cygnus.com>
13812 Greg McGary <gkm@gnu.org>
13814 * c-common.c (enum attrs): Add A_NO_LIMIT_STACK.
13815 (init_attributes): Add A_NO_LIMIT_STACK.
13816 (decl_attributes): Handle A_NO_LIMIT_STACK.
13817 * c-decl.c (duplicate_decls): Handle DECL_NO_LIMIT_STACK.
13818 * explow.c (allocate_dynamic_stack_space) [!HAVE_allocate_stack]:
13819 Handle stack bounds checking.
13820 * flags.h (flag_stack_check): Use the word 'probe' rather than
13821 'check', because the flag doesn't actually cause any checking to
13823 * function.c (expand_function_start): Set
13824 current_function_limit_stack.
13825 * function.h (struct function): Add limit_stack.
13826 (current_function_limit_stack): Define.
13827 * invoke.texi (Code Gen Options): Document new options.
13828 * rtl.h: Declare stack_limit_rtx.
13829 * toplev.c (stack_limit_rtx): New variable.
13830 (decode_f_option): Handle new options -fstack-limit-register=REG,
13831 -fstack-limit-symbol=IDENT, -fno-stack-limit.
13832 (main): Add stack_limit_rtx as GC root.
13833 * tree.h (DECL_NO_LIMIT_STACK): New macro.
13834 (struct tree_decl): New member no_limit_stack.
13836 * config/rs6000/rs6000.c (rs6000_allocate_stack_space): Handle
13838 * config/rs6000/rs6000.md (allocate_stack): Handle stack_limit_rtx.
13839 (conditional_trap+1): Get new mnemonic correct.
13840 (conditional_trap+2): New pattern for DImode traps.
13842 * config/m68k/m68k.c (output_function_prologue): Handle
13844 * config/m68k/m68k.md (trap): New insn.
13845 (conditional_trap): New insn.
13846 * md.texi (Standard Names): Document `trap' and
13847 `conditional_trap'.
13848 * optabs.c (gen_cond_trap): Use start_sequence()/end_sequence()
13849 so a cc0 setter doesn't get emitted at some random place in the
13852 * config/i960/i960.md (trap): New insn.
13853 (conditional_trap): New expander.
13854 (conditional_trap+1, conditional_trap+2): New insns for signed
13855 and unsigned cases.
13856 * config/i960/i960.c (i960_function_prologue): Use
13857 STARTING_FRAME_OFFSET. Handle stack_limit_rtx.
13859 Thu Dec 2 21:22:45 1999 Greg McGary <gkm@gnu.org>
13860 Geoffrey Keating <geoffk@cygnus.com>
13862 * flags.h (warn_padded, warn_packed): Add global var decls.
13863 * toplev.c (warn_padded, warn_packed): Add global var defns.
13864 (W_options): Add warnings `-Wpacked' and `-Wpadded'.
13865 * stor-layout.c (layout_record): Add local variable `type'
13866 to hold often-used TREE_TYPE (field). Add local variable
13867 `unpacked_align' to hold alignment that would be in force
13868 if no `packed' attribute were present. Warn if `packed' attribute
13869 is unnecessary, or even harmful. Warn when gcc inserts padding
13870 to satisfy alignment requirements of members. Use NULL_TREE
13871 when checking whether var_size is set.
13872 * invoke.texi: Document new flags.
13874 1999-12-03 Nathan Sidwell <nathan@acm.org>
13876 * frame.c (fde_split): Reimplement to avoid variable sized array.
13878 Thu Dec 2 18:59:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13880 * combine.c (try_combine): Before fixing up LOG_LINKS for the
13881 i3_subst_into_i2 case, check that GET_CODE (PATTERN (i2)) == PARALLEL.
13883 1999-12-02 Gavin Romig-Koch <gavin@cygnus.com>
13885 * invoke.texi: Document the mips option -mno-crt0
13887 1999-12-02 Mike Karr <mkarr@mathworks.com>
13889 * cccp.c (argdata): Added free_ptr member.
13890 (macroexpand): Initialize free_ptr of each argument. When an
13891 argument's buffers are freed, if the argument's free_ptr corresponds
13892 to a buffer on the input stack, then return the free_ptr to that stack
13893 frame, otherwise, free it.
13894 (macarg): If an argument begins and ends on the same input stack level,
13895 then transfer the free_ptr of that buffer to the argument in case
13896 the stack is popped during the processing of a subsequent argument.
13898 1999-12-02 Bernd Schmidt <bernds@cygnus.co.uk>
13900 * loop.c (note_reg_stored): New function.
13901 (struct note_reg_stored_arg): New structure.
13902 (try_copy_prop): Change to be more conservative; only replace within
13903 one extended basic block and stop replacing if a store to the
13904 replacement reg is seen.
13906 1999-12-02 Nick Clifton <nickc@cygnus.com>
13908 * config/fp-bit.c: Initialise all fields of the NAN
13911 * c-lex.c (check_newline): Pass pragma_getc and pragma_ungetc
13914 Wed Dec 1 18:16:38 1999 Jan Hubicka <hubicka@freesoft.cz>
13916 * i386.md (extend?f?f2): Force the input into a register, not
13919 1999-12-01 Jakub Jelinek <jakub@redhat.com>
13921 * config/sparc/sparc.md (movsf_const_intreg): Add constraints for
13923 (movdf_const_intreg_sp32): Likewise. Prefer the memory load
13924 alternative because setting up 64bit constant is usually costly,
13925 especially when reload is in progress or completed.
13926 (movdf_const_intreg_sp64): Likewise.
13927 (movdf_const_intreg split): Fix building up constants when
13928 HOST_BITS_PER_WIDE_INT is 64 yet long is 32bit.
13930 Wed Dec 1 16:51:22 1999 Jeffrey A Law (law@cygnus.com)
13932 * combine.c (if_then_else_cond): Use const_true_rtx instead of
13933 const1_rtx for return values in EQ/NE comparison against (const_int 0)
13936 * mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers.
13937 (asm_file_start): Emit .am33 into assembly file when compiling for
13939 (print_operand_address): Handle POST_INC addresses.
13940 (can_use_return_insn, initial_offset): Check AM33 registers too.
13941 (expand_prologue): Check & save AM33 registers too.
13942 (expand_epilogue): Similarly.
13943 (secondary_reload_class): Handle AM33 specific secondary reloads.
13944 (output_tst): Emit efficient code for the AM33 too.
13945 * mn10300.h (CPP_SPEC, TARGET_AM33): Define.
13946 (TARGET_SWITCHES): Add -mam33 switch.
13947 (FIRST_PSEUDO_REGISTER): Handle new AM33 registers.
13948 (FIXED_REGISTERS, CALL_USED_REGISTERS): Likewise.
13949 (REG_ALLOC_ORDER, CONDITIONAL_REGISTER_USAGE): Likewise.
13950 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P): Likewise.
13951 (enum reg_class, REG_CLASS_NAMES): Likewise.
13952 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Likewise.
13953 (INDEX_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
13954 (REGNO_OK_FOR_INDEX_P, PREFERRED_RELOAD_CLASS): Likewise.
13955 (PREFERRED_OUTPUT_RELOAD_CLASS, LIMIT_RELOAD_CLASS): Likewise.
13956 (REGISTER_MOVE_COST, REGISTER_NAMES): Likewise.
13957 (HAVE_POST_INCREMENT): Define.
13958 (GO_IF_LEGITIMATE_ADDRESS): Allow POST_INC addresses for the AM33.
13959 (GO_IF_MODE_DEPENDENT_ADDRESS): POST_INC is a mode dependent address.
13960 * mn10300.md (movqi, movhi, addsi, subsi): Add AM33 variants.
13961 (mulsi, andsi, iorsi, xorsi, notsi): Likewise.
13962 (ashiftsi, lshiftrtsi, ashiftrtsi): Likewise.
13963 (zero_extend to SI from QI/HI): Likewise.
13964 (sign_extend to SI from QI/HI): Likewise.
13965 (mulsidi3, umulsidi3): New patterns for the AM33.
13966 (tstsi with zero extension from QI/HI): Add AM33 variants.
13967 (movsi, movsf, movdi, movdf): Generate efficient code for the AM33 too.
13968 (return_internal_regs, store_movm): Handle new AM33 registers.
13969 * t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Define.
13970 (LIBGCC, INSTALL_LIBGCC): Likewise.
13971 * invoke.texi: Document new flags.
13973 Fri Nov 26 10:59:12 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
13975 * i386.md (addsi3_cc): Add "binary_operator_ok" to the condition.
13976 (addsi3_carry): Likewise.
13977 (sbbsi3_cc): Add "binary_operator_ok" to the condition.
13978 (sbbsi3_carry): Likewise.
13979 (mulsi3): Rewrite to expander, ensure that only one operand is memory.
13980 (mulhi3): Likewise.
13981 (test?i_1): Ensure that only one operand is memory.
13982 (conditional move patterns): likewise.
13983 (shift and rotate patterns): Rewrite to expander, add
13984 "binary_operator_ok" to the condition.
13986 * i386.md (QImode patterns): Remove '*' before the 'r' constraints.
13987 * i386.h (procesor_costs): Add movzbl_load field.
13988 (HARD_REGNO_MODE_OK): Accept QImode on non PARTIAL_REGISTER_STALL in
13989 non-Q registers, accept DImode registers anywhere.
13991 (MEMORY_MOVE_COST): Calculate QImode moves correctly.
13992 * i386.c (*_cost): Set value for movxbl_load field.
13994 * (addsi): New add to lea splitter.
13995 (ashlsi): Likewise.
13996 (lea to add/shift peep2): New.
13998 1999-12-01 Mark Salter <msalter@cygnus.com>
14000 * config/mips/elf.h (STARTFILE_SPEC): Add no-crt0.
14001 * config/mips/elf64.h (STARTFILE_SPEC): Add no-crt0.
14002 * config/mips/mips.h (TARGET_SWITCHES): Add no-crt0.
14004 Tue Nov 30 15:20:52 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
14006 * i386.c (ix86_expand_move): Never add clobbers to move patterns.
14007 * i386.md (movsi_xor): New.
14009 (movsi_1, movhi_1, movqi_1): Remove.
14010 (movsi_2): Rename to movsi_1.
14011 (movhi_2): Rename to movhi_1.
14012 (movqi_2): Rename to movqi_1.
14013 (movdi_1): Remove; remove splitter.
14014 (movdi_2): Rename to movdi_1.
14015 (divmodsi4 splitter): Do not emit clobbers for move patterns.
14016 (long move peep2): Do not create QI or HI mode mov0s
14017 (mov -1,reg -> or peep2s): Enable again, rewrite to single peephole.
14019 * i386.md (zero_extend?i?i2): Rewrite to expanders; new patterns,
14022 * i386.md (neg?f2_if): Split "r" and "f" to separate alternatives.
14023 (abs?f2_if): Likewise.
14025 1999-11-30 Alex Samuel <samuel@codesourcery.com>
14027 * ggc.h (ggc_test_and_set_mark): New macro.
14028 (ggc_mark_rtx): Use ggc_test_and_set_mark.
14029 (ggc_mark_tree): Likewise.
14030 (ggc_mark_rtvec): Likewise.
14031 * ggc-common.c (ggc_mark_rtx_children): Reduce recursion.
14033 1999-11-30 Jason Merrill <jason@casey.cygnus.com>
14035 * dwarf2out.c (scope_die_for): Only handle types. Only search for
14037 (decl_scope_table): Just an array of trees now.
14038 (push_decl_scope): Simplify.
14039 (dwarf2out_init): Adjust.
14040 (local_scope_p): New fn.
14041 (gen_inlined_enumeration_type_die): Don't call scope_die_for.
14042 (gen_inlined_union_type_die, gen_inlined_structure_type_die): Likewise.
14043 (gen_typedef_die): Likewise.
14044 (gen_lexical_block_die): Don't call push/pop_decl_scope.
14045 (gen_inlined_subroutine_die): Likewise.
14046 (gen_abstract_function): Set current_function_decl temporarily.
14047 (gen_subprogram_die): Don't check DECL_ABSTRACT to set declaration.
14048 Handle block extern declarations. Don't call push/pop_decl_scope.
14049 (gen_decl_die): Fix logic for block externs.
14051 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14053 * calls.c (special_function_p): Remove `realloc' and add `strdup'
14054 to the list of functions which have attribute malloc by default.
14056 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14058 * c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
14059 integer constant does not match the traditional type, limit the
14060 warnings to cases where the base of the type is ten.
14062 * invoke.texi (-Wtraditional): Document it.
14064 Tue Nov 30 15:18:35 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14066 * combine.c (try_combine): Only pass SET or CLOBBER to SET_DEST
14067 * rs6000.md: Only access a CONST_INT with INTVAL
14069 Tue Nov 30 14:21:00 1999 Richard Henderson <rth@cygnus.com>
14071 * lcm.c (compute_laterin): Cast bb->aux to size_t not int.
14072 (compute_nearerout): Likewise.
14073 * ggc-page.c (ggc_page_print_statistics): Explicitly cast
14074 size_t to unsigned long for formatting.
14076 1999-11-30 Jakub Jelinek <jakub@redhat.com>
14078 * config/sparc/sparc.h (FIXED_REGISTERS, CONDITIONAL_REGISTER_USAGE):
14079 Allow the user to override call-used/fixed state of %g2-5
14080 registers from the command line (with the exception of %g4 for
14082 (REG_LEAF_ALLOC_ORDER): Move %g1 and %g4-7 registers to front, so that
14083 there is a higher chance of having a leaf function.
14084 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Provide separate macros
14085 for ARCH64 which has %ccr register.
14086 * config/sparc/sparc.md (return_losum_si, return_losum_di): New
14088 * config/sparc/sparc.c (eligible_for_epilogue_delay): For the return
14089 insn accept into delay slot any insn which does not use %[ol]
14090 registers. Accept some LO_SUM and shift left by 1 for the normal
14092 (output_function_epilogue): Likewise.
14093 (epilogue_renumber): Added argument which inhibits any renumbering
14094 and just tests if the rtx does not use any %[ol] registers.
14095 (output_return): Reflect above change.
14097 1999-11-30 Jakub Jelinek <jakub@redhat.com>
14099 * config/sparc/sparc.c (sparc_va_arg): Fix sparc64 va_arg
14100 aggregate passing for sizes <= 16 bytes.
14102 1999-11-30 Bernd Schmidt <bernds@cygnus.co.uk>
14104 * cse.c (FIXED_REGNO_P): Delete tests for OVERLAPPING_REGNO_P.
14105 * global.c (global_alloc): Delete [OVERLAPPING_REGNO_P] code.
14106 * reload.c (find_dummy_reload): Likewise.
14107 (find_equiv_reg): Likewise; also for INSN_CLOBBERS_REGNO_P.
14108 * reload1.c (reload_as_needed): Likewise.
14109 * stupid.c (stupid_find_reg): Likewise.
14110 * tm.texi (Obsolete Register Macros): Delete section.
14111 * gmicro.h: Remove all traces of the two macros.
14112 * i386.h: Likewise.
14113 * m88k.h: Likewise.
14114 * mips.h: Likewise.
14116 1999-11-30 Brendan Kehoe <brendan@cygnus.com>
14118 * sparc.h (MASK_FASTER_STRUCTS, TARGET_FASTER_STRUCTS): Define.
14119 (TARGET_SWITCHES): Add -mfaster-structs/-mno-faster-structs flags.
14120 (ROUND_TYPE_ALIGN): Use better value if -mfaster-structs.
14121 * sparc.md (sparclite86x_branch, sparclite86x_shift): New function
14122 units for the sparclite86x chip.
14123 (flush): Revert October 14th change; add SImode specifically.
14124 (flushdi): Copy of flush, but DImode, to avoid genrecog warnings.
14125 * invoke.texi: Document it.
14127 Tue Nov 30 14:58:14 1999 Nick Clifton <nickc@cygnus.com>
14129 * config/mn10200/mn10200.h (PREDICATE_CODES): Add
14130 psimode_truncation_operand.
14132 * config/mn10200/mn10200.c (psimode_truncation_operand): New
14133 function. Return true if the operand is either a MEM valid
14134 for a PSImode address or not a MEM at all.
14136 * config/mn10200/mn10200.md (truncsipsi2): Use
14137 psimode_truncation_operand.
14139 1999-11-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14141 * flow.c (flow_nodes_print, flow_loops_cfg_dump): New functions.
14142 (flow_loop_nested_p, flow_loops_dump, flow_loops_free): Likewise.
14143 (flow_loop_exits_find, flow_loop_nodes_find): Likewise.
14144 (flow_depth_first_order_compute, flow_loop_pre_header_find): Likewise.
14145 (flow_loop_tree_node_add, flow_loops_tree_build): Likewise.
14146 (flow_loop_level_compute, low_loops_level_compute): Likewise.
14147 (flow_loops_find, flow_loop_outside_edge_p): Likewise.
14148 * basic-block.h: Protect from multiple inclusion.
14149 (flow_loops_find, flow_loops_free, flow_loop_dump): Add protoypes.
14150 (struct loops, struct loop): Define structures.
14151 * sbitmap.c (sbitmap_a_subset_b_p): New function.
14152 * sbitmap.h: Protect from multiple inclusion.
14153 (sbitmap_a_subset_b_p): Add prototype.
14154 * Makefile.in (LOOP_H): New macro.
14155 (stmt.o, integrate.o, loop.o, unroll.o): Replace loop.h with LOOP_H.
14157 Tue Nov 30 01:34:47 1999 Philippe De Muyter <phdm@macqel.be>
14159 * cppinit.c (CAT): The argument list of this macro may not contain
14162 1999-11-29 David S. Miller <davem@redhat.com>
14164 Move quantity tables and register equivalence chains into
14165 per-qty and per-register structure arrays respectively.
14166 * cse.c (qty_first_reg, qty_last_reg, qty_mode, qty_const,
14167 qty_const_insn, qty_comparison_code, qty_comparison_const,
14168 qty_comparison_qty): Delete, replace with...
14169 (qty_table): this structure table.
14170 (reg_next_eqv, reg_prev_eqv): Delete, replace with...
14171 (reg_eqv_table): this structure table.
14172 (make_new_qty): Add argument MODE. Caller updated.
14173 Update to use qty_table and reg_eqv_table.
14174 (make_regs_eqv, delete_reg_equiv, insert_regs,
14175 insert, exp_equiv_p, cse_rtx_varies_p, canon_reg,
14176 fold_rtx, equiv_constant, record_jump_cond, cse_insn,
14177 cse_process_notes, cse_main, cse_basic_block): Likewise.
14179 Mon Nov 29 16:56:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14181 * fold-const.c (extract_muldiv, case {MIN,MAX}_EXPR): Reverse
14182 operation if C is negative.
14183 (extract_muldiv, case SAVE_EXPR): Supresss if arg has side effects.
14184 (extract_muldiv, case {PLUS,MINUS}_EXPR): Don't apply distributive
14185 law for some divisions if constant is negative and change other
14186 divisions to the opposite rounding.
14188 * expr.c (store_constructor_field): If bit position is not multiple
14189 of alignment of TARGET's mode, use BLKmode.
14191 * expr.c (expand_expr_unaligned): Add more code from full case
14192 that is needed when OP0 is in a register.
14194 Mon Nov 29 18:09:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14196 * dwarfout.c (field_byte_offset): Size can be zero if there was
14199 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
14201 * fold-const.c (split_tree): Delete unused vars ORIG_IN and TYPE.
14202 (associate_trees): Delete unused var TEM.
14203 (extract_muldiv): Delete unused var CANCEL_P.
14205 * fold-const.c [TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT]
14206 (target_isinf, target_isnan, target_negative): Add return types to
14207 function definitions.
14209 1999-11-29 Bruce Korb <autogen@linuxbox.com>
14211 * fixinc/fixincl.c(process): don't skip GLIBC files any more.
14212 * fixinc/hackshell.tpl: ditto
14213 * fixinc/fixtests.c(double_slash_test): more C++ header testing
14214 * fixinc/inclhack.def(AAB_fd_zero_glibc*): corrected spelling of mach
14216 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
14218 * reload.c (push_reload): When looking for a register to put into
14219 reg_rtx, make sure all hard regs in a multi-reg register are in the
14220 right class and nonfixed.
14222 * haifa-sched.c (reg_last_uses, reg_last_sets, reg_last_clobbers,
14223 pending_read_insns, pending_write_insns, pending_read_mems,
14224 pending_write_mems, pending_list_length, last_pending_memory_flush,
14225 last_function_call, sched_before_next_call): Move static variables
14227 (bb_ prefixed versions): Replace with single array bb_deps.
14228 (struct deps): New structure.
14229 (add_insn_mem_dependence, flush_pending_lists, sched_analyze_1,
14230 sched_analyze_2, sched_analyze_insn, sched_analyze): Accept new
14231 argument of type "struct deps *"; use that instead of global
14232 variables. All callers changed.
14233 (init_rgn_data_dependencies): Delete function.
14234 (init_rtx_vector): Delete function.
14235 (init_deps): New function.
14237 (free_pending_lists): Simplify, we always use the bb_deps array even
14238 if only one basic block.
14239 (compute_block_backward_dependences): Likewise.
14240 (schedule_region): Likewise.
14242 (propagate_deps): New function, broken out of
14243 compute_block_backward_dependences.
14244 (compute_block_backward_dependences): Use it.
14246 * alpha.md: Delete useless patterns that tried to work around
14247 register elimination problems.
14249 * unroll.c (loop_iterations): Don't abort if iteration variable
14252 From Joern Rennecke:
14253 * reload1.c (reloads_conflict): Reverse test comparing operand
14254 numbers when testing for conflict between output/outaddr reloads.
14256 1999-11-29 David S. Miller <davem@redhat.com>
14258 * config/sparc/sparc.c (init_cumulative_args): Fix type of third
14260 * config/sparc/sparc-protos.h: Update proto, move into RTX_CODE.
14262 1999-11-28 Robert Lipe <robertl@cygnus.com>
14264 * i386/sco5.h (FINI_SECTION_ASM_OP_COFF): Move destructor fn
14265 table from .fini into .dtor.
14267 1999-11-28 Anthony Green <green@cygnus.com>
14269 * tree.h (struct tree_decl): Add malloc_flag.
14270 (DECL_IS_MALLOC): Define.
14271 * c-common.c (attrs): Add A_MALLOC attribute.
14272 (init_attributes): Add this attribute to the table.
14273 (decl_attributes): Handle malloc attribute.
14274 * calls.c (special_function_p): Check for the malloc attribute.
14275 * extend.texi (Function Attributes): Document malloc attribute.
14277 Sun Nov 28 13:21:00 1999 Jeffrey A Law (law@cygnus.com)
14279 * pa.md (reload shift-add patterns): Remove.
14281 1999-11-28 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14283 * reorg.c (dbr_schedule) Print more statistics. Corrected
14284 problem when printing info when 3 delay slots are filled.
14286 1999-11-28 Jakub Jelinek <jakub@redhat.com>
14288 * combine.c (setup_incoming_promotions): Pass an outgoing
14289 regno to FUNCTION_ARG_REGNO_P which it expects.
14291 1999-11-28 Andreas Jaeger <aj@suse.de>
14293 * mips/linux.h (CPP_PREDEFINES): Undefine before redefining.
14295 Sun Nov 28 00:48:15 1999 Philippe De Muyter <phdm@macqel.be>
14297 * cccp.c (do_include): Avoid initialization of automatic variable.
14299 * integrate.c (mark_stores): Function definition made void, to match
14300 previous declaration.
14301 * regclass.c (dump_regclass): Ditto.
14302 * Makefile.in (WARN_CFLAGS): Macro augmented by `-Wtraditional'.
14304 Sat Nov 27 08:38:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14306 * expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is
14307 known to be multiple of divisor.
14309 * expr.c (store_constructor): Don't clobber TARGET if CLEARED.
14311 * combine.c (try_combine): Add code to try to merge a set of a
14312 two-word pseudo to a constant with a setting of one of those words
14315 * fold-const.c (negate_expr, associate_trees, extract_muldiv): New.
14316 (split_tree): Completely rework to make more general.
14317 (make_range, fold): Call negate_expr.
14318 (fold, case NEGATE_EXPR): Simplify -(a-b) is -ffast-math.
14319 (fold, associate): Call new split_tree and associate_trees.
14320 (fold, case MULT_EXPR, case *_{DIV,MOD}_EXPR): Call extract_muldiv.
14322 1999-11-26 Bernd Schmidt <bernds@cygnus.co.uk>
14324 * loop.c (try_copy_prop): Avoid GNU C extension.
14326 1999-11-25 Mark Mitchell <mark@codesourcery.com>
14328 * except.c (init_eh_for_function): Still zero eh_return_context,
14329 eh_return_stack_adjust, and eh_return_handler.
14331 * except.h (eh_status): Adjust documentation for x_protect_list.
14332 (begin_protect_partials): New function.
14333 * except.c (enqueue_eh_entry): Fix formatting.
14334 (get_first_handler): Add consistency check.
14335 (add_partial_entry): Adjust usage of protect_list.
14336 (emit_cleanup_handler): Save and restore ehqueue.
14337 (expand_start_all_catch): Add comment.
14338 (begin_protect_partials): New function.
14339 (end_protect_partials): Adjust usage of protect_list.
14340 (init_eh_for_function): Use xcalloc.
14342 1999-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14344 * c-common.c (check_format_info): Don't call a variadic function
14345 with a non-literal format string.
14347 * c-decl.c (grokdeclarator, start_struct, finish_struct): Likewise.
14349 * c-typeck.c (build_component_ref, build_unary_op, lvalue_or_else,
14350 pedantic_lvalue_warning, error_init, pedwarn_init, warning_init):
14353 * cccp.c (check_macro_name, do_xifdef, vwarning_with_line):
14356 * collect2.c (collect_wait): Likewise.
14358 * dbxout.c (dbxout_type): Likewise.
14360 * gcc.c (do_spec_1): Likewise.
14362 * genemit.c (gen_insn, gen_expand): Likewise.
14364 * genrecog.c (write_switch, write_subroutine): Likewise.
14366 * mips-tfile.c (catch_signal, botch): Likewise.
14368 * print-rtl.c (print_rtx): Likewise.
14370 * toplev.c (default_print_error_function, report_error_function,
14371 _fatal_insn): Likewise.
14373 1999-11-25 Mark Mitchell <mark@codesourcery.com>
14375 * tree.c (unsave_expr_now): Handle NULL_TREE as input.
14377 Wed Nov 24 17:08:09 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
14379 * reg-stack.c (subst_stack_regs_pat): Swap operands in commutative
14380 operations when needed.
14381 * i386.md (fop_?f_comm): New.
14382 (fop_?f_1): Do not accept commutative operands.
14384 1999-11-25 Andreas Jaeger <aj@suse.de>
14386 * config/mips/mips.md (casesi_internal): Add missing brace.
14388 1999-11-25 Jason Merrill <jason@casey.cygnus.com>
14390 * dwarf2out.c (pend_type, output_pending_types_for_scope): Lose.
14391 (splice_child_die): Handle moving a child DIE from the declaration
14392 DIE of a class to its specification.
14393 (gen_struct_or_union_type_die): Use 'complete' consistently.
14394 (gen_decl_die): Generate the virtual context DIE first.
14395 Use decl_ultimate_origin instead of DECL_ABSTRACT_ORIGIN.
14397 1999-11-24 Gavin Romig-Koch <gavin@cygnus.com>
14399 * config/mips/mips.md (call_value_multiple_interanal1): New.
14401 1999-11-24 Jason Merrill <jason@casey.cygnus.com>
14403 * dwarf2out.c (free_AT, free_die): New fns.
14404 (remove_children): Call them.
14405 (output_line_info): Disable removal of duplicate notes.
14407 Generate minimal debug info for types with TYPE_DECL_SUPPRESS_INFO set.
14408 * dwarf2out.c (gen_struct_or_union_type_die): TYPE_DECL_SUPPRESS_INFO
14409 means pretend the type isn't defined.
14410 Don't defer emitting types.
14411 (gen_type_die_for_member): New fn.
14412 (gen_decl_die): Call it.
14413 (splice_child_die): New fn.
14414 (gen_member_die): Call it rather than generate duplicate dies.
14416 Defer emitting information for the abstract instance of an inline
14417 until we either inline it or emit an out-of-line copy.
14418 * dwarf2out.c (decl_ultimate_origin): Ignore DECL_ABSTRACT_ORIGIN
14419 from output_inline_function if DECL_ABSTRACT is also set.
14420 (block_ultimate_origin): Likewise.
14421 (gen_abstract_function): New fn.
14422 (gen_decl_die, gen_inlined_subroutine_die): Call it.
14423 (gen_subprogram_die): An abstract instance is not a declaration
14424 just because it doesn't match current_function_decl. Don't abort
14425 because DECL_DEFER_OUTPUT isn't set. Do abort if a declaration
14426 has an abstract origin.
14427 * toplev.c (rest_of_compilation): Don't emit dwarf2 info for the
14428 abstract instance here.
14430 Wed Nov 24 18:39:18 1999 Andrew Haley <aph@cygnus.com>
14432 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case
14433 where we need to reload fpul from a system register.
14435 1999-11-24 Andreas Jaeger <aj@suse.de>
14437 * config/mips/linux.h (CPP_PREDEFINES): Added.
14438 (LINK_SPEC): Remove -Y since this is only needed on sparc.
14440 1999-11-24 Andreas Jaeger <aj@suse.de>
14442 * config/mips/linux.h (TARGET_VERSION): Added.
14443 (HANDLE_SYSV_PRAGMA): Added.
14444 (DEFAULT_VTABLE_THUNKS): Added.
14446 Wed Nov 24 14:12:15 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
14448 * local-alloc.c (qty): New structure and static variable.
14449 (qty_phys_reg): Remove, all references changed to qty.
14450 (qty_n_refs): Likewise.
14451 (qty_min_class): Likewise.
14452 (qty_birth): Likewise.
14453 (qty_death): Likewise.
14454 (qty_size): Likewise.
14455 (qty_mode): Likewise.
14456 (qty_n_calls_crossed): Likewise.
14457 (qty_alternate_class): Likewise.
14458 (qty_changes_size): Likewise.
14459 (qty_first_reg): Likewise.
14460 (alloc_qty): Rename variable QTY to QTYNO.
14461 (finf_free_reg): Likewise.
14462 (local_alloc): Allocate qty, do not allocate the removed variables.
14464 Wed Nov 24 17:26:05 1999 Geoffrey Keating <geoffk@cygnus.com>
14466 * config/mips/mips.h (ASM_SPEC): Don't pass -G to the assembler
14467 when -membedded-pic is passed.
14469 * config/mips/mips.md (casesi): Handle 64-bit case too.
14470 (casesi_internal_di): New insn.
14472 * config/mips/mips.c (embedded_pic_offset): Always make the
14473 embedded-pic subtractions relative to the name of the current
14474 function by use of the magic string "..CURRENT_FUNCTION".
14475 * config/mips/mips.h (ASM_OUTPUT_LABELREF): Make the magic happen.
14477 1999-11-24 Geoffrey Keating <geoffk@cygnus.com>
14479 * config/mips/mips.md (div_trap_normal): Don't ask for the REGNO
14480 of (const_int 0), when what we really care about is
14481 whether it's a zero constant anyway.
14482 (div_trap_mips16): Likewise.
14484 1999-11-23 Mark Mitchell <mark@codesourcery.com>
14486 * loop.c (loop_optimize): Always find_loop_tree_blocks and
14487 unroll_block_trees when generating debuggable code.
14489 * tree.h (unsave_expr_1): New function.
14490 (lang_unsave): New variable.
14491 (get_callee_fndecl): New function.
14492 * tree.c (unsave_expr_now_r): New function.
14493 (lang_unsave): Define.
14494 (unsave_expr_1): Likewise.
14495 (unsave_expr_now_r): Split out from unsave_expr_now.
14496 (unsave_expr_now): Call lang_unsave if it is non-NULL. Otherwise,
14497 call unsave_expr_now_r.
14498 (get_callee_fndecl): Define.
14500 * Makefile.in (gencheck): Don't depend on lang_tree_files.
14501 (gencheck.o): Do depend on lang_tree_files.
14503 * integrate.h (copy_decl_for_inlining): New declaration.
14504 * integrate.c (copy_and_set_decl_abstract_origin): Remove.
14505 (copy_decl_for_inlining): New function.
14506 (integrate_parm_decls): Use it.
14507 (integrate_decl_tree): Likewise.
14509 1999-11-23 Gavin Romig-Koch <gavin@cygnus.com>
14511 * config/mips/mips.h (ISA_HAS_FP4,ISA_HAS_CONDMOVE,ISA_HAS_8CC): Split
14512 the second two from the first.
14513 (CONDITIONAL_REGISTER_USAGE): Use ISA_HAS_8CC rather than ISA_HAS_FP4.
14514 * config/mips/mips.md (movcc,reload_incc,reload_outcc,
14515 conditional move): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
14517 * config/mips/mips.c (mips_move_1word,gen_conditional_branch,
14518 override_options): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
14521 Tue Nov 23 11:15:04 1999 Jeffrey A Law (law@cygnus.com)
14523 * pa.md (call_internal_symref, call_value_internal_symref): No mode
14524 needed on the address operand.
14525 * pa.c (call_operand_address): Check for the correct mode.
14527 1999-11-23 Bernd Schmidt <bernds@cygnus.co.uk>
14529 * loop.c: Include "basic-block.h".
14530 (try_copy_prop, replace_loop_reg): New functions.
14531 (load_mems): Detect registers that just hold copies of the hoisted
14532 mem, and call try_copy_prop to eliminate them.
14533 * Makefile.in (loop.o): Update dependencies.
14535 Tue Nov 23 01:03:29 1999 Hans-Peter Nilsson <hp@axis.com>
14537 * Makefile.in (gencheck.o): Depend on gencheck.h.
14538 (insn-emit.o): Depend on flags.h, hard-reg-set.h and resource.h.
14539 (insn-peep.o): Depend on except.h and function.h.
14540 (insn-attrtab.o): Depend on RECOG_H.
14541 (insn-output.o): Depend on toplev.h and flags.h.
14542 (gengenrtl.o): Depend on real.h.
14543 (gen-protos.o): Depend on cpplib.h and cpphash.h.
14544 Unify all dependencies to be on RECOG_H rather than recog.h.
14546 Tue Nov 23 00:57:10 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14548 From Casper H.S. Dik on comp.unix.solaris, 23 Oct 1998:
14549 * configure.in: Try building a bi-arch 32/64-bit compiler on
14550 sparc-*-solaris2.7 and higher.
14551 * configure: Rebuild.
14553 Mon Nov 22 23:09:44 1999 David O'Brien <obrien@FreeBSD.org>
14555 * config/freebsd.h: New, FreeBSD architecture independent file.
14556 * config/i386/freebsd-elf.h: removed FreeBSD architecturally
14557 independent pieces.
14558 * config/i386/freebsd.h: include i386/perform.h via tm.h rather than
14559 directly by i386/freebsd.h.
14560 * configure.in (*-*-freebsdelf): Include new FreeBSD architecturally
14561 independent configuration file.
14562 (*-*-freebsdelf): Include i386/perform.h via tm.h rather than
14563 directly by i386/freebsd.h.
14564 * configure: Rebuilt.
14566 * xm-i386.h: Define `__i386__' if not defined, rather than `i386'
14567 which is in the user's namespace.
14568 * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
14569 `i386' which is not in our namespace.
14571 Mon Nov 22 22:58:01 1999 "R. Kelley Cook" <KelleyCook@attglobal.net>
14573 * invoke.texi (ARM Options): Add in -mno-alignment-traps
14575 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
14577 * dwarf2out.c (die_struct): Remove die_attr_last and die_child_last.
14578 (add_dwarf_attr, add_child_die): Just push onto the front.
14579 (reverse_die_lists): New fn.
14580 (add_sibling_attributes): Use it.
14581 (push_decl_scope): Reorganize.
14582 (add_name_and_src_coords_attributes): Don't set file and line for
14583 an artificial decl.
14584 (gen_subprogram_die): An artificial function doesn't need to match
14586 (gen_compile_unit_die): Return the generated die. Only add
14587 AT_comp_dir if the filename is relative.
14588 (remove_AT): Simplify loop. Also free string values.
14589 (output_die): A DIE ref can't be null.
14590 (output_value_format, value_format): Take a dw_attr_ref.
14591 (dwarf_last_decl, is_extern_subr_die, sibling_offset): Remove.
14592 (AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
14593 AT_addr, AT_lbl): New fns.
14594 (various): Use them.
14595 (various): Constify.
14597 Mon Nov 22 23:53:50 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14599 * combine.c (combine_simplify_rtx): When handling a SUBREG,
14600 take SUBREG_WORD into account.
14601 (if_then_else_cond): Likewise.
14603 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
14605 * gmon.c, i386/gmon-sol2.c, sparc/gmon-sol2.c: Remove advertising
14606 clause from BSD license, pursuant with
14608 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
14610 1999-11-22 Bernd Schmidt <bernds@cygnus.co.uk>
14612 * loop.c (load_mems): Reformat slightly.
14613 * basic-block.h (regset_head): New typedef.
14614 (INIT_REG_SET): New macro.
14616 1999-11-22 Bruce Korb <autogen@linuxbox.com
14618 * fixinc/mkfisinc.sh(i?86-*-linux): disable script, run fixincl exe
14619 (mips-dec-bsd*): non-functional code
14620 (alpha*-*-linux-gnu*): redundant, duplicated by "*-*-linux-gnu*"
14622 * fixinc/inclhack.def(AAB_fd_zero_glibc_*):
14623 added three replacement fixes
14624 (no_double_slash): removed comments that are not (any longer) pertinent
14625 (bad_lval): this fix currently runs against many files.
14626 The comment seems to indicate that we should select for files
14627 containing 'pragma extern_prefix'.
14629 * fixinc/fixinc.x86-linux-gnu: deleted
14630 * fixinc/inclhack.sh: regen
14631 * fixinc/fixincl.x: regen
14632 * fixinc/fixincl.sh: regen
14634 Fri Nov 12 14:08:40 1999 Andrew Haley <aph@cygnus.com>
14636 * emit-rtl.c (gen_sequence): Only return the pattern of an insn if
14637 its code is INSN and it has no notes.
14639 1999-11-22 Andrew Haley <aph@cygnus.com>
14641 * varasm.c (function_defined): Remove.
14642 (make_function_rtl): Don't set function_defined.
14643 (make_decl_rtl): Remove global register warning.
14644 * regclass.c (no_global_reg_vars): New variable.
14645 (globalize_reg): Warn if function has already been defined.
14646 (regclass_init): Set no_global_reg_vars.
14648 Mon Nov 22 14:42:22 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
14650 * regclass.c (reg_pref): New structure and static variable
14651 (prefclass): Delete.
14652 (altclass): Delete.
14653 (all uses of prefclass and altclass): Use reg_pref instead.
14655 1999-11-21 Nick Clifton <nickc@cygnus.com>
14657 * invoke.texi (ARM Options): Replace -mshort-load-bytes with
14659 (arm.h): Replace -mshort-load-bytes with -malignment-traps.
14660 (arm.c): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
14661 (arm.md): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
14663 Sun Nov 21 17:11:13 1999 Geoffrey Keating <geoffk@cygnus.com>
14665 * varasm.c (output_constructor): Solve problem with long long
14666 bitfields, even on BYTES_BIG_ENDIAN machines (testcase 991118-1).
14668 Fri Nov 19 05:48:45 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
14670 * global.c (allocno): New structure and static variable.
14671 (allocno_reg): Remove, all references replaced by allocno.
14672 (allocno_size): Likewise.
14673 (hard_reg_conflicts): Likewise.
14674 (hard_reg_preferences): Likewise.
14675 (hard_reg_copy_preferences): Likewise.
14676 (hard_reg_full_preferences): Likewise.
14677 (regs_someone_prefers): Likewise.
14678 (allocno_calls_crossed): Likewise.
14679 (allocno_n_refs): Likewise.
14680 (allocno_live_length): Likewise.
14681 (find_reg): Rename ALLOCNO to NUM.
14683 * regclass.c (may_move_in_cost): Rename from may_move_cost, all
14684 references updated.
14685 (may_move_out_cost): New variable.
14686 (init_reg_sets_1): Initialize may_move_out_cost.
14687 (record_reg_classes): Use may_move_out_cost.
14689 * regclass.c (dump_regclass): New function.
14690 (regclass): New parameter DUMP, call DUMP_REGCLASS.
14691 * toplev.c (rest_of_compilation): Open lreg dump file before regclass,
14692 pass rtl_dump_file to regclass.
14693 * rtl.h (regclass): Update prototype.
14695 Fri Nov 19 06:32:19 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
14697 * i386.md (neg, not and abs patterns): Revmap to use
14698 ix86_expand_unary_operator and ix86_unary_operator_ok.
14699 (add?f and sub?f expanders): Force operand 1 to register.
14700 * i386.c (ix86_expand_unary_operator): Rewrite.
14701 (ix86_unary_operator_ok): Ensure that memory operands
14703 (ix86_binary_operator_ok): Do not allow operand 1 to
14704 come into memory and operand 0 not.
14705 (ix86_expand_binary_operator): Ensure that
14706 src1 is not non-matching memory.
14708 * i386.md (negs?2): Rewrite to expanders, new patterns and splitters
14709 to support integer registers and memory.
14710 (abss?2_integer): Likewise.
14712 * i386.h (enum reg_class): Add FLOAT_INT_REGS.
14713 (REG_CLASS_NAMES): Likewise.
14714 (REG_CLASS_CONTENTS): Define FLOAT_INT_REGS as union of FLOAT_REGS
14716 * i386.md (pushsf): Do not preferre FLOAT_REGS over GENERAL_REGS.
14717 (movsf): Likewise; unify 4th and 5th alternative.
14718 (pushdf): Likewise.
14719 (movdf_1): Likewise; rename to movdf_integer.
14720 (pushxf): Likewise; rename to pushxf_integer; fix output template;
14721 remove redundant splitter.
14722 (movxf_1): Likewise; rename to movxf_integer; fix splitter's condition.
14723 (movdf_nointeger): New.
14724 (movxf_nointeger): New.
14725 (pushxf_nointeger): New.
14727 * i386.md (extend?f?f): Split to expander and pattern, refuse two
14728 memory operands in patterns.
14729 (fop*): Refuse two memory operands.
14731 * i386.md (ashrsi3_31): Allow cltd when optimizing for size even
14732 on !TARGET_USE_CLTD CPUs.
14734 Fri Nov 19 10:41:15 GMT 1999 Nathan Sidwell <nathan@acm.org>
14736 * extend.texi: Document C++ restricted pointers and references.
14738 1999-11-19 Bernd Schmidt <bernds@cygnus.co.uk>
14740 * cse.c (addr_affects_sp): No longer conditional on AUTO_INC_DEC.
14741 (invalidate_skipped_set): Call it unconditionally.
14742 (cse_set_around_loop): Likewise.
14744 Thu Nov 18 17:29:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
14746 * rtl.texi (mem): Add documentation for alias-set argument
14749 Fri Nov 18 13:39:22 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
14751 * i386.h (struct_processor_costs): New fields int_load, int_store,
14752 fp_move, fp_load and fp_store
14753 (REGISTER_MOVE_COST): Fix comment, calculate exactly the cost of
14755 (MEMORY_MOVE_COST): New macro.
14756 * i386.c (386_cost): Define new fields.
14757 (i486_cost): Likewise.
14758 (pentium_cost): Likewise.
14759 (pentiumpro_cost): Likewise.
14760 (k6_cost): Likewise.
14762 Fri Nov 19 11:11:55 1999 Greg McGary <gkm@gnu.org>
14763 Geoffrey Keating <geoffk@cygnus.com>
14765 * config/m68k/m68kelf.h: Suppress '/* within comment' warning.
14767 * config/m68k/m68k.h (MASK_PCREL): Don't use same value as
14770 * config/m68k/m68k.h (MASK_NO_STRICT_ALIGNMENT): New macro.
14771 (TARGET_STRICT_ALIGNMENT): New macro.
14772 (TARGET_SWITCHES): Add "strict-align" and "no-strict-align".
14773 (STRICT_ALIGNMENT): Depend on TARGET_STRICT_ALIGNMENT.
14774 * invoke.texi (M680x0 Options): Document -mstrict-align.
14776 Thu Nov 18 11:10:03 1999 Jan Hubicka <hubicka@freesoft.cz>
14777 Richard Henderson <rth@cygnus.com>
14779 * i386-protos.h (split_xf, ix86_split_movdi): Remove.
14780 (ix86_split_long_move): Declare.
14781 * i386.c (split_xf, ix86_split_movdi): Remove.
14782 (ix86_split_to_parts, ix86_split_long_move): New.
14783 * i386.md (dimode move splitters): Use ix86_split_long_move.
14784 (dfmode move splitters): Likewise.
14785 (xfmode move splitters): Likewise.
14786 (movsf_1): Allow F->r.
14787 (movdf_1, movxf_1): Allow F->ro.
14789 1999-11-17 Mark Mitchell <mark@codesourcery.com>
14791 * except.h (struct eh_entry): Add goto_entry_p.
14792 (eh_region_from_symbol): Remove prototype.
14793 * except.c (find_func_region_from_symbol): New function.
14794 (emit_cleanup_handler): Likewise.
14795 (eh_region_from_symbol): Make it static.
14796 (add_new_handler): Verify the argument.
14797 (find_func_region): Update comment.
14798 (expand_eh_region_end): Expand handlers here, rater than waiting
14799 until expand_leftover_cleanups or start_all_catch.
14800 (expand_leftover_cleanups): Don't expand here.
14801 (expand_start_all_catch): Or here.
14802 (expand_rethrow): Check the return value from find_func_region.
14803 * function.c (expand_function_end): Emit the catch_clauses.
14805 1999-11-18 Gavin Romig-Koch <gavin@cygnus.com>
14807 * integrate.c (expand_inline_function): Add necessary check for NULL.
14809 1999-11-18 Nick Clifton <nickc@cygnus.com>
14811 * toplev.c (main): Correctly detect an unrecognised option.
14813 * cppinit.c (cpp_handle_option): Do not claim to have consumed
14814 a -f option if it has not been recognised.
14816 Thu Nov 18 00:59:11 1999 Michael Gschwind <mikeg@alagoas.watson.ibm.com>
14818 * basic-block.h (update_life_extent): Remove trailing comma on
14819 enumeration type list.
14821 1999-11-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14823 * varasm.c (output_constructor) Solved problem with long long
14824 bitfields. Corrected calculating this_time and shift. Also
14825 corrected calculating mask when BITS_PER_UNIT == 32 (c4x).
14827 Wed Nov 17 23:46:14 1999 Jeffrey A Law (law@cygnus.com)
14829 * flow.c (split_edge): Take looping structure into account when
14830 determining where to put the new block note.
14832 Wed Nov 17 20:42:43 1999 Jeff Holcomb <jeffh@cygnus.com>
14834 * Makefile.in (ggc-none.o): Provide host specific version if
14837 Wed Nov 17 16:51:23 1999 Richard Henderson <rth@cygnus.com>
14839 * cse.c (delete_trivially_dead_insns): Identify no-op insns
14840 containing subregs too.
14842 Wed Nov 17 17:39:48 MST 1999 Diego Novillo <dnovillo@cygnus.com>
14844 * invoke.texi: Add documentation for -muninit-const-in-rodata.
14845 * config/mips/mips.h (MASK_UNINIT_CONST_IN_RODATA): Define.
14846 (TARGET_UNINIT_CONST_IN_RODATA): Define.
14847 (text_section): Add switches -munint-const-in-rodata and
14848 -mno-uninit-const-in-rodata.
14849 (ASM_OUTPUT_COMMON): Remove.
14850 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define. Check if uninitialized
14851 const objects should be placed in read-only data. Otherwise declare
14854 Wed Nov 17 16:38:32 1999 Richard Henderson <rth@cygnus.com>
14856 * jump.c (jump_optimize_1): Revert last change.
14858 Wed Nov 17 15:18:30 1999 Richard Henderson <rth@cygnus.com>
14860 * jump.c (jump_optimize_1): Don't try to duplicate the loop exit
14861 test if optimizing for size.
14863 1999-11-17 Mark Mitchell <mark@codesourcery.com>
14865 * Makefile.in (toplev.o): Depend on except.h.
14866 (dwarf2out.o,loop.o,flow.o,haifa-sched.o): Likewise.
14868 Mon Nov 15 22:45:39 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
14870 * i386.md (divmodsi4): Rewrite to expander.
14871 (*divmodsi4_nocltd): New.
14872 (*divmodsi4_cltd): New.
14873 (divmodsi4 splitter): Handle the case when input comes in edx.
14874 (udivmodhi4): Do not use constraints in exander.
14875 (ashrsi3_31): Conditionize by TARGET_USE_CLTD.
14877 1999-11-17 Jason Merrill <jason@yorick.cygnus.com>
14879 * dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1
14880 for the common case.
14882 1999-11-16 Jakub Jelinek <jakub@redhat.com>
14884 * explow.c (hard_function_value): Add outgoing argument.
14885 * expr.h (hard_function_value): Declare it.
14886 * calls.c (expand_call, emit_library_call_value): Update callers.
14887 * function.c (aggregate_value_p): Ditto.
14888 (diddle_return_value): Must look at the outgoing registers
14889 on archs with register windows.
14891 Mon Nov 15 20:46:45 1999 Richard Henderson <rth@cygnus.com>
14893 * alpha.c (alpha_build_va_list): Use make_lang_type and
14894 initialize TYPE_NAME for the va_list record.
14896 * flow.c (calculate_global_regs_live): Zero bb->aux to begin.
14898 * ggc-common.c (ggc_print_statistics): Cast size_t to unsigned long
14900 * ggc.h (struct ggc_statistics): Rearrange elements for better
14901 packing on 64-bit hosts.
14902 * lcm.c (compute_laterin): Store a size_t not an int in bb->aux.
14903 (compute_nearerout): Likewise.
14905 Tue Nov 16 14:37:52 1999 Geoffrey Keating <geoffk@cygnus.com>
14907 * config/rs6000/rs6000.c (first_reg_to_save): Save
14908 PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.
14910 1999-11-15 Jason Merrill <jason@casey.cygnus.com>
14912 * dwarf2out.c (scope_die_for): Don't rely on the decl_scope_table
14913 notion of nesting to find the DIE for a type or function.
14914 DIEs can go in limbo even if we got a context_die.
14915 (push_decl_scope): Our context doesn't need to be in decl_scope_table.
14916 (gen_struct_or_union_type_die): Don't use TREE_PERMANENT to test
14918 (gen_decl_die): Ignore NAMESPACE_DECLs for now.
14919 (gen_type_die): Writing out the context doesn't cause member class
14920 template instantiations to be written out as well.
14922 Mon Nov 15 15:33:18 1999 Richard Henderson <rth@cygnus.com>
14924 * rs6000.h (ASM_OUTPUT_DEF): New.
14925 Based on proposed addition from David Edelsohn.
14927 1999-11-15 Robert Lipe <RobertLipe@usa.net>
14928 Bruce Korb <autogen@linuxbox.com>
14930 * fixinc/inclhack.def
14931 (AAB_svr4_replace_byteorder): added. Takes advantage of GCC features
14932 (unixware7_byteorder_fix): added. Removes conflicts for new defs
14934 (svr5_mach_defines): added. Like svr4_mach_defines, with new syntax
14935 (svr4_endian): enabled with SVR5
14936 (svr4_mkdev): simplified syntax and enabled with SVR5
14938 Sun Nov 14 18:49:37 1999 David O'Brien <obrien@FreeBSD.org>
14940 * configure.in: Handle libgcc2 threads support on FreeBSD platforms.
14941 * configure: Rebuilt.
14942 * config/t-freebsd-thread: New file.
14944 Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com)
14946 * i386.c (ix86_decompose_address): Verify the base is a REG
14947 before trying to examine its register number.
14949 * basic-block.h: Remove all #defines and prototypes related to
14951 (free_bb_mem, compute_preds_succs): Remove prototype.
14952 * rtl.h (free_bb_mem): Remove prototype.
14953 * flow.c (alloc_int_list_node); Remove function.
14954 (add_inst_list_node, free_int_list, add_pred_succ): Likewise.
14955 (compute_preds_succs, free_bb_mem): Likewise.
14956 * gcse.c (gcse_main): Do not call free_bb_mem anymore.
14957 * toplev.c (rest_of_compilation): Likewise.
14958 * haifa-sched.c (build_control_flow): Use flow generated edge
14959 list to build the haifa specific edge list.
14960 (find_rgns): Use new CFG data structures instead of pred/succ lists.
14961 (schedule_insns): Do not build pred/succ lists anymore. Instead
14962 build the edge table.
14964 * basic-block.h (dump_bb_data): Remove declaration.
14965 * flow.c (dump_bb_data): Remove function.
14966 * sbitmap.c (sbitmap_intersect_of_predsucc): Delete function.
14967 (sbitmap_union_of_predsucc): Likewise.
14969 * gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
14970 argument. All callers changed.
14971 (delete_null_pointer_checks_1): No longer need to compute the
14974 * gcse.c (pre_expr_reaches_here_p): Kill CHECK_PRE_COM argument.
14975 All callers changed.
14976 (pre_expr_reaches_here_p_work): Likewise.
14977 (pre_edge_insert): No longer call pre_expr_reaches_here_p.
14978 * lcm.c (compute_laterin): Fix initialization of LATER.
14979 (compute_nearerout): Similarly for NEARER.
14981 Sun Nov 14 12:41:57 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14983 * cse.c (set_nonvarying_address_components): Delete unused function.
14984 (refers_to_p): Likewise.
14986 Fri Nov 12 20:53:22 1999 Jeffrey A Law (law@cygnus.com)
14988 * function.c (diddle_return_value): Set REG_FUNCTION_VALUE_P as
14991 Sat Nov 13 16:20:09 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14993 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Wrap macro
14994 definition in do while (0).
14996 Fri Nov 12 16:26:25 1999 Jim Wilson <wilson@cygnus.com>
14998 * stmt.c (pushcase, pushcase_range): Partially revert Oct 28 change.
15000 Fri Nov 12 12:43:49 1999 Richard Henderson <rth@cygnus.com>
15002 * unroll.c (unroll_loop): Make temp an unsigned HOST_WIDE_INT.
15004 Fri Nov 12 15:14:19 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
15006 * i960.h (CAN_DEBUG_WITHOUT_FP): Don't define it.
15007 (FRAME_POINTER_REQUIRED): Don't worry about nonlocal goto.
15008 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
15009 (INITIAL_FRAME_POINTER_OFFSET): Remove it.
15011 * i960.c (i960_function_prologue): Don't allocate space for g8-g11
15012 saved on the stack. Output more accurate stack frame statistics
15013 into assembler file.
15015 1999-11-12 11:47 -0800 Zack Weinberg <zack@bitmover.com>
15017 * genextract.c (record_insn_name): New function.
15018 (get_insn_name): No longer a stub.
15019 (main): Call record_insn_name for each insn. After each label
15020 written, print the insn name in a comment.
15022 Fri Nov 12 13:45:02 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15024 * output.h (const_section, init_section, fini_section): Add
15027 * alpha/elf.h (const_section): Delete declaration.
15029 * svr4.h (const_section): Likewise.
15031 Fri Nov 12 08:54:22 1999 Mark Mitchell <mark@codesourcery.com>
15033 * tree.h (SAVE_EXPR_PERSISTENT_P): New macro.
15034 * tree.c (array_type_nelts): Don't handle SAVE_EXPRs specially.
15035 (unsave_expr_now): Don't unsave SAVE_EXPR_PERSISTENT_P
15037 * stor-layout.c (variable_size): Set SAVE_EXPR_PERSISTENT_P on
15038 variable-sized array bounds.
15040 Fri Nov 12 08:04:45 1999 Catherine Moore <clm@cygnus.com>
15042 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Use
15045 Fri Nov 12 13:31:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15047 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Treat QImode
15048 addresses the same way GO_IF_LEGITIMATE_INDEX does.
15050 Fri Nov 12 12:36:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15052 * cse.c (hash_arg_in_struct): Delete.
15053 (struct table_elt): Delete elt in_struct.
15054 (struct set): Delete elt src_in_struct.
15055 (merge_equiv_classes): Don't set either hash_arg_in_struct or
15056 the corresponding in_struct elts.
15057 (canon_hash): Likewise.
15058 (safe_hash): Likewise.
15059 (find_best_addr): Likewise.
15060 (record_jump_cond): Likewise.
15061 (cse_insn): Likewise.
15063 Thu Nov 11 19:45:24 1999 Jim Wilson <wilson@cygnus.com>
15065 * loop.c (invariant_p, case MEM): Put MEM_VOLATILE_P check back.
15067 * dbxout.c (dbxout_type, case INTEGER_TYPE): Handle too large
15070 Thu Nov 11 18:54:24 1999 Jeffrey A Law (law@cygnus.com)
15072 * function.c (diddle_return_value): Put back check that the DECL_RTL
15073 for the function is a register.
15075 * function.c (diddle_return_value): Use hard_function_value to
15076 get an rtx suitable for use in the USE/CLOBBER insn.
15078 * global.c (global_conflicts): Update comments.
15079 (record_conflicts): No need to record conflicts between pseudos here.
15081 1999-11-11 Bruce Korb <autogen@linuxbox.com>
15083 * fixinc/fixincl.c: Added verbose levels for status messages
15085 Thu Nov 11 13:23:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15087 * jump.c (jump_optimize_1): Avoid passing an rtx that is not an
15088 operand as argument to expand_and or expand_binop.
15090 Thu Nov 11 02:21:16 1999 Rodney Brown <RodneyBrown@pmsc.com>
15092 * xcoffout.c (xcoffout_source_file): Change ggc_add_root to
15093 gcc_add_string_root.
15095 Wed Nov 10 21:24:19 1999 Jason Eckhardt <jle@cygnus.com>
15097 * config/pa/pa.h (MASK_RETURN_ADDR): Change 0xfffffffc to -4.
15099 Wed Nov 10 15:56:16 1999 Jeffrey A Law (law@cygnus.com)
15101 * flow.c (compute_flow_dominators): Initially put all blocks on
15103 * lcm.c (compute_antinout_edge, compute_available): Similarly.
15104 * gcse.c (compute_cprop_avinout): Remove.
15105 (compute_cprop_data): Use compute_available.
15106 (delete_null_pointer_checks_1): Use compute_available.
15108 * basic-block.h (compute_available): Returns a void now.
15109 * gcse.c (one_classic_gcse_pass): Do not expect compute_available
15110 to return a value anymore.
15111 * lcm.c (compute_available, compute_antinout_edge): Revamp to use
15112 worklists. Fix boundary cases. Compute maximal solutions.
15113 (compute_laterin, compute_nearerout): Similarly.
15115 * dwarf2out.c (add_AT_location_description): Allow
15116 (mem (plus (pseudo) (...)) too.
15118 Wed Nov 10 10:52:42 1999 Tom Tromey <tromey@cygnus.com>
15120 * gcc.c (do_spec_1): Support text between `%u' and `%O'.
15122 Wed Nov 10 12:43:21 1999 Philippe De Muyter <phdm@macqel.be>
15123 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15125 * cppinit.c: Test `GCC_VERSION', not `HAVE_GCC_VERSION'.
15127 * gansidecl.h: Likewise.
15133 * toplev.h: Likewise.
15135 * tree.c: Likewise.
15137 * tree.h: Likewise.
15139 * varray.c: Likewise.
15141 * varray.h: Likewise.
15143 Wed Nov 10 10:57:22 1999 Clinton Popetz <cpopetz@cygnus.com>
15145 * gcov.c (struct arcdata): Add hits and total, remove prob.
15146 (output_branch_counts): New.
15147 (process_args): Set output_branch_counts if -c.
15148 (calculate_branch_probs): Store hits and total instead of
15150 (output_data): Emit counts if output_branch_counts is true.
15151 * gcov.texi (Invoking Gcov): Document -c switch..
15153 Wed Nov 10 01:10:41 1999 Philippe De Muyter <phdm@macqel.be>
15155 * genoutput.c (output_insn_data): Cast `INSN_OUTPUT_FORMAT_MULTI' and
15156 `INSN_OUTPUT_FORMAT_FUNCTION' to `PTR'-type.
15158 Wed Nov 10 00:51:41 1999 Hans-Peter Nilsson <hp@axis.se>
15160 * invoke.texi (C Dialect Options): Add missing builtins from
15161 c-common.c to list.
15162 * extend.texi (Other Builtins): Copy to this list.
15164 Wed Nov 10 04:58:09 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15166 * Makefile.in (recog.o): Use BASIC_BLOCK_H macro.
15167 (print-rtl.o, $(HOST_PREFIX_1)print-rtl.o): Likewise. Remove
15168 redundant bitmap.h.
15170 Wed Nov 10 00:02:53 1999 Jeffrey A Law (law@cygnus.com)
15172 * flow.c (compute_flow_dominators): No longer treat basic block 0
15173 or (n_basic_blocks - 1) specially. Clear the AUX field before
15174 starting computation of doms/pdoms. Fix initial state for pdoms.
15176 Wed Nov 10 03:58:08 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15178 * Makefile.in ($(HOST_PREFIX_1)rtl.o): Update dependencies to
15179 match rtl.o's: added ggc.h and toplev.h
15180 ($(HOST_PREFIX_1)print-rtl.o): Likewise: added system.h.
15181 ($(HOST_PREFIX_1)rtlanal.o): Likewise: added system.h.
15182 ($(HOST_PREFIX_1)obstack.o): Likewise: added $(CONFIG_H).
15184 Tue Nov 9 10:30:08 1999 Tom Tromey <tromey@cygnus.com>
15186 * config/i386/xm-djgpp.h (HAVE_DOS_BASED_FILE_SYSTEM): Renamed
15187 from HAVE_DOS_BASED_FILESYSTEM.
15188 * gcc.c (find_a_file): Use HAVE_DOS_BASED_FILE_SYSTEM, not
15189 HAVE_DOS_BASED_FILESYSTEM.
15191 (split_directories): Only special-case DOS file names if
15192 HAVE_DOS_BASED_FILE_SYSTEM is defined. Use IS_DIR_SEPARATOR
15193 instead of explicit tests. Conditionalize on !VMS.
15194 (make_relative_prefix): Use IS_DIR_SEPARATOR instead of explicit
15195 tests. Conditionalize on !VMS.
15196 (process_command): Only use make_relative_prefix if !VMS.
15197 (free_split_directories): Conditionalize on !VMS.
15198 (DIR_UP): Conditionalize on !VMS.
15200 Wed Jun 9 16:57:11 1999 Mumit Khan <khan@xraylith.wisc.edu>
15202 * gcc.c (STANDARD_BINDIR_PREFIX): Provide default.
15204 Fri Feb 5 14:22:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
15206 * gcc.c (make_relative_prefix): Handle the HAVE_EXECUTABLE_SUFFIX
15209 Mon Nov 8 14:16:57 1999 Michael Meissner <meissner@cygnus.com>
15211 * invoke.texi (Environment Variables): Document relative path
15213 * gcc.c (DIR_UP): If not defined, define as "..".
15214 (standard_bindir_prefix): New static, holds target location to
15216 (split_directories): New function to split a filename into
15217 component directories.
15218 (free_split_directories): New function, release memory allocated
15219 by split_directories.
15220 (make_relative_prefix): New function, make a relative pathname if
15221 the compiler is not in the expected location.
15222 (process_command): If GCC_EXEC_PREFIX was not specified, see if we
15223 can figure out an appropriate prefix from argv[0].
15224 * Makefile.in (DRIVER_DEFINES): Use unlibsubdir in definition of
15225 STANDARD_STARTFILE_PREFIX and TOOLDIR_BASE_PREFIX. Define
15226 STANDARD_BINDIR_PREFIX.
15228 Wed Nov 10 11:47:54 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15230 * config/c4x/c4x-protos.h: New file. Prototypes for functions defined
15232 * config/c4x/c4x.h: Moved prototypes to c4x.h.
15233 * config/c4x/c4x.c (c4x_preferred_reload_class, c4x_limit_reload_class,
15234 c4x_secondary_memory_needed) Delete.
15235 (fp_zero_operand): Add mode argument.
15237 Thu Nov 4 15:52:35 1999 Andrew Haley <aph@cygnus.com>
15239 * reload1.c (reload_reg_free_for_value_p): Don't use a register
15240 that is in reload_reg_used.
15242 Tue Nov 9 16:43:00 1999 Nick Clifton <nickc@cygnus.com>
15244 * config/arm/arm-protos.h: New file: Prototypes for functions
15245 defined in arm.c and pe.c.
15246 * config/arm/arm.h: Fix compile time warnings.
15247 * config/arm/arm.c: Fix compile time warnings.
15248 * config/arm/pe.h: Fix compile time warnings.
15249 * config/arm/aout.h: Fix compile time warnings.
15251 Tue Nov 9 14:55:44 1999 Nick Clifton <nickc@cygnus.com>
15253 * config/m32r/m32r-protos.h: New file: Prototypes for functions
15256 * config/m32r/m32r.h: Move prototypes to m32r-protos.h
15257 Add support for subtargets.
15258 Add prototypes for new predicates.
15259 Add scheduling macros.
15261 * config/m32r/m32r.c: Fix compile time warnings.
15262 (int8_operand): New predicate function.
15263 (reg_or_cmp_int16_operand): New predicate function.
15264 (extend_operand): New predicate function.
15265 (m32r_adjust_code): New scheduling function.
15266 (m32r_adjust_priorty): New scheduling function.
15267 (m32r_sched_init): New scheduling function.
15268 (m32r_sched_reorder): New scheduling function.
15269 (m32r_sched_variable_issue): New scheduling function.
15270 (direct_return): New codegen function.
15271 (m32r_not_same_reg): New rtl testsing function.
15273 * config/m32r/m32r.md: Fix compile time warnings.
15274 Add support for pre decrement and post increment memory
15276 Add S<cc> patterns.
15279 Mon Nov 8 22:20:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15281 * global.c (EXECUTE_IF_CONFLICT): Don't define.
15282 (prune_preferences): Use EXECUTE_IF_SET_IN_ALLOCNO_SET instead.
15283 (find_reg): Likewise.
15285 Mon Nov 8 13:16:46 1999 Jason Eckhardt <jle@cygnus.com>
15287 * config/pa/pa.md (fmpynfadd,{sgl,dbl} insns): Use %fr0 rather than 0
15288 to avoid assembler errors.
15290 Mon Nov 8 15:38:41 1999 Nick Clifton <nickc@cygnus.com>
15292 * config/v850/v850-protos.h: New file: Prototypes for functions
15294 * config/v850/v850.h: Move prototypes to v850-protos.h
15295 * config/v850/v850.c: Move prototypes to v850-protos.h
15296 * config/v850/v850.md: Fix compile time warnings.
15298 * config/fr30/fr30-protos.h: New file: Prototypes for functions
15300 * config/fr30/fr30.h: Move prototypes to fr30-protos.h
15301 * config/fr30/fr30.c: Fix compile time warnings.
15302 * config/fr30/fr30.md: Fix compile time warnings.
15304 Mon Nov 8 07:25:37 1999 Mark Mitchell <mark@codesourcery.com>
15306 * tree.h (get_containing_scope): Declare it.
15307 * tree.c (get_containing_scope): New fucntion.
15308 (decl_function_context): Use it.
15309 * toplev.c (rest_of_compilation): Use get_containing_scope.
15311 aMon Nov 8 03:03:07 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15313 * Makefile.in (rtl.o): Depend on toplev.h.
15315 Sun Nov 7 20:55:14 1999 Mark Mitchell <mark@codesourcery.com>
15317 * cse.c (delete_trivially_dead_insns): Replace alloca with
15319 * except.c (update_rethrow_references): Likewise.
15320 (init_eh_nesting_info): Likewise.
15321 * function.c (identify_blocks): Likewise.
15322 * gcse.c (dump_hash_table): Likewise.
15323 * graph.c (print_rtl_graph_with_bb): Likewise.
15324 * loop.c (combine_movables): Likewise.
15325 (move_movables): Likewise.
15326 (count_loop_regs_set): Likewise.
15327 (strength_reduce): Likewise.
15328 * profile.c (compute_branch_probabilities): New function, split
15330 (branch_prob): Here. Replace alloca with xmalloc/xcalloc.
15331 * regclass.c (regclass): Likewise.
15332 * regmove.c (regmove_optimize): Likewise.
15333 * toplev.c (compile_file): Likewise.
15334 (main): Don't mess with the stack rlimit.
15336 Sun Nov 7 19:41:17 1999 Catherine Moore <clm@cygnus.com>
15338 * config/elfos.h (ASM_DECLARE_FUNCTION_NAME): Conditionally define.
15339 (ASM_DECLARE_FUNCTION_SIZE): Conditionally define.
15341 Sun Nov 7 10:23:28 1999 Mark P. Mitchell <mark@codesourcery.com>
15343 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns.
15345 Sun Nov 7 02:58:48 1999 Jeffrey A Law (law@cygnus.com)
15347 * global.c (EXECUTE_IF_CONFLICT): Undo Robert's change.
15348 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Put curleys around CODE in
15351 Sat Nov 6 23:48:30 1999 Robert Lipe (robertlipe@usa.net)
15353 * global.c (EXECUTE_IF_CONFLICT): Correct quoting typo.
15355 Sat Nov 6 17:34:39 1999 Jeffrey A Law (law@cygnus.com)
15357 * gcse.c (post_dominators): Kill.
15358 (alloc_code_hoist_mem, free_code_hoist_mem); Kill post_dominators.
15359 (compute_code_hoist_data): Use compute_flow_dominators. Do not
15360 pass in a pdom array since we do not need pdoms.
15361 * haifa-sched.c (schedule_insns): Similarly.
15362 * flow.c (compute_dominators): Remove dead function.
15363 (compute_flow_dominators): Do not compute doms or pdoms if the
15364 caller does not request them. Split up loop to build doms and
15365 pdoms. Use a worklist to compute doms and pdoms.
15366 * basic-block.h (compute_dominators): Remove prototype.
15368 Sat Nov 6 11:38:39 1999 Richard Henderson <rth@cygnus.com>
15370 * haifa-sched.c (struct haifa_insn_data, h_i_d): New.
15371 (insn_luid, insn_priority, insn_costs, insn_units): Remove.
15372 (insn_reg_weight, insn_depend, insn_dep_count): Remove.
15373 (insn_blockage, insn_ref_count, line_note, insn_tick): Remove.
15374 (cant_move, fed_by_spec_load, is_load_insn): Remove.
15375 (schedule_region): Remove unused variable.
15376 (schedule_insns): Allocate h_i_d, and not all the separate arrays.
15378 Sat Nov 6 10:00:34 1999 Mark Mitchell <mark@codesourcery.com>
15380 * local-alloc.c (local_alloc): Use xmalloc/xcalloc, not alloca.
15381 (update_equiv_regs): Likewise.
15382 (block_alloc): Likewise.
15383 * reg-stack.c (reg_to_stack): Likewise.
15384 (convert_regs_2): Likewise.
15385 * reload1.c (reload_as_needed): Likewise.
15387 Sat Nov 6 09:57:59 1999 Mark Mitchell <mark@codesourcery.com>
15389 * Makefile.in (dbxout.o): Depend on ggc.h.
15390 (dwarf2out.o): Likewise.
15391 (xcoffout.o): Likewise.
15392 * dbxout.c: Include ggc.h.
15393 (dbxout_init): Register lastfile as a root.
15394 * dwarf2out.c: Include ggc.h.
15395 (dwarf2out_line): Register lastfile as a root.
15396 * xcoffout.c: Include ggc.h.
15397 (xcoffout_source_line): Register xcoff_lastfile as a root.
15399 Sat Nov 6 09:52:09 1999 Richard Henderson <rth@cygnus.com>
15401 * i386.md (movdf_1, movxf_1): Earlyclobber general regs destination.
15403 Sat Nov 6 07:48:59 1999 Catherine Moore <clm@cygnus.com>
15405 * config/svr4.h (ASM_DECLARE_FUNCTION): Check if already
15407 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
15409 Fri Nov 5 18:33:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15411 * global.c (EXECUTE_IF_SET_IN_ALLOCNO_SET): New macro.
15412 (EXECUTE_IF_CONFLICT): Likewise.
15413 (ALLOCNO_LIVE_P): Avoid signed division.
15414 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Likewise.
15415 (prune_preferences, find_reg): Use EXECUTE_IF_CONFLICT.
15416 (record_one_conflict): Use EXECUTE_IF_SET_IN_ALLOCNO_SET.
15418 Fri Nov 5 12:04:02 1999 Richard Henderson <rth@cygnus.com>
15420 * haifa-sched.c (schedule_block): Don't crash if there's no
15421 next insn for an interblock movement.
15422 (add_branch_dependences): Don't allow clobber insns to move either.
15424 Fri Nov 5 10:18:11 1999 Richard Henderson <rth@cygnus.com>
15426 * i386.c (split_xf): New.
15427 * i386-protos.h: Declare it.
15428 * i386.md (movxf_1): Add general regs alternatives.
15429 (movxf_1+1): New splitter for same.
15431 Fri Nov 5 12:05:52 1999 Nick Clifton <nickc@cygnus.com>
15433 * function.c (purge_addressof_1): Add missing return values.
15435 Fri Nov 5 10:07:25 1999 Nick Clifton <nickc@cygnus.com>
15437 * function.c (is_addressof): New function. Returns true if
15438 the given piece of RTL is an ADDRESSOF.
15439 (purge_addressof_1): Make boolean. Return false if the
15440 ADDRESSOFs could not be purged.
15441 (purge_addressof): If ADDRESSOFs could not be purged from the
15442 notes attached to an insn, remove the offending note(s),
15443 unless they are attached to a libcall.
15445 1999-11-05 Andreas Jaeger <aj@suse.de>
15447 * genoutput.c (null_operand =): Initialize all fields.
15449 * errors.h: Add extern to prototypes.
15451 Fri Nov 5 01:44:09 1999 Jeffrey A Law (law@cygnus.com)
15453 * configure.in (m68k-next-nextstep4): Handle Openstep 4.2.
15454 * configure: Rebuilt.
15456 Fri Nov 5 01:24:37 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15458 * global.c (CONFLICTP, SET_CONFLICT): Avoid signed division.
15459 (mirror_conflicts): New function.
15460 (global_alloc): Call it.
15461 (expand_preferences): Remove redundant CONFLICTP test.
15462 (find_reg, dump_conflicts): Likewise.
15463 (prune_preferences): Process conflicts one word at a time.
15465 Fri Nov 5 01:05:21 1999 Richard Henderson <rth@cygnus.com>
15467 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_BITMAP
15468 instead of an explicit loop.
15470 Thu Nov 4 23:07:14 1999 Jim Wilson <wilson@cygnus.com>
15472 * cse.c (cse_insn): Revert Oct 31 change. When computing src_elt,
15473 if REG_RETVAL check succeeds, then put classp in src_elt.
15475 Thu Nov 4 23:48:14 1999 Jeffrey A Law (law@cygnus.com)
15477 * function.c (pad_to_arg_alignment): Only update argument_pad
15478 if the argument's alignment is greater than STACK_BOUNDARY.
15480 Thu Nov 4 16:44:53 1999 Richard Henderson <rth@cygnus.com>
15482 * bitmap.h (BITMAP_XFREE): New.
15483 * flow.c (life_analysis): Use it.
15484 (life_analysis_1): Free blocks.
15486 * combine.c (undo_commit): New.
15487 (try_combine): Use it. Don't zap undobuf.undos.
15488 (combine_instructions): Don't zap undobuf.undos; free the
15489 undobuf.frees list.
15491 * local-alloc.c (local_alloc): Free qty_phys_num_sugg.
15493 * stmt.c (cost_table_): New.
15494 (estimate_case_costs): Use it instead of xmalloc.
15496 * toplev.c (compile_file): Reuse dumpname memory instead
15499 Thu Nov 4 16:36:44 1999 Richard Henderson <rth@cygnus.com>
15501 * reg-stack.c (convert_regs_1): Initialize target_stack->top
15502 after verifying an EH edge.
15504 * haifa-sched.c (init_rgn_data_dependences): Correctly
15505 size bb_pending_lists_length when zeroing.
15507 Thu Nov 4 16:36:36 1999 Richard Henderson <rth@cygnus.com>
15509 * function.c (diddle_return_value): New.
15510 (expand_function_end): Use it.
15511 * stmt.c (expand_null_return): Likewise.
15512 (expand_value_return): Likewise.
15514 * reg-stack.c (subst_stack_regs_pat): Handle clobbers at top-level.
15516 * reload1.c (reload): Don't remove return value clobbers.
15518 Thu Nov 4 13:33:46 1999 Richard Henderson <rth@cygnus.com>
15520 * rtl.c (read_rtx): Use fatal_with_file_and_line not fatal.
15522 Thu Nov 4 12:49:52 1999 Richard Henderson <rth@cygnus.com>
15524 * cse.c (cse_main): Use xmalloc, not alloca.
15525 (cse_basic_block): Likewise.
15526 * local-alloc.c (local_alloc): Likewise.
15528 Thu Nov 4 14:22:12 1999 David Billinghurst <David.Billinghurst@riotinto.com.au>
15529 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15531 * rtl.c: Include toplev.h.
15532 (fatal): Remove declaration.
15534 Thu Nov 4 06:39:47 1999 Jeffrey A Law (law@cygnus.com)
15536 * haifa-sched.c (schedule_block): Fix thinko.
15538 1999-11-03 James McKelvey <mckelvey@fafnir.com>
15540 * fixinc/fixincl.c(create_file): Allow for systems that do not have
15541 S_IR* defined values
15543 1999-11-03 Philippe De Muyter <phdm@macqel.be>
15545 * fixlib.c (load_file_data): Do not call `realloc' with a NULL pointer;
15546 call `malloc' instead.
15548 Wed Nov 3 23:05:14 1999 Mark Mitchell <mark@codesourcery.com>
15550 * flags.h (flag_renumber_insns): Declare.
15551 * emit-rtl.c (renumber_insns): Check flag_renumber_insns. Print
15553 * rtl.h (renumber_insns): Change prototype.
15554 * toplev.c (flag_renumber_insns): Define.
15555 (rest_of_compilation): Pass rtl_dump_file to flag_renumber_insns.
15557 Wed Nov 3 15:11:27 1999 David S. Miller <davem@redhat.com>
15559 * config/sparc/sparc.md: Remove insn type fpsqrt, add fpsqrts
15560 and fpsqrtd. Use them and create fdiv function unit to more
15561 accurately represent fpu sqrt pipeline semantics on UltraSparc.
15562 * config/sparc/sparc.c: Account for fpsqrt{s,d} changes.
15564 Wed Nov 3 15:11:27 1999 Matteo Frigo <athena@fftw.org>
15566 * config/sparc/sparc.md: Adjust FADD/FMUL result latencies to
15568 * config/sparc/sparc.c (ultra_schedule_insn): Insert launched
15569 insn into ready list, do not use just a raw swap.
15571 Wed Nov 3 14:51:59 1999 Mark P. Mitchell <mark@codesourcery.com>
15573 * rtl.h (renumber_insns): New function.
15574 (remove_unnecessary_notes): Likewise.
15575 * emit-rtl.c (renumber_insns): Define.
15576 (remove_unncessary_notes): Likewise.
15577 * toplev.c (rest_of_compilation): Remove dead code.
15578 Use renumber_insns and remove_unncessary_notes.
15580 * gcse.c (struct null_pointer_info): New type.
15581 (get_bitmap_width): New function.
15582 (current_block): Remove.
15583 (nonnull_local): Likewise.
15584 (nonnull_killed): Likewise.
15585 (invalidate_nonnull_info): Take a null_pointer_info as input.
15586 (delete_null_pointer_checks_1): New function.
15587 (delete_null_pointer_checks): Use it.
15589 * haifa-sched.c (find_rgns): Replace uses of alloca with xmalloc.
15590 (split_edges): Likewise.
15591 (schedule_block): Likewise.
15592 (compute_block_backward_dependencies): Likewise.
15593 (schedule_region): Likewise.
15594 (schedule_insns): Likewise.
15596 Wed Nov 3 15:40:23 1999 Catherine Moore <clm@cygnus.com>
15598 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Provide default.
15599 * emit-rtl.c (gen_label_rtx): Support LABEL_ALTERNATE_NAME.
15600 * final.c (final_scan_insn): Emit LABEL_ALTERNATE_NAME.
15601 * ggc-common.c (ggc_mark_rtx_children): Mark LABEL_ALTERNATE_NAME.
15602 * jump.c (delete_unreferenced_labels): Don't delete if
15603 LABEL_ALTERNATE_NAME is set.
15604 * print-rtl.c (print_rtx): Dump alternate name.
15605 * rtl.def (CODE_LABEL): Change format to "iuuis00s".
15606 * rtl.h (LABEL_ALTERNATE_NAME): Define.
15607 * rtl.texi (LABEL_ALTERNATE_NAME): Document.
15608 * tm.texi (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Document.
15610 Wed Nov 3 15:39:19 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15612 * fix-header.c (recognized_extern, recognized_function): Constify
15615 * lcm.c (compute_laterin): Remove unused variable `temp_bitmap'.
15616 (pre_edge_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
15617 (compute_available): Remove unused variable `last'.
15618 (compute_nearerout): Remove unused variable `temp_bitmap'.
15619 (pre_edge_rev_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
15620 Remove unused variable `x'.
15622 * scan.h (recognized_function, recognized_extern): Constify a
15625 * simplify-rtx.c (simplify_rtx): Remove unused variable `new'.
15627 Wed Nov 3 10:40:53 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15629 * varasm.c (decode_rtx_const): Use XSTR to access the string
15632 Wed Nov 3 10:10:58 1999 Richard Henderson <rth@cygnus.com>
15634 * c-decl.c (duplicate_decls): Copy DECL_MODE too.
15636 Wed Nov 3 12:12:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15638 * reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.
15640 Wed Nov 3 03:26:28 1999 Jeffrey A Law (law@cygnus.com)
15642 * pa.c (ireg_operand): New function.
15643 * pa.h (PREDICATE_CODES): Handle ireg_operand.
15644 * pa.md (parallel_addb, parallel_movb): Use ireg_operand.
15645 Fix out of date comment.
15647 * pa.md (negdi2): Turn into expander + anonymous pattern.
15649 * reload.c (find_reloads): Fix typos in recent change.
15651 * dwarf2out.c: Do not include ctype.h.
15653 Tue Nov 2 21:53:44 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15655 * regclass.c (record_reg_classes): Always use may_move_cost when
15656 seeing how operand fits with various register classes.
15658 Tue Nov 2 15:38:17 1999 Richard Henderson <rth@cygnus.com>
15660 * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes.
15661 * toplev.c: Revert Nov 1 13:22 change.
15663 Tue Nov 2 14:21:37 1999 Jason Eckhardt <jle@cygnus.com>
15665 * config/pa/pa.md (height reduction patterns): Add checks for
15666 overlapping operands to avoid semantic-destroying splits for
15667 height reduction patterns.
15669 Tue Nov 2 15:27:31 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15671 * configure.in (m68k-hp-hpux*, xm_alloca.h): The underscore should
15672 have been an hyphen, fixed.
15673 * configure: Rebuilt.
15675 Tue Nov 2 17:04:36 1999 Nick Clifton <nickc@cygnus.com>
15677 * config/arm/tpe.h: Add prototypes for exported functions.
15678 * config/arm/pe.c: Fix compile time warnings.
15679 * config/arm/semi.h: Fix compile time warnings.
15680 * config/arm/arm.c: Fix compile time warnings.
15681 * config/arm/arm.h: Fix compile time warnings.
15682 * config/arm/arm.md: Fix compile time warnings.
15683 * config/arm/thumb.c: Fix compile time warnings.
15684 * config/arm/thumb.h: Fix compile time warnings.
15685 * config/arm/thumb.md: Fix compile time warnings.
15687 Tue Nov 2 04:10:24 1999 Jan Hubicka <hubicka@freesoft.cz>
15689 * jump.c (jump_optimize_1): Swap the incscc and the conditional mode
15692 * unroll.c (unroll_loop): Remove LOOP notes when loop is
15693 completely unrolled.
15695 Tue Nov 2 16:57:22 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15697 * cse.c (simplify_plus_minus, check_fold_const): Delete declarations.
15699 Tue Nov 2 09:43:00 1999 Catherine Moore <clm@cygnus.com>
15701 * Makefile.in (genattrtab): Don't use (HOST_RTLANAL).
15702 * rtl.h (rtx_equal_p): Move prototype.
15703 * rtl.c (rtx_equal_function_value_matters): Move from
15705 (rtx_equal_p): Likewise.
15706 * rtlanal.c (rtx_equal_function_value_matters): Delete.
15707 (rtx_equal_p): Likewise.
15709 Mon Nov 1 23:21:17 1999 Jason Merrill <jason@yorick.cygnus.com>
15711 * libgcc2.c (__do_global_dtors): Only do EH frame stuff if
15712 ! HAS_INIT_SECTION.
15714 Mon Nov 1 23:37:38 1999 Jeffrey A Law (law@cygnus.com)
15716 * gcc.1 (PA options): Remove obsolete -mshared-libs options.
15718 * pa.h (ADDR_VEC_ALIGN): Define.
15720 * jump.c (jump_optimize_1): Also move LOOP_VTOP and LOOP_CONT
15721 notes when presented with "if (foo) break; end_of_loop" and
15722 the break sequence gets moved out of the loop.
15724 * unroll.c (unroll_loop): Allocate memory for MAP using xcalloc.
15725 Remove explicit zero initializations of entries within MAP.
15727 Mon Nov 1 18:09:14 1999 Richard Henderson <rth@cygnus.com>
15729 * reg-stack.c (convert_regs_1): Handle EH edges specially.
15731 Mon Nov 1 15:41:01 1999 Mark P. Mitchell <mark@codesourcery.com>
15733 * bitmap.h (BITMAP_XMALLOC): New macro.
15734 * flow.c (CLEAN_ALLOCA): Remove.
15735 (delete_unreachable_blocks): Use xmalloc/xcalloc instead of alloca.
15736 (life_analysis): Likewise.
15737 (update_life_info): Don't use CLEAN_ALLOCA.
15738 (life_analysis_1): Use xmalloc/xcalloc instead of alloca.
15739 (calculate_global_regs_live): Likewise.
15740 (print_rtl_with_bb): Likewise.
15741 (verify_flow_info): Likewise.
15742 * global.c (global_alloc): Likewise.
15743 (global_conflicts): Likewise.
15744 * integrate.c (save_for_inline_nocopy): Likewise.
15745 (expand_inline_function): Likewise.
15746 * jump.c (jump_optimize_1): Likewise.
15747 (duplicate_loop_exit_test): Likewise.
15748 (thread_jumps): Likewise.
15749 * loop.c (loop_optimize): Likewise.
15750 (combine_givs): Likewise.
15751 (recombine_givs): Likewise.
15752 * reorg.c (dbr_schedule): Likewise.
15753 * unroll.c (unroll_loop): Likewise.
15755 * combine.c (combine_instructions): Use xmalloc instead of alloca.
15757 Mon Nov 1 13:22:30 1999 Richard Henderson <rth@cygnus.com>
15759 * toplev.c (rest_of_compilation): Don't optimize the CFG
15760 when rebuilding, just before dbr.
15762 Mon Nov 1 14:35:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15764 * output.h (assemble_end_function, assemble_destructor,
15765 assemble_constructor, assemble_gc_entry, assemble_global,
15766 assemble_label, output_constant_pool) Constify a char*.
15768 * varasm.c (assemble_destructor, assemble_constructor,
15769 assemble_gc_entry, assemble_end_function, assemble_global,
15770 assemble_label, output_constant_pool): Likewise.
15772 Mon Nov 1 14:22:51 1999 Nick Clifton <nickc@cygnus.com>
15774 * config/arm/thumb.c (thumb_expand_prologue): Add comments
15775 explaining what is goin on in this function.
15777 Mon Nov 1 08:03:15 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15779 * regclass.c (record_reg_classes): In matching case, recompute
15780 costs since the direction of movement is different.
15782 Sun Oct 31 21:59:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
15784 * resource.c (mark_target_live_regs): For unconditional branches,
15785 the resources found at the branch target should be added to the
15786 resources found so far, not intersected.
15788 Sun Oct 31 15:48:49 1999 Philippe De Muyter <phdm@macqel.be>
15790 * fixinc/fixtests.c, fixinc/fixfixes.c : Keep `#' in first column for
15792 * fixinc/fixincl.c (fcntl.h) : Do not include this file twice.
15793 (sys/mman.h): Include this file only if #HAVE_MMAP.
15794 (run_compiles): Initialize `esac_fmt' with one old KR string, not
15795 with automatically concatenated ANSI strings.
15797 Sun Oct 31 23:57:07 1999 Mark Mitchell <mark@codesourcery.com>
15799 * ggc-page.c (struct page_entry): Remove save_num_free_objects.
15800 (DIV_ROUND_UP): Robustify.
15801 (ggc_recalculate_in_use_p): New function.
15802 (release_pages): Don't inline it.
15803 (ggc_alloc_obj): Don't refuse to allocate objects on pages for
15805 (ggc_pop_context): Use ggc_recalculate_in_use_p.
15806 (clear_marks): Always save in_use_p.
15807 (sweep_pages): Use ggc_recalculate_in_use_p.
15808 (ggc_page_print_statistics): Avoid signed/unsigned comparisons.
15809 Release pages before counting statistics.
15811 Sun Oct 31 23:42:37 1999 Mark Mitchell <mark@codesourcery.com>
15813 * toplev.c (rest_of_compilation): Fix thinko in this change:
15815 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
15817 (rest_of_compilation): If inside an inlined external function,
15818 pretend we are just being declared.
15820 Sun Oct 31 23:03:25 1999 Jeffrey A Law (law@cygnus.com)
15822 * flow.c (calculate_global_regs_live): Fix thinko.
15824 * integrate.c (expand_inline_function): Fix bugs in previous
15825 change from Oct 28, 1999.
15827 Sun Oct 31 20:27:45 1999 Mark Mitchell <mark@codesourcery.com>
15829 * stmt.c (expand_value_return): Fix typo in this change:
15831 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15832 (expand_value_return): Correctly convert VAL when promoting function
15833 return; support RETURN_REG being a PARALLEL.
15835 Sun Oct 31 20:25:42 1999 Mark P. Mitchell <mark@codesourcery.com>
15837 * expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.
15839 Sun Oct 31 20:42:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15841 * hard-reg-set.h (reg_names): Constify a char*.
15843 * regclass.c (reg_names): Likewise.
15845 * regs.h (reg_names): Likewise
15847 * a29k/a29k.c (reg_names): Delete declaration.
15849 * a29k/a29k.h (CONDITIONAL_REGISTER_USAGE): Constify a char*.
15851 * arc/arc.c (arc_save_restore, arc_output_function_prologue,
15852 arc_output_function_epilogue): Likewise.
15854 * elxsi/elxsi.c (reg_names): Likewise.
15856 * gmicro/gmicro.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Likewise.
15858 * m32r/m32r.c (m32r_output_function_epilogue, emit_cond_move):
15861 * m88k/m88k.c (output_function_profiler): Likewise.
15863 * sparc/sparc.c (sparc_flat_output_function_prologue,
15864 sparc_flat_output_function_epilogue): Likewise.
15866 Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com>
15868 * toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber
15869 warning from -Wuninitialized and put it under -W.
15870 * function.c (uninitialized_vars_warning): Warn only when the
15871 corresponding flag is set.
15873 Sun Oct 31 01:53:30 1999 Jeffrey A Law (law@cygnus.com)
15875 * cse.c (cse_insn): If an insn has only a single set, SRC_EQV
15876 is nonzero and the single set does not have an elt, then assign
15879 * simplify-rtx.c: New file.
15880 * Makefile.in (OBJS): Add simplify-rtx.o
15881 (simplify-rtx.o): Add dependencies.
15882 * rtl.h (simplify_gen_binary, simplify_rtx): Add prototypes.
15883 * cse.c: Use simplify_gen_binary intead of cse_gen_binary.
15884 (cse_gen_binary, simplify_unary_operation): Delete.
15885 (simplify_binary_operation, simplify_plus_minus): Likewise.
15886 (check_fold_consts, simplify_relation_operation): Likewise.
15887 (simplify_ternary_operation): Likewise.
15888 (delete_trivially_dead_insns): Simplify the contents of the
15889 REG_EQUAL note before trying to substitute it into the source
15890 of the reg-reg copy at the end of a libcall sequence.
15892 * combine.c (combine_simplify_rtx): Renamed from simplify_rtx. All
15893 references/callers changed.
15895 * mn10200.c (mn10200_va_arg): Force the return value into a
15898 * fr30.h (EXTRA_CC_NAMES): Remove obsolete macro.
15900 * cccp.c (macroexpand): Avoid out of range accesses for omitted
15903 Sat Oct 30 22:42:50 1999 Stephen L Moshier <moshier@mediaone.net>
15905 * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
15907 Sat Oct 30 22:19:26 1999 Jeffrey A Law (law@cygnus.com)
15909 * fold-const.c (fold): Fix thinko when optimizing comparisons
15912 Sat Oct 30 21:32:17 1999 David Starner <dstarner98@aasaa.ofe.org>
15914 * gcc.texi (Passes): Update front-end files to their current
15917 Sat Oct 30 14:41:40 1999 Richard Henderson <rth@cygnus.com>
15919 * alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Call secondary_reload_class.
15920 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
15921 (PREDICATE_CODES): Add addition_operation.
15922 * alpha-protos.h (addition_operation): Declare.
15923 (secondary_reload_class): Likewise.
15924 * alpha.c (addition_operation): New.
15925 (secondary_reload_class): New, from old SECONDARY_INPUT_RELOAD_CLASS.
15926 * alpha.md (adddi3): Turn into expander.
15927 (*lda, *adddi_2): New.
15928 (movsf, movdf patterns): Don't preference integer regs.
15929 (movsi, movdi patterns): Don't preference fp regs.
15931 Sat Oct 30 14:38:22 1999 Richard Henderson <rth@cygnus.com>
15933 * genrecog.c (write_switch): Check for duplicate CODE cases.
15935 Sat Oct 30 14:31:48 1999 Richard Henderson <rth@cygnus.com>
15937 * ggc-common.c: Update pre-function commentary.
15938 * ggc-page.c: Likewise.
15940 (poison_pages): Use memset directly.
15941 (ggc_alloc_obj): Likewise. Use a different pattern than poison_pages.
15942 (ggc_collect): Poison before sweeping.
15943 * ggc-simple.c: Update pre-function commentary.
15944 (ggc_alloc_obj): Poison non-zeroed memory.
15946 Sat Oct 30 14:28:52 1999 Mark Mitchell <mark@codesourcery.com>
15948 * ggc-common.c (ggc_print_statistics): Make arguments to fprintf
15949 match format string, even on 64-bit hosts.
15950 * gcc-page.c (ggc_page_print_statistics): Likewise.
15952 Sat Oct 30 14:38:04 1999 Catherine Moore <clm@cygnus.com>
15954 * config/i386/i386.c (ix86_cpu): Revert last patch.
15955 * config/i386/i386.h (ix86_cpu): Ditto.
15957 Fri Oct 29 17:00:42 1999 Jim Wilson <wilson@cygnus.com>
15959 * stor-layout.c (layout_type): When compute TYPE_SIZE_UNIT from
15960 TYPE_SIZE, convert type of result to sizetype.
15962 Fri Oct 29 14:34:17 1999 Richard Henderson <rth@cygnus.com>
15964 * flow.c (count_or_remove_death_notes): Equate NULL with the
15967 * jump.c, reg-stack.c, toplev.c: Revert Oct 27 change.
15968 * toplev.c (rest_of_compilation): Rebuild CFG immediately before
15971 * i386.c (pic_label_no): Delete.
15972 (ix86_attr_length_default): Don't use single_set to peek
15975 * recog.c (peephole2_optimize): Allow recog_next_insn to index
15976 the first insn after bb->end.
15977 * i386.md (push mem peeps): Scratch is live after evaluation
15979 (cmp mem peep): Similarly.
15981 Fri Oct 29 11:50:11 1999 Catherine Moore <clm@cygnus.com>
15983 * calls.c (emit_library_call_value): Fix declaration of alignment_pad.
15984 * function.c (pad_to_arg_alignment): Add missing braces.
15986 Fri Oct 29 13:53:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15988 * alpha/alpha-protos.h (literal_section): Add prototype.
15989 (alpha_need_linkage, alpha_start_function,alpha_end_function):
15992 * alpha/alpha.c (alpha_ra_ever_killed, set_frame_related_p): Add
15994 (alpha_start_function, alpha_end_function, float_strings,
15995 alpha_need_linkage): Constify a char*
15997 * alpha/alpha.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_MI_THUNK): Likewise.
15999 * alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
16001 * alpha/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
16003 * alpha/vms.h (ASM_OUTPUT_SECTION_NAME): Likewise.
16005 Fri Oct 29 13:49:39 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16007 * flow.c (debug_flow_info): Add prototype.
16009 * gcc.c (main): Likewise.
16011 * gcse.c (expr_reaches_here_p_work, pre_expr_reaches_here_p_work):
16014 * reload1.c (failed_reload, set_reload_reg): Likewise.
16016 * mips-tfile.c (main): Likewise.
16017 (pfatal_with_name, fancy_abort, botch, fatal, catch_signal): Mark
16018 with ATTRIBUTE_NORETURN.
16020 Fri Oct 29 18:16:03 1999 Andrew Haley <aph@cygnus.com>
16022 * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
16023 DECL is not a memory ref.
16025 Fri Oct 29 09:05:34 1999 Catherine Moore <clm@cygnus.com>
16027 * config/i386/i386.h (ix86_cpu): Remove extern attribute.
16028 * config/i386/i386.c (ix86_cpu): Add extern attribute.
16030 Fri Oct 29 16:30:04 1999 Andrew Haley <aph@cygnus.com>
16032 * config/mips/elf.h: remove NAME__MAIN and SYMBOL__MAIN.
16033 * config/mips/elf64.h: ditto.
16035 Fri Oct 29 08:03:57 1999 Catherine Moore <clm@cygnus.com>
16037 * expr.c (emit_push_insn): New argument alignment_pad.
16038 Update all callers. Adjust stack pointer based on alignment pad.
16039 * function.c (pad_to_arg_alignment): New argument alignment_pad.
16040 Update all callers. Track alignment_pad if boundary > PARM_BOUNDARY.
16041 (locate_and_pad_parm): New argument alignment_pad. Update all
16043 * expr.h (emit_push_insn): Update prototype.
16044 (locate_and_pad_parm): Update prototype.
16045 * calls.c (arg_data): Add new field alignment_pad.
16046 (initialize_argument_information): Initialize alignment_pad.
16048 Fri Oct 29 02:51:35 1999 Mark Mitchell <mark@codesourcery.com>
16050 * except.c (free_eh_nesting_info): Free the info itself.
16051 * function.c (free_after_compilation): Don't free NULL.
16052 * gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
16053 (pre_edge_insert): Free inserted.
16054 * stmt.c (free_stmt_status): Don't free NULL.
16056 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
16058 * gcov.c (DIR_SEPARATOR): Provide default.
16059 (output_data): Add test for MS-DOS format absolute filename.
16060 (fancy_abort): Correct program name.
16061 (open_files): Open all files in binary mode.
16062 * libgcc2.c (__bb_exit_func): Likewise.
16064 * profile.c (init_branch_prob): Specify binary when opening files.
16066 * flags.h (flag_unwind_tables): New decl.
16067 * toplev.c (flag_unwind_table): New definition.
16068 (f_options): Add -funwind-tables.
16069 (decode_g_option): Clarify warning when unknown -g option is given.
16070 (rest_of_compilation): If inside an inlined external function,
16071 pretend we are just being declared.
16073 * dwarf2out.c (dwarf2out_do_frame): Check -funwind_tables.
16074 (dwarf2out_frame_finish): Likewise.
16076 Fri Oct 29 07:44:26 1999 Vasco Pedro <vp@di.fct.unl.pt>
16078 * fold-const.c (merge_ranges): If not in0, but in1, handle
16079 upper bounds equal like subset case.
16081 Thu Oct 28 19:22:24 1999 Douglas Rupp <rupp@gnat.com>
16083 * dbxout.c (dbxout_parms): Generate a second stabs line for parameters
16084 passed in a register but moved to the stack.
16086 Thu Oct 28 19:12:57 1999 Sam Tardieu <tardieu@act-europe.fr>
16088 * gcc.c (pass_exit_codes, greatest_status): New variables.
16089 (struct option_map): Add entry for "--pass-exit-codes".
16090 (execute): Update greatest_status if error.
16091 (display_help): Add documentation for -pass-exit-codes.
16092 (process_command): Handle -pass-exit-codes.
16093 (main): Look at pass_exit_codes and greatest_status on call to exit.
16095 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16097 * reload.c (find_reloads): Refine test for no input reload
16098 case to not includes reloads emitted after insn.
16100 * function.c (find_temp_slots_from_address): Handle sum involving
16101 a register that points to a temp slot.
16102 (update_temp_slot_address): Make recursive call if both old and
16103 new are PLUS with a common operand.
16104 * calls.c (expand_call): Mark temp slot for result as having
16107 * rtlanal.c (reg_referenced_p, case IF_THEN_ELSE): New case.
16109 * gcc.c (process_command): Add standard_exec_prefix with "GCC"
16110 component as well as "BINUTILS".
16112 * integrate.h (copy_rtx_and_substitute): New arg, FOR_LHS.
16113 * integrate.c (copy_rtx_and_substitute): Likewise.
16114 (expand_inline_function, integrate_parm_decls, integrate_decl_tree):
16115 All callers changed.
16116 * unroll.c (inital_reg_note_copy, copy_loop_body): Likewise.
16118 * dbxout.c (dbxout_type, case INTEGER_TYPE_NODE): If can use
16119 gdb extensions, write size of type; also be more consistent
16120 in using references when this is a subtype.
16122 * pa.md (extv, extzv, insv): Use define_expand to reject constant
16123 that is out of range.
16125 * loop.c (unknown_constant_address_altered): New variable.
16126 (prescan_loop): Initialize it.
16127 (note_addr_stored): Set it for RTX_UNCHANGING_P MEM.
16128 (invariant_p, case MEM): Remove handling for volatile and readonly;
16129 check new variable if readonly.
16130 (check_dbra_loop): Chdeck unknown_constant_address_altered.
16132 * cse.c (canon_hash, case MEM): Do not record if BLKmode.
16133 (addr_affects_sp_p): Removed from note_mem_written and only
16134 define #ifdef AUTO_INC_DEC.
16136 * alpha.c (input_operand, case ADDRESSOF): Treat as REG.
16138 * regclass.c (record_reg_classes): Properly handle register move
16141 * varasm.c (initializer_constant_valid_p, case MINUS_EXPR):
16142 Don't think valid if both operands are invalid.
16143 (struct constant_descriptor): New field RTL.
16144 (mark_const_hash_entry): Mark it.
16145 (record_constant{,_rtx}): Initialize it.
16146 (output_constant_def): Allocate RTL in permanent obstack and
16148 ({record,compare}_constant_1): Modes must match for
16149 CONSTRUCTOR of ARRAY_TYPE.
16151 * c-common.h (initializer_constant_valid_p): Delete decl from here.
16152 * output.h (initializer_constant_valid_p): Move decl to here.
16153 * c-common.c (initializer_constant_valid_p): Delete function from here.
16154 * varasm.c (initializer_constant_valid_p): Move function to here.
16156 * tree.h (STRIP_SIGN_NOPS): New macro.
16157 * fold-const.c (optimize_minmax_comparison): New function.
16158 (invert_truthvalue, case WITH_RECORD_EXPR): New case.
16159 (fold): Use STRIP_SIGN_NOPS instead of STRIP_TYPE_NOPS.
16160 (fold, case EQ_EXPR): Call optimize_minmax_comparison and add
16161 cases with ABS_EXPR, NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR, and
16162 widening conversions.
16163 (fold, case LE_EXPR): Rework changing unsigned to signed comparisons
16164 to look at size of mode, not precision of type; also add missing cases.
16165 (optimize_bit_field_compare, decode_field_reference): Don't try to
16166 optimize COMPONENT_REF of a PLACEHOLDER_EXPR.
16168 * dwarf2out.c (ctype.h): Include.
16169 (dwarf2out_set_demangle_name_func): New function.
16170 (size_of_line_info): Deleted.
16171 (output_line_info): Compute size of line info table from difference
16173 (base_type_die, add_name_attribute): Call demangle function, if any.
16174 (field_byte_offset): Use bits per word for variable length fields.
16175 (gen_array_type_die): Add array name.
16176 (gen_subprogram_die): Ignore DECL_INLINE if -fno-inline.
16177 (dwarf2out_add_library_unit_info): New function.
16179 * explow.c (set_stack_check_libfunc): New function.
16180 (stack_check_libfunc): New static variable.
16181 (probe_stack_range): Allow front-end to set up a libfunc to call.
16183 * combine.c (simplify_comparison): When making comparison in wider
16184 mode, check for having commuted an AND and a SUBREG.
16185 (contains_muldiv): New function.
16186 (try_combine): Call it when dividing a PARALLEL.
16187 (simplify_rtx, case TRUNCATE): Don't remove for umulsi3_highpart.
16188 (simplify_comparison, case ASHIFTRT): Recognize sign-extension of
16190 (record_value_for_reg): If TEM is a binary operation with two CLOBBERs,
16191 use one of the CLOBBERs instead.
16192 (if_then_else_cond): If comparing against zero, just return thing
16195 * optabs.c (expand_abs): If machine has MAX, ABS (x) is MAX (x, -x).
16196 Don't generate shifts and subtract if have conditional arithmetic.
16198 * rtl.h (delete_barrier): New declaration.
16199 * jump.c (jump_optimize): Set up to handle conditional call.
16200 In conditional arithmetic case, handle CALL_INSN followed by a BARRIER.
16201 (delete_barrier): New function.
16203 * rtl.c (read_rtx): Call fatal if bad RTL code; check for bad mode.
16205 * recog.c (nonmemory_operand): Accept ADDRESSOF.
16207 * tree.c (build_type_attribute_variant): Push to obstack of
16208 ttype around type_hash_canon call.
16210 * expr.c (placeholder_list): Move decl to file scope.
16211 (expand_expr): Don't force access to volatile just because its
16213 If ignoring reference operations, just expand the operands.
16214 (expand_expr, case COMPONENT_REF): Propagate
16215 EXPAND_CONST_ADDRESS to recursive call when expanding inner.
16216 Refine test for using bitfield operations vs pointer punning.
16217 (expand_expr, case CONVERT_EXPR): If converting to
16218 BLKmode UNION_TYPE from BLKmode, just return inner object.
16219 Use proper mode in store_field call.
16220 Properly set sizes of object to store and total size in store_field
16221 call for convert to union.
16222 (expand_expr, case ARRAY_REF): If OP0 is in a register, put it in
16223 memory (like for ADDR_EXPR). Also, don't put constant in register if
16224 we'll want it in memory.
16225 (readonly_fields_p): New function.
16226 (expand_expr, case INDIRECT_REF): Call it if LHS.
16227 (expand_assignment): Handle a RESULT_DECL where
16228 DECL_RTL is a PARALLEL.
16229 (do_jump, case WITH_RECORD_EXPR): New case.
16230 (get_inner_reference): Always go inside a CONVERT_EXPR
16231 and NOP_EXPR if both modes are the same.
16232 (store_field): Use bitfield operations if size of bitsize is not same
16233 as size of RHS's type.
16234 Check for bitpos not a multiple of alignment in BLKmode case.
16235 Do block move in largest possible alignment.
16236 (store_constructor): Set BITSIZE to -1 for variable size and properly
16237 in case of array of BLKmode.
16238 (expand_expr_unaligned): New function.
16239 (do_compare_and_jump): Call it.
16241 * mips/iris5.h (SWITCHES_NEED_SPACES): New macro.
16242 * collect2.c (main): Only allow -ofoo if SWITCHES_NEED_SPACES
16243 does not include 'o'.
16245 * function.c (instantiate_virtual_regs_1, case SET): Handle case where
16246 both SET_DEST and SET_SRC reference a virtual register.
16247 (gen_mem_addressof): Copy RTX_UNCHANGING_P from new REG to old REG.
16249 * integrate.c (expand_inline_function): Handle case of setting
16250 virtual stack vars register (from built in setjmp); when parameter
16251 lives in memory, expand virtual_{stack_vars,incoming_args}_rtx early.
16252 (subst_constant): Add new parm, MEMONLY.
16253 (expand_inline_function, integrate_parm_decls): Pass new parm.
16254 (integrate_decl_tree): Likewise.
16255 (copy_rtx_and_substitute, case MEM): Do copy RTX_UNCHANGING_P.
16256 (try_constants): Call subst_constants twice, with MEMONLY 0 and 1.
16257 (copy_rtx_and_substitute, case SET): Add explicit calls to
16258 copy_rtx_and_substitute for both sides.
16260 * stmt.c (expand_asm_operands): Don't use TREE_STRING_LENGTH for
16262 (pushcase{,_range}): Convert to NOMINAL_TYPE after checking for
16263 within INDEX_TYPE, instead of before.
16264 (fixup_gotos): Use f->target_rtl, not the next insn,
16265 since latter may be from a later fixup.
16266 (expand_value_return): Correctly convert VAL when promoting function
16267 return; support RETURN_REG being a PARALLEL.
16268 (expand_return): When checking for result in regs and having
16269 cleanup, consider PARALLEL in DECL_RTL as being in regs.
16271 1999-10-28 21:27 -0700 Zack Weinberg <zack@bitmover.com>
16273 * cpplib.h (struct cpp_buffer: fname, nominal_fname,
16274 last_nominal_fname): Mark const.
16275 (struct include_hash: name, nshort, control_macro): Mark
16277 (struct macrodef: symnam): Mark const.
16278 (struct if_stack: fname): Mark const.
16279 (is_idchar, is_idstart, is_hor_space, trigraph_table): Delete.
16280 (IStable): New character-syntax array which encompasses all
16281 the old is_foo arrays.
16282 (is_idchar, is_numchar, is_idstart, is_numstart, is_hspace,
16283 is_space): New macros for interrogating IStable.
16284 (check_macro_name): Kill last argument. All callers changed.
16286 * cppinit.c (initialize_char_syntax): Delete.
16287 (is_idchar, is_idstart, is_hor_space, is_space,
16288 trigraph_table): Delete.
16289 (IStable): New. Initialize with clever macros to avoid
16290 information duplication.
16291 (builtin_array): Table of builtins to get rid of explicit list
16292 in initialize_builtins.
16293 (initialize_builtins): Use builtins_array.
16294 (cpp_start_read): Call init_IStable, and set IStable['$'] if
16295 opts->dollars_in_ident.
16297 * cppexp.c: Change all refs to is_xyz[] arrays to use new
16299 (cpp_parse_expr): Avoid 'format string is not constant'
16300 warning. Use ISGRAPH to identify printable chars.
16301 * cppfiles.c: Change all refs to is_xyz[] arrays to use new
16303 (read_and_prescan): Map trigraphs to chars with open-coded
16304 if-else-if-... sequence, not a lookup table.
16305 * cpphash.c: Change all refs to is_xyz[] arrays to use new
16307 * cpplib.c: Change all refs to is_xyz[] arrays to use new
16308 is_xyz() macros. Kill SKIP_ALL_WHITE_SPACE (unused).
16309 (check_macro_name): Remove ability to report an invalid
16310 assertion name, which is never used.
16311 (do_line): Constify a couple of char *'s.
16312 * cppmain.c (main): Call cpp_cleanup before returning.
16314 Thu Oct 28 21:16:35 1999 Mark Mitchell <mark@codesourcery.com>
16316 * ggc.h (struct ggc_statistics): New type.
16317 (ggc_get_size): New function.
16318 (ggc_print_statistics): Likewise.
16319 * ggc-common.c (ggc_stats): New variable.
16320 (ggc_mark_rtx_children): Keep statistics.
16321 (ggc_mark_tree_children): Likewise.
16322 (ggc_print_statistics): New function.
16323 * ggc-page.c (struct globals): Add bytes_mapped field.
16324 (alloc_anon): Update it.
16325 (release_pages): Likewise.
16326 (ggc_get_size): New function.
16327 (ggc_page_print_statistics): New function.
16328 * ggc-simple.c (ggc_get_size): New function.
16330 Fri Oct 29 06:32:44 1999 Geoffrey Keating <geoffk@cygnus.com>
16332 * flow.c (propagate_block): When the last reference to a label
16333 before an ADDR_VEC is deleted because the reference is a dead
16334 store, delete the ADDR_VEC.
16336 Thu Oct 28 12:28:50 1999 Richard Henderson <rth@cygnus.com>
16338 * resource.c (find_free_register): Don't use the frame pointer
16339 if frame_pointer_needed.
16341 Thu Oct 28 10:02:00 1999 Jim Wilson <wilson@cygnus.com>
16343 * config/mips/mips.c (mips_va_arg): Delete gen_jump as emit_jump arg.
16344 (function_arg_pass_by_reference): Check for a NULL pointer in cum.
16346 * config/i960/i960.c (i960_va_start): New locals base, num.
16347 Use INDIRECT_REF instead of ARRAY_REF on valist.
16348 (i960_va_arg): Use INDIRECT_REF instead of ARRAY_REF on valist.
16350 Thu Oct 28 09:45:48 1999 Mark Mitchell <mark@codesourcery.com>
16352 * gcse.c (delete_null_pointer_checks): Fix typo in previous change.
16354 Thu Oct 28 03:37:50 1999 Peter Gerwinski <peter@gerwinski.de>
16356 * tree.def (PLACEHOLDER_EXPR): Update comments.
16358 Thu Oct 28 06:47:32 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16360 * c-common.c (check_format_info): Avoid non-literal format string
16361 warnings when `first_arg_num' is zero.
16363 Thu Oct 28 12:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16365 * rtl.texi: Delete explicit Prev, Up and Next entries in "@node"s.
16367 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
16369 * arm.md (casesi_insn): Add a clobber of the condition code
16372 Mon Oct 18 21:16:06 1999 Fred Fish <fnf@be.com>
16374 * tm.texi (CC1PLUS_SPEC): Make it clear in the docs that CC1_SPEC is
16375 used by both cc1 and cc1plus.
16377 Thu Oct 28 10:00:48 1999 Nick Clifton <nickc@cygnus.com>
16379 * config/arm/arm.c: Initialise arm_structure_size_boundary to
16380 DEFAULT_STRUCTURE_SIZE_BOUNDARY.
16381 * config/arm/arm.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define
16382 to the value 32 if it has not already been defined.
16383 * config/arm/netbsd.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY):
16384 Override definition in arm.h with a value of 8.
16386 Thu Oct 28 03:12:02 1999 David Starner <dstarner98@aasaa.ofe.org>
16388 * c-pragma.c (push_alignment): Don't check the return value
16391 Thu Oct 28 03:08:38 1999 Matteo Frigo <athena@fftw.org>
16393 * sparc.h (ADJUST_COST): Fix thinko.
16395 Thu Oct 28 02:44:03 1999 Glen Nakamura <glen.nakamura@usa.net>
16397 * cccp.c (rescan): Fixed obp pointer handling around call to
16398 check_expand subroutine.
16400 Thu Oct 28 02:15:22 1999 Jeffrey A Law (law@cygnus.com)
16402 * gcse.c (delete_null_pointer_checks): Only record non-null info
16403 for pseudos when examining stores.
16405 * arm.md (adddi3, adddi_sesidi_di, adddi_sesidi_di): Add
16406 splitters for these patterns. Use "#" for output templates.
16407 (addsi3_carryin_shift): New pattern.
16409 Thu Oct 28 10:20:02 1999 Geoffrey Keating <geoffk@cygnus.com>
16411 * config/rs6000/rs6000.md (movsf): Don't convert a SUBREG
16412 of the function return register into a plain REG until
16413 after function inlining is done.
16415 Wed Oct 27 15:21:46 1999 Richard Henderson <rth@cygnus.com>
16417 * jump.c (jump_optimize_1): If we did cross-jumping, and
16418 the data will matter, rebuild the CFG.
16419 * reg-stack.c (reg_to_stack): Only (re)build the CFG if
16420 not optimizing. Don't run shorten_branches.
16421 * toplev.c (rest_of_compilation): Run shorten_branches after
16424 Wed Oct 27 12:33:40 1999 Mark Mitchell <mark@codesourcery.com>
16426 * rtl.h (note_stores): Add additional paramter.
16427 * rtlanal.c (reg_set_p_1): Take additional paramter.
16428 (reg_set_last_1): Likewise.
16429 (reg_set_p): Adjust call to note_stores.
16430 (reg_set_last): Likewise.
16431 (note_stores): Pass data parameter to worker function.
16432 * alias.c (record_set): Take additional parameter.
16433 (init_alias_analysis): Pass it.
16434 * caller-save.c (mark_set_regs): Take additional parameter.
16435 (save_call_clobbered_regs): Pass NULL to note_stores.
16436 * combine.c (set_nonzero_bits_and_sign_copies): Take additional
16438 (record_dead_and_set_regs_1): Likewise.
16439 (reg_dead_at_p_1): Likewise.
16440 (combine_instructions): Adjust calls to note_stores.
16441 (try_combine): Likewise.
16442 (record_dead_insn): Remove.
16443 (record_dead_and_set_regs): Adjust calls to note_stores.
16444 (reg_dead_at_p): Likewise.
16445 * cse.c (invalidate_skipped_set): Take additional parameter.
16446 (cse_check_loop_start): Likewise.
16447 (cse_check_loop_start_value): Remove.
16448 (cse_set_around_loop): Adjust calls to note_stores.
16449 * flow.c (notice_stack_pointer_modification): Take additional
16450 parameter. Remove duplicate declaration.
16451 (record_volatile_insns): Adjust calls to note_stores.
16452 * gcse.c (record_set_info): Take additional parameter.
16453 (record_last_set_info): Likewise.
16454 (invalidate_nonnull_info): Likewise.
16455 (record_set_insn): Remove.
16456 (compute_sets): Adjust calls to note_stores.
16457 (last_set_insn): Remove.
16458 (compute_hash_table): Adjust calls to note_stores.
16459 (insert_insn_end_bb): Likewise.
16460 (delete_null_pointer_checks): Likewise.
16461 * global.c (mark_reg_store): Take additional parameter.
16462 (mark_reg_clobber): Likewise.
16463 (reg_becomes_live): Likewise.
16464 (global_conflicts): Adjust calls to note_stores.
16465 (build_insn_chain): Likewise.
16466 * integrate.c (note_modified_parmregs): Take additional parameter.
16467 (mark_stores): Likewise. Make it static.
16468 (save_for_inline_nocopy): Adjust calls to note_stores.
16469 (try_constants): Likewise.
16470 * integrate.h (mark_stores): Remove declaration.
16471 * jump.c (mark_modified_reg): Take additional parameter.
16472 (thread_jumps): Adjust calls to note_stores.
16473 * local-alloc.c (validate_equiv_mem_from_store): Take additional
16475 (no_equiv): Likewise.
16476 (reg_is_set): Likewise.
16477 (validate_equiv_mem): Adjust calls to note_stores.
16478 (update_equiv_regs): Likewise.
16479 (block_alloc): Likewise.
16480 * loop.c (note_set_pseudo_multiple_uses_retval): Remove.
16481 (note_addr_stored): Take additional parameter.
16482 (note_set_pseudo_multiple_uses): Likewise.
16483 (record_initial): Likewise.
16484 (prescan_loop): Adjust calls to note_stores.
16485 (strength_reduce): Likewise.
16486 (check_dbra_loop): Likewise.
16487 * regmove.c (flags_set_1): Take additional paramter.
16488 (mark_flags_life_zones): Adjust calls to note_stores.
16489 * reload1.c (mark_not_eliminable): Take additional parameter.
16490 (forget_old_reloads_1): Likewise.
16491 (reload_cse_invalidate_rtx): Likewise.
16492 (reload_cse_check_clobber): Likewise.
16493 (reload_combine_note_store): Likewise.
16494 (move2add_note_store): Likewise.
16495 (reload): Adjust calls to note_stores.
16496 (reload_as_needed): Likewise.
16497 (emit_reload_insns): Likewise.
16498 (reload_cse_regs_1): Likewise.
16499 (reload_cse_record_set): Adjust calls to reload_cse_invalidate_rtx.
16500 (reload_combine): Adjust calls to note_stores.
16501 * resource.c (update_live_status): Take additional paramter.
16502 (mark_target_live_regs): Adjust calls to note_stores.
16503 * stupid.c (find_clobbered_regs): Take additional parameter.
16504 (stupid_life_analysis): Adjust calls to note_stores.
16506 Wed Oct 27 19:26:12 1999 Nick Clifton <nickc@cygnus.com>
16508 * config/arm/coff.h (STRUCTURE_SIZE_BOUNDARY): Delete
16511 * config/arm/elf.h (STRUCTURE_SIZE_BOUNDARY): Delete
16514 * config/arm/arm.h (STRUCTURE_SIZE_BOUNDARY): Define in terms
16515 of the variable arm_structure_size_boundary.
16517 Wed Oct 27 02:05:58 1999 Mark P. Mitchell <mark@codesourcery.com>
16519 * alias.c (init_alias_analysis): Allocate reg_known_value and
16520 reg_known_equiv_p on the heap. Likewise for new_reg_base_value
16522 (end_alias_analysis): Free reg_known_value and reg_known_equiv_p.
16523 * cse.c (cse_main): Call end_alias_analysis.
16524 * haifa-sched.c (schedule_insns): Likewise.
16525 * local-alloc. (update_equiv_regs): Likewise.
16526 * reload1.c (reload_cse_regs): Likewise.
16528 Wed Oct 27 01:49:17 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16530 * sparc/sparc.c (sparc_override_options): Clear MASK_FPU_SET.
16531 * sparc/sparc.h (TARGET_SWITCHES): Add "fpu" entry for reverse
16532 mapping from MASK_FPU.
16534 Wed Oct 27 01:42:26 1999 Scott Christley <scottc@net-community.com>
16536 * sparc.md (call): Don't bound structure return size to 0xfff.
16538 Wed Oct 27 00:56:59 1999 Richard Henderson <rth@cygnus.com>
16540 * resource.c (mark_target_live_regs): Check that the target
16541 insn wasn't created after compute_bb_for_insn.
16543 Tue Oct 26 23:15:03 1999 Mark Mitchell <mark@codesourcery.com>
16545 * ggc-page.c (poison_pages): Don't be overzealous.
16547 Tue Oct 26 23:29:18 1999 Jeffrey A Law (law@cygnus.com)
16549 * alias.c: Update comments for ADDRESS.
16550 (nonlocal_reference_p): Look inside the ADDRESS to determine if
16551 it is a local memory reference.
16553 * c-typeck.c (build_function_call): Check that the built-in
16554 function is of class BUILT_IN_NORMAL before trying to recongize
16555 it as BUILT_IN_ABS.
16556 * calls.c (calls_function_1): Similarly for BUILT_IN_ALLOCA.
16557 * stmt.c (expand_end_cae): Similarly for BUILT_IN_CLASSIFY_TYPE.
16559 Wed Oct 27 00:14:13 1999 Robert Lipe <robertlipe@usa.net>
16561 * gcse.c (expr_reaches_here_p): Use xcalloc and explit free instead
16563 (pre_gcse): Likewise.
16564 (hoist_expr_reaches_here_p): Likewise.
16565 (hoist_code): Likewise.
16566 (pre_expr_reaches_here_p): Replace alloca with xcalloc. Move core
16568 (pre_expr_reaches_here_p_work): ... here.
16569 (expr_reaches_here_p): Replace alloca with xcalloc. Move core
16571 (expr_reaches_here_p_work): ... here.
16573 Tue Oct 26 20:42:45 1999 Richard Henderson <rth@cygnus.com>
16575 * resource.c (find_basic_block): Delete.
16576 (mark_target_live_regs, incr_ticks_for_insn): Use BLOCK_NUM instead.
16577 (init_resource_info): Call compute_bb_for_insn.
16579 Tue Oct 26 20:21:02 1999 Richard Henderson <rth@cygnus.com>
16581 * flow.c (merge_blocks_move_predecessor_nojumps): Cope
16582 with already adjacent blocks, but no fallthru.
16583 (merge_blocks_move_successor_nojumps): Simplify.
16584 (debug_flow_info): New.
16586 * toplev.c (rest_of_compilation): Open jump1 dump file before
16587 jump and close after, as opposed to just using dump_rtl.
16589 Wed Oct 27 03:09:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16591 * reload.h (earlyclobber_operand_p): Declare.
16592 * reload.c (earlyclobber_operand_p): Don't declare. No longer static.
16593 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
16594 an earlyclobbered output conflict with RELOAD_INPUT reloads - handle
16595 case where the RELOAD_OTHER reload is new. Use earlyclobber_operand_p.
16597 Tue Oct 26 18:23:38 1999 Jan Hubicka <hubicka@freesoft.cz>
16598 Richard Henderson <rth@cygnus.com>
16600 * emit-rtl.c (emit_block_insn_before): New.
16601 (emit_block_insn_after): New.
16602 * basic-block.h: Declare them.
16604 * bitmap.h: Protect from multiple inclusion.
16606 * recog.c (scratch_operand): Handle VOIDmode correctly.
16608 * rtl.h (JUMP_CROSS_JUMP_DEATH_MATTERS): New.
16610 * builtins.c (expand_builtin_apply_args_1): Remove STACK_REGS hack.
16611 * function.c (assign_parms): Likewise.
16612 * global.c (global_conflicts): Clarify STACK_REGS commentary.
16614 * reg-stack.c (max_uid): Remove.
16615 (blocks, block_begin, block_end, block_drops_in): Remove.
16616 (block_stack_in, block_out_reg_set, block_number): Remove.
16617 (struct block_info_def, BLOCK_INFO): New.
16618 (enum emit_where): New.
16619 (current_block): New.
16620 (BLOCK_NUM): Remove.
16621 (mark_regs_pat, record_label_references): Remove.
16622 (record_reg_life_pat, record_reg_life, find_blocks): Remove.
16624 (goto_block_pat, print_blocks, dump_stack_info): Remove.
16625 (reg_to_stack): Simplified test for existance of fp code. Use
16626 flow.c code. Call shorten_branches after cross-jump opt.
16627 (check_asm_stack_operands): Renamed from record_asm_reg_life.
16628 Return false if the asm doesn't use stack regs. Don't do life
16629 analysis on the asm.
16630 (emit_pop_insn): Replace function pointer arg `when' with
16631 enum `where'. Update all callers.
16632 (change_stack): Likewise. Update basic block end.
16633 (emit_swap_insn): Use current_block->head to limit reverse search
16634 for start of block. Use emit_block_insn_after.
16635 (subst_stack_regs_pat): Handle USE and CLOBBER patterns.
16636 (subst_asm_stack_regs): Use check_asm_stack_operands. Use direct
16637 structure assignment instead of bcopy.
16638 (print_stack): New.
16639 (convert_regs_entry, convert_regs_exit): New.
16640 (convert_regs_1, convert_regs_2): Split out from convert_regs.
16641 Work on basic blocks and the CFG.
16642 (convert_regs): Use them.
16644 * i386.c (output_fix_trunc): Remove code for DImode input operand
16645 not at top-of-stack.
16646 * i386.c (fix_truncdfdi2, fix_truncsfdi2): Use scratch with
16648 (fix_truncdi_1): Allow any mode scratch.
16650 Tue Oct 26 13:30:35 1999 Richard Henderson <rth@cygnus.com>
16652 * alpha.h (TARGET_MEM_FUNCTIONS): Define here.
16653 * linux.h, netbsd.h, vms.h: Not here.
16655 1999-10-26 Gavin Romig-Koch <gavin@cygnus.com>
16657 * config/mips/mips.h (ISA_HAS_64BIT_REGS,ISA_HAS_BRANCHLIKELY,
16658 ISA_HAS_FP4,ISA_HAS_CONDMOVE): New.
16659 (GENERATE_BRANCHLIKELY,HAVE_SQRT_P,
16660 CONDITIONAL_REGISTER_USEAGE): Use them.
16661 * config/mips/mips.c (mips_move_1word,mips_move_2words,
16662 gen_conditional_branch,override_options) : Use them.
16663 * config/mips/mips.md : Use them.
16665 Tue Oct 26 13:09:23 1999 Richard Henderson <rth@cygnus.com>
16667 * i386.md (zero_extendqihi2): Use SImode register name with andl.
16669 Tue Oct 26 12:35:38 1999 Richard Henderson <rth@cygnus.com>
16671 * integrate.c (function_cannot_inline_p): Don't allow inlining
16674 Tue Oct 26 14:10:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16676 * c-parse.in (cast_expr): Constify.
16678 * cccp.c (special_symbol): Likewise.
16680 * cse.c (hash_cse_reg_info, cse_reg_info_equal_p): Likewise.
16682 * dwarf2out.c (base_type_die): Likewise.
16684 * global.c (allocno_compare): Likewise.
16686 * local-alloc.c (qty_compare_1, qty_sugg_compare_1): Likewise.
16688 * regclass.c (fix_register): Likewise.
16690 * rtl.h (fix_register): Likewise.
16692 * stupid.c (stupid_reg_compare): Likewise.
16694 * toplev.c (decode_f_option): Likewise.
16696 * tree.c (build_complex_type): Likewise.
16698 Tue Oct 26 18:35:25 1999 Richard Earnshaw <rearnsha@arm.com>
16700 * output.h: Don't unnecessarily conditionalize prototypes on TREE_CODE.
16702 Tue Oct 26 15:42:56 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16704 * reload.c (find_reloads): Compute mode and nregs fields of all
16706 * reload1.c (calculate_needs_all_insns): Simplify a bit.
16707 (calculate_needs): Use precomputed mode/nregs values.
16708 (allocate_reload_reg): Likewise.
16710 (failed_reload, set_reload_reg): ... new functions.
16711 (choose_reload_regs_init): New function, mostly broken out from...
16712 (choose_reload_regs): ... here. Lose all the save_xxx nonsense.
16713 Also lose one #if 0 block.
16715 Tue Oct 26 02:48:32 1999 Marc Espie <espie@cvs.openbsd.org>
16717 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET): Fix target name
16720 Tue Oct 26 01:27:32 1999 Mark Mitchell <mark@codesourcery.com>
16722 * tree.h (BLOCK_TYPE_TAGS): Remove.
16723 (BLOCK_END_NOTE): Likewise.
16724 (BLOCK_LIVE_RANGE_FLAG): Likewise.
16725 (BLOCK_LIVE_RANGE_START): Likewise.
16726 (BLOCK_LIVE_RANGE_END): Likewise.
16727 (tree_block): Remove live_range_flag, live_range_var_flag, and
16728 type_tags. Remove end_note, live_range_start, and live_range_end.
16729 (remember_end_note): Remove prototype.
16730 * tree.c (build_block): Don't set BLOCK_TYPE_TAGS.
16731 * c-decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call
16733 * ggc-common.c (ggc_mark_tree_children): Don't mark
16734 BLOCK_TYPE_TAGS or BLOCK_END_NOTE.
16735 * integrate.c (adjust_copied_decl_tree): Remove.
16736 * print-tree.c (print_node): Don't print BLOCK_TYPE_TAGS.
16737 * stmt.c (last_block_end_note): Remove.
16738 (init_stmt): Don't add a GC root for it.
16739 (expand_fixup): Don't set it.
16740 (remember_end_note): Remove.
16741 (expand_end_bindings): Don't set last_block_end_note.
16743 Tue Oct 26 00:41:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16745 * reload1.c (reload_reg_free_for_value_p): Show
16746 RELOAD_FOR_OTHER_ADDRESS reloads can conflict with RELOAD_OTHER
16749 Mon Oct 25 23:54:45 1999 Geoff Keating <geoffk@cygnus.com>
16751 * expmed.c (extract_bit_field): Allow for the case of non-integer
16752 objects that are smaller than a word (like SFmode on a 64-bit
16755 * loop.c (basic_induction_var): A non-integer variable which is
16756 being set by a paradoxical subreg is probably not a biv.
16758 1999-10-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16760 * prefix.c (translate_name) Check for empty prefix string.
16762 Mon Oct 25 23:10:45 1999 Andreas Schwab <schwab@suse.de>
16764 * Makefile.in (CPP_CROSS_NAME): New variable.
16765 (install-cpp): Use it instead of CPP_INSTALL_NAME for the cross
16767 (uninstall-cpp): Use CPP_INSTALL_NAME and CPP_CROSS_NAME for the
16768 names of the files to be uninstalled.
16770 Mon Oct 25 23:03:09 1999 Jeffrey A Law (law@cygnus.com)
16772 * collect2.c (IS_DIR_SEPARATOR): Define.
16773 (prefix_from_string): Use IS_DIR_SEPARATOR and DIR_SEPARATOR.
16775 * som.h (ASM_DECLARE_FUNCTION_NAME): Set PRIV_LEV for static
16778 * haifa-sched.c (add_dependence): Update the true dependency
16779 cache the first time we add a true dependence to the LOG_LINKS chain.
16781 Mon Oct 25 22:27:40 1999 Jim Kingdon <http://developer.redhat.com/>
16783 * fold-const.c (fold): Fix comment.
16785 Mon Oct 25 22:49:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16787 * dbxout.c (lastfile, cwd, dbxout_type_method_1,
16788 dbxout_symbol_location, dbxout_symbol_name, dbxout_init,
16789 dbxout_start_new_source_file, dbxout_source_file,
16790 dbxout_source_line, dbxout_finish, dbxout_type_fields,
16791 dbxout_type_methods, dbxout_symbol, dbxout_prepare_symbol):
16793 (dbxout_types, dbxout_args, dbxout_symbol): Delete prototypes.
16794 (dbxout_symbol): Mark parameter `local' with ATTRIBUTE_UNUSED.
16795 (dbxout_block): Initialize variable `blocknum'.
16797 * dbxout.h (dbxout_init, dbxout_finish,
16798 dbxout_start_new_source_file, dbxout_source_file, dbxout_types,
16799 dbxout_args, dbxout_source_line): Constify a char*.
16801 * dwarfout.c (dwarf_tag_name, dwarf_attr_name,
16802 dwarf_stack_op_name, dwarf_typemod_name, dwarf_fmt_byte_name,
16803 dwarf_fund_type_name, name_attribute, stmt_list_attribute,
16804 low_pc_attribute, high_pc_attribute, body_begin_attribute,
16805 body_end_attribute, comp_dir_attribute, sf_names_attribute,
16806 src_info_attribute, mac_info_attribute, producer_attribute,
16807 lookup_filename, generate_macinfo_entry, fundamental_type_code,
16808 dwarfout_line, dwarfout_start_new_source_file, dwarfout_define,
16809 dwarfout_undef): Constify a char*.
16810 (add_incomplete_type, retry_incomplete_types): Add prototypes.
16812 * dwarfout.h (dwarfout_define, dwarfout_undef,
16813 dwarfout_start_new_source_file, dwarfout_line): Constify a char*.
16815 1999-10-25 Gavin Romig-Koch <gavin@cygnus.com>
16817 * config/mips/mips.h (MIPS_ISA_DEFAULT): Insure it's defined.
16818 (MULTILIB_ISA_DEFAULT): New.
16819 (MULTILIB_DEFAULTS): Use it.
16820 * config/mips/mips.c (): Remove the now unnecessary definition
16821 of MIPS_ISA_DEFAULT.
16822 * config/mips/elf64.h (MULTILIB_DEFAULTS): Remove the now
16823 unnecessary definition.
16825 Mon Oct 25 22:08:35 1999 Richard Earnshaw (rearnsha@arm.com)
16827 * arm.md (pic_load_addr): Add constraints to operand 1.
16829 1999-10-25 Bruce Korb <autogen@linuxbox.com>
16831 * fixinc/genfixes: Provide a means for specifying -D options to
16834 Mon Oct 25 00:42:35 1999 Jeffrey A Law (law@cygnus.com)
16836 * arm.c (arm_override_options): Correct initialization of
16837 arm_fast_multiply, arm_arch4, arm_arch5, arm_ld_sched,
16838 arm_is_strong, and arm_is_6_or_7.
16840 * loop.c (note_set_pseudo_multiple_uses_retval): New variable.
16841 (note_set_pseudo_multiple_uses): New function.
16842 (check_dbra_loop): Use not_set_pseudo_multiple_uses to determine
16843 if a pseudo set in the loop exit is used elsewhere.
16845 Sun Oct 24 20:52:40 1999 Mark Mitchell <mark@codesourcery.com>
16847 * i386.md (mulsi3): Tweak to work with SCO OSR5 COFF assembler.
16849 Sun Oct 24 21:02:46 1999 Richard Henderson <rth@cygnus.com>
16851 * i386.md (*lea_0): Collapse addsi_0, addsi_lea_[123] into
16852 a single load-address pattern.
16854 Sun Oct 24 19:33:24 1999 Mark P. Mitchell <mark@codesourcery.com>
16856 * haifa-sched.c (schedule_insns): Don't assign LUIDs differently
16857 depending on whether or not line-number notes are present.
16859 Sun Oct 24 20:29:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16861 * cccp.c (progname, file_buf, default_include, include_file,
16862 macrodef, definition, hashval, wchar_type, user_label_prefix,
16863 directive, out_fname, if_stack, safe_write, index0, get_lintcmd,
16864 expand_to_temp_buffer, is_system_include, base_name,
16865 absolute_filename, read_name_map, open_include_file,
16866 record_control_macro, check_precompiled, check_preconditions,
16867 pcfinclude, pass_thru_directive, create_definition,
16868 check_macro_name, comp_def_part, collect_expansion,
16869 check_assertion, read_token_list, assertion_install,
16870 assertion_lookup, eval_if_expression, conditional_skip,
16871 validate_else, skip_quoted_string, quote_string, macarg1,
16872 error_from_errno, install, lookup, hashf, dump_defn_1,
16873 perror_with_name, pfatal_with_name, main, trigraph_pcp,
16874 check_white_space, rescan, handle_directive, monthnames,
16875 special_symbol, do_include, remap_include_file, write_output,
16876 arglist, do_assert, do_unassert, do_line, do_error, do_once,
16877 do_ident, do_sccs, do_xifdef, skip_if_group,
16878 output_line_directive, macroexpand, macarg, change_newlines,
16879 initialize_builtins, make_definition): Constify a char*.
16881 * pcp.h (stringdef): Likewise.
16883 Sun Oct 24 13:29:28 1999 Richard Henderson <rth@cygnus.com>
16885 * unroll.c (copy_loop_body): Examine SET_DEST of single_set
16888 Sun Oct 24 13:14:20 1999 Graham <grahams@rcp.co.uk>
16889 Richard Henderson <rth@cygnus.com>
16891 * alias.c: Include ggc.h.
16892 (reg_base_value, new_reg_base_value, reg_base_value_size): Make static.
16893 (record_set): Verify enough room in reg_base_value.
16894 (init_alias_analysis): Allocate reg_base_value with xcalloc.
16895 Register it as a GC root.
16896 (end_alias_analysis): Free reg_base_value. Remove it as a GC root.
16897 * Makefile.in (alias.o): Depend on ggc.h.
16899 * unroll.c (unroll_loop): Verify the insn before a barrier
16900 is a JUMP_INSN before checking JUMP_LABEL.
16902 Sun Oct 24 15:46:44 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16904 * mips/bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
16905 * mips/iris4.h (ASM_OUTPUT_ASCII): Likewise.
16906 * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
16907 * mips/mips.h (ASM_OUTPUT_ASCII): Likewise.
16908 * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
16909 * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
16911 Sun Oct 24 15:35:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16913 * output.h (ctors_section, dtors_section, bss_section): Prototype.
16915 * alpha/alpha-interix.h (text_section): Delete prototype.
16916 * alpha/elf.h (text_section): Likewise.
16917 * arm/linux-elf.h (text_section): Likewise.
16918 * arm/linux-telf.h (text_section): Likewise.
16919 * c4x/c4x.h (text_section): Likewise.
16920 * dsp16xx/dsp16xx.h (bss_section): Likewise.
16921 * elfos.h (text_section): Likewise.
16922 * i386/aix386ng.h (text_section): Likewise.
16923 * i386/i386-interix.h (text_section): Likewise.
16924 * i386/sco5.h (text_section): Likewise.
16925 * i386/svr3gas.h (text_section): Likewise.
16926 * nextstep.h (text_section): Likewise.
16927 * psos.h (text_section): Likewise.
16928 * ptx4.h (text_section): Likewise.
16929 * svr3.h (text_section): Likewise.
16930 * svr4.h (text_section, ctors_section, dtors_section): Likewise.
16932 Sun Oct 24 15:20:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16934 * final.c (peephole): Delete prototype.
16936 * gcse.c (process_insert_insn, pre_edge_insert): Add prototypes.
16937 (pre_insert_copies): Remove unused variable `bb'.
16939 * genrecog.c (debug_decision_0, debug_decision_list, main): Add
16942 * output.h (peephole): Add prototype.
16944 Sun Oct 24 11:35:30 1999 Mark P. Mitchell <mark@codesourcery.com>
16946 * config/mips/iris6.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Define to
16949 Sat Oct 23 21:13:00 1999 Mark Mitchell <mark@codesourcery.com>
16951 * integrate.c (integrate_decl_tree): Tweak setting of DECL_CONTEXT
16952 for inlined declarations.
16954 Fri Oct 22 18:05:43 1999 Jeffrey A Law (law@cygnus.com)
16956 * arm.c (logical_binary_operator): New fucntion.
16957 * arm.h (logical_binary_operator): Declare it.
16958 (PREDICATE_CODES): Handle logical_binary_operator.
16959 * arm.md (anddi3, anddi_zesidi_di, anddi_sesdi_di): Use "#" for
16960 output constraints. Add appropriate splitters.
16961 (anddi_notdi_di, anddi_notzesidi_di, anddi_notsesidi_di): Likewise.
16962 (iordi3, iordi_zesidi_di, iordi_sesidi_di): Likewise.
16963 (xordi3, xordi_zesidi_di, xordi_sesidi_di): Likewise.
16965 Fri Oct 22 23:46:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16967 * genoutput.c (struct operand_data): New elt eliminable.
16968 (output_operand_data): Write it.
16969 (scan_operands): Set it for MATCH_OPERAND, clear for other matchers.
16970 (compare_operands): Take it into account.
16971 * recog.h (struct insn_operand_data): New elt eliminable.
16972 * reload1.c (check_eliminable_occurrences, elimination_effects): New
16974 (old_asm_operands_vec, new_asm_operands_vec): Delete.
16975 (eliminate_regs): Move code that detects changes to elimination
16976 target regs into new function elimination_effects.
16977 Delete one #if 0 block.
16978 Abort for USE, CLOBBER, ASM_OPERANDS and SET.
16979 (eliminate_regs_in_insn): Return immediately for USEs, CLOBBERs,
16980 ADDR_VECs, ADDR_DIFF_VECs and ASM_INPUTs.
16981 Only call eliminate_regs for real operands of the insn, not for parts
16982 of its structure or parts matched by things like match_operator.
16983 Use elimination_effects and check_eliminable_occurrences. Use
16984 copy_insn to duplicate the pattern when not in the final pass.
16986 Fri Oct 22 09:03:44 1999 Mark Mitchell <mark@codesourcery.com>
16988 * i386.md: Add missing `y' modifiers to uses of fst, fstp, fld,
16991 1999-10-22 Bruce Korb <autogen@linuxbox.com>
16993 * fixinc/README: document the "mach" machine matching test
16994 * fixinc/fixfixes.c: Implement the #else/#endif label fix
16995 * fixinc/fixtests.c: Implement the #else/#endif label test
16996 * fixinc/inclhack.def: utilize these tests and fixes
16997 * fixinc/inclhack.sh: regen
16998 * fixinc/fixincl.x: regen
16999 * fixinc/fixincl.sh: regen
17001 Thu Oct 21 20:37:19 1999 Jeffrey A Law (law@cygnus.com)
17003 * Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h. Also
17006 Thu Oct 21 20:30:19 1999 Matthias Klose <doko@debian.org>
17008 * gcc.1: Document exit codes.
17010 Thu Oct 21 12:49:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17012 * calls.c: Include tm_p.h later, so everything we need is defined.
17013 * expr.c: Likewise.
17014 * function.c: Likewise.
17016 * except.c: Include tm_p.h.
17018 * sparc.c: Likewise.
17019 (dwarf2out_cfi_label): Don't prototype.
17020 (check_return_regs, epilogue_renumber,
17021 ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
17022 ultra_find_type, ultra_build_types_avail, ultra_flush_pipeline,
17023 ultra_rescan_pipeline_state, set_extends, ultra_code_from_mask,
17024 ultra_schedule_insn): Add static prototype.
17025 (data_segment_operand, text_segment_operand): Call itself with the
17026 proper number of arguments.
17027 (sparc_flat_save_restore, sparc_v8plus_shift): Constify a char*.
17029 * sparc.h: Move all declarations to sparc-protos.h.
17030 (SELECT_RTX_SECTION): Pass a missing MODE argument to
17033 * sparc/sysv4.h (SELECT_RTX_SECTION): Likewise.
17035 * config/svr4.h (text_section, ctors_section, dtors_section): Add
17037 (ASM_OUTPUT_SECTION_NAME, UNIQUE_SECTION,
17038 ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
17039 ASM_OUTPUT_ASCII): Constify a char*.
17041 * sparc-protos.h: New file for sparc prototypes.
17043 Thu Oct 21 12:23:40 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17045 * function.c (record_insns, contains): Always declare and define.
17046 (record_insns): Mark with ATTRIBUTE_UNUSED.
17048 Thu Oct 21 13:03:49 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
17050 * config/arm/telf.h (ASM_OUTPUT_SECTION_NAME): Add %nobits option
17051 to .section when outputting a .bss section to deal with multiple
17052 .bss input sections (as happens with -fdata-sections)
17053 Also output %progbits, not @progbits so the assembler doesn't treat as
17055 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Likewise
17057 * config/arm/lib1funcs.asm (_call_via_rX): Allow compilation of
17058 thumb parts even when building with non-thumb CPUs, by forcing
17061 Wed Oct 20 22:57:58 1999 Jeffrey A Law (law@cygnus.com)
17063 * sparc.md (movsf_const_intreg): If splitting, length must be > 1.
17064 (movdf_const_intreg_sp64): Similarly.
17066 * local-alloc.c (update_equiv_regs): Check the correct insn
17067 for pre-existing REG_EQUIV notes.
17069 Wed Oct 20 20:41:46 1999 Mark Mitchell <mark@codesourcery.com>
17071 * cse.c (cse_end_of_basic_block): Don't return the end of a basic
17072 block reached by a branch if we're not going to actually process
17075 Wed Oct 20 15:18:42 1999 Jim Wilson <wilson@cygnus.com>
17077 * integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
17078 a local extern function declaration.
17080 Wed Oct 20 13:56:01 1999 Richard Henderson <rth@cygnus.com>
17082 * i386.c (ix86_expand_prologue): Properly wrap USE around
17083 reg for CALL_INSN_FUNCTION_USAGE.
17085 Thu Oct 14 18:51:37 1999 Andrew Haley <aph@cygnus.com>
17087 * config/mips/mips.md (movdf_internal1a): Allow floating-point
17088 move between GP_REGs.
17090 Wed Oct 20 15:36:11 1999 Andrew Haley <aph@cygnus.com>
17092 * config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
17093 the mode size when finding out if an offset is legal.
17095 Wed Oct 20 06:26:58 1999 Richard Henderson <rth@cygnus.com>
17097 * basic-block.h (PROP_*): Move constants from ...
17098 * flow.c: ... here.
17099 (compute_bb_for_insn): Free the array before reallocating.
17100 (update_life_info): New arg PROP_FLAGS; pass on to propagate_block.
17101 (allocate_reg_life_data): Reset all reg variables collected by
17103 (get_block_head_tail): Don't convert from bb to block.
17104 (get_bb_head_tail): New. Update all callers of get_block_head_tail.
17105 (find_insn_reg_weight): Take block not bb.
17106 (schedule_block): Don't set block num for moved insns.
17107 (schedule_region): Don't update_life_info or find_insn_reg_weight.
17108 (schedule_insns): Do it here instead.
17109 * combine.c (combine_instructions): Invoke compute_bb_for_insn
17110 before update_life_info.
17111 * recog.c (split_all_insns, peephole2_optimize): Update for
17112 new arg to update_life_info.
17113 * rtlanal.c (remove_note): Cope with NULL note.
17114 * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage
17117 Wed Oct 20 10:46:41 1999 Richard Earnshaw (rearnsha@arm.com)
17119 * jump.c (jump_optimize_1): More accurately detect casesi insns.
17121 * flow.c (merge_blocks_move_predecessor_nojumps): Re-order the basic
17122 block records so that merge_blocks_nomove will clean up correctly.
17123 (split_edge): Handle casesi insns.
17125 * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
17127 Tue Oct 19 23:43:50 1999 Jeffrey A Law (law@cygnus.com)
17129 * pa.md (call, call_value): Do not emit a blockage after restoring
17132 Tue Oct 19 17:22:39 1999 Mark Mitchell <mark@codesourcery.com>
17134 * c-typeck.c (c_expand_asm_operands): Fix typo.
17136 Tue Oct 19 18:42:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17138 * arm.c (fpu_rhs_operand): Verify modes.
17139 (fpu_add_operand): Likewise.
17140 (di_operand): Likewise.
17141 (soft_df_operand): Likewise.
17143 Tue Oct 19 15:26:11 1999 Richard Earnshaw (rearnsha@arm.com)
17145 * arm.c (arm_return_in_memory): APCS rules state that the elements
17146 of a structure returned in a register must be 'integer-like'.
17148 1999-10-19 Bruce Korb <autogen@linuxbox.com>
17150 * fixinc/Makefile.in: Change the generation rules to run `genfixes'
17151 in the source tree when the generated targets are out of date
17152 * fixinc/genfixes: Alter it to run individual fixes for make.
17153 * fixinc/README: rewrite
17154 * fixinc/inclhack.def: moved initial comments to README
17156 Tue Oct 19 14:01:34 1999 Nick Clifton <nickc@cygnus.com>
17158 * toplev.c (main): Do not generate an error message if an
17159 unrecognised command line switch is recognisable by another
17160 language. If extra_warnings are enabled, then generate a
17161 warning message instead.
17163 Tue Oct 19 11:41:12 1999 Mumit Khan <khan@xraylith.wisc.edu>
17165 * c-pragma.h (PRAGMA_INSERT_ATTRIBUTES): Delete macro.
17166 (insert_pack_attributes): Delete prototype.
17168 * c-pragma.c (default_alignment): New static variable.
17169 (push_alignment): Initialize to current effective alignment.
17170 (pop_alignment): Use to set new alignment.
17171 (insert_pack_attributes): Delete function.
17172 (handle_pragma_token): Set default_alignment as well each time
17173 a #pragma pack(<n>) is encountered.
17175 Tue Oct 19 02:03:00 1999 Jeffrey A Law (law@cygnus.com)
17177 * reg-stack.c (stack_result): Aggregates are not returned in
17180 Tue Oct 19 01:26:48 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
17182 * fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
17184 Mon Oct 18 15:19:41 1999 Richard Henderson <rth@cygnus.com>
17186 * basic-block.h (set_block_num): Declare.
17187 * flow.c (update_life_info): Don't call compute_bb_for_insn
17188 or free_basic_block_vars.
17189 * haifa-sched.c (remove_dependence): Conditionalize on HAVE_cc0.
17190 (insn_orig_block): Remove.
17191 (INSN_BLOCK): Remove. Update all callers to use BLOCK_NUM.
17192 (schedule_block): Keep BLOCK_NUM up-to-date.
17193 (schedule_insns): Use compute_bb_for_insn.
17194 * recog.c (split_all_insns): Likewise.
17195 (peephole2_optimize): Likewise.
17197 Mon Oct 18 18:50:51 1999 Andreas Schwab <schwab@suse.de>
17199 * config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
17200 if the pic register is used.
17202 Mon Oct 18 02:38:46 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17204 * c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
17205 (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of
17206 if that tests TREE_PERMANENT.
17208 Mon Oct 18 01:41:35 1999 Jeffrey A Law (law@cygnus.com)
17210 * cse.c (invalidate_for_call): Do not remove memory references from
17211 the table here. It's handled elsewhere.
17213 * haifa-sched.c (add_dependence): Protect references to the
17214 true dependency cache with #ifdef INSN_SCHEDULING.
17215 (remove_dependence): Similarly.
17217 * mn10200.md (outline_epilogue_jump): Embed a (return) to indicate
17218 to the cfg code that this is a return instruction.
17219 * mn10300.md (return_internal): Similarly.
17221 * combine.c (get_last_value): If the last set of a register
17222 is after subst_low_cuid, then we can not use it to determine
17223 the register's last value.
17225 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
17227 * Makefile.in: Back out previous change.
17229 Sun Oct 17 15:22:50 1999 Jeffrey A Law (law@cygnus.com)
17231 * pa.c (move_operand): Reject (lo_sum (reg) (unspec ...)).
17233 * haifa-sched.c (add_dependence): Only check/update the cache
17235 (remove_dependence): Likewise.
17236 (schedule_insns): Only create the true_dependency_cache if the
17237 average number of instructions in a basic block is very large.
17239 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
17241 * Makefile.in (ggc-common.o): Depend on genrtl.h.
17242 (ggc-simple.o): Likewise.
17243 (ggc-page.o): Likewise.
17245 Sun Oct 17 02:09:50 1999 Andrew MacLeod <amacleod@cygnus.com>
17247 * basic-block.h (pre_edge_lcm, pre_edge_rev_lcm, compute_available):
17248 Prototype for exported functions.
17249 (pre_lcm, pre_rev_lcm): Remove prototypes.
17250 * gcse.c (compute_ae_kill): Add ae_gen and ae_kill as parameters.
17251 (compute_available): Move to lcm.c, and change parameter order.
17252 (one_classic_gcse_pass): Call compute_ae_kill with parameters.
17253 (pre_insert, s_preds, s_succs, num_preds, num_succs): Delete.
17254 (gcse_main): No longer call compute_preds_succs. Rebuild the
17255 set table after reach pre pass.
17256 (pre_insert_map, pre_delete_map, edge_list): New.
17257 (alloc_pre_mem): Allocate edge vectors.
17258 (free_pre_mem): Delete edge vectors.
17259 (compute_pre_data): Call new edge based lcm routines.
17260 (process_insert_insn): New function.
17261 (insert_insn_end_bb): Use it.
17262 (pre_edge_insert): New function.
17263 (pre_insert_copy_insn): Formatting fixes. Update BLOCK_END as
17265 (pre_insert_copies): Revamp using new edge based lcm outputs.
17266 (pre_delete): Likewise.
17267 (one_pre_gcse_pass): Insert & remove fake edges to the exit
17269 (compute_code_hoist_vbeinout): New new edge based routines.
17270 * lcm.c: Remove all the old LCM functions. Replace with new ones
17271 that work with the new cfg datastructures and work with edges
17274 Sun Oct 17 00:44:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17276 * reload.h (struct reload): Add new fields "mode" and "nregs".
17277 * reload1.c: Change all occurrences of reload_mode and reload_nregs
17278 to reference the "mode" and "nregs" field within struct reload.
17280 Sat Oct 16 21:50:28 1999 Jeffrey A Law (law@cygnus.com)
17282 * haifa-sched.c (true_dependency_cache): New.
17283 (add_dependence): Use the true dependency cache to avoid expensive
17284 walks down the LOG_LINKS dependency list. Add entries to the
17285 cache as necessary.
17286 (remove_dependence): Remove entries from the true dependency cache
17288 (schedule_insns): Allocate and initialize and free the true
17291 * haifa-sched.c (schedule_insns): Do not remove inter-block
17292 dependencies anymore.
17294 Sat Oct 16 11:19:52 1999 Richard Henderson <rth@cygnus.com>
17296 * i386/t-cygwin (winnt.o): Depend on RTL_H and TREE_H.
17297 * i386/t-winnt: Likewise.
17299 Sat Oct 16 11:11:54 1999 Richard Henderson <rth@cygnus.com>
17301 * ggc-page.c (init_ggc): Work around SunOS unaligned mmap bug.
17303 1999-10-16 Manfred Hollstein <mhollstein@cygnus.com>
17305 * Makefile.in (LANGUAGES): Omit "proto".
17306 (clean): Remove stale comment about removing unprotoize.c.
17308 Sat Oct 16 11:29:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17310 * protoize.c (safe_read, safe_write): Avoid the gcc extension of
17311 using arithmetic on void pointers.
17313 Sat Oct 16 02:48:22 1999 Jeffrey A Law (law@cygnus.com)
17315 * haifa-sched.c (compute_block_forward_dependencies): Only check
17316 for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
17318 Sat Oct 16 00:07:01 1999 Richard Henderson <rth@cygnus.com>
17320 * gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
17321 (expr_equiv_p): Reject memories with different alias sets.
17323 Fri Oct 15 15:17:29 1999 Greg McGary <gkm@gnu.org>
17325 * flags.h (flag_bounds_check, flag_bounded_pointers): New extern decls.
17326 * toplev.c (flag_bounds_check, flag_bounded_pointers): New flags.
17327 (f_options): Add "bounded-pointers" and "bounds-check" entries.
17328 * c-lang.c (lang_init_options): Set flag_bounds_check as "unspecified".
17329 (lang_init): Set default for flag_bounds_check if still "unspecified".
17331 Sat Oct 16 13:42:29 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17333 * config/c4x/c4x.md (HF mode patterns): Add missing modes.
17335 Sat Oct 16 13:37:46 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17337 * config/c4x/c4x.md (movstrqi_small): Utilise parallel move
17340 Sat Oct 16 13:26:47 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17342 * config/c4x/c4x.md (*db_noclobber,
17343 *decrement_and_branch_until_zero_noclobber): New patterns and
17344 associated splitters.
17346 Sat Oct 16 13:13:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17348 * config/c4x/c4x.md (parallel instruction patterns): Rework
17349 constraints to keep reload happy.
17351 Sat Oct 16 13:03:16 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17353 * config/c4x/c4x.md (*absqi2_noclobber, *negqi2_noclobber,
17354 *one_cmplqi2_noclobber, *subqi3_noclobber, *andqi3_255_noclobber,
17355 *andqi3_65535_noclobber, *andnqi3_noclobber, *xorqi3_noclobber):
17356 Add new patterns and associated post-reload splitters.
17358 Sat Oct 16 12:42:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17360 * config/c4x/c4x.c (c4x_emit_libcall): Use ggc_alloc_string.
17362 Sat Oct 16 12:34:44 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17364 * config/c4x/c4x.c (c4x_rptb_insert): Emit rpts_top pattern
17366 * config/c4x/c4x.md (rpts_top): New pattern and splitter.
17368 Sat Oct 16 12:26:30 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17370 * config/c4x/c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF
17373 Fri Oct 15 17:02:09 1999 Jeffrey A Law (law@cygnus.com)
17375 * pa.c (move_operand): Rely on memory_address_p to determine the
17376 validity of non-indexed memory addresses.
17377 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow LO_SUM with a symbolic
17378 operand in DFmode and SFmode when generating PA2.0 code.
17380 Fri Oct 15 14:25:19 1999 Richard Henderson <rth@cygnus.com>
17382 * print-rtl.c (print_rtx): Limit last 'u' change to LABEL_REF.
17384 Fri Oct 15 13:48:45 1999 Richard Henderson <rth@cygnus.com>
17386 * mips.c (function_prologue): Fix argument types.
17387 * mips.md (casesi): Use emit_jump_insn for casesi_internal.
17388 (casesi_internal): Write to the scratch register.
17390 1999-10-15 11:16 -0700 Zack Weinberg <zack@bitmover.com>
17392 * cppexp.c (cpp_parse_escape): Make static. Change second arg
17394 (parse_charconst): Delete unnecessary cast when calling
17396 (cpplib.h): Kill prototype of cpp_parse_escape.
17398 Fri Oct 15 11:02:46 1999 Richard Henderson <rth@cygnus.com>
17400 Based on patch from Michael Gschwind <mikeg@watson.ibm.com>:
17401 * unroll.c (unroll_loop): Cast return value of alloca.
17402 * i370/i370.c: Include function.h and toplev.h.
17403 (i370_label_scan): Remove c++ commented abort.
17404 * i370/i370.h (HANDLE_PRAGMA): Takes three arguments.
17405 (ASM_OUTPUT_LABELREF): Fix TOUPPER/else broken 16 Sept.
17406 * i370/xm-i370.h (HOST_BITS_PER_LONGLONG): Define.
17407 * i370/xm-mvs.h, i370/xm-oe.h: Likewise.
17409 Fri Oct 15 03:01:01 1999 Loren Rittle <ljrittle@acm.org>
17411 * config/t-freebsd: Do not override USER_H.
17412 * ginclude/stddef.h: Generalize check for _MACHINE_ANSI_H_.
17414 Fri Oct 15 02:37:28 1999 Alastair J. Houghton <ajh8@doc.ic.ac.uk>
17415 Mumit Khan <khan@xraylith.wisc.edu>
17417 * c-parse.in (component_decl): Support anonymous struct/union.
17419 * c-parse.y: Regenerate.
17420 * c-parse.c: Likewise.
17421 * objc/objc-parse.y: Likewise.
17422 * objc/objc-parse.c: Likewise.
17423 * c-decl.c (finish_struct): Don't sort the fields.
17424 (field_decl_cmp): Delete unused function.
17426 Fri Oct 15 01:20:52 1999 Richard Henderson <rth@cygnus.com>
17428 * sparc.md (movsf_const_intreg): Revert last constraint change.
17429 (movdf_const_intreg_sp32): Likewise.
17431 Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
17433 * cse.c: Include hashtab.h instead of splay-tree.h
17434 (struct cse_reg_info): No longer use variant union. Add new
17435 field "regno". All references changed to avoid union.
17436 (cse_reg_info_used_list, cse_reg_info_used_list_end): New variables.
17437 (free_cse_reg_info): Remove.
17438 (hash_cse_reg_info, cse_reg_info_equal_p): New functions.
17439 (get_cse_reg_info): Revamp to use expandable hash tables instead
17440 of splay trees. Initialize new fields in cse_reg_info structure.
17441 (new_basic_block): Similarly.
17443 Thu Oct 14 23:51:56 1999 Richard Henderson <rth@cygnus.com>
17445 * genrecog.c (message_with_line): Prototype.
17446 (validate_pattern): Pass along the set for the dest, not a flag.
17447 Fix non-lvalue message. Don't warn for VOIDmode SET_DEST of CALL.
17448 Check for PC/CC0 as sources.
17449 (nodes_identical): Check for children position match before
17450 allowing the combination.
17452 * rtl.c (read_rtx): Track line number across \\\n.
17454 Thu Oct 14 23:50:25 1999 Richard Henderson <rth@cygnus.com>
17456 * mips.h (SPECIAL_MODE_PREDICATES): New.
17457 * mips.md (*) Use nonimmediate_operand not general_operand for outputs.
17458 (movdi+1, movsi+1): Add output reload constraint.
17459 (casesi_internal): Likewise. Fix commentary.
17460 (return_internal): Use pmode_register_operand.
17462 Thu Oct 14 23:19:34 1999 Richard Henderson <rth@cygnus.com>
17464 * 1750a.md (movstrqi): Add missing output reload constraint.
17465 (call_value): Likewise.
17466 * a29k.md (cpxxx patterns): Add missing match_operator mode.
17467 (jmpfdec): Add missing inout reload constraint.
17468 * elxsi.md (addsi patterns): Add missing output reload constraint.
17469 (move from sp): Use @ alternates.
17470 (call_value): No constraint on output.
17471 * fr30.md (movsi_pop): Add missing output reload constraint.
17472 (movsf_constant_store): Likewise.
17473 (splits): Remove constraints.
17474 (subsi3): Add missing mode.
17475 * i370.md (cmpstrsi+1): Add missing output reload constraint.
17476 (call_value): Likewise.
17477 * i960.md (cmpinc/cmpdec patterns): Add inout reload constraints.
17478 * m32r.h (PREDICATE_CODES): Add seth_add3_operand.
17479 * m32r.md (movsicc_internal): Add output reload constraint.
17480 (movstrsi_internal): Add inout reload constraints.
17481 * m88k.h (reg_names): Don't declare.
17482 (SPECIAL_MODE_PREDICATES): New.
17483 * m88k.md (*): Use register_operand not reg_or_0_operand
17485 * mn10200.h (PREDICATE_CODES): New.
17486 * ns32k.md (ffs pattern): Add output reload constraint.
17487 * pdp11.md (sob pattern): Add inout reload constraint.
17488 * sh.md (splits): Remove constraints.
17489 (indirect_jump_scratch, fpu_switch): Add output reload constraint.
17490 * v850.md (pattern_is_ok_for_epilogue): Likewise.
17491 * vax.md (jgequ pattern): Add inout reload constraint.
17493 Fri Oct 15 00:05:00 1999 Jeffrey A Law (law@cygnus.com)
17495 * configure.in (djgpp): Revert previous patch.
17496 * configure: Rebuit.
17497 * config/i386/djgpp.h: Revert previous patch.
17499 Fri Oct 15 00:00:24 1999 Loren J. Rittle <ljrittle@acm.org>
17501 * fixinc/inclhack.def: Restore patch lost during last merge of
17502 "no_bogosity" branch.
17503 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
17505 Thu Oct 14 23:57:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
17507 * fixincludes: Add a HPUX 11 fix for inttypes.h.
17508 * fixinc/inclhack.def: Same.
17509 * fixinc/inclhack.sh, fixinc/fixincl.sh, fixinc/fixincl.x: Regenerate.
17511 Thu Oct 14 22:51:55 1999 Richard Henderson <rth@cygnus.com>
17513 * alpha.h (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Accept ADDRESSOF
17514 as the base of a PLUS.
17516 Fri Oct 15 18:36:07 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17518 * config/c4x/c4x.md: Define mode for remaining unspec operators.
17519 * config/c4x/c4x.c (dst_operand): Use nonimmediate_operand.
17521 Thu Oct 14 22:14:23 1999 Richard Henderson <rth@cygnus.com>
17523 * pa.md (post_stw+1): Use pmode_register_operand.
17524 (dcacheflush, icacheflush): Likewise.
17526 * i386.md (movstricthi_1): Allow r/r.
17528 Thu Oct 14 19:44:08 1999 Jan Hubicka <hubicka@freesoft.cz>
17530 * fold-const.c (fold): Convert (or (not arg0) (not arg1))
17531 to (not (and (arg0) (arg1))). Similary for and.
17533 * fold-const.c (fold): Move bit_rotate code to the EXPR_PLUS case,
17534 fallthrough to associate code.
17535 Convert XOR to OR in code like (a&c1)^(a&c2) where c1 and c2 don't have
17538 * combine.c (simplify_logical): Convert XOR to IOR if operands have
17539 no bits in common; remove XOR to ROTATE conversion.
17541 Fri Oct 15 17:40:11 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17543 * config/c4x/c4x.h (c4x_va_start, c4x_va_arg): Declare.
17545 Fri Oct 15 17:27:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17547 * config/c4x/c4x.c (dst_operand): New.
17548 (PREDICATE_CODES): Update.
17549 * config/c4x/c4x.h (dst_operand): Declare it.
17550 * config/c4x/c4x.md: Define mode for each unspec usage.
17551 (move patterns): Use dst_operand predicate instead of src_operand.
17552 (movqi_update, movqf_update): Delete.
17554 Thu Oct 14 18:48:54 1999 Richard Henderson <rth@cygnus.com>
17556 * recog.c (pmode_register_operand): New.
17557 * recog.h: Declare it.
17558 * genrecog.c (pred_codes): Likewise.
17559 (special_mode_pred_table): Likewise.
17560 (validate_pattern): Don't warn no mode for address_operand.
17562 * print-rtl.c (print_rtx) [LABEL_REF]: Only do full subexpression
17563 if the operand is not insn-like.
17565 Thu Oct 14 19:38:42 1999 Jeffrey A Law (law@cygnus.com)
17566 Sylvian Pion <Sylvain.Pion@sophia.inria.fr>
17568 * fold-const.c (fold): Handle more simplifications allowed by IEEE.
17570 Thu Oct 14 17:30:14 1999 Richard Henderson <rth@cygnus.com>
17572 * sparc.md (*): Use {nonimmediate,register}_operand as appropriate
17573 instead of general_operand in a SET_DEST. Use const_double_operand
17574 instead of an explicit test against CONST_DOUBLE.
17575 (movsf_const_lo): Add missing register mode.
17576 (goto_handler_and_restore): Add auxiliary test for Pmode.
17577 (flush): Adjust to use address_operand.
17578 (return_sf_no_fpu): Add missing output constraint.
17580 Thu Oct 14 17:21:26 1999 Richard Henderson <rth@cygnus.com>
17582 * rs6000.md (call_value_indirect_aix32): Use wildcard match_operand
17583 for call return value.
17584 (call_value_indirect_aix64, call_value_indirect_nt): Likewise.
17586 Thu Oct 14 13:54:25 1999 Jason Merrill <jason@yorick.cygnus.com>
17588 * toplev.c (main): Only warn about options for other languages.
17589 * collect2.c (main): Pass -w to sub-gcc.
17591 Thu Oct 14 16:27:50 1999 Richard Henderson <rth@cygnus.com>
17593 * flow.c (propagate_block): Add call-clobbered registers to
17596 * flow.c (propagate_block): Use free_EXPR_LIST_list instead of
17597 zapping mem_set_list.
17598 (invalidate_mems_from_autoinc): Use free_EXPR_LIST_node.
17599 (mark_set_1, mark_used_regs): Likewise.
17601 Thu Oct 14 10:51:49 1999 Richard Henderson <rth@cygnus.com>
17603 * m68k.md (zero_extendsidi2): Add missing output reload constraint.
17605 Wed Oct 13 00:09:18 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17607 * invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
17608 -Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
17609 options. Also add a new item "C-only Warning Options" to the
17612 1999-10-14 Gavin Romig-Koch <gavin@cygnus.com>
17614 * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
17615 from multiple calls.
17617 Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com>
17619 * i386.md (call value patterns): Move to the end of the file.
17620 (prologue_set_got, prologue_get_pc): Use register_operand for op 0.
17622 1999-10-14 Mark Elbrecht <snowball3@bigfoot.com>
17624 * configure.in (djgpp configuration): Define extra_objects..
17625 * configure: Rebuilt.
17626 * config/i386/djgpp.h (CTORS_SECTION_ASM_OP): Define.
17627 (DTORS_SECTION_ASM_OP): Define.
17628 (INIT_SECTION_ASM_OP): Define.
17629 (FINI_SECTION_ASM_OP): Define.
17630 (DATA_SECTION_ASM_OP): Define.
17631 (TEXT_SECTION_ASM_OP): Define.
17632 (EH_FRAME_SECTION_ASM_OP): Define.
17633 (LINK_COMMAND_SPEC): Remove -Tdjgpp.djl.
17634 (STARTFILE_SPEC): Add crtbegin.o.
17635 (ENDFILE_SPEC): Define and add crtend.o. Move argument -Tdjgpp.djl
17636 to here from LINK_COMMAND_SPEC.
17637 (DO_GLOBAL_CTORS_BODY): Define.
17638 (CRTSTUFF_USE_FINI_SECTION): Define
17639 (HAS_INIT_SECTION): Delete.
17641 Thu Oct 14 05:08:14 1999 Andreas Schwab <schwab@suse.de>
17643 * Makefile.in (all.cross): Depend on xcpp$(exeext).
17645 Thu Oct 14 04:00:40 1999 Richard Henderson <rth@cygnus.com>
17647 * pa.h (PREDICATE_CODES): New.
17649 * genrecog.c (validate_pattern): Condense the destination
17650 non-lvalue message.
17652 Thu Oct 14 03:23:08 1999 Richard Henderson <rth@cygnus.com>
17654 * alpha.md (call-1): Supply missing mode for operator.
17655 (*): Add missing output reload constraints. Remove constraints
17656 from define_splits.
17658 * i386.h (SPECIAL_MODE_PREDICATES): New.
17659 * i386.md (movstricthi_1): Use nonimmediate_operand for op 0.
17660 (movqi_1, movdi_1, movdi_2, some splits): Likewise.
17661 (addsi_lea_3): Add missing mode for op 3.
17662 (prologue_set_got, prologue_get_pc): Add missing modes.
17663 (*) Add missing output reload constraints.
17665 Thu Oct 14 03:59:57 1999 Stephane Carrez <stcarrez@worldnet.fr>
17667 * stor-layout.c (layout_union): Use HOST_WIDE_INT for const_size;
17668 check for member bit-size overflow and use var_size if it occurs.
17669 (layout_record): Use bitsize_int() to define the type size in bits.
17670 Likewise for computation and assignment to DECL_FIELD_BITPOS.
17671 (layout_decl): Likewise when assigning to DECL_SIZE.
17673 Thu Oct 14 02:57:05 1999 Richard Henderson <rth@cygnus.com>
17675 * genrecog.c (validate_pattern): Typo last change. Verify
17676 that output operands have output reloads.
17678 Thu Oct 14 01:49:54 1999 Richard Henderson <rth@cygnus.com>
17680 * genrecog.c (special_mode_pred_table): New.
17681 (NUM_SPECIAL_MODE_PREDS): New.
17682 (find_operand): New.
17683 (validate_pattern): New argument `insn'. Warn for assignment to
17684 any predicate accepting non-lvalues. Conditionaly warn for
17685 match_operand without a mode. Try much harder to match source
17686 and destination modes on a set.
17687 * tm.texi (SPECIAL_MODE_PREDICATES): Document.
17689 Thu Oct 14 02:54:13 1999 Jeffrey A Law (law@cygnus.com)
17691 * fold-const.c (fold): Detect rotates built from BIT_XOR_EXPRs.
17693 Thu Oct 14 02:18:19 1999 Marc Espie <espie@cvs.openbsd.org>
17695 * combine.c (simplify_logical): Recognize xor pattern that encodes
17698 Wed Oct 13 23:23:45 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17700 * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
17703 Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com>
17705 * ggc-page.c (MAP_FAILED): Provide default.
17707 Wed Oct 13 21:41:59 1999 Richard Henderson <rth@cygnus.com>
17709 * sparc.c (symbolic_operand): Verify mode; don't accept CONST_DOUBLE.
17710 * sparc.h (PREDICATE_CODES): Update.
17712 Wed Oct 13 21:18:17 1999 Richard Henderson <rth@cygnus.com>
17714 * alpha.c (some_ni_operand): New.
17715 * alpha-protos.h: Declare it.
17716 * alpha.h (PREDICATE_CODES): Update.
17717 * alpha.md (sXaddq reload insns): Use some_ni_operand
17718 for SET_DEST instead of some_operand.
17720 Wed Oct 13 21:04:45 1999 Richard Henderson <rth@cygnus.com>
17721 Jim Wilson <wilson@cygnus.com>
17723 * genrecog.c (maybe_both_true_2): Don't compare modes of
17725 (process_tree): Elide peephole2_insns. Invoke simplify_tests
17726 after find_afterward.
17727 (debug_decision_1): Dump next and afterward codes.
17729 Wed Oct 13 20:35:16 1999 Richard Henderson <rth@cygnus.com>
17731 * rtl.c (dump_and_abort): Remove.
17732 (fatal_with_file_and_line): New.
17733 (fatal_expected_char): New.
17734 (read_rtx_lineno, read_rtx_filename): New.
17735 (read_skip_spaces): Track line number.
17736 (read_name): Use fatal_with_file_and_line.
17737 (read_rtx): Use fatal_expected_char. Track line number.
17738 * rtl.h (read_rtx_filename, read_rtx_lineno): Declare.
17740 * print-rtl.c (print_rtx): Don't special case LABEL_REF argument
17741 if it isn't a CODE_LABEL.
17743 * genattr.c (main): Set read_rtx_filename.
17744 * genattrtab.c (main): Likewise.
17745 * gencodes.c (main): Likewise.
17746 * genconfig.c (main): Likewise.
17747 * genemit.c (main): Likewise.
17748 * genextract.c (main): Likewise.
17749 * genflags.c (main): Likewise.
17750 * genopinit.c (main): Likewise.
17751 * genoutput.c (main): Likewise.
17752 * genpeep.c (main): Likewise.
17754 * genrecog.c (decision_test.u.insn): Add `lineno'.
17755 (pattern_lineno, error_count): New variables.
17756 (message_with_line): New.
17757 (add_to_sequence): Break out checking code to ...
17758 (validate_pattern): ... here. Detect SET_DEST matching CONST_INT.
17759 (merge_insn): Use message_with_line.
17760 (make_insn_sequence): Use validate_pattern. Record insn lineno.
17761 (main): Set read_rtx_filename, pattern_lineno. Exit early on error.
17763 Wed Oct 13 22:01:35 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17765 * expr.c (store_constructor): Clear union if constructor is empty.
17767 Wed Oct 13 15:19:04 1999 Jim Wilson <wilson@cygnus.com>
17769 * config/rs6000/sysv4.h (CC1_SPEC): Fix errors from Jan 19 change.
17770 Add !endian checks. Change %{...} to %(...).
17772 Wed Oct 13 13:30:34 1999 Richard Henderson <rth@cygnus.com>
17774 * i386.md (*addsi3_cc): Renamed from addcsi3.
17775 (*addsi3_carry): Renamed from addxsi3.
17776 (*subsi3_cc): Renamed from subcsi3.
17777 (*subsi3_carry): Renamed from subxsi3.
17778 (*xorqi_cc_1): Renamed from xorcqi_1.
17779 (xorqi_cc_ext_1): Renamed from xorcqi_ext_1.
17780 * i386.c (ix86_expand_fp_compare): Update for xorqi_cc_ext_1.
17782 Wed Oct 13 13:10:46 1999 Richard Henderson <rth@cygnus.com>
17784 * Makefile.in (ggc-common.o): Depend on RTL_H not RTL_BASE_H.
17785 (ggc-simple.o, ggc-page.o, ggc-none.o, ggc-callbacks.o): Likewise.
17787 1999-10-13 Brendan Kehoe <brendan@cygnus.com>
17789 * regmove.c (optimize_reg_copy_3): Make sure P is non-nil as we
17790 climb up the chain of insns.
17792 Wed Oct 13 10:20:58 1999 Richard Henderson <rth@cygnus.com>
17794 * genrecog.c (write_subroutine): Careful for null trees.
17795 (process_tree): Don't elide empty functions.
17797 Wed Oct 13 10:07:54 1999 Richard Henderson <rth@cygnus.com>
17799 * Makefile.in (genrtl.o): Depend on ggc.h.
17800 * configure.in (valloc): Probe for it.
17801 (with-gc): Use ggc-page if valloc present.
17802 * ggc-common.c (ggc_mark_rtx_children): Use ggc_mark_if_gcable.
17803 (ggc_mark_rtvec_children): New from corpse of ggc_mark_rtvec.
17804 (ggc_alloc_string): Moved from ggc-page.c.
17805 * ggc-none.c (ggc_alloc_obj): New.
17806 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove.
17807 * ggc-page.c (sys/mman.h): Only include if HAVE_MMAP.
17808 (struct globals): Likewise for dev_zero_fd.
17809 (init_ggc): Likewise for it's initialization.
17810 (ggc_allocated_p): Move careful dereference from ...
17811 (ggc_lookup_page_table): ... here. Delete.
17812 (lookup_page_table_entry): Don't use ggc_lookup_page_table.
17813 (alloc_anon): Use valloc if no mmap.
17814 (release_pages): Use free if using valloc.
17815 (ggc_alloc_obj): Renamed from alloc_obj.
17816 (ggc_set_mark): Renamed from mark_obj.
17817 (ggc_mark_if_gcable): Renamed from ggc_mark_string_if_gcable.
17818 (ggc_alloc_rtx, ggc_alloc_rtvec): Delete.
17819 (ggc_alloc_tree, ggc_alloc_string, ggc_alloc): Delete.
17820 (ggc_set_mark_rtx, ggc_set_mark_rtvec): Delete.
17821 (ggc_set_mark_tree, ggc_mark_string, ggc_mark): Delete.
17822 (ggc_collect): Use fp printing instead of our own rounding.
17823 * ggc-simple.c (IS_MARKED, IGNORE_MARK): Delete.
17824 (GGC_STRING_MAGIC, GGC_STRING_MAGIC_MARK): Delete.
17825 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): Delete.
17826 (struct ggc_rtx, struct ggc_rtvec, struct ggc_tree): Delete.
17827 (struct ggc_string, struct ggc_any): Delete.
17828 (offsetof): Provide default definition.
17829 (GGC_BALANCE, GGC_ALWAYS_COLLECT, GGC_ALWAYS_VERIFY): New.
17831 (struct ggc_mem): New, from corpse of ggc_any.
17832 (struct ggc_status): Delete.
17833 (ggc_chain, ggc_allocated_strings, ggc_strings_used): Delete.
17834 (n_rtxs_collected, n_vecs_collected, n_trees_collected): Delete.
17835 (n_strings_collected, n_anys_collected): Delete.
17836 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Delete.
17837 (ggc_alloc_string, ggc_alloc): Delete.
17838 (ggc_free_rtx, ggc_free_rtvec, ggc_free_tree): Delete.
17839 (ggc_free_string, ggc_free_any): Delete.
17840 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Delete.
17841 (ggc_compare_addresses, ggc_mark_string): Delete.
17842 (ggc_mark_string_if_gcable, ggc_mark): Delete.
17843 (search_data): Delete.
17844 (struct globals): New.
17845 (GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED): New.
17846 (tree_insert, tree_lookup): New.
17847 (ggc_alloc_obj, ggc_set_mark, ggc_mark_if_gcable): New.
17848 (clear_marks, sweep_objs): New.
17849 (ggc_collect): Gut. Use clear_marks, sweep_objs.
17850 (init_ggc): Set allocated_last_gc.
17851 (ggc_push_context): Gut. Use G.context.
17852 (ggc_pop_context): Likewise.
17853 (ggc_pop_context_1): New.
17854 (debug_ggc_tree): New.
17855 (debug_ggc_balance, tally_leaves): New.
17856 * ggc.h (ggc_mark_rtvec, ggc_mark_string, ggc_mark): Remove decl.
17857 (ggc_mark_string_if_gcable): Remove decl.
17858 (ggc_mark_rtx, ggc_mark_tree): Use ggc_set_mark.
17859 (ggc_mark_rtvec_children): New.
17860 (ggc_mark_rtvec, ggc_mark_string, ggc_mark): New.
17861 (ggc_mark_if_gcable): New decl.
17862 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove decl.
17863 (ggc_alloc_tree, ggc_alloc): Likewise.
17864 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Likewise.
17865 (ggc_alloc_obj): New decl.
17866 (ggc_alloc_rtx, ggc_alloc_rtvec): New macros.
17867 (ggc_alloc_tree, ggc_alloc): Likewise.
17868 (ggc_set_mark): New decl.
17869 * rtl.h (struct rtx_def): Remove gc_mark.
17870 (struct rtvec_def): Likewise.
17871 * tree.h (struct tree_common): Likewise.
17873 Wed Oct 13 01:44:29 1999 Carol LePage <carolo@hal.com>
17875 * configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines,
17876 float_format and thread_file definitions.
17877 * configure: Rebuilt.
17879 Wed Oct 13 09:25:03 1999 Niels Möller <nisse@lysator.liu.se>
17881 * extend.texi (Function Names): Document types of function names.
17883 Wed Oct 13 00:45:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17885 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
17886 an earlyclobbered output conflict with RELOAD_INPUT reloads.
17888 Tue Oct 12 23:28:28 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17890 * sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
17892 Tue Oct 12 23:19:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17894 * sh.h (REGISTER_MOVE_COST): Change PR_REG to PR_REGS.
17896 Tue Oct 12 17:09:38 1999 David Edelsohn <edelsohn@gnu.org>
17898 * collect2.c (main): Do prelimnary link on AIX if rflag.
17900 Tue Oct 12 09:45:19 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
17902 * config/rs6000/eabi-ctors.c (__do_global_ctors): Run through
17903 __CTOR_LIST__ in opposite order, which is the correct order for sorted
17905 (__do_global_dtors): similarly for __DTOR_LIST__.
17907 Fri Oct 8 19:46:03 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17908 Diego Novillo <dnovillo@cygnus.com>
17910 * config/sh/sh.h (REGISTER_MOVE_COST): Handle moves from T_REGS to
17913 Tue Oct 12 07:38:41 1999 Bruce Korb <autogen@linuxbox.com>
17915 * fixincl/*: Merged "no_bogosity" branch
17916 * fixincl/fixlib.h: protect against doubly defining t_bool
17917 * fixincl/server.h: protect against doubly defining t_bool
17919 Mon Oct 11 20:18:41 1999 Jim Wilson <wilson@cygnus.com>
17921 * genoutput.c: Include toplev.h.
17923 Mon Oct 11 18:56:14 1999 Jim Wilson <wilson@cygnus.com>
17925 * config/sparc/liteelf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
17927 * configure.in (sparclite-*-elf, sparc86x-*-elf): Don't use libgloss.h.
17928 * configure: Regenerate.
17930 Mon Oct 11 16:07:49 1999 Richard Henderson <rth@cygnus.com>
17932 * gcse.c (delete_null_pointer_checks): Returns void.
17934 Mon Oct 11 20:31:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17936 * rtl.c (copy_rtx): Don't use accessor macros to copy fields.
17937 * emit-rtl.c (copy_insn_1): Likewise.
17939 Mon Oct 11 13:29:06 1999 Geoffrey Keating <geoffk@cygnus.com>
17941 * config/mips/mips.c (mips_build_va_list): Correct
17942 TREE_CHAIN setting when hard-float.
17943 (mips_va_start): Use corrected setting.
17944 (mips_va_arg): Likewise. Also pass a tree to build of
17945 POSTINCREMENT_EXPR rather than a naked 'int'.
17947 Sun Oct 10 18:27:27 1999 Mark Mitchell <mark@codesourcery.com>
17949 * ggc.h (ggc_push_context): Fix comment.
17950 (ggc_pop_context): Likewise.
17951 (mark_string_if_gcable): Likewise.
17952 * ggc-common.c (ggc_mark_rtx_children): Use
17953 ggc_mark_string_if_gcable.
17954 * ggc-page.c (ggc_lookup_page_table): New function.
17955 (ggc_allocated_p): Likewise.
17956 (mark_obj): Fix formatting.
17957 (ggc_mark_string_if_gcable): New function.
17958 * ggc-simple.c (ggc_allocated_strings): New variable.
17959 (ggc_strings_used): Likewise.
17960 (ggc_compare_addresses): New function.
17961 (ggc_pop_context): Pop the `any' memory too.
17962 (ggc_mark_string_if_gcable): New function.
17963 (ggc_collect): Initialize and tear down ggc_allocated_strings.
17965 Sun Oct 10 20:05:21 1999 David Edelsohn <edelsohn@gnu.org>
17967 * rs6000.md (movstrsi_?reg): Use preferred rD/rS = r5 form.
17968 (scc patterns): Disable most SImode variants if TARGET_POWERPC64.
17969 * rs6000.c (expand_block_move): Match movstrsi_?reg register
17972 Sun Oct 10 16:37:01 1999 Richard Henderson <rth@cygnus.com>
17974 * haifa-sched.c (sched_reg_n_calls_crossed): Delete.
17975 (sched_reg_live_length, sched_reg_basic_block): Delete.
17976 (current_block_num, bb_live_regs, old_live_regs): Delete.
17977 (dead_notes, struct sometimes): Delete.
17978 (sched_note_set, birthing_insn_p): Delete.
17979 (adjust_priority): Gut useless reg lifetime code.
17980 (create_reg_dead_note, attach_deaths): Delete.
17981 (attach_deaths_insn, new_sometimes_live): Delete.
17982 (finish_sometimes_live): Delete.
17983 (find_pre_sched_live, find_post_sched_live): Delete.
17984 (update_reg_usage): Delete.
17985 (find_insn_reg_weight): New, from corpse of find_pre_sched_live.
17986 (schedule_insns): Delete reg lifetime code.
17987 (sched_analyze): Use REG_SAVE_NOTE to stuff NOTE_INSN notes away.
17988 (unlink_other_notes): Adjust REG_NOTE commentary.
17989 (reemit_notes): Use REG_SAVE_NOTE.
17990 (schedule_block): Likewise.
17991 (schedule_region): Allocate bitmap of blocks in region. Use
17992 count_or_remove_death_notes. Use update_life_info.
17994 * rtl.h (REG_SAVE_NOTE): New.
17995 * rtl.c (reg_note_name): Update.
17997 Sun Oct 10 16:14:16 1999 Richard Henderson <rth@cygnus.com>
17999 * combine.c (refresh_blocks, need_refresh): New.
18000 (combine_instructions): Allocate refresh_blocks. Invoke
18001 update_life_info if needed.
18002 (distribute_notes): Mark refresh_blocks instead of installing
18004 * flow.c (update_life_info): Remove notes if GLOBAL_RM_NOTES.
18005 * basic_block.h (enum update_life_extent): Add GLOBAL_RM_NOTES.
18007 * Makefile.in (recog.o): Depend on basic-block.h.
18009 Sun Oct 10 12:03:21 1999 Richard Henderson <rth@cygnus.com>
18011 * genrecog.c (add_to_sequence): Thinko last change: delete
18012 shadowing allow_const_int variable.
18014 Sun Oct 10 08:40:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18016 * cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing
18017 __GNUC__ and __GNUC_MINOR__.
18019 * gansidecl.h: Likewise.
18025 * toplev.h: Likewise.
18027 * tree.c: Likewise.
18029 * tree.h: Likewise.
18031 * varray.c: Likewise.
18033 * varray.h: Likewise.
18035 Sun Oct 10 13:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18037 * loop.c (find_and_verify_loops): When looking for a BARRIER, don't
18038 use one before a jump table.
18040 * rtl.def (ADDRESS): Change documentation to match reality.
18041 * md.texi: Don't document it.
18042 * gmicro.md (load address pattern): Use 'p' constraint, delete use
18045 * emit-rtl.c (copy_insn_1): Make format_ptr a const char *.
18047 Sun Oct 10 02:41:41 1999 Richard Henderson <rth@cygnus.com>
18049 * genrecog.c (add_to_sequence): Move allow_const_int test outside
18050 known predicate block; default allow_const_int true.
18051 (debug_decision_list): New.
18053 Sun Oct 10 00:43:08 1999 Richard Henderson <rth@cygnus.com>
18055 * i386.h (CC1_SPEC): Typo -- use cc1_cpu.
18057 Sat Oct 9 23:26:55 1999 Jeffrey A Law (law@cygnus.com)
18059 * gcse.c (gcse_main): Avoid global optimizations if we have a
18060 large number of basic blocks and the ratio of edges to blocks
18062 (delete_null_pointer_checks): Likewise.
18064 Sat Oct 9 23:16:01 1999 Ken Raeburn <raeburn@mit.edu>
18066 * c-common.c (check_format_info): Warn if format string isn't a
18069 Sat Oct 9 23:04:02 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
18071 * configure.in (arm*-*-*): Don't let autoconf remove brackets
18072 * configure: regenerate
18074 Sat Oct 9 13:15:53 1999 Richard Henderson <rth@cygnus.com>
18076 * alpha.md (extendsidi2): Turn into a splitter. Allow f/f.
18077 If TARGET_FIX, allow r/f. Remove cvtlq unspec pattern.
18078 (peepholes): Re-enable.
18080 Sat Oct 9 12:18:16 1999 Richard Henderson <rth@cygnus.com>
18082 * Makefile.in (flow.o): Depend on TREE_H.
18083 * basic-block.h (REG_SET_EQUAL_P): New.
18084 (XOR_REG_SET): New.
18085 (n_edges): Declare.
18086 (free_regset_vector): Remove declaration.
18087 (flow_delete_insn_chain): Declare.
18088 (enum update_life_extent): New.
18089 (update_life_info, count_or_remove_death_notes): Declare.
18090 * combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
18091 Verify register live at bb->global_live_at_start before adding USE.
18092 * flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
18093 (CLEAN_ALLOCA): New.
18095 (PROP_*): New flags.
18096 (find_basic_blocks_1): Use alloc_EXPR_LIST.
18097 (clear_edges): Zero n_edges.
18098 (make_edge): Increment n_edges.
18099 (split_edge): Don't allocate bb->local_set. Increment n_edges.
18100 (flow_delete_insn_chain): Export.
18101 (delete_block): Decrement n_edges.
18102 (merge_blocks_nomove): Likewise.
18103 (life_analysis): Give life_analysis_1 PROP flags.
18104 (verify_wide_reg_1, verify_wide_reg): New.
18105 (verify_local_live_at_start): New.
18106 (update_life_info): Rewrite to call into propogate_block.
18108 (mark_regs_live_at_end): After reload, if epilogue as rtl,
18109 always mark stack pointer. Conditionally mark PIC register.
18110 After reload, mark call-saved registers, return regsiters.
18111 (life_analysis_1): Accept PROP flags not remove_dead_code.
18112 Call mark_regs_live_at_end before zeroing regs_ever_live.
18113 Use calculate_global_regs_live. Copy global_live_at_end before
18114 calling final propagate_block. Zero reg_next_use on exit.
18115 (calculate_global_regs_live): New.
18116 (allocate_bb_life_data): Don't allocate bb->local_set.
18117 (init_regset_vector, free_regset_vector): Remove.
18118 (propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
18119 Test flags before every operation. Warn if prologue/epilogue insn
18120 would have been deleted.
18121 (mark_set_regs, mark_set_1): Accept and use FLAGS.
18122 Use alloc_EXPR_LIST.
18123 (mark_used_regs): Accept and use FLAGS, not FINAL.
18124 Remove special handling for RETURN.
18125 (try_pre_increment): Use alloc_EXPR_LIST.
18126 (dump_flow_info): Dump n_edges.
18127 (unlink_insn_chain, split_hard_reg_notes): Remove.
18128 (maybe_add_dead_note, maybe_add_dead_note_use): Remove.
18129 (find_insn_with_note, new_insn_dead_notes): Remove.
18130 (update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
18131 (maybe_remove_dead_notes, prepend_reg_notes): Remove.
18132 (replace_insns): Remove.
18133 (count_or_remove_death_notes): New.
18134 (verify_flow_info): Abort on error after all checks.
18135 (remove_edge): Decrement n_edges.
18136 (remove_fake_edges): Tweak format.
18137 * haifa-sched.c (schedule_insns): Use split_all_insns.
18138 * output.h (update_life_info): Remove declaration.
18139 * recog.c (split_all_insns): From the corpse of split_block_insns,
18140 do the whole function block by block. Use update_life_info.
18141 (recog_last_allowed_insn): New.
18142 (recog_next_insn): Mind it.
18143 (peephole2_optimize): Set it. Walk backwards through blocks.
18144 Use update_life_info.
18145 * rtl.h (update_flow_info, replace_insns): Remove declarations.
18146 (split_all_insns): Declare.
18147 * toplev.c (rest_of_compilation): Thread prologue before flow2.
18148 Use split_all_insns.
18150 * i386.md (or -1 peep2s): Disable.
18152 Fri Oct 8 17:49:08 1999 Richard Henderson <rth@cygnus.com>
18154 * config/mips/mips.md (movstrsi+[123]) : Combine these into
18155 a single pattern. Scrap the 'd' versions as unnecessary.
18157 * config/mips/mips.md (tablejump_internal3,tablejump_mips161,
18158 tablejump_mips162,tablejump_internal4): The operands to a
18159 label_ref must be VOIDmode.
18161 Fri Oct 8 16:12:42 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18163 * configure.in (c-mbchar): Append, don't overwrite, `extra_c_flags'.
18165 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
18167 * mips.c (mips_va_arg) [EABI]: Return addr_rtx.
18169 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
18171 * lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
18172 cache every function if ggc_p.
18174 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18176 * jump.c (duplicate_loop_exit_test): Use copy_insn/copy_insn_1
18177 instead of copy_rtx. Accept sequences that contain asm statements.
18178 * emit-rtl.c (copy_insn_1, copy_insn): New functions.
18179 (copy_insn_scratch_in, copy_insn_scratch_out, copy_insn_n_scratches,
18180 orig_asm_operands_vector, copy_asm_operands_vector,
18181 orig_asm_constraints_vecotr, copy_asm_constraints_vector): New static
18183 * rtl.h (copy_insn, copy_insn_1): Declare.
18185 Fri Oct 8 13:08:12 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18187 * Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.
18189 * alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of
18190 arguments to `current_file_function_operand'.
18192 * genrecog.c: Include hard-reg-set.h and resource.h in the
18193 generated output file.
18195 * real.c: Include tm_p.h.
18197 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18199 * i386.md (prologue_allocate_stack): Add '=' constraint letter on
18202 Thu Oct 7 23:06:50 1999 Richard Henderson <rth@cygnus.com>
18204 * rs6000.md (fix_truncdfsi2_internal+1): Emit a clobber
18205 before the fctiwz insn.
18207 Thu Oct 7 22:53:00 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18208 Mark Mitchell <mark@codesourcery.com>
18210 * tree.c (make_lang_type_fn): New funtion pointer.
18211 (make_lang_type): Call it.
18212 * tree.h (make_lang_type): Declare.
18213 (make_lang_type_fn): Likewise.
18214 * rs6000.c (rs6000_build_va_list): Use make_lang_type.
18216 Thu Oct 7 00:36:17 1999 Diego Novillo <dnovillo@cygnus.com>
18218 * config/rs6000/rs6000.c (secondary_reload_class): For TARGET_ELF
18219 make sure that HIGH instructions are copied into BASE_REGS.
18221 Thu Oct 7 17:02:34 1999 Jason Merrill <jason@yorick.cygnus.com>
18223 * expr.c (expand_expr, TARGET_EXPR): Set TREE_USED sooner.
18225 Thu Oct 7 17:01:58 1999 Greg McGary <gkm@gnu.org>
18227 * c-decl.c (finish_struct): Use simpler method of
18228 removing elements of a singly-linked list.
18230 Thu Oct 7 15:23:28 1999 Michael Meissner <meissner@cygnus.com>
18232 * alpha.md (peephole2's): Comment out peephole2's that generate
18235 Thu Oct 7 12:00:53 1999 Richard Henderson <rth@cygnus.com>
18237 * genrecog.c (add_to_sequence): Disable mode check for
18240 Thu Oct 7 20:14:16 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18242 * ggc-simple.c (init_ggc): Set empty_string.
18244 Thu Oct 7 01:13:15 1999 Richard Henderson <rth@cygnus.com>
18246 * configure.in: Detect mmap. Add --with-gc=foo to select
18247 garbage collector; default to page if mmap available.
18248 * Makefile.in (GGC): Substitute.
18250 Wed Oct 6 23:56:30 1999 Richard Henderson <rth@cygnus.com>
18252 * c-decl.c (ggc_p): Enable.
18254 Wed Oct 6 17:17:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18256 * flow.c (verify_flow_info): Make it extern & unconditionally define.
18258 1999-10-06 Brendan Kehoe <brendan@cygnus.com>
18260 * sparc/sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc
18261 string for little-endian-data.
18263 Wed Oct 6 16:10:35 1999 Michael Meissner <meissner@cygnus.com>
18265 * varray.h (VARRAY_CHECK): Fix up appropriate revision check, in
18266 case somebody tries to compile --enable-checking code with gcc
18269 Wed Oct 6 12:22:50 1999 Richard Henderson <rth@cygnus.com>
18271 * genrecog.c (add_to_sequence): Verify operand to label_ref is
18274 Wed Oct 6 10:21:15 1999 Richard Henderson <rth@cygnus.com>
18276 * genconfig.c (main): Disable HAVE_conditional_arithmetic.
18277 * jump.c (jump_optimize_1): Document why.
18279 Wed Oct 6 10:41:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18281 * collect2.c (scan_prog_file, scan_libraries): Prototype function
18282 pointers and casts for `int_handler' and `quit_handler'.
18284 * flow.c (verify_flow_info, split_hard_reg_notes,
18285 find_insn_with_note, sets_reg_or_subreg_1, prepend_reg_notes,
18286 remove_edge, remove_fake_successors): Add static prototypes.
18287 (verify_flow_info): Wrap with macro ENABLE_CHECKING.
18288 (mark_set_1): Initialize variable `regno'.
18289 (unlink_insn_chain): Likewise for variable `curr'.
18290 (remove_fake_edges): Remove unused variables `e', `tmp' and `last'.
18292 * loop.c (strength_reduce): Initialize variable
18293 `unrolled_insn_copies'.
18294 (cmp_combine_givs_stats, cmp_recombine_givs_stats): Add static
18295 prototypes. Change these functions to take const PTR parameters
18296 to avoid prototype conflict when used as the comparson argument
18298 (check_dbra_loop): Initialize variable `comparison_val'.
18300 * reload.c (debug_reload_to_stream, debug_reload): Add prototypes.
18301 (get_secondary_mem): Mark parameter `x' with ATTRIBUTE_UNUSED.
18302 (find_valid_class): Initialize variable `best_class'.
18303 (find_reloads): Call memcpy, not bcopy.
18305 * reload1.c (gen_mode_int, dump_needs): Add prototypes.
18306 (hard_reg_use_compare): Don't needlessly cast away const.
18307 (reload_reg_class_lower): Likewise.
18308 (choose_reload_regs): Initialize variable `regno'.
18310 Tue Oct 5 16:34:12 1999 Paul Burchard <burchard@pobox.com>
18312 * ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
18314 Tue Oct 5 16:14:40 1999 Michael Meissner <meissner@cygnus.com>
18316 * libgcc1-test.c (toplevel): Include stddef.h to get size_t.
18317 ({,d}discard): Add forward declarations. Declare parameter as
18319 (main_without_main): Explicitly declare return type to be int.
18320 (memcpy): Properly declare.
18322 * libgcc2.c (toplevel): If inhibit_libc is defined and not
18323 building the trampoline support, declare malloc, free, and
18325 (__clear_cache): Mark arguments as potentially unused.
18327 * frame.c (toplevel): If inhibit_libc is defined, declare
18330 Tue Oct 5 12:00:32 1999 Richard Henderson <rth@cygnus.com>
18332 * flow.c (make_edge): Accept an optional 2D bitmap in which
18333 to cache edge existence. Update all callers.
18334 (make_label_edge, make_eh_edge): Pass through the edge cache.
18335 (make_edges): Provide the cache.
18337 Tue Oct 5 12:16:49 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18339 * mbchar.c (literal_codeset, local_mbtowc, local_mblen): Constify
18341 (local_mbtowc): Change the type of variable `i' from int to size_t.
18343 * mbchar.h (ISSJIS1, ISSJIS2): Use parens around && within ||.
18344 (local_mbtowc, local_mblen, literal_codeset): Constify a char*.
18346 Tue Oct 5 11:34:52 1999 Michael Meissner <meissner@cygnus.com>
18348 * ggc-common.c (toplevel): Reorder includes, so that ggc.h comes
18349 after other includes that define the appropriate types. Include
18350 tm_p.h for getting user prototypes.
18351 * ggc-callbacks.c (toplevel): Ditto.
18352 * ggc-none.c (toplevel): Ditto.
18353 * gcc-page.c (toplevel): Ditto.
18354 * ggc-simple.c (toplevel): Ditto.
18356 Mon Oct 4 16:48:16 1999 Diego Novillo <dnovillo@cygnus.com>
18357 Jonathan Larmour <jlarmour@cygnus.co.uk>
18359 * config/mips/mips.c (mips_move_2words): Split doubles if
18360 ISA >= 3, !TARGET_64BIT, and destination is not an FP register.
18362 Mon Oct 4 21:47:31 1999 Richard Henderson <rth@cygnus.com>
18364 * genrecog.c (struct decision_test): New.
18365 (struct decision): Remove test-related members, sort the rest by size.
18366 (IS_SPLIT): Simplify.
18367 (new_decision, new_decision_test): New.
18368 (add_to_sequence): Use them. No special handling for args of
18370 (maybe_both_true): Renamed from not_both_true; return sense changed.
18371 (maybe_both_true_1, maybe_both_true_2): New. Broken out
18372 of maybe_both_true and adjusted for decision_test.
18373 (position_merit): Remove.
18374 (nodes_identical, nodes_identical_1): New, broken out of merge_trees.
18375 (merge_accept_insn): New, broken out of merge_trees.
18376 (merge_trees): Use them. No special case for c_test; no node
18377 splitting; use test type instead of position_merit.
18378 (factor_tests): New.
18379 (simplify_tests): New.
18380 (break_out_subroutines): Don't write code now.
18381 (find_afterward): New.
18382 (write_afterward, write_switch, write_cond): New.
18383 (write_action, is_unconditional): New.
18384 (write_node): New. Use them.
18385 (write_tree_1): Rewrite. Use the new functions above.
18386 (write_tree): Remove afterward processing.
18387 (write_subroutine): Simplify function variant emission.
18388 (write_subroutines): New.
18389 (same_codes, clear_codes): Remove.
18390 (same_modes, clear_modes): Remove.
18391 (write_header): New, broken out of main.
18392 (make_insn_sequence): Use new_decision and new_decision_test.
18393 (process_tree): New, broken out of main.
18394 (main): Adjust for merge_trees interface change.
18395 Don't #define operands in the output file.
18396 (record_insn_name): New, broken out of make_insn_sequence.
18397 (debug_decision_2, debug_decision_1, debug_decision_0): New.
18398 (debug_decision): New.
18400 1999-10-04 21:58 -0700 Zack Weinberg <zack@bitmover.com>
18402 * resource.c (find_free_register): Mark class_str argument const.
18403 * resource.h: Update prototype to match.
18405 * i386.h (PREDICATE_CODES): Add entry for long_memory_operand.
18406 * i386.md: Give all anonymous insns names.
18408 Mon Oct 4 21:12:02 1999 Jeffrey A Law (law@cygnus.com)
18410 * flow.c (merge_blocks): Avoid assing BASIC_BLOCK for non-existent
18413 Mon Oct 4 21:01:39 1999 Richard Henderson <rth@cygnus.com>
18415 * toplev.c (dbr_sched_time): Unconditional.
18416 (peephole2_time): New.
18417 (compile_file): Add pass numbers to all of the dump file suffixes.
18418 Dump peephole2_time. Don't dump times for non-applicable passes.
18419 (rest_of_compilation): Add pass numbers to dump file suffixes.
18420 Conditionalize calls to the scheduler.
18421 * invoke.texi: Update.
18423 Mon Oct 4 20:25:13 1999 Anthony Green <green@cygnus.com>
18425 * flow.c (make_edges): Fix insn iteration.
18426 (find_basic_blocks): Assign NULL_RTX, not 0, to rtx.
18427 (find_basic_blocks_1): Fix spelling mistake.
18429 Mon Oct 4 16:56:11 1999 Richard Henderson <rth@cygnus.com>
18431 * tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that
18432 always have side-effects. Use memset not bzero.
18433 (make_node): Likewise.
18435 Mon Oct 4 16:22:20 1999 Mark Mitchell <mark@codesourcery.com>
18437 * stmt.c (expand_anon_union_decl): When any of the elements of the
18438 union is addressable, so is the entire union.
18440 Mon Oct 4 11:38:33 1999 Richard Henderson <rth@cygnus.com>
18442 * sbitmap.c (sbitmap_ones): Don't set too many bits.
18444 * bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
18445 * bitmap.c (bitmap_operation): Return true iff TO changed.
18446 (bitmap_equal_p): New.
18447 (bitmap_bit_p): Tidy arithmetic.
18448 (debug_bitmap_file): Likewise.
18450 Mon Oct 4 11:28:37 1999 Richard Henderson <rth@cygnus.com>
18452 * toplev.c (rest_of_compilation): Turn on cse_not_expected
18453 before cse2 instead of after.
18455 Mon Oct 4 09:55:17 1999 Stan Cox <scox@cygnus.com>
18457 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
18460 Mon Oct 4 08:54:12 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18462 * cppinit.c (is_idchar initializer): Loosen tests to accept
18465 Mon Oct 4 02:31:20 1999 Mark Mitchell <mark@codesourcery.com>
18467 * mips.md: Define conditional move patterns for floating point
18468 operands and DI mode conditions.
18470 Mon Oct 4 02:12:41 1999 Mark Mitchell <mark@codesourcery.com>
18472 * tree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that
18473 always have side-effects.
18475 Sun Oct 3 14:14:16 1999 Jeffrey A Law (law@cygnus.com)
18477 * mn10200.c (asm_file_start): Fix typo.
18479 * cppinit.c (is_idchar initializer): Tighten tests for when
18480 to put the table into initialized memory.
18482 * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
18483 not an array of rtunion.
18484 * gcc-page.c (ggc_alloc_rtvec): Similarly.
18485 * gcc-simple (ggc_free_rtvec): Similarly.
18487 * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
18490 * mbchar.h: Add missing #endif.
18492 * t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
18493 (FPBIT, DPBIT): Define.
18495 Sun Oct 3 12:44:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18497 * print-tree.c (print_node, indent_to): Remove redundant prototypes.
18499 * profile.c (instrument_arcs, output_gcov_string,
18500 tablejump_entry_p): Add static prototypes.
18501 (output_gcov_string): Constify a char*.
18503 * regmove.c (replacement_quality, fixup_match_2): Add static
18506 * resource.h (reg_dead_p): Add extern prototype.
18508 * rtl.c (trim_filename): Add static prototype.
18510 * scan-decls.c (skip_to_closing_brace): Likewise.
18512 * stmt.c (expand_decl_cleanup_no_eh): Hide definition.
18513 (expand_end_case): Initialize variable `range'.
18514 (emit_case_nodes): Remove unused prototype `rtx_fn'.
18516 * varasm.c (asm_emit_uninitialised): Add static prototype.
18517 (asm_emit_uninitialised, assemble_variable): Mark parameter with
18520 Sun Oct 3 12:24:52 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18522 * cpplib.c (if_directive_nameo): Add static prototype.
18524 * cse.c (cse_insn): Remove unused variable `p'.
18526 * except.c (create_rethrow_ref, push_entry,
18527 receive_exception_label, new_eh_region_entry, find_func_region,
18528 clear_function_eh_region, process_nestinfo): Add static prototypes.
18529 (get_reg_for_handler): Hide definition.
18530 (process_nestinfo): Initialize variable `extra_handlers'.
18532 * expr.h (expand_builtin_longjmp): Add extern prototype.
18534 * final.c (final_addr_vec_align, align_fuzz): Add static prototypes.
18536 * function.c (prepare_function_start): Likewise.
18537 (pop_function_context_from): Mark parameter `context' with
18539 (push_temp_slots_for_block, flush_addressof): Hide definition.
18541 * gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
18542 solve_program_flow_graph, calculate_branch_probs,
18543 function_summary, main, fancy_abort): Add prototypes.
18545 * gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
18546 (add_hash): Constify a char*.
18548 * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
18549 ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
18550 ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.
18552 * integrate.c (expand_inline_function_eh_labelmap): Likewise.
18554 * lists.c (free_list, zap_lists): Likewise.
18556 Sun Oct 3 12:05:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18558 * alias.c (nonlocal_reference_p): Add static prototype.
18560 * bitmap.c (bitmap_element_allocate): Prototype args in function
18563 * builtins.c (stabilize_va_list): Add static prototype.
18564 (expand_builtin_va_arg): Constify a char*.
18566 * c-lex.c (getch, put_back, extend_token_buffer_to,
18567 read_line_number, token_getch, token_put_back): Add static
18570 * c-parse.gperf (hash, is_reserved_word): Likewise.
18572 * cccp.c (is_dir_separator): Likewise.
18574 Sat Oct 2 16:07:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18576 * graph.h: New file to prototype functions exported by graph.c.
18578 * Makefile.in (graph.o, toplev.o): Depend on graph.h.
18580 * graph.c: Include graph.h.
18582 * toplev.c: Likewise. Remove redundant prototypes.
18584 Sat Oct 2 11:28:33 1999 Krister Walfridsson <cato@df.lth.se>
18586 * invoke.texi: Removed duplicated description for -Q.
18588 Sat Oct 2 11:16:00 1999 Jim Kingdon <http://developer.redhat.com>
18590 * extend.texi: Grammar fix in __extension__ text.
18592 Sat Oct 2 11:06:31 1999 Richard Henderson <rth@cygnus.com>
18594 * md.texi (define_peephole2): New section.
18596 Sat Oct 2 10:57:56 1999 Jan Hubicka <hubicka@freesoft.cz>
18598 * i386.md (mov?i patterns): Fix handling of TARGET_USE_MOV0
18599 (mov $-1 to or peepholer): Enable for pentium when optimizing for
18602 Sat Oct 2 10:55:25 1999 Jan Hubicka <hubicka@freesoft.cz>
18604 * builtins.c (expand_builtin_strlen): Fix best mode searching loop.
18606 Sat Oct 2 10:53:22 1999 Jan Hubicka <hubicka@freesoft.cz>
18608 * i386.md (ffs expander): Emit Pentium friendly code for
18611 Sat Oct 2 02:48:21 1999 Mark P. Mitchell <mark@codesourcery.com>
18613 * tree.c (build): Don't look at TREE_SIDE_EFFECTS or TREE_RAISES
18615 (build1): Likewise.
18617 Fri Oct 1 18:01:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18619 * i386elf.h (TARGET_DEFAULT): Use symbolic constants.
18621 Fri Oct 1 12:42:53 1999 Andreas Schwab <schwab@suse.de>
18623 * config/m68k/m68k.c (use_return_insn): Return false if the pic
18624 register is in use.
18626 Fri Oct 1 10:56:06 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18628 * md.texi (No Constraints): Delete section.
18629 * Makefile.in (genattrtab.o): Don't depend on "insn-config.h".
18630 * final.c (final_scan_insn): We always have register constraints.
18631 * genattrtab.c: Don't include "insn-config.h".
18632 (write_attr_case): We always have register constraints.
18633 * genconfig.c (register_constraint_flag): Delete.
18634 (walk_insn_part): Don't check whether we have register constraints.
18635 (main): Don't write out "#define REGISTER_CONSTRAINTS".
18636 * genoutput.c (have_constraints): Delete.
18637 (main): Don't set it.
18638 (output_operand_data): We always have constraints.
18639 (scan_operands): Likewise.
18640 (compare_operands): Likewise.
18641 * local-alloc.c (block_alloc): We always have constraints.
18642 (requires_inout): Always compile this function.
18643 * recog.c (extract_insn): We always have constraints.
18644 (constrain_operands, reg_fits_class_p): Always compile these
18646 * recog.h (struct recog_data): Delete non-REGISTER_CONSTRAINTS
18648 (struct insn_operand_data): Likewise.
18649 * regclass.c (regclass): We always have constraints.
18650 (record_reg_classes, copy_cost, record_address_regs,
18651 auto_inc_dec_reg_p): Always compile these functions.
18652 * regmove.c (regmove_optimize): We always have constraints.
18653 * reload.c (find_reloads): Likewise.
18654 * reload1.c (reload): Likewise.
18655 (reload_cse_simplify_operands): Likewise.
18656 * i860.c (output_delay_insn): Likewise.
18658 Thu Sep 30 23:04:41 1999 Mark P. Mitchell <mark@codesourcery.com>
18660 * iris6.h (BUILD_VA_LIST_TYPE): Define.
18662 Thu Sep 30 18:44:50 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18664 * rs6000.c (rs6000_build_va_list): Create a TYPE_DECL node
18665 for the va_list record.
18667 Thu Sep 30 18:34:54 1999 Jan Hubicka <hubicka@freesoft.cz>
18669 * i386.c (ix86_adjust_cost): Ignore false ebp dependencies in
18672 Thu Sep 30 18:31:36 1999 Jan Hubicka <hubicka@freesoft.cz>
18674 * alias.c: Include insn-flags.h.
18675 * Makefile.in (alias.o): Update.
18677 Thu Sep 30 18:21:30 1999 Jan Hubicka <hubicka@freesoft.cz>
18679 * i386.c (ix86_expand_int_movcc): Convert LEU and GTU comparisons
18680 to LTU and GEU. Handle more cases using sbb.
18682 Thu Sep 30 18:18:39 1999 Jan Hubicka <hubicka@freesoft.cz>
18684 * i386.md (truncatexfdf splitters): Do not use subreg.
18685 (fop XFmode patterns): Fix mode in operand testing.
18687 Thu Sep 30 18:04:13 1999 Richard Henderson <rth@cygnus.com>
18689 * jump.c (jump_optimize_1): Amend last change to test only the
18690 form of the operand, not the insn.
18692 * jump.c (jump_optimize_1) [conditional_move]: Use general_operand
18693 not register_operand to determine when B may need preloading.
18695 Thu Sep 30 17:39:16 1999 Richard Henderson <rth@cygnus.com>
18697 * alpha.md (*): Use nonimmediate not general_operand for SET_DEST.
18698 (ffsdi2, extxl, insxh, mskxh): Add missing DImode to SET_SRC.
18699 (call-value patterns): Move to end of file.
18700 (*): Remove mode from label_ref in (pc) context.
18701 (movstrqi): Use memory not general_operand for BLKmode operands.
18702 (prologue_stack_probe_loop, builtin_longjmp): Add missing mode
18703 to register_operand operands.
18704 (peep2 patterns): Convert from commented-out peephole patterns.
18706 Thu Sep 30 14:39:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18708 * tree.h (enum built_in_function): Rename BUILT_IN_DWARF_REG_SIZE
18709 to BUILT_IN_INIT_DWARF_REG_SIZES.
18710 * builtins.c (expand_builtins, case BUILT_IN_INIT_DWARF_REG_SIZES):
18711 Renamed from BUILT_IN_DWARF_REG_SIZE; call
18712 expand_builtin_init_dwarf_reg_sizes.
18713 * c-decl.c (init_decl_processing): Replace __builtin_dwarf_reg_size
18714 with __builtin_init_dwarf_reg_size_table.
18715 * dwarf2out.c (struct reg_size_range): Delete.
18716 (expand_builtin_init_dwarf_reg_sizes): New function.
18717 (expand_builtin_dwarf_reg_size): Delete.
18718 * except.h (expand_builtin_init_dwarf_reg_sizes): Declare.
18719 (expand_builtin_dwarf_reg_size): Don't declare.
18720 * libgcc2.c (dwarf_reg_size_table_initialized): New.
18721 (dwarf_reg_size_table): New.
18722 (init_reg_size_table): New function.
18723 (copy_reg): Use dwarf_reg_size_table.
18724 (eh_context_initialize): Make sure dwarf_reg_size_table is initialized
18727 Thu Sep 30 05:40:34 1999 Richard Earnshaw <rearnsha@arm.com>
18729 * c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
18730 Correctly build argument list to constructor and destructor functions.
18732 Thu Sep 30 00:13:27 1999 Dirk Zoller <duz@rtsffm.com>
18734 * c-tree.h (warn_float_equal): Declare.
18735 * c-decl.c (warn_float_equal): Define.
18736 (c_decode_option): Recognize -W[no-]float-equal.
18737 * c-typeck.c (build_binary_op): Conditionally warn
18738 about equality tests of floating point types.
18739 * toplev.c (documented_lan_options): Add -W[no-]float-equal.
18740 * invoke.texi: Add docs for -Wfloat-equal warning.
18742 Wed Sep 29 23:43:39 1999 Jeffrey A Law (law@cygnus.com)
18744 * h8300.h (INIT_TARGET_OPTABS): Use init_one_optab instead of
18745 generating RTL directly.
18746 * mips.h (INIT_TARGET_OPTABS): Likewise.
18747 * mn10200.h (INIT_TARGET_OPTABS): Likewise.
18749 * expr.h (init_mov_optab): Delete declaration
18751 * h8300.c (WORD_REG_USED): Update to avoid useless register
18752 saves in interrupt functions and functions which never return.
18754 * cse.c (struct set): Delete inner_dest_loc field.
18755 (cse_insn): Remove assignments to inner_dest_loc field.
18757 Wed Sep 29 16:06:20 1999 Richard Henderson <rth@cygnus.com>
18759 * ggc-page.c: Don't include <unistd.h> etc taken care of
18760 by "system.h". Include <sys/mman.h> afterward.
18762 Wed Sep 29 16:05:18 1999 Richard Henderson <rth@cygnus.com>
18764 * rs6000.c (rs6000_encode_section_info): If ggc_p, use
18767 Tue Sep 28 16:45:40 1999 David Edelsohn <edelsohn@gnu.org>
18769 * xcoffout.c (xcoffout_declare_function): Add documentation.
18770 * rs6000.c (num_insns_constant_wide): Use TARGET_POWERPC64 not
18771 TARGET_64BIT. Compare constant to -1, not bit pattern.
18772 (easy_fp_constant): Use TARGET_POWERPC64 not TARGET_64BIT.
18773 (expand_block_move): Allow 8 DImode loads for PowerPC64. Fix
18776 Tue Sep 28 16:43:14 1999 Nick Clifton <nickc@cygnus.com>
18778 * dwarf2out.c (add_abstract_origin_attribute): Abort if
18779 origin_die is NULL.
18780 (gen_inlined_enumeration_type_die): Do not abort if the type has
18781 not been writeen out.
18782 (gen_inlined_structure_type_die): Do not abort if the type has
18783 not been writeen out.
18784 (gen_inlined_union_type_die): Do not abort if the type has
18785 not been writeen out.
18786 (gen_tagged_type_instantiation_die): Do not abort if the type
18787 has not been written out.
18789 Tue Sep 28 14:33:47 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18791 * c-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined,
18793 * reg-stack.c (straighten_stack): Copy hard reg set with
18796 Tue Sep 28 01:11:05 1999 Richard Henderson <rth@cygnus.com>
18798 * builtins.c (stabilize_va_list): Stabilize array type va_list
18799 to a pointer type, not the base record type.
18800 (expand_builtin_va_copy): Dereference the pointers explicitly;
18801 use the correct size for the copy.
18803 * rs6000.c (rs6000_va_start): Dereference valist to get to the record.
18804 (rs6000_va_arg): Likewise.
18806 Mon Sep 27 23:27:21 1999 Richard Henderson <rth@cygnus.com>
18808 * rtl.h (struct rtx_def): Move gc_mark to align mode field.
18810 Mon Sep 27 23:20:29 1999 Mark Mitchell <mark@codesourcery.com>
18812 * tree.h (struct tree_decl): Use `bclass', not `class', in name of
18814 (DECL_BUILT_IN_CLASS): Adjust accordingly.
18816 Mon Sep 27 23:03:16 1999 Richard Henderson <rth@cygnus.com>
18818 * ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
18819 (init_ggc): Use it instead of a constant.
18820 (ggc_collect): Bound allocated_last_gc by it.
18822 Mon Sep 27 19:06:04 1999 Jeffrey A Law (law@cygnus.com)
18824 * fixinc/fixinc.irix (stdio.h): Hack stdio.h to avoid problems
18827 Mon Sep 27 19:40:17 CEST 1999 Marc Espie <espie@cvs.openbsd.org>
18829 * configure.in (mips*el-*-openbsd*): Don't duplicate default settings.
18830 (mips*-*-openbsd*): Let big endian configuration be a fragment.
18831 * configure: Regen.
18832 * config/mips/openbsd.h: New, OpenBSD little endian target.
18833 * config/mips/openbsd-be.h: New, OpenBSD big endian target fragment.
18834 * config/mips/xm-openbsd.h: New, OpenBSD host.
18836 Mon Sep 27 10:28:48 1999 Andreas Schwab <schwab@suse.de>
18838 * config/m68k/m68k.c (output_function_prologue,
18839 output_function_epilogue): Use
18840 current_function_uses_pic_offset_table instead of regs_ever_live
18841 to decide whether to save/restore pic register.
18842 (legitimize_pic_address): Don't modify regs_ever_live any more.
18844 Sun Sep 26 10:55:36 1999 Mark Mitchell <mark@codesourcery.com>
18846 * function.h (struct function): Add x_dont_save_pending_sizes_p.
18847 * stor-layout.c (variable_size): Don't add sizes to the pending
18848 sizes list if x_dont_save_pending_sizes_p is set.
18850 Sun Sep 26 16:36:52 1999 Robert Lipe (robertlipe@usa.net)
18852 * config/i386/dgux.h (SELECT_RTX_SECTION): Provide dummy argument
18853 for symbolic_operand().
18854 * config/i386/sco5.h (SELECT_RTX_SECTION): Likewise.
18856 Sun Sep 26 07:37:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18858 * combine.c (gen_rtx_combine): Add missing call to va_end().
18860 * final.c (asm_fprintf): Likewise.
18862 * genattrtab.c (attr_rtx): Likewise.
18864 Sat Sep 25 13:11:07 1999 Jeffrey A Law (law@cygnus.com)
18866 * cse.c: Update comments.
18867 (cse_insn): When converting a conditional/computed jump into
18868 an unconditional jump, always make sure a BARRIER immediately
18869 follows the converted jump. Do not delete unreachable code.
18870 (cse_basic_block): Do not delete unreachable code.
18871 * toplev.c (rest_of_compilation): Move call to
18872 delete_trivially_dead_insns after the conditional call to
18875 Sat Sep 25 09:03:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18877 * collect2.c (make_temp_file): Don't prototype.
18879 * gcc.c (make_temp_file): Likewise.
18881 * mips.c (mips_make_temp_file): Renamed from `make_temp_file'.
18883 Sat Sep 25 13:42:15 1999 Nick Clifton <nickc@cygnus.com>
18885 * varasm.c (asm_emit_uninitialised): New function: Generate
18886 the assembler statements necessary to declare an uninitialised
18888 (ASM_EMIT_LOCAL): New macro: Emit a local, uninitialised
18890 (ASM_EMIT_BSS): New macro: Emit an entry in the bss section.
18891 (ASM_EMIT_COMMON): New macro: Emit an entry in the common
18893 (assemble_variable): Use asm_emit_uninitialised to emit an
18894 uninitialised variable.
18896 Fri Sep 24 17:10:56 1999 Nick Clifton <nickc@cygnus.com>
18898 * combine.c (simplify_comparison): Cope with downshifting a 32 bit
18899 constant on a 64 bit host. Patch supplied by Geoffrey Keating
18900 <geoffk@cygnus.com>.
18902 Fri Sep 24 10:48:10 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18904 * builtins.c (expand_builtin): Use MD_EXPAND_BUILTIN if defined.
18905 * c-common.h (builtin_function): Don't declare.
18907 * c-decl.c (duplicate_decls): Use DECL_BUILT_IN_CLASS rather than
18909 (pushdecl): Likewise.
18910 (finish_decl): Likewise.
18911 (builtin_function): New arg CLASS. Arg FUNCTION_CODE now of type
18912 int. All callers changed.
18913 Set the builtin's DECL_BUILT_IN_CLASS.
18914 * tree.h (enum built_in_class): New.
18915 (enum built_in_function): Delete NOT_BUILT_IN.
18916 (DECL_FUNCTION_CODE): The corresponding field in tree_decl is now
18918 (DECL_SET_FUNCTION_CODE): Likewise.
18919 (DECL_BUILT_IN_CLASS): New macro.
18920 (DECL_BUILT_IN): Use DECL_BUILT_IN_CLASS.
18921 (struct tree_decl): Split builtin function code field into a
18923 (builtin_function): Declare.
18925 Fri Sep 24 01:45:05 1999 Mark Mitchell <mark@codesourcery.com>
18927 * optabs.c (init_traps): Fix typo in last change.
18929 Fri Sep 24 01:10:11 1999 Mark Mitchell <mark@codesourcery.com>
18931 * toplev.c (rest_of_decl_compilation): Update comment.
18933 Fri Sep 24 11:57:06 1999 Geoffrey Keating <geoffk@cygnus.com>
18935 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol
18936 in .sbss if appropriate.
18937 (EXTRA_SECTION_FUNCTIONS): Add sbss.
18938 (SBSS_SECTION_ASM_OP): New macro.
18939 * config/mips/linux.h (EXTRA_SECTION_FUNCTIONS): Add sbss.
18940 (EXTRA_SECTIONS): Add in_sbss.
18941 * config/mips/mips.h: Prototype sbss_section.
18943 Thu Sep 23 18:18:55 1999 Mark Mitchell <mark@codesourcery.com>
18945 * stmt.c (expand_start_bindings): Don't allow cleanup instructions
18948 Thu Sep 23 18:07:01 1999 Mark Mitchell <mark@codesourcery.com>
18950 * optabs.c (init_traps): Register trap_rtx as a GC root.
18952 Thu Sep 23 17:41:47 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18954 * config/mips/mips.c (function_arg_pass_by_reference): Define
18955 unconditionally, since it's called unconditionally.
18957 Thu Sep 23 13:40:02 1999 Jason Merrill <jason@yorick.cygnus.com>
18959 * toplev.c (documented_lang_options): Add -fshort-wchar.
18960 * c-decl.c (c_decode_option): Likewise.
18961 (init_decl_processing): If -fshort-wchar, use 'short unsigned int'
18963 * c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
18964 * gcc.c (default_compilers): If -fshort-wchar,
18965 override __WCHAR_TYPE__.
18966 * tm.texi (C Dialect Options): Add -fshort-wchar.
18968 * dwarf2out.c (output_aranges): Use DW_AT_location to find the
18969 symbol for a variable.
18971 * cpplib.h (CPP_PREPROCESSED): New macro.
18972 * cpplib.c (handle_directive): Don't complain about `# NUMBER' if
18973 we're seeing this input for a second time.
18975 Thu Sep 23 12:54:49 1999 Alex Samuel <samuel@codesourcery.com>
18977 * emit-rtl.c (init_emit_once): Initialize modes first.
18979 Sun Sep 19 01:23:23 1999 Alex Samuel <samuel@codesourcery.com>
18981 * config/i386/i386.c (pic_label_name): Change to char pointer.
18982 (global_offset_table): New variable.
18983 (load_pic_register): Fill global_offset_table if it hasn't
18984 already been done. Allocate pic_label_name dynamically.
18985 * ggc.h (empty_string): New variable.
18986 * ggc-simple.c (empty_string): Likewise.
18987 (init_ggc): Allocate empty_string and add as root.
18988 * stmt.c (digit_strings): New variable.
18989 (init_stmt): Add last_block_end_note as root. Allocate and
18990 initialize digit_strings.
18991 (expand_asm_operands): Use empty_string instead of string
18992 constant. Use digit_strings instead of string constants.
18993 * profile.c (init_arc_profiler): Allocate string with
18994 ggc_alloc_string instead of xmalloc.
18995 (output_func_start_profiler): Likewise.
18996 * c-typeck.c (digest_init): Check if init is error_mark_node.
18998 Thu Sep 23 12:59:14 1999 Alex Samuel <samuel@codesourcery.com>
18999 Richard Henderson <rth@cygnus.com>
19001 * ggc-page.c: New file.
19002 * Makefile.in (ggc-page.o): New.
19004 Thu Sep 23 13:55:21 1999 Jeffrey A Law (law@cygnus.com)
19006 * invoke.texi: Document -fdelete-null-pointer-checks
19007 * toplev.c (flag_delete_null_pointer_checks): New.
19008 (f_options): Add entry for -fdelete-null-pointer-checks.
19009 (rest_of_compilation): Conditionalize null pointer check
19010 elimination on flag_delete_null_pointer_checks.
19011 (main): If -O2 or greater, enable -fdelete-null-pointer-checks
19013 1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com>
19015 * iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
19016 copyright notice and special exception to GPL.
19018 Thu Sep 23 13:40:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19020 * abi64.h (mips_function_value): Add prototype arguments.
19022 * mips-protos.h: New file with mips prototypes.
19024 * mips.c: Include "tm_p.h".
19025 (mktemp, lookup_name): Add prototype arguments.
19026 (extern_list, string_constant, mips_fill_delay_slot,
19027 mips_output_external, mips_output_external_libcall,
19028 mips_output_filename, mips_declare_object, function_prologue,
19029 mips_expand_prologue, function_epilogue, mips16_constant,
19030 build_mips16_function_stub, mips_output_conditional_branch):
19032 (mips_va_start): Remove unused variable `u'.
19033 (mips_va_arg): Cast value to unsigned when comparing against one.
19035 (save_restore_insns, mips_expand_prologue): Add missing arg in
19036 call to `large_int'.
19038 * mips.h: Move prototypes to mips-protos.h.
19039 (data_section, memory_address_p, rdata_section,
19040 readonly_data_section, simple_epilogue_p, text_section): Delete
19041 prototypes delcared elsewhere.
19042 (mips_epilogue_delay_slots, print_options): Delete unused decls.
19044 (GO_PRINTF, GO_PRINTF2): Call fprintf, not trace.
19046 * mips.md: Delete extra args in call to `mips_move_2words'.
19048 * xm-iris6.h (alloca): Add prototype argument.
19050 * genpeep.c: Include "tm_p.h" in generated output file.
19052 Thu Sep 23 10:36:55 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
19054 * basic-block.h (find_edge_index): Change parameters.
19055 * flow.c (verify_edge_list): Pass basic_block parameters to
19056 find_edge_index instead of integers.
19058 Thu Sep 23 15:54:12 1999 Nick Clifton <nickc@cygnus.com>
19060 * combine.c (simplify_comparison): Use an unsigned shift to adjust
19063 Thu Sep 23 08:46:21 1999 Guy Harris <guy@netapp.com>
19065 * gcc.1: Fix a formatting error.
19067 Wed Sep 22 16:10:21 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
19069 * install.texi (Configurations): Remove pyramid. Add fr30, i686,
19070 i786, mn10200, mn10300, pdp11, v850.
19072 Thu Sep 23 07:37:13 1999 Dan Nicolaescu <dann@ics.uci.edu>
19074 * libgcc2.c (num_digits): Add prototype with
19075 __attribute__((const)).
19076 (__terminate): Add prototype.
19078 Thu Sep 23 05:32:06 1999 Richard Henderson <rth@cygnus.com>
19080 * builtins.c, dbxout.c, varasm.c: Include tm_p.h.
19082 * alpha/alpha.c (print_operand): Fix type of `code'.
19083 (alpha_output_filename): Constify.
19084 * alpha/alpha.h: Move all function declarations ...
19085 * alpha/alpha-protos.h: ... here. New file.
19086 * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function.
19087 (SECTION_FUNCTION_TEMPLATE): Likewise.
19089 Thu Sep 23 11:15:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19091 * expmed.c (do_cmp_and_jump): Pass ccp_jump to can_compare_p.
19092 * expr.c (expand_expr): Likewise.
19093 (do_jump): Likewise.
19094 (do_store_flag): Pass ccp_store_flag to can_compare_p.
19095 * expr.h (enum optab_index): Add cbranch, cmov, cstore optabs and
19097 (enum can_compare_purpose): New.
19098 (can_compare_p): Adjust prototype.
19099 (prepare_cmp_insn, prepare_operand): Declare.
19100 * genopinit.c (optabs): Add cbranch_optab, cmov_optab, cstore_optab.
19101 * optabs.c (cmp_available_p): Deleted.
19102 (expand_abs): Pass ccp_jump to can_compare_p.
19103 (can_compare_p): New arg PURPOSE. Check for combined optabs.
19104 (prepare_cmp_insn): No longer static. Add arg PURPOSE.
19105 Call can_compare_p rather than cmp_available_p.
19106 (prepare_operand): No longer static.
19107 (emit_cmp_and_jump_insn): Check for and use cbranch patterns.
19108 (emit_cmp_and_jump_insns): Pass ccp_jump to prepare_cmp_insn.
19109 (expand_float): Fix a slightly broken emit_cmp_insn/emit_jump_insn
19110 sequence to use emit_cmp_and_jump_insns.
19111 (init_optabs): Initialize cbranch_optab, cmov_optab, cstore_optab.
19113 Wed Sep 22 17:58:01 1999 Stan Cox <scox@cygnus.com>
19115 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large
19116 register offsets; let LEGITIMIZE_ADDRESS load it into a register.
19117 (LEGITIMIZE_ADDRESS): Use plus_constant to avoid
19118 (plus (reg) (const_int 0))
19119 * mips.md (call_internal3c): New pattern for -mips16 -mlong-calls.
19121 Wed Sep 22 17:55:31 1999 David Edelsohn <edelsohn@gnu.org>
19123 * rs6000.c (expand_block_move): DImode loads and stores require
19124 word-aligned displacements. Increment address registers with
19125 adddi3 on 64-bit platform. Use TARGET_POWERPC64 not TARGET_64BIT.
19127 Wed Sep 22 17:35:55 1999 Michael Meissner <meissner@cygnus.com>
19129 * dwarf2out.c (base_type_die): Use the name __unknown__ if there
19130 is no name for the base type, rather than segfault. If we are
19131 writing out a complex integer type, use DW_ATE_lo_user.
19133 * expr.c (emit_move_insn_1): If we are copying a complex that fits
19134 in one word or less (complex char, complex short, or on 64 bit
19135 systems complex float) to/from a hard register, copy it through
19136 memory instead of dying in gen_{real,imag}part. If we have a
19137 short complex type, prevent inlining since it allocates stack
19140 * tree.c (build_complex_type): If we are writing dwarf2 output,
19141 generate a name for complex integer types.
19143 Wed Sep 22 11:34:08 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
19145 * basic-block.h (add_noreturn_fake_exit_edges): Use correct name.
19146 * flow.c (remove_edge): Remove extra whitespace.
19147 (remove_fake_edges): Fix comment.
19148 (add_noreturn_fake_exit_edges): Use the correct name.
19150 Wed Sep 22 16:12:40 BST 1999 Nathan Sidwell <nathan@acm.org>
19152 * Makefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.
19153 (mostlyclean): Depend on INTL_MOSTLYCLEAN.
19154 (clean): Depend on INTL_CLEAN.
19155 (maintainer-clean): Adjust.
19157 Wed Sep 22 10:18:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19159 * configure.in (AC_PREREQ): Bump to 2.13.
19160 (AC_C_STRINGIZE): Call this instead of using a custom macro.
19162 * gansidecl.h (HAVE_STRINGIZE): Define, if stage2 gcc && __STDC__.
19164 * system.h (HAVE_STRINGIZE): Test this instead of HAVE_CPP_STRINGIFY.
19166 * acconfig.h (HAVE_CPP_STRINGIFY): Delete.
19168 * alpha/xm-vms.h (HAVE_CPP_STRINGIFY): Delete.
19169 (HAVE_STRINGIZE): Define.
19171 Wed Sep 22 06:25:15 1999 Jim Kingdon <http://developer.redhat.com>
19173 * c-parse.in: save and restore warn_pointer_arith on __extension__
19174 along with pedantic.
19175 (SAVE_WARN_FLAGS, RESTORE_WARN_FLAGS): Added.
19176 Set the type of extension to itype rather than $<itype>1 kludge.
19177 * extend.texi (Alternate Keywords): Adjust documentation.
19178 * c-parse.c, c-parse.y, objc-parse.c, objc-parse.y: Rebuilt.
19180 Wed Sep 22 06:06:57 1999 Jeffrey A Law (law@cygnus.com)
19182 * pa.c, pa.h, pa.md: Support multiple assembler dialects in
19183 most assembler templates.
19185 * pa.c (hppa_legitimize_address): Handle full offsets for PA2.0
19186 FP loads and stores.
19187 (following_call): Always return zero for the PA8000.
19188 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Handle full offsets for PA2.0
19189 FP loads and stores.
19190 (LEGITIMIZE_RELOAD_ADDRESS): Similarly.
19192 * pa.h (BRANCH_COST): Define.
19194 * pa.md (return, return_internal): Use bve for PA2.0.
19196 * pa.md (fused multiply): Add variants which reduce height for the
19197 fused multiply, but which still generate 2 insns.
19198 (fnegabs): Similarly.
19200 * pa.md (subsi3): Turn into an expander. Create two anonymous
19201 patterns. One for PA2.0 one for PA1.x. Use mtsarcm for PA2.0.
19202 * pa.h (EXTRA_CONSTRAINT): Handle 'S'.
19204 * pa.md (floatunssisf2, floatunssidf2): Generate different RTL
19206 (floatunssidf2_pa20, floatunssisf2_pa20): New patterns for PA2.0
19208 (floatunsdisf2, floatunsdidf2, fixuns_truncsfsi2): Likewise.
19209 (fixuns_truncdfsi2, fixuns_truncsfdi2, fixuns_truncdfsi2): Likewise.
19211 * regclass.c (init_regs): Add "top_of_stack" as a garbage
19214 * flow.c (record_active_eh_regions): Terminate loop after finding
19215 the last insn in the last basic block.
19217 Wed Sep 22 20:25:00 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19219 * config/c4x/c4x.md: Delete parallel instruction peepholes.
19221 Wed Sep 22 19:59:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19223 * config/c4x/c4x.c (c4x_add_gc_roots): Add tree roots.
19225 Wed Sep 22 19:56:25 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19227 * config/c4x/c4x.c (c4x_process_after_reload): Rework machdep insn
19228 splitting to not use output template.
19230 Wed Sep 22 19:50:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19232 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.
19233 * config/c4x/c4x.c (c4x_va_start): New function.
19235 Tue Sep 21 18:40:01 1999 Jan Hubicka <hubicka@freesoft.cz>
19237 * genrecog.c (not_both_true): Handle correctly cases when called for
19238 tests with different positions in the insn.
19240 Tue Sep 21 18:29:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19242 * machmode.h (HOST_PTR_PRINTF): Move from here ...
19244 * system.h (HOST_PTR_PRINTF): ... to here.
19246 * mips-tfile.c: Don't include machmode.h.
19248 * Makefile.in (MACHMODE_H): New variable. Update to use it.
19249 (mips-tfile.o): Don't depend on machmode.h.
19251 Tue Sep 21 18:27:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19253 * haifa-sched.c (sched_analyze): Rename local variable `region' to
19254 avoid conflicts with typedef struct `region' at the top level scope.
19256 Tue Sep 21 14:14:50 1999 Richard Henderson <rth@cygnus.com>
19258 * basic-block.h (basic_block): Add eh_beg, eh_end.
19259 * flow.c (entry_exit_blocks): Update.
19260 (find_basic_blocks): Don't allocate bb_eh_end, or pass it around.
19261 Call new functions.
19262 (find_basic_blocks_1): Don't record eh_list at each bb. Use
19263 lists.c functions to allocate insn lists.
19264 (make_edges): Use eh_beg+eh_end, not the lists. Split out EH
19266 (make_eh_edge): ... here. New.
19267 (move_stray_eh_region_notes): New.
19268 (record_active_eh_regions): New.
19269 (delete_unreachable_blocks): Split out block merging ...
19270 (try_merge_blocks): ... here. New.
19271 (merge_blocks_move_predecessor_nojumps): Remove edge arg.
19272 Dump debugging data.
19273 (merge_blocks_move_successor_nojumps): Likewise.
19274 (merge_blocks): Use eh_beg+eh_end to validate block movement.
19276 Tue Sep 21 11:15:03 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
19278 * extend.texi (Bound member functions): Document unbound pmf
19281 Tue Sep 21 14:55:11 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
19283 * flow.c (split_edge): Handle insertion on a fallthrough edge which
19284 has the EXIT_BLOCK as a dest.
19286 Tue Sep 21 14:51:23 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
19288 * flow.c (remove_edge): New function to remove an edge from the
19290 (remove_fake_successors): New function to remove fake successor edges.
19291 (remove_fake_edges): New function to remove all fake edges from the
19293 (add_fake_exit_edges): New function to add fake edges from all blocks
19294 with no successors to the exit block.
19295 * basic-block.h (remove_fake_edges, add_fake_exit_edges): Add
19296 prototypes for new functions.
19298 Tue Sep 21 14:49:53 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
19300 * config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR):
19301 Use Pmode to determine whether to output .dword or .word.
19303 Tue Sep 21 11:04:34 1999 Alex Samuel <samuel@codesourcery.com>
19305 * tree.c (built_in_filename): New variable.
19306 (BUILT_IN_FILENAME): New macro.
19307 (init_tree_codes): Allocate built_in_filename.
19308 (make_node): Use built_in_filename instead of string constant.
19310 Tue Sep 21 14:13:27 1999 Nick Clifton <nickc@cygnus.com>
19312 * configure.in: Add fr30 target.
19313 * configure: Regenerate.
19314 * config/fr30: New directory.
19315 * config/fr30/crti.asm: New file.
19316 * config/fr30/fr30.c: New file.
19317 * config/fr30/crtn.asm: New file.
19318 * config/fr30/fr30.h: New file.
19319 * config/fr30/fr30.md: New file.
19320 * config/fr30/lib1funcs.asm: New file.
19321 * config/fr30/t-fr30: New file.
19322 * config/fr30/xm-fr30.h: New file.
19324 Tue Sep 21 06:45:31 1999 Jeffrey A Law (law@cygnus.com)
19326 * flow.c (merge_blocks_move_successor_nojumps): Delete the
19327 BARRIER at the end of the successor, not the BARRIER before
19330 * pa.c (pa_add_gc_roots): Fix thinko in last change.
19332 Tue Sep 21 05:29:17 1999 Richard Earnshaw (rearnsha@arm.com)
19334 * stmt.c (any_pending_cleanups): Don't crash when
19335 current_function->stmt is unset.
19337 Tue Sep 21 00:59:49 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
19339 * emit-rtl.c (init_emit_once): Initialize const_int_rtx before
19340 other initializations that may use it for relative offsets.
19342 Mon Sep 20 21:43:25 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
19344 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
19345 (ASM_SPEC): Moved from sol2dbg.h. Added work-around for gas.
19346 * config/i386/sol2dbg.h: Removed.
19347 * config/i386/sol2gas.h: New file, to enable gas work-around.
19348 * configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas.
19349 Don't use sol2dbg.h.
19350 * configure: Rebuilt.
19352 Mon Sep 20 13:29:41 1999 Mark Mitchell <mark@codesourcery.com>
19354 * invoke.texi (-fthis-is-variable): Remove documentation.
19356 Mon Sep 20 12:59:16 1999 Richard Henderson <rth@cygnus.com>
19358 * basic-block.h (compute_bb_for_insn): Declare.
19359 * flow.c (compute_bb_for_insn): Export. Don't accept the varray
19360 to use; set size of basic_block_for_insn directly.
19361 (find_basic_blocks): Update.
19363 Mon Sep 20 15:11:54 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19365 * flow.c (verify_flow_info): Fix typo, "abort;" -> "abort ();".
19367 Mon Sep 20 14:56:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19369 * crtstuff.c (ON_EXIT): Delete empty macro definition.
19370 (__do_global_ctors_aux): Call atexit(), not ON_EXIT().
19372 Mon Sep 20 15:25:35 1999 Nick Clifton <nickc@cygnus.com>
19374 * c-decl.c (c_decode_option): Extend comment.
19376 Mon Sep 20 14:43:37 1999 Nick Clifton <nickc@cygnus.com>
19378 * toplev.c (progname): Make 'const char *'
19379 (flag_print_mem): Move out of main.
19380 (version_flag): Move out of main.
19381 (filename): Move out of main.
19382 (debug_args): Remove g prefix from options.
19383 (documented_lang_options): Remove cpplib specific options.
19384 (display_help): Add g prefix to debug options.
19385 (check_lang_option): Delete this function.
19386 (decode_d_option): New function: Decode -d... option.
19387 (decode_f_option): New function: Decode -f... option.
19388 (decode_W_option): New function: Decode -W... option.
19389 (decode_g_option): New function: Decode -g... option.
19390 (independent_decode_option): New function: Decode a language
19391 independent command line option.
19392 (main): Invoke lang_decode_option and then
19393 independent_decode_option on each command line option in
19396 Mon Sep 20 05:41:36 1999 Jeffrey A Law (law@cygnus.com)
19398 Revert this change. Gavin's patch to operand_equal_p is a better fix.
19399 * fold-const.c (fold_range_test): Do not try to fold the range
19400 test if the rhs or lhs has side effects.
19402 * basic-block.h (compute_flow_dominators): Declare.
19404 * gcse.c (alloc_code_hoist_mem): New function.
19405 (free_code_hoist_mem, compute_code_hoist_vbeinout): Likewise.
19406 (compute_code_hoist_data, hoist_expr_reaches_here_p): Likewise.
19407 (hoist_code, one_code_hoisting_pass): Likewise.
19408 (gcse_main): If optimizing for size, then hoist expressions
19409 computed in multiple dominated basic blocks.
19411 * gcse.c (invalid_nonnull_info): New function.
19412 (delete_null_pointer_checks): Likewise.
19413 * rtl.h (delete_null_pointer_checks): Declare.
19414 * toplev.c (rest_of_compilation): Call delete_null_pointer_checks.
19416 * flow.c (merge_blocks_move_predecessor_nojumps): New function.
19417 (merge-blocks_move_successor_nojumps): Likewise.
19418 (merge_blocks): Allow merging of some blocks, even if it requires
19419 physical movement of the blocks, but not if it requires new jumps.
19421 * bitmap.c (debug_bitmap_file): Renmaed from bitmap_debug_file.
19422 Callers and prototype changed.
19423 * bitmap.h: Fix debug_bitmap and debug_bitmap_file prototypes.
19425 Mon Sep 20 06:56:32 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
19427 * config/sparc/sol2.h (LINK_SPEC): Avoid the duplication of
19428 -YP when both -p and -pg are present. From i386/sol2.h.
19430 Mon Sep 20 10:49:05 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19432 * Makefile.in (distclean): Delete tm_p.h.
19433 * configure.in: Create a new file, "tm_p.h", from a list in
19434 "tm_p_file". For ix86 systems, set up "tm_p_file" to include
19435 "i386/i386-protos.h".
19437 * alias.c: Include "tm_p.h".
19438 * c-typeck.c: Likewise.
19439 * calls.c: Likewise.
19441 * emit-rtl.c: Likewise.
19442 * explow.c: Likewise.
19443 * expmed.c: Likewise.
19444 * expr.c: Likewise.
19445 * final.c: Likewise.
19446 * flow.c: Likewise.
19447 * fold-const.c: Likewise.
19448 * function.c: Likewise.
19449 * gcse.c: Likewise.
19450 * global.c: Likewise.
19451 * haifa-sched.c: Likewise.
19452 * integrate.c: Likewise.
19453 * jump.c: Likewise.
19454 * local-alloc.c: Likewise.
19455 * loop.c: Likewise.
19456 * optabs.c: Likewise.
19457 * recog.c: Likewise.
19458 * reg-stack.c: Likewise.
19459 * regclass.c: Likewise.
19460 * regmove.c: Likewise.
19461 * reload.c: Likewise.
19462 * reload1.c: Likewise.
19463 * reorg.c: Likewise.
19464 * resource.c: Likewise.
19465 * stmt.c: Likewise.
19466 * stor-layout.c: Likewise.
19467 * toplev.c: Likewise.
19468 * tree.c: Likewise.
19469 * unroll.c: Likewise.
19470 * genattrtab.c (main): Make generated file include "tm_p.h".
19471 * genemit.c (main): Likewise.
19472 * genoutput.c (main): Likewise.
19473 * genrecog.c (main): Likewise.
19475 * i386.h: Delete all prototypes.
19476 * i386.c: Include "tm_p.h".
19477 (ix86_attr_length_default): Call constant_call_address_operand
19478 with correct number of arguments.
19479 * i386-protos.h: New file.
19480 * i386.md (unnamed patterns): Call constant_call_address_operand
19481 with correct number of arguments.
19482 (exception_receiver): Call load_pic_register with correct number
19485 Sun Sep 19 14:18:39 1999 Richard Henderson <rth@cygnus.com>
19487 * c-pragma.c (mark_align_stack): Dereference the void* properly.
19489 Sun Sep 19 09:03:40 1999 Mark Mitchell <mark@codesourcery.com>
19491 * rtl.h (insns_safe_to_move_p): New function.
19492 * loop.c (find_and_verify_loops): Use it.
19493 * rtlanal.c (insns_safe_to_move_p): Define it.
19495 Sun Sep 19 02:54:33 1999 Richard Henderson <rth@cygnus.com>
19497 * c-pragma.c: Include ggc.h.
19498 * Makefile.in (c-pragma.o): Update.
19500 Sat Sep 18 16:01:18 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
19502 * config/i386/sol2.h (CPP_SPEC): Support -[p]threads
19503 (LIB_SPEC): Likewise.
19504 (LINK_SPEC): Do not assert -z text with -shared -mimpure-text.
19505 Reindent -YP/-p/-pg.
19506 Copied from config/sparc/sol2.h.
19508 Sat Sep 18 11:52:43 1999 Richard Henderson <rth@cygnus.com>
19510 * c-pragma.c (mark_align_stack): New.
19511 (init_pragma): New.
19512 * c-pragma.h (init_pragma): Declare it.
19513 * c-lex.c (init_parse): Call it.
19515 Sat Sep 18 15:20:38 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
19517 * configure.in: Pick up thread library on Solaris/x86 just
19518 like on Solaris/sparc.
19519 * configure: Rebuilt.
19521 Sat Sep 18 11:15:58 1999 Alex Samuel <samuel@codesourcery.com>
19523 * rtl.h (global_rtx_index): New enum.
19524 (global_rtl): Change to array of rtx.
19525 (pc_rtx, cc0_rtx): Redefine accordingly.
19526 (cc0_rtx, stack_pointer_rtx, frame_pointer_rtx): Likewise.
19527 (hard_frame_pointer_rtx, arg_pointer_rtx): Likewise.
19528 (virtual_incoming_args_rtx, virtual_stack_vars_rtx): Likewise.
19529 (virtual_outgoing_args_rtx, virtual_cfa): Likewise.
19530 (const_int_rtx): Change to array of rtx.
19531 (const0_rtx, const1_rtx, const2_rtx, constm1_rtx): Redefine
19533 * emit-rtl.c (global_rtl): Change to array of rtx.
19534 (const_int_rtx): Change to aray of rtx.
19535 (gen_rtx_CONST_INT): Redefine accordingly.
19536 (init_emit_once): Allocate and initialize global_rtl. Likewise
19537 for const_int_rtx. Add both as GC roots.
19538 * genattrtab.c (global_rtl): Update declaration.
19540 1999-09-17 Ulrich Drepper <drepper@cygnus.com>
19542 * Makefile (USER_H): Add iso646.h back.
19544 Sat Sep 18 01:07:21 1999 Jeffrey A Law (law@cygnus.com)
19546 * haifa-sched.c (sched_analyze): Use free_INSN_LIST_list instead of
19547 zapping the LOG_LINKS of sched_before_next_call.
19549 * pa.h (INSN_SETS_ARE_DELAYED): Delete.
19550 * pa.c (insn_refs_are_delayed): Renamed from
19551 insn_sets_and_refs_are_delayed.
19553 Fri Sep 17 15:19:01 1999 Mark Mitchell <mark@codesourcery.com>
19555 * functiion.h (struct function): Add x_whole_function_mode_p.
19556 (retrofit_block): Declare.
19557 * function.c (retrofit_block): New function.
19558 (identify_blocks): Add assertions. Allow an incomplete set of
19559 block notes if we're still generating code for the function.
19560 * integrate.c: Include loop.h.
19561 (expand_inline_function): Call find_loop_tree_blocks to map block
19562 notes to blocks when in whole-function mode. Use retrofit_block
19563 to insert new BLOCKs for the inlined function, rather than
19565 * stmt.c (expand_fixup): Likewise. Don't use pushlevel/polevel.
19566 * Makefile.in (integrate.o): Depend on loop.h.
19568 Fri Sep 17 15:11:20 1999 Mark Mitchell <mark@codesourcery.com>
19570 * tree.h (warn_about_unused_variables): Declare.
19571 * stmt.c (warn_about_unused_variables): New function, split out
19573 (expand_end_bindings): Here.
19575 Fri Sep 17 15:07:37 1999 Mark Mitchell <mark@codesourcery.com>
19577 * stmt.c (preserve_subexpressions_p): Don't crash when
19578 current_function->stmt is unset.
19580 Fri Sep 17 15:03:16 1999 Mark Mitchell <mark@codesourcery.com>
19582 * stmt.c (expand_start_bindings): Allow callers to pass a flag
19583 indicating that no NOTE_INSN_BLOCK_BEG note is required.
19584 (expand_start_target_temps): Use it.
19585 * except.c (expand_eh_region_start_for_decl): Likewise.
19586 * expr.c (expand_expr): Likewise.
19588 Fri Sep 17 15:05:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
19590 * fold-const.c (operand_equal_p): Pay attention to side effects.
19592 Fri Sep 17 11:14:17 1999 Jason Merrill <jason@yorick.cygnus.com>
19594 * libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
19595 * sparc/sunos4.h (HAVE_ON_EXIT): Remove.
19597 * tlink.c (scan_linker_output): Look for keywords before accepting
19598 a mangled name in quotes.
19600 Thu Sep 16 16:47:08 1999 Richard Henderson <rth@cygnus.com>
19602 * alpha/alpha-interix.h (DWARF2_UNWIND_INFO): Define to zero.
19603 * alpha/osf2or3.h (DWARF2_UNWIND_INFO): Likewise.
19605 Thu Sep 16 16:35:41 1999 Richard Henderson <rth@cygnus.com>
19607 * alpha.md: Revert Thu Nov 26 change that came in through the
19608 last gcc2 merge: reinstate (plus (plus ...)) reload patterns.
19609 Avoid earlyclobber when possible.
19611 Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19613 * libgcc2.c (__do_global_ctors): Call atexit with one arg.
19615 * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
19616 Define HAVE_ON_EXIT.
19618 Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19620 * system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
19621 CTYPE_CONV in all ctype macros.
19623 * cccp.c (initialize_char_syntax): Use uppercase ctype macro
19626 * cexp.y (initialize_random_junk): Likewise.
19628 * c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.
19630 * i370.c (handle_pragma): Likewise.
19632 * i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.
19634 * v850.c (override_options): Likewise.
19636 * doprint.c (_doprnt): Likewise.
19638 * fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
19641 * fixinc/server.c (load_data): Likewise.
19643 * fold-const.c (real_hex_to_f): Likewise.
19645 * genattr.c (write_upcase, gen_attr): Likewise.
19647 * genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
19648 write_upcase): Likewise.
19650 * genemit.c (print_code): Likewise.
19652 * genopinit.c (gen_insn): Likewise.
19654 * genpeep.c (print_code): Likewise.
19656 * genrecog.c (print_code): Likewise.
19658 * optabs.c (init_libfuncs): Likewise.
19660 Thu Sep 16 14:03:32 1999 Mark Mitchell <mark@codesourcery.com>
19662 * haifa-sched.c (sched_analyze): Keep the list of notes organized
19664 (reemit_notes): Likewise.
19666 Thu Sep 16 11:50:52 1999 Alex Samuel <samuel@codesourcery.com>
19668 * ggc.h (ggc_root): Move to ggc-common.c.
19670 (ggc_mark_rtx, ggc_mark_tree): Change to macro.
19671 (ggc_mark_rtvec, ggc_mark_tree_varray): Declare extern.
19672 (ggc_mark_tree_hash_table, ggc_mark_string, ggc_mark): Likewise.
19673 (ggc_mark_roots, ggc_mark_rtx_children, ggc_mark_tree_children): New.
19674 * ggc-common.c (ggc_root): Move from ggc.h.
19675 (roots): Declare, static.
19676 (ggc_mark_rtx, ggc_mark_tree): Renamed to...
19677 (ggc_mark_rtx_children, ggc_mark_tree_children): Don't check for
19678 null or check/set mark bit.
19679 (ggc_mark_roots): New.
19680 * ggc-simple.c (ggc_collect): Call ggc_mark_roots.
19682 Thu Sep 16 11:37:32 1999 Richard Henderson <rth@cygnus.com>
19684 * m32r.c: Include toplev.h.
19685 (*): Add ATTRIBUTE_UNUSED as needed to arguments.
19686 (gen_compare): Rename swap_p to must_swap to match uses.
19687 Add default abort case.
19688 (m32r_output_function_epilogue): Remove unused variables.
19689 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
19690 * m32r.h (PROTO, STDIO_PROTO): Rename XPROTO; unconditionally
19691 define to empty parameter list. Update all uses.
19692 (predicate decls): Use enum machine_mode not int.
19693 * m32r.md (movsi): Call abort, not fatal_insn.
19694 (zero_branch_insn, rev_zero_branch_insn): Add default abort case.
19696 1999-09-14 Andrew Haley <aph@cygnus.com>
19698 * config/mips/mips.md (movsi_usw): if operand 1 is const_int 0,
19699 use $0 instead of 0.
19701 Thu Sep 16 10:53:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19703 * reload1.c (order_regs_for_reload): Move hard_reg_n_uses
19704 computation out of loop over hard regs.
19706 Wed Sep 15 21:37:06 1999 Mark Mitchell <mark@codesourcery.com>
19708 * function.c (identify_blocks): Don't shadow a variable in an
19710 * integrate.c (integrate_decl_tree): Don't use pushlevel,
19711 pushdecl, or poplevel to build up the new BLOCK tree.
19712 (expand_inline_function): Likewise.
19713 (integrate_parm_decls): Likewise.
19715 Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
19717 * c-typeck.c (qualify_type): Merge qualifiers from both types.
19719 1999-09-15 Brad Lucier <lucier@math.purdue.edu>
19721 * toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
19722 * invoke.texi: Document this change.
19724 Wed Sep 15 17:56:00 1999 Richard Henderson <rth@cygnus.com>
19726 * emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
19728 (mark_emit_status): Renamed from mark_emit_state.
19729 * except.c (mark_eh_status): Renamed from mark_eh_state.
19730 Check not null before marking.
19731 (free_eh_status): New.
19732 * expr.c (mark_expr_status, free_expr_status): New.
19733 * function.c (free_machine_status): New.
19734 (free_after_parsing): New.
19735 (free_after_compilation): Move bits to free_after_parsing; call
19736 free_eh_status, free_expr_status; zero the marked members of the
19738 (prepare_function_start): No can_garbage_collect.
19739 Call init_eh_for_function.
19740 (expand_dummy_function_end): Free up current_function state.
19741 (mark_function_status): Renamed from mark_function_state.
19742 (mark_function_chain): No can_garbage_collect. Call mark_expr_status.
19743 * function.h (struct function): No can_garbage_collect.
19744 (free_machine_status, free_after_parsing): Declare.
19745 (free_eh_status, free_expr_status): Declare.
19746 * ggc.h (mark_expr_status): Declare.
19747 * stmt.c (free_stmt_status): Free the struct.
19748 (mark_stmt_status): Renamed from mark_stmt_state.
19749 (init_stmt): Don't call init_eh.
19750 (init_stmt_for_function): Don't call init_eh_for_function.
19751 * toplev.c (compile_file): Call init_eh.
19752 (rest_of_compilation): Free basic block info before ggc_collect.
19753 Call free_after_parsing; conditionally call free_after_compilation.
19754 * varasm.c (mark_varasm_status): Renamed from mark_varasm_state.
19755 Check not null before marking.
19756 (free_varasm_status): Don't check DECL_DEFER_OUTPUT. Free the struct.
19758 Wed Sep 15 17:53:16 1999 Richard Henderson <rth@cygnus.com>
19760 * c-lex.c (yylex): Initialize warn.
19762 Wed Sep 15 18:35:38 1999 Jeffrey A Law (law@cygnus.com)
19764 * pa.c (emit_move_sequence): Properly set the mode of the scratch
19765 register when performing secondary reloads for the SAR register.
19767 Wed Sep 15 15:51:52 1999 Mark Mitchell <mark@codesourcery.com>
19769 * rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
19770 (NOTE_BLOCK): New macro.
19771 (NOTE_BLOCK_LIVE_RANGE_BLOCK): Remove.
19772 * function.h (identify_blocks): Change prototype.
19773 * function.c (identify_blocks): Simplify.
19774 (reorder_blocks): Likewise.
19775 * ggc-common.c (ggc_mark_rtx): Mark the BLOCK associated with a
19776 NOTE_INSN_BLOCK_{BEG,END}.
19777 * haifa-sched.c (sched_analyze): Don't put NOTE_BLOCK_NUMBER on
19778 the list of saved notes if the note isn't a
19779 NOTE_INSN_BLOCK_{BEG,END}.
19780 (move_insn1): Use NOTE_EH_HANDLER in comment, rather than
19782 (reemit_notes): Adjust recreation of notes to reflect new saved
19784 * print-rtl.c (print_rtx): Print the address of the BLOCK when
19785 printing a block note.
19786 * stmt.c (block_vector): Remove.
19787 (find_loop_tree_blocks): Simplify.
19788 (unroll_block_trees): Likewise.
19789 * tree.h (reorder_block): Change prototype.
19791 Wed Sep 15 14:39:35 1999 Jason Merrill <jason@yorick.cygnus.com>
19793 * gbl-ctors.h: Lose HAVE_ATEXIT. Don't define ON_EXIT.
19794 * libgcc2.c: Lose obsolete defn of WEAK_ALIAS.
19795 (__bb_init_func, __bb_init_prg): Use atexit instead of ON_EXIT.
19796 (__do_global_dtors): Likewise. Don't mess with _exit_dummy_decl.
19797 (atexit, exit): Simplify.
19798 * tm.texi: Document NEED_ATEXIT and ON_EXIT. Remove HAVE_ATEXIT.
19799 * config/lots: Remove defns of HAVE_ATEXIT.
19801 Wed Sep 15 10:25:12 1999 Mark Mitchell <mark@codesourcery.com>
19803 * calls.c (precompute_arguments): Fix typo in comment.
19804 * expr.c (preexpand_calls): Don't preexpand the cleanup in a
19807 Wed Sep 15 09:59:59 1999 Mark Mitchell <mark@codesourcery.com>
19809 * dsp16xx.c (override_options): Fix typos in GC root registration.
19811 Wed Sep 15 15:23:28 1999 Philip Blundell <pb@nexus.co.uk>
19813 * config/arm/linux-elf.h (MAKE_DECL_ONE_ONLY): Copy definition
19814 from config/svr4.h.
19815 (UNIQUE_SECTION_P, UNIQUE_SECTION): Likewise.
19816 (FUNCTION_PROFILER): Redefine appropriately for Linux.
19817 (CC1_SPEC): Likewise.
19819 Wed Sep 15 10:09:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19821 * genattr.c (main): Add extern prototype. Call return, not exit.
19822 * genattrtab.c (main): Likewise.
19823 * gencheck.c (main): Likewise.
19824 * gencodes.c (main): Likewise.
19825 * genconfig.c (main): Likewise.
19826 * genemit.c (main): Likewise.
19827 * genextract.c (main): Likewise.
19828 * genflags.c (main): Likewise.
19829 * gengenrtl.c (main): Likewise.
19830 * genopinit.c (main): Likewise.
19831 * genoutput.c (main): Likewise.
19832 * genpeep.c (main): Likewise.
19833 * genrecog.c (main): Likewise.
19835 * genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED.
19836 * genattrtab.c (get_insn_name): Likewise.
19837 * gencodes.c (get_insn_name): Likewise.
19838 * genconfig.c (get_insn_name): Likewise.
19839 * genemit.c (get_insn_name): Likewise.
19840 * genextract.c (get_insn_name): Likewise.
19841 * genflags.c (get_insn_name): Likewise.
19842 * genopinit.c (get_insn_name): Likewise.
19843 * genpeep.c (get_insn_name): Likewise.
19845 * gencheck.c (usage): Add static prototype.
19846 * genextract.c (print_path): Constify a char*.
19847 * genopinit.c (optabs): Likewise.
19848 * genoutput.c (operand_data, data, output_predicate_decls,
19849 compare_operands): Likewise.
19850 * genrecog.c (write_tree): Add default case in switch.
19852 Wed Sep 15 09:59:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19854 * rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.
19856 * print-rtl.c (get_insn_name): Remove prototype.
19858 * toplev.h (progname): Declare const.
19860 * toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
19861 init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
19862 dump_sched_info, dump_local_alloc, regset_release_memory,
19863 print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
19864 error_with_file_and_line, error_with_decl, error_for_asm, error,
19865 fatal, warning_with_file_and_line, warning_with_decl, warning,
19866 pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
19867 Remove redundant prototypes.
19869 (notice, check_lang_option, report_file_and_line, vnotice,
19870 mark_file_stack): Add static prototype.
19871 (set_fatal_function): Add prototype.
19872 (vnotice, report_file_and_line, set_fatal_function,
19873 check_lang_option): Constify a char*.
19874 (main): Prototype. Call return, not exit.
19876 Wed Sep 15 09:50:18 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19878 * aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
19880 * configure.in (AC_GCC_C_LONG_DOUBLE): Call it.
19882 * gansidecl.h (HAVE_LONG_DOUBLE): Define if gcc for stage2.
19884 * ggc-simple.c (HAVE_LONG_DOUBLE): Test before using long double.
19886 Wed Sep 15 11:04:43 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19888 * function.c (assign_parms): Delete arg SECOND_TIME. Don't test it,
19889 behave as if it's zero in all cases.
19890 (expand_function_start): Adjust call to assign_parms.
19891 * tree.h (assign_parms): Adjust prototype.
19892 * objc/objc-act.c (hack_method_prototype): Adjust call to
19895 Tue Sep 14 21:47:06 1999 Jeffrey A Law (law@cygnus.com)
19897 * cse.c (FIXED_BASE_PLUS_P): Do not consider referneces to
19898 arg_pointer_rtx fixed if the argument pointer register is
19900 (NONZERO_BASE_PLUS_P): Likewise.
19902 Tue Sep 14 20:26:02 1999 Richard Henderson <rth@cygnus.com>
19904 * rtl.def (match_insn, match_insn2): Remove match_insn; rename
19905 match_insn2 to match_insn.
19906 * genrecog.c (add_to_sequence): Rename MATCH_INSN2.
19908 Tue Sep 14 20:10:29 1999 Richard Henderson <rth@cygnus.com>
19910 * Makefile.in (USER_H): Remove va-foo.h.
19912 * ginclude/{va-alpha.h,va-arc.h,va-c4x.h,va-clipper.h,va-h8300.h,
19913 va-i860.h,va-i960.h,va-m32r.h,va-m88k.h,va-mips.h,va-mn10200.h,
19914 va-mn10300.h,va-pa.h,va-ppc.h,va-pyr.h,va-sh.h,va-sparc.h,
19915 va-spur.h,va-v850.h}: Remove.
19917 Tue Sep 14 19:43:16 1999 Richard Henderson <rth@cygnus.com>
19919 * sparc/sparc.md (eligible_for_return_delay): New attribute.
19920 (in_return_delay): Use it instead of match_insn.
19922 Tue Sep 14 23:05:37 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
19924 * config/alpha/va_list.h (va-alpha.h): Do not include.
19925 (__gnuc_va_list): Typedef as in varargs.h.
19927 Tue Sep 14 18:14:03 1999 Richard Henderson <rth@cygnus.com>
19929 * ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and
19930 DECL_LIVE_RANGE_RTL.
19932 Tue Sep 14 16:47:08 1999 Mark Mitchell <mark@codesourcery.com>
19934 * except.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER,
19935 not NOTE_BLOCK_NUMBER.
19936 (expand_eh_region_end): Likewise.
19937 (find_exception_handler_labels): Likewise.
19938 (scan_region): Likewise.
19939 (exception_optimize): Likewise.
19940 (update_rethrow_references): Likewise.
19941 (set_insn_eh_region): Likewise.
19942 * final.c (final_scan_insn): Likewise.
19943 * flow.c (make_edges): Likewise.
19944 * integrate.c (expand_inline_function): Likewise.
19945 * print-rtl.c (print_rtx): Likewise.
19947 Tue Sep 14 16:30:16 1999 Richard Henderson <rth@cygnus.com>
19949 * ginclude/stdarg.h, ginclude/varargs.h: Implement in
19950 terms of builtin functions and types.
19952 * mips.c (mips_build_va_list): New.
19953 (mips_va_start, mips_va_arg): New.
19954 * mips.h (BUILD_VA_LIST_TYPE): New.
19955 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
19957 * sh.c (sh_builtin_saveregs): Use get_varargs_alias_set.
19958 (sh_build_va_list, sh_va_start, sh_va_arg): New.
19959 * sh.h (BUILD_VA_LIST_TYPE): New.
19960 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
19962 Tue Sep 14 16:20:24 1999 Richard Henderson <rth@cygnus.com>
19964 * recog.h (struct recog_data): Make dup_num, operand_address_p,
19965 n_operands, n_dups, n_alternatives `char' instead of `unsigned char'.
19966 (struct insn_data): Likewise with n_operands, n_dups,
19967 n_alternatives, output_format.
19968 * regclass.c (scan_one_insn): Cast n_operands to int before
19969 arithmetic inside comparison.
19971 Tue Sep 14 15:13:36 1999 Richard Henderson <rth@cygnus.com>
19973 * toplev.c (compile_function): Unconditionally emit nop.
19975 Tue Sep 14 14:41:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19977 * haifa-sched.c (actual_hazard): Move declaration of variable
19978 `this_cost' into the scope where it is used.
19980 Tue Sep 14 14:14:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19982 * c-pragma.c (handle_pragma_token): Wrap variables `name' and
19983 `value' in HANDLE_PRAGMA_WEAK. Wrap variable `align' in
19984 HANDLE_PRAGMA_PACK||HANDLE_PRAGMA_PACK_PUSH_POP.
19986 * genrecog.c (make_insn_sequence): Call memset, not bzero.
19988 * jump.c (find_insert_position): Don't declare or define unless
19989 !HAVE_conditional_arithmetic.
19990 (returnjump_p_1, delete_prior_computation): Add static prototypes.
19992 * mips-tdump.c (fatal, fancy_abort, main): Add extern prototypes.
19994 * recog.c (offsettable_address_p): Prototype function pointer.
19995 (preprocess_constraints): Call memset, not bzero.
19997 * tree.c (tree_node_kind_names): Constify a char*. Make static.
19998 (gcc_obstack_init): Don't declare.
19999 (fix_sizetype): Add static prototype.
20000 (gcc_obstack_init): Use prototype casts in call to _obstack_begin.
20001 (tree_cons): Call memset, not bzero.
20003 * varasm.c (remove_from_pending_weak_list): Wrap declaration and
20004 definition in macro ASM_WEAKEN_LABEL.
20005 (mark_const_hash_entry): Add static prototype.
20007 Tue Sep 14 12:22:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20009 * c-lex.c (handle_generic_pragma): Remove unused variable `c'.
20011 * unroll.c (find_common_reg_term, subtract_reg_term,
20012 loop_find_equiv_value): Add static prototypes.
20013 (unroll_loop): Wrap variable `prev' in macro HAVE_cc0.
20014 (copy_loop_body): Remove unreachable break statement.
20016 * sparc.c (sparc_va_arg): Remove unused variable `tmp'.
20018 * sparc.h (sparc_va_start, sparc_va_arg): Add extern prototypes.
20020 Tue Sep 14 15:28:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20022 Undo some changes from the gcc2 merge:
20023 * rtl.def (CONSTANT_P_RTX): Fix the comment for this rtx code.
20024 * emit-rtl.c (gen_rtx_REG): Don't test special reg rtx's for null
20028 Sat Oct 3 07:20:28 1998 Stephen L Moshier <moshier@world.std.com>
20029 * emit-rtl.c (gen_lowpart_common): Disable optimization of
20030 initialized float-int union if the value is a NaN.
20032 Tue Sep 14 04:03:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
20034 * gthr-win32.h: New file.
20036 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Recognize
20037 shared as a valid attribute.
20038 * i386/cygwin.h (ASM_OUTPUT_SECTION): Handle shared attribute.
20039 * extend.texi: Document `shared' variable attribute.
20041 Tue Sep 14 04:01:46 1999 Loren Rittle <ljrittle@acm.org>
20043 * configure.in: Handle --enable-threads on FreeBSD.
20044 * configure: Rebuit.
20046 Tue Sep 14 03:58:44 1999 Andreas Jaeger <aj@arthur.rhein-neckar.de>
20048 * configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
20050 * configure: Rebuilt.
20052 Tue Sep 14 03:47:23 1999 Joel Sherrill <joel@OARcorp.com>
20053 Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
20054 Rosimildo DaSilva <rdasilva@connecttel.com>
20056 * configure.in (m68k-*-rtemscoff*): Added.
20057 * configure.in (mips64orion-*-rtems*): Converted to ELF.
20058 * configure.in (sparc-*-rtemsaout*): Added as alias for old
20059 sparc-rtems configuration.
20060 * configure.in (sparc-*-rtemself*): Added.
20061 * configure.in (sparc-*-rtems*): Now ELF not a.out.
20062 * config/i386/rtems.h: Added comment.
20063 * config/sparc/rtemself.h: New file.
20065 * configure.in (m68k-rtemself): Added.
20066 * config/elfos.h: Added ifndef wrapper for DWARF2_DEBUGGING_INFO
20067 and DWARF_DEBUGGING_INFO.
20068 * config/m68k/crti.s: New file.
20069 * config/m68k/crtn.s: New file.
20070 * config/m68k/t-crtstuff: New file.
20071 * config/m68k/rtemself.h: New file.
20073 * configure.in (i[[34567]]86-*-rtemself*): Now uses crtstuff for
20074 global ctor/dtor and C++ exception handling.
20075 * config/i386/rtemself.h: Now uses crtstuff (crti.o + crtbegin.o)
20076 for STARTFILE_SPEC and crtstuff (crtend.o + crtn.o) for
20078 * config/i386/t-rtems-i386: New File.
20080 Tue Sep 14 09:47:41 1999 Andreas Schwab <schwab@suse.de>
20082 * stmt.c (expand_end_case): Return right away if the case stack is
20085 Tue Sep 14 01:47:19 1999 Jeffrey A Law (law@cygnus.com)
20087 * Makefile.in (version.c): Remove rule incorrectly brought in from
20090 Tue Sep 14 01:42:27 1999 Marc Espie <espie@cvs.openbsd.org>
20092 * Makefile.in: Prepend $(SHELL) to move-if-change calls.
20093 * msdos/top.sed: Take into account a prepended $(SHELL) to
20095 * winnt/config-nt.sed: Likewise. Kill bogus substitution.
20097 * objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.
20099 Tue Sep 14 01:38:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20101 * regmove.c (fixup_match_1): Don't change an unchanging register.
20102 (stable_but_for_p): Renamed to:
20103 (stable_and_no_regs_but_for_p). Reject unchanging registers too.
20104 Changed all callers.
20106 Tue Sep 14 01:33:15 1999 Andreas Schwab <schwab@suse.de>
20108 * loop.c (strength_reduce): Don't call reg_used_between_p if the
20109 insn from BL2 is after the insn from BL.
20111 Mon Sep 13 21:06:01 1999 Richard Henderson <rth@cygnus.com>
20113 * recog.h (INSN_OUTPUT_FORMAT_*): New.
20114 (struct insn_data): Merge `template' and `outfun' into `output'.
20115 Add `output_format'.
20116 * genoutput.c (INSN_OUTPUT_FORMAT_*): New.
20117 (struct data): Remove `outfun'; add `output_format'.
20118 (name_for_index): Remove declaration.
20119 (output_insn_data): Handle output formats.
20120 (process_template): Emit the bare array for @.
20121 (gen_expand, gen_split): Set output_format to NONE.
20122 * output.h (get_insn_template): Declare.
20123 * final.c (get_insn_template): New.
20124 (final_scan_insn): Use it.
20125 * toplev.c (compile_file): Likewise.
20127 * c4x/c4x.c (c4x_process_after_reload): Likewise.
20128 * i860/i860.c (output_delayed_branch): Likewise.
20129 (output_delay_insn): Likewise.
20131 1999-09-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
20133 * rtl.c (obstack_alloc_rtx): Removed.
20135 1999-09-13 17:03 -0700 Zack Weinberg <zack@bitmover.com>
20137 * config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.
20139 Mon Sep 13 15:21:46 1999 Richard Henderson <rth@cygnus.com>
20141 * i386.c (call_insn_operand): Reject const_int.
20142 (expander_call_insn_operand): Use call_insn_operand.
20144 Mon Sep 13 17:44:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20146 * gcc.c (getrusage): Wrap prototype arguments in PROTO().
20148 1999-09-13 12:18 -0700 Zack Weinberg <zack@bitmover.com>
20150 * config/i370/i370.md (mulsi, divsi, modsi anonymous insns):
20151 Use DImode operation.
20153 1999-09-13 12:13 -0700 Zack Weinberg <zack@bitmover.com>
20155 * gcc.c: Include sys/resource.h.
20156 (report_times): New flag.
20157 (execute): If report_times is set, calculate and report the
20158 CPU time consumed by each subprocess.
20160 (rus, prus): New globals.
20161 (option_map): Add --time.
20162 (display_help): Document -time.
20163 (process_command): Set report_times if -time is given.
20164 Turn off -pipe if -time is given.
20166 * invoke.texi: Document new option -time.
20168 * configure.in: Check for getrusage. Check if we have to
20169 prototype getrusage.
20170 * acconfig.h: Add NEED_DECLARATION_GETRUSAGE.
20171 * configure: Regenerate.
20172 * config.in: Regenerate.
20174 Mon Sep 13 12:57:06 1999 Dave Brolley <brolley@cygnus.com>
20176 * cppinit.c (append_include_chain): Initialize 'next' and 'alloc'
20179 Mon Sep 13 10:01:33 1999 Nick Clifton <nickc@cygnus.com>
20181 * config/fp-bit.c: Define L_thenan_sf or L_thenan_df (as
20182 appropriate) if FINE_GRAINED_LIBRARIES is not defined.
20183 (nan): Return _thenan_sf or _thenan_df as appropriate.
20184 (L_thenan_sf): Define _thenan_sf.
20185 (L_thenan_df): Define _thenan_df.
20187 * Makefile.in (FPBIT_FUNCS): Add _thenan_sf.
20188 (DPBIT_FUNCS): Add _thenan_df.
20190 Mon Sep 13 09:38:53 1999 Andreas Schwab <schwab@suse.de>
20192 * tree.c (fix_sizetype): Exchange the types for TYPE_SIZE and
20195 Sun Sep 12 23:28:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20197 * Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.
20200 (lang_specific_driver): Don't take a function pointer parameter.
20201 All callers changed.
20203 * gcc.c: Include gcc.h.
20204 (do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
20205 lang_specific_extra_outfiles, fatal): Don't declare.
20206 (multilib_defaults_raw): Constify.
20207 (read_specs): Call memset, rather than bzero.
20208 (main): Call return, not exit.
20209 (lookup_compiler): Call memcpy, not bcopy.
20210 (fatal): Make extern.
20212 * cppspec.c: Include gcc.h.
20213 (lang_specific_driver): Initialize variable `quote'. Constify a
20214 char*. All calls to the function pointer parameter now
20215 explicitly call `fatal'.
20217 * gccspec.c (lang_specific_driver): Include gcc.h.
20219 Sun Sep 12 19:52:10 1999 Richard Earnshaw <rearnsha@arm.com>
20221 * arm.c (note_invalid_constants): Use recog_data.operand_type
20224 Sun Sep 12 15:53:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20226 * tree.h (build_common_tree_nodes, build_common_tree_nodes_2):
20229 * reload.h (reload_in, reload_out, reload_in_reg, reload_out_reg,
20230 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
20231 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
20232 reload_secondary_in_reload, reload_secondary_out_reload,
20233 reload_secondary_in_icode, reload_secondary_out_icode,
20234 reload_reg_rtx, reload_when_needed): Delete declarations.
20235 (struct reload): New structure.
20236 (rld): Declare new array.
20237 * reload.c (reload_in, reload_out, reload_in_reg, reload_out_reg,
20238 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
20239 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
20240 reload_secondary_in_reload, reload_secondary_out_reload,
20241 reload_secondary_in_icode, reload_secondary_out_icode,
20242 reload_reg_rtx, reload_when_needed): Delete definitions.
20244 (whole file): Replace uses of the deleted arrays with uses of rld.
20245 * reload1.c (whole file): Replace uses of the deleted arrays with
20247 (choose_reload_regs): Copy in/out of save_reload_reg_rtx with
20248 explicit loops, not with bcopy.
20250 Sun Sep 12 05:00:24 1999 Richard Henderson <rth@cygnus.com>
20252 * recog.h (insn_template, insn_outfun, insn_n_operands, insn_n_dups,
20253 insn_n_alternatives, insn_operand_constraint, insn_operand_address_p,
20254 insn_operand_mode, insn_operand_strict_low, insn_operand_predicate,
20255 insn_name): Delete and consolidate into new structures.
20256 (insn_operand_predicate_fn): New.
20257 (insn_output_fn): New.
20258 (insn_gen_fn): New.
20259 (struct insn_operand_data): New.
20260 (struct insn_data): New.
20262 (OUT_FCN): Update for insn_data change.
20263 * builtins.c (expand_builtin_strlen): Likewise.
20264 (expand_builtin_memcmp): Likewise.
20265 * combine.c (make_extraction, simplify_comparison): Likewise.
20266 * cse.c (canon_reg, cse_insn): Likewise.
20267 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
20268 * expmed.c (store_bit_field, extract_bit_field): Likewise.
20269 (emit_store_flag): Likewise.
20270 * expr.c (convert_move, emit_block_move): Likewise.
20271 (clear_storage, emit_push_insn, expand_increment): Likewise.
20272 (do_store_flag): Likewise.
20273 * expr.h (GEN_FCN): Likewise.
20274 (insn_gen_function): Die.
20275 * final.c (final_scan_insn): Update for insn_data change.
20276 (output_asm_name): Likewise.
20277 * function.c (fixup_var_refs_1): Likewise.
20278 * loop.c (check_dbra_loop): Likewise.
20279 * optabs.c (expand_binop, expand_twoval_binop): Likewise.
20280 (expand_unop, expand_complex_abs, emit_unop_insn): Likewise.
20281 (prepare_cmp_insn, prepare_operand, emit_indirect_jump): Likewise.
20282 (emit_conditional_move, gen_add2_insn, gen_sub2_insn): Likewise.
20283 * recog.c (validate_replace_rtx_1, extract_insn): Likewise.
20284 * regmove.c (gen_add3_insn): Likewise.
20285 * reload.c (push_secondary_reload, combine_reloads): Likewise.
20286 (find_reloads, find_reloads_address_1): Likewise.
20287 (debug_reload_to_stream): Likewise.
20288 * reload1.c (emit_reload_insns, gen_reload): Likewise.
20289 * stmt.c (expand_end_case): Likewise.
20290 * toplev.c (compile_file): Likewise.
20292 * c4x/c4x.c (c4x_process_after_reload): Likewise.
20293 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
20295 * print-rtl.c (insn_name_ptr): Remove declaration.
20296 (get_insn_name): Declare.
20297 (print_rtx): Use it.
20298 * genoutput.c (insn_name_ptr): Remove.
20299 (next_operand_number): New.
20300 (struct operand_data): New.
20301 (null_operand, odata, odata_end): New.
20302 (struct data): Use struct operand_data.
20303 (idata, idata_end): Renamed from insn_data and end_of_insn_data.
20304 (get_insn_name): Renamed from name_for_index.
20305 (output_prologue): Define NO_MD_PROTOTYPES.
20306 (output_predicate_decls): Break out from output_epilogue.
20307 Iterate over the operands list.
20308 (output_operand_data): Break out from output_epilogue. Emit
20309 just the operands list.
20310 (output_insn_data): Break out from output_epilogue. Emit just
20312 (output_epilogue): Remove.
20313 (output_get_insn_name): New.
20314 (constraints, op_n_alternatives, predicates, address_p): Die.
20315 (modes, strict_low, seen): Die.
20316 (scan_operands): Take new param `d' instead of writing to
20317 seven global variables.
20318 (compare_operands): New.
20319 (place_operands): New.
20320 (validate_insn_alternatives): Update for struct data change.
20321 (gen_insn): Don't zero or copy 7 global arrays. Update for
20322 scan_operands; call place_operands.
20323 (gen_peephole, gen_expand, gen_split): Likewise.
20324 (main): Update for new output routines.
20326 * genattr.c (insn_name_ptr): Remove.
20327 (get_insn_name): New function.
20328 * genattrtab.c, gencodes.c, genconfig.c, genemit.c: Likewise.
20329 * genextract.c, genflags.c, genopinit.c, genpeep.c: Likewise.
20330 * genrecog.c: Likewise.
20332 * alpha.md (adddi3): Make `pattern' array static.
20334 Sun Sep 12 22:05:21 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20336 * config/c4x/c4x.h (c4x_rpts_cycles_string,
20337 c4x_cpu_version_string): Constify char *.
20338 * config/c4x/c4x.c (c4x_rpts_cycles_string,
20339 c4x_cpu_version_string): Likewise.
20341 Sat Sep 11 23:28:33 1999 Richard Henderson <rth@cygnus.com>
20343 * tree.c (save_tree_status): Revert 10 Sep change.
20344 (restore_tree_status): Likewise. Call obstack_free with NULL
20345 before freeing the obstack proper.
20347 Sat Sep 11 23:23:46 1999 Richard Henderson <rth@cygnus.com>
20349 * cse.c (cse_main): If gc'ing, collect around cse_basic_block.
20351 * ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
20352 surrounding context.
20354 Sat Sep 11 19:52:43 1999 Mark Mitchell <mark@codesourcery.com>
20356 * tree.c (type_hash_canon): Put all types in the hash-table, when
20359 Sat Sep 11 18:37:04 1999 Richard Henderson <rth@cygnus.com>
20361 * recog.h (struct recog_data, recog_data): New.
20362 (recog_foo variables): Kill.
20363 * recog.c (recog_operand, recog_operand_loc): Kill.
20364 (recog_dup_loc, recog_dup_num, recog_n_operands): Kill.
20365 (recog_n_dups, recog_n_alternatives, recog_operand_mode): Kill.
20366 (recog_constraints, recog_op_type, recog_operand_address_p): Kill.
20367 (recog_data): Define.
20368 (extract_insn): Update all recog_foo references to use recog_data.
20369 (preprocess_constraints, constrain_operands): Likewise.
20370 * final.c (final_scan_insn, cleanup_subreg_operands): Likewise.
20371 * genattrtab.c (main): Likewise.
20372 * genextract.c (main): Likewise.
20373 * genoutput.c: Likewise.
20374 * genrecog.c (write_subroutine, main): Likewise.
20375 * local-alloc.c (block_alloc): Likewise.
20376 * reg-stack.c (record_asm_reg_life, subst_asm_stack_regs): Likewise.
20377 * regclass.c (scan_one_insn, record_reg_classes): Likewise.
20378 * regmove.c (regmove_optimize, find_matches, fixup_match_1): Likewise.
20379 * reload.c (find_reloads, find_reloads_toplev): Likewise.
20380 * reload1.c (maybe_fix_stack_asms, eliminate_regs_in_insn): Likewise.
20381 (reload_cse_simplify_operands): Likewise.
20383 * arc/arc.c (arc_final_prescan_insn): Likewise.
20384 * arm/arm.c (note_invalid_constants, arm_final_prescan_insn): Likewise.
20385 * h8300/h8300.c (notice_update_cc): Likewise.
20386 * i386/i386.c (ix86_attr_length_default, ix86_agi_dependant): Likewise.
20387 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
20388 * mn10200/mn10200.c (notice_update_cc): Likewise.
20389 * mn10300/mn10300.c (notice_update_cc): Likewise.
20390 * romp/romp.c (update_cc): Likewise.
20391 * sparc/sparc.c (check_pic): Likewise.
20392 * v850/v850.c (notice_update_cc): Likewise.
20394 * genemit.c (main): Don't declare recog_operand.
20396 Sat Sep 11 12:41:55 1999 Alex Samuel <samuel@codesourcery.com>
20398 * ggc.h (rtvec_def): Forward declare.
20399 (tree_node): Likewise.
20400 (ggc_root): Define.
20402 (ggc_set_mark_rtx): Add prototype.
20403 (ggc_set_mark_rtvec): Likewise.
20404 (ggc_set_mark_tree): Likewise.
20405 * ggc-simple.c (ggc_root): Don't define.
20406 (roots): Don't declare.
20407 (ggc_mark_rtx): Remove.
20408 (ggc_mark_rtvec): Likewise.
20409 (ggc_mark_tree): Likewise.
20410 (ggc_mark_varray): Likewise.
20411 (ggc_mark_tree_hash_table_entry): Likewise.
20412 (ggc_mark_tree_hash_table): Likewise.
20413 (ggc_set_mart_rtx): New function.
20414 (ggc_set_mark_rtvec): Likewise.
20415 (ggc_set_mark_tree): Likewise.
20416 (ggc_add_root): Remove.
20417 (ggc_add_rtx_root): Likewise.
20418 (ggc_remove_tree_root): Likewise.
20419 (ggc_add_string_root): Likewise.
20420 (ggc_add_tree_varray_root): Likewise.
20421 (ggc_add_tree_hash_table_root): Likewise.
20422 (ggc_del_root): Likewise.
20423 (ggc_mark_rtx_ptr): Likewise.
20424 (ggc_mark_tree_ptr): Likewise.
20425 (ggc_mark_string_ptr): Likewise.
20426 (ggc_mark_tree_varray_ptr): Likewise.
20427 (ggc_mark_tree_hash_table_ptr): Likewise.
20428 * ggc-common.c: New file.
20429 * Makefile.in (OBJS): Add ggc-common.o.
20430 (ggc-common.o): List dependencies.
20432 1999-09-10 22:37 -0700 Zack Weinberg <zack@bitmover.com>
20434 * cppalloc.c (xstrdup): Use memcpy.
20435 * cpperror.c (cpp_print_containing_files): Don't use
20437 * cpplib.c (conditional_skip): Set temp->lineno.
20438 (do_endif): Make error message less obscure.
20439 (if_directive_name): New function.
20440 (cpp_get_token [case EOF]): Unwind the if stack and generate
20441 error messages for each unterminated conditional in this file.
20442 (parse_string): Do not behave differently if -traditional.
20444 Fri Sep 10 14:04:07 1999 Richard Henderson <rth@cygnus.com>
20446 * builtins.c (expand_builtin_va_arg): Cope with an array-type
20447 va_list decomposing to pointer-type.
20448 * rs6000.c (rs6000_va_start) Unwrap the ARRAY_TYPE to get at fields.
20449 (rs6000_va_arg): Likewise.
20451 Fri Sep 10 13:21:21 1999 Jim Wilson <wilson@cygnus.com>
20453 * except.c (start_dynamic_handler): Compute size using
20454 STACK_SAVEAREA_MODE.
20456 Fri Sep 10 16:01:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20458 * protoize.c: Remove various __STDC__ and POSIX hacks. Don't
20459 include directory headers. Don't define strrchr. Don't provide
20460 my_* replacement functions. Prefer PTR over `pointer_type'.
20461 Don't prototype system functions. Don't redefine getopt.
20463 (shortpath, fancy_abort, notice, savestring, dupnstr, substr,
20464 safe_read, safe_write, save_pointers, restore_pointers,
20465 is_id_char, in_system_include_dir, directory_specified_p,
20466 file_excluded_p, unexpand_if_needed, abspath, check_aux_info,
20467 find_corresponding_lparen, referenced_file_is_newer,
20468 save_def_or_dec, munge_compile_params, gen_aux_info_file,
20469 process_aux_info_file, identify_lineno, check_source,
20470 seek_to_line, forward_to_next_token_char, output_bytes,
20471 output_string, output_up_to, other_variable_style_function,
20472 find_rightmost_formals_list, do_cleaning, careful_find_l_paren,
20473 do_processing, is_syscalls_file, rename_c_file, find_extern_def,
20474 find_static_definition, connect_defs_and_decs, add_local_decl,
20475 add_global_decls, needs_to_be_converted, visit_each_hash_node,
20476 add_symbol, lookup, free_def_dec, find_file, reverse_def_dec_list,
20477 edit_fn_declaration, edit_formals_lists, edit_fn_definition,
20478 scan_for_missed_items, edit_file, string_list_cons): Add static
20480 (standard_exec_prefix, target_machine, target_version,
20481 default_syscalls_dir, string_list, string_list_cons, find_file,
20482 do_cleaning): Constify a char*.
20483 (safe_read, safe_write): Use PTR, not a char*.
20484 (is_id_char): Take an int, not a char.
20485 (main): Add prototype. Call return, not exit.
20487 Fri Sep 10 16:48:26 1999 Andrew Haley <aph@cygnus.com>
20489 * tree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields
20490 when comparing types.
20492 Fri Sep 10 08:43:32 1999 Richard Henderson <rth@cygnus.com>
20494 * loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
20495 (strength_reduce): Release the varrays from the no-bivs early exit.
20497 * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before
20498 the loop over the registers.
20500 * tree.c (save_tree_status): Set maybepermanent_firstobj NULL
20502 (restore_tree_status): Check that instead when freeing the obstack.
20504 Wed Sep 8 16:12:04 1999 Andrew Haley <aph@cygnus.com>
20506 * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
20509 Fri Sep 10 11:58:55 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20511 * i386.md (ashlqi3): For NON_QI_REG_P regs, use sall. Fix some
20512 operand size modifiers.
20514 Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20516 * c-common.c (c_common_nodes_and_builtins): Don't build
20518 * c-common.h (enum c_tree_index and related accesor macros): Remove
20519 everything now declared in tree.h.
20520 * c-decl.c (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
20521 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, WCHAR_UNSIGNED, FLOAT_TYPE_SIZE,
20522 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Don't provide defaults.
20523 (error_mark_node, void_type_node, char_type_node, integer_type_node,
20524 unsigned_type_node, ptr_type_node, va_list_type_node,
20525 integer_zero_node, null_pointer_node, integer_one_node): Delete.
20526 (init_decl_processing): Call build_common_tree_nodes and
20527 build_common_tree_nodes_2 instead of building their nodes here.
20528 Don't add roots for these nodes.
20529 * stor-layout.c (size_zero_node, size_one_node): Delete.
20530 (set_sizetype): Make a new node for bitsizetype each time.
20531 * tree.c (global_trees): New variable.
20532 (init_obstacks): Add a gc root for it.
20533 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
20534 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE,
20535 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Provide defaults.
20536 (build_common_tree_nodes): New function.
20537 (fix_sizetype): New function.
20538 (build_common_tree_nodes_2): New function.
20539 * tree.h (enum tree_index): New.
20540 (global_trees): Declare.
20541 Add accessor macros for all nodes now moved to global_trees.
20542 Delete their declarations.
20544 Thu Sep 9 20:15:46 1999 Richard Henderson <rth@cygnus.com>
20546 * c-decl.c (finish_function): When processing a nested function,
20547 push and pop GC context around rest_of_compilation.
20549 Thu Sep 9 16:42:06 1999 Richard Henderson <rth@cygnus.com>
20551 * i386.c (override_options): Remove ppro, pentium2, and p2 as aliases.
20552 Default ix86_arch to PROCESSOR_I386.
20553 * i386.h (CC1_CPU_SPEC): Don't add -march=foo. Remove -mno-foo.
20554 (CPP_486_SPEC, CPP_586_SPEC, CPP_686_SPEC): Delete.
20555 (CPP_CPU_DEFAULT_SPEC): Define to __tune_foo__.
20556 (CC1_CPU_SPEC): Make -march=foo define __foo__, and provide
20557 __tune_foo__ if no -mcpu. Make -mcpu=bar define __tune_bar__.
20558 (EXTRA_SPECS): Remove deleted specs.
20560 Thu Sep 9 16:03:06 1999 Richard Henderson <rth@cygnus.com>
20562 * function.c (assign_stack_local_1): Allocate from
20563 function->x_frame_offset, not frame_offset.
20565 Thu Sep 9 14:36:31 1999 Mark Mitchell <mark@codesourcery.com>
20567 * ggc.h (lang_cleanup_tree): Remove.
20568 * gcc-simple.c (ggc_free_tree): Don't call lang_cleanup_tree.
20569 * ggc-callbacks.c (lang_cleanup_tree): Remove.
20571 * c-decl.c (finish_struct): Use ggc_alloc to allocate
20572 TYPE_LANG_SPECIFIC when garbage collecting.
20573 (lang_mark_tree): Mark TYPE_LANG_SPECIFIC.
20574 (lang_cleanup_tree): Remove.
20576 Thu Sep 9 14:23:02 1999 Jason Merrill <jason@yorick.cygnus.com>
20578 * defaults.h (EH_FRAME_SECTION, EH_FRAME_SECTION_ASM_OP): Define here.
20579 * crtstuff.c: Not here.
20580 * dwarf2out.c: Or here.
20581 * libgcc2.c (__do_global_ctors, __do_global_dtors): Handle EH frame
20584 Thu Sep 9 09:40:58 1999 Mark Mitchell <mark@codesourcery.com>
20586 * function.h (free_after_compilation): Remove decl parameter.
20587 (free_varasm_status0: Likewise.
20588 (free_emit_status): Likewise.
20589 (free_stmt_status): Likewise.
20590 (free_after_compilation): Likewise.
20591 (init_lang_status): New variable.
20592 (free_lang_status): Likewise.
20593 * emit-rtl.c (free_emit_status): Make decl parameter implicit.
20594 * function.c (init_lang_status): New variable.
20595 (free_lang_status): Likewise.
20596 (push_function_context_to): Don't set function::decl here.
20597 (free_after_copmilation): Make decl parameter implicit. Call
20598 free_lang_status if defined.
20599 (prepare_function_start): Call init_lang_status if defined.
20600 (init_function_start): Set function::decl here.
20601 * profile.c (output_func_start_profiler): Don't call pushdecl
20602 until we've actually started the function.
20603 * stmt.c (free_stmt_status): Make decl parameter implicit.
20604 * toplev.c (rest_of_compilation): Don't pass decl to
20605 free_after_compilation.
20606 * varasm.c (free_varasm_status): Likewise.
20608 Thu Sep 9 17:23:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20610 * except.c (call_get_eh_context): Add root when allocating static
20613 Thu Sep 9 15:24:59 BST 1999 Richard Earnshaw <rearnsha@arm.com>
20615 * arm.c: Include "ggc.h".
20616 (arm_add_gc_roots): New function.
20617 (arm_override_options): Call it.
20618 (aof_pic_entry): Add a GC root for aof_pic_label when it's allocated.
20620 * arm.md (define_asm_attributes): Add a pool_range attribute.
20622 Thu Sep 9 12:32:57 BST 1999 Nathan Sidwell <nathan@acm.org>
20624 * extend.texi (Volatiles): New node.
20626 Thu Sep 9 03:37:31 1999 Richard Henderson <rth@cygnus.com>
20628 * ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
20629 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): New.
20630 (struct ggc_any): Replace `mark' with `magic_mark'.
20631 (ggc_alloc_string): Use memcpy, not bcopy.
20632 (ggc_alloc_any): Set magic_mark. Update bytes_alloced_since_gc.
20633 (ggc_free_{rtx,rtvec,tree,string}): Mark inline.
20634 (ggc_free_any): New.
20635 (ggc_mark_string): Use IGNORE_MARK. Calc back to struct gcc_string.
20636 (ggc_mark): Use IGNORE_MARK. Abort if magic doesn't match.
20637 (ggc_collect): Re-enable collection avoidance. Use GGC_ANY_MARK.
20638 Use IS_MARKED. Use ggc_free_any.
20640 1999-09-09 Scott Bambrough <scottb@netwinder.org>
20642 * config/arm/linux-elf.h: define NO_IMPLICIT_EXTERN_C
20644 Thu Sep 9 01:55:21 1999 Richard Henderson <rth@cygnus.com>
20646 * toplev.c (main): Always init_ggc.
20648 Wed Sep 8 23:53:22 1999 Richard Henderson <rth@cygnus.com>
20650 * except.c (find_all_handler_type_matches): Free the list if
20651 we found no matches.
20653 * combine.c (SUBST): Break out to a real function do_SUBST.
20654 (SUBST_INT): Likewise.
20655 * gcse.c (free_pre_mem): Free `temp_bitmap'.
20656 (pre_insert): Free `inserted'.
20657 * loop.c (basic_induction_var): Always set `location'.
20659 * function.c (expand_function_end): Add initial_trampoline as a root.
20660 * rtl.h (init_varasm_once): Declare.
20661 * toplev.c (compile_file): Call it.
20662 * ggc-simple.c (ggc_mark_string_ptr): New.
20663 (ggc_add_string_root): New.
20664 (ggc_collect): Disable collection avoidance temporarily.
20665 * ggc.h (ggc_add_string_root): Declare.
20666 * except.c (create_rethrow_ref): Use ggc_alloc_string.
20667 * optabs.c (init_libfuncs): Likewise.
20668 * varasm.c (named_section): Use ggc_alloc_string.
20669 (make_function_rtl): Likewise.
20670 (make_decl_rtl): Likewise.
20671 (assemble_static_space): Likewise.
20672 (assemble_trampoline_template): Likewise.
20673 (output_constant_def): Likewise.
20674 (force_const_mem): Likewise.
20675 (mark_const_hash_entry): New.
20676 (mark_pool_sym_hash_table): New.
20677 (mark_varasm_state): Use it.
20678 (init_varasm_once): New.
20680 * expr.h (init_one_libfunc): Declare.
20681 * optabs.c (init_one_libfunc): New.
20682 (init_optabs): Use it.
20683 * config/gofast.h: Likewise.
20684 * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Likewise.
20685 * config/sparc/sparc.h (INIT_TARGET_OPTABS): Likewise.
20687 Thu Sep 9 13:46:06 1999 Geoffrey Keating <geoffk@cygnus.com>
20689 * Makefile.in (cppexp.o): Depend on cpphash.h.
20690 * cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx.
20692 * cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx.
20693 * cpplib.c (do_define): Generalise to handle poisoned definitions,
20694 redefining poisoned identifiers, etc.
20695 (do_undef): Don't allow poisoned identifiers to be undefined.
20696 (do_pragma): Add #pragma poison.
20697 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
20699 * cccp.c: Add T_POISON node type.
20700 (special_symbol): Handle `defined(xxx)' and plain `xxx' for
20702 (do_define): Generalise to handle poisoned definitions,
20703 redefining poisoned identifiers, etc.
20704 (do_undef): Don't allow poisoned identifiers to be undefined.
20705 (do_pragma): Add #pragma poison.
20706 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
20708 * c-pragma.c (handle_pragma_token): Ignore #pragma poison.
20709 * c-pragma.h: Add ps_poison state. We now always have generic
20712 Wed Sep 8 20:30:42 1999 Mark Mitchell <mark@codesourcery.com>
20714 * ggc.h (ggc_alloc): New function.
20715 (ggc_mark): Likewise.
20716 * ggc-simple.c (ggc_any): New structure.
20717 (ggc_status): Add anys.
20718 (n_anys_collected): New variable.
20719 (ggc_alloc): Define.
20720 (ggc_mark): Likewise.
20721 (ggc_collect): Collect the anys.
20723 Wed Sep 8 20:15:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20725 * c-decl.c (mark_binding_level): Make static to match prototype.
20727 Wed Sep 8 16:41:27 1999 Richard Henderson <rth@cygnus.com>
20729 * flow.c (new_insn_dead_notes): Don't early out for preexisting regs.
20731 Wed Sep 8 16:07:52 1999 Richard Henderson <rth@cygnus.com>
20733 * gengenrtl.c (CONST_DOUBLE_FORMAT): Take the size REAL_ARITHMETIC
20734 will use into account. Expand the max width to 5.
20737 Wed Sep 8 16:01:14 1999 Richard Henderson <rth@cygnus.com>
20739 * ggc-simple.c (ggc_free_rtx): Poison the correct amount
20740 for the rtx length.
20742 Wed Sep 8 15:23:54 1999 Richard Henderson <rth@cygnus.com>
20744 * alpha.md (call value patterns): Remove the result predicates.
20746 Wed Sep 8 13:35:38 1999 Richard Henderson <rth@cygnus.com>
20748 * Makefile.in (stmp-fixinc): Remove extraneous exit 1 from
20751 Wed Sep 8 15:32:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20753 * system.h (sbrk, malloc, calloc, realloc): Backup prototypes
20754 changed from extern char *, to extern PTR. Also fix typo in
20755 NEED_DECLARATION_REALLOC test.
20757 * mips-tdump.c (malloc, calloc, realloc): Don't prototype.
20759 Wed Sep 8 11:40:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20761 * gansidecl.h (__attribute__, ATTRIBUTE_UNUSED_LABEL,
20762 ATTRIBUTE_UNUSED, ATTRIBUTE_NORETURN, ATTRIBUTE_PRINTF,
20763 ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2, ATTRIBUTE_PRINTF_3,
20764 ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5, GENERIC_PTR): Delete.
20766 * c-decl.c (field_decl_cmp): Use PTR instead of GENERIC_PTR.
20768 * cccp.c (pcfinclude): Likewise.
20770 * global.c (allocno_compare): Likewise.
20772 * haifa-sched.c (rank_for_schedule): Likewise.
20774 * local-alloc.c (qty_sugg_compare_1, qty_compare_1): Likewise.
20776 * reload1.c (hard_reg_use_compare, reload_reg_class_lower): Likewise.
20778 * stupid.c (stupid_reg_compare): Likewise.
20780 * tree.c (_obstack_allocated_p): Likewise.
20782 * varray.h (varray_data_tag, VARRAY_GENERIC_PTR_INIT): Likewise.
20784 1999-09-08 Bruce Korb autogen@linuxbox.com
20786 * Makefile.in: Give the hapless gperf user a hint about
20787 why "gperf -F" fails.
20789 Wed Sep 8 04:43:22 1999 Richard Henderson <rth@cygnus.com>
20791 * lists.c: Include ggc.h.
20793 (init_EXPR_INSN_LIST_cache): Install it.
20795 * ggc-simple.c (init_ggc): Absorb the old init.
20796 (ggc_push_context): Use xcalloc.
20797 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Likewise.
20798 (ggc_collect): Add [rvts] tags to the collection stats.
20800 Wed Sep 8 11:14:25 1999 Andreas Schwab <schwab@suse.de>
20802 * cccp.c (main): Fix handling of -include and -imacros options.
20804 Wed Sep 8 02:23:08 1999 Jeffrey A Law (law@cygnus.com)
20806 * cpplib.c (cpp_push_buffer): Fix order of arguments.
20808 Wed Sep 8 04:44:09 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
20810 * rtl.h (obstack_alloc_rtx): Removed, it's now static in
20813 Wed Sep 8 00:33:43 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
20815 * flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.
20816 * haifa-sched.c (sched_analyze_1): Use XEXP rather than SUBREG_REG
20817 and SET_DEST. Update comment.
20819 Wed Sep 8 18:55:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20821 * config/c4x/c4x.c: Include ggc.h.
20822 (c4x_add_gc_roots): New function.
20823 (c4x_override_options): Call c4x_add_gc_roots.
20825 Wed Sep 8 00:00:16 1999 Richard Henderson <rth@cygnus.com>
20827 * defaults.h (TARGET_ESC): Move ...
20828 * system.h: ... here, where Linas had it in the first place. Silly me.
20830 Tue Sep 7 23:46:35 1999 Linas Vepstas <linas@linas.org>
20832 * c-common.c: Use ISGRAPH, ISLOWER, toupper.
20833 * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c,
20834 genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise.
20835 * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC.
20836 * defaults.h (TARGET_ESC): Add default.
20838 Tue Sep 7 23:36:59 1999 Linas Vepstas <linas@linas.org>
20840 * configure.in: add i370-*-openedition, i370-*-mvs and
20841 i370-*-linux targets
20843 Tue Sep 7 23:31:53 1999 Mark Mitchell <mark@codesourcery.com>
20845 * dsp16xxx.c: Include ggc.h
20846 (override_options): Mark GC roots.
20847 * mn10200.c: Include ggc.h.
20848 (asm_file_start): Mark GC roots.
20849 * tahoe.c: Include ggc.h.
20850 (extensible_operand): Mark GC roots.
20852 Tue Sep 7 23:23:15 1999 Linas Vepstas <linas@linas.org>
20854 * README: Add section discussing status of ELF ABI.
20855 * i370.c: Fix misc spelling mistakes.
20856 (i370_label_scan): Updated notes, exception handling.
20857 (i370_function_prolog): Simplify ELF stack handling.
20858 * i370.h: (FIXED_REGISTERS): Free up r12 for ELF.
20859 (STACK_GROWS_DOWNWARD): ELF stack grows down.
20860 (ASM_DECLARE_FUNCTION_NAME): Fix crazy malloc size.
20861 * i370.md: (movdi): Add notes.
20862 (floatsidf2): Use stack not rtca for scratch float area.
20863 (iorsi3): Correct operand constraints.
20864 * x-oe: Restore TAROUTOPTS which are used by pax.
20866 Tue Sep 7 22:39:18 1999 Mark Mitchell <mark@codesourcery.com>
20868 * rs6000.c: Include ggc.h.
20869 (rs6000_add_gc_roots): New function.
20870 (override_options): Call it.
20872 Tue Sep 7 22:09:03 1999 Richard Henderson <rth@cygnus.com>
20874 * alpha.h (alpha_compare): New.
20875 (alpha_compare_op0, alpha_compare_op1, alpha_compare_fp_p): Remove.
20876 * alpha.c: Likewise for the definitions.
20877 (alpha_emit_conditional_branch): Update for alpha_compare.
20878 (alpha_emit_conditional_move): Likewise.
20879 * alpha.md (cmpdf, cmpdi): Likewise.
20880 (setcc patterns): Likewise. Zero alpha_compare after use.
20881 (sne): Optimize (x != 0) into (0U < x).
20883 Tue Sep 7 21:55:02 1999 Richard Henderson <rth@cygnus.com>
20885 * alpha.h (alpha_eh_epilogue_sp_ofs): Remove.
20886 (struct machine_function): Declare; add eh_epilogue_sp_ofs.
20887 (INIT_EXPANDERS): Remove.
20888 * alpha.c: Include ggc.h.
20889 (alpha_eh_epilogue_sp_ofs, alpha_return_addr_rtx): Remove.
20890 (alpha_init_machine_status, alpha_mark_machine_status): New.
20891 (override_options): Install them.
20892 (struct machine_function): Moved to alpha.h.
20893 (alpha_save_machine_status, alpha_restore_machine_status): Remove.
20894 (alpha_init_expanders): Remove.
20895 (alpha_return_addr): Adjust to use current_function->machine.
20896 (alpha_ra_ever_killed): Likewise.
20897 (alpha_expand_epilogue): Likewise.
20898 * alpha.md (eh_epilogue): Likewise.
20900 Wed Sep 8 14:34:42 1999 Ian Piumarta <piumarta@prof.inria.fr>
20901 Melissa O'Neill <oneill@cs.sfu.ca>
20902 Geoffrey Keating <geoffk@cygnus.com>
20904 * config/rs6000/rs6000.c (first_reg_to_save): Don't save fixed or
20905 call-used registers (call-saved registers must still be contiguous
20906 and end with r31, of course).
20908 Tue Sep 7 21:41:38 1999 Richard Henderson <rth@cygnus.com>
20910 * c-typeck.c (type_lists_compatible_p): Use simple_type_promotes_to.
20911 (self_promoting_type_p): Delete.
20912 (self_promoting_args_p): Move ...
20913 * c-common.c: ... here.
20914 (c_common_nodes_and_builtins): Initialize lang_type_promotes_to.
20915 (simple_type_promotes_to): New.
20916 * builtins.c (lang_type_promotes_to): New.
20917 (expand_builtin_va_arg): Use it to give diagnostic for illegal types.
20918 * c-tree.h (C_PROMOTING_INTEGER_TYPE_P): Move ...
20919 * c-common.h: ... here.
20920 (self_promoting_args_p, simple_type_promotes_to): Declare.
20921 * c-decl.c (duplicate_decls): Use simple_type_promotes_to.
20922 (grokdeclarator): Likewise.
20923 * tree.h (lang_type_promotes_to): Declare.
20925 Tue Sep 7 17:15:21 1999 Mark Mitchell <mark@codesourcery.com>
20927 Add some machine-dependent GC roots.
20928 * sparc.c: Include ggc.h.
20929 (sparc_add_gc_roots): New function.
20930 (mark_ultrasparc_pipeline_state): Likewise.
20931 (override_options): Call sparc_add_gc_roots.
20932 * pa.c: Include ggc.h.
20933 (pa_add_gc_roots): New function.
20934 (mark_deferred_plabels): Likewise.
20935 (override_options): Call pa_add_gc_roots.
20936 * mips.c: Include ggc.h.
20937 (mips_add_gc_roots): New function.
20938 (override_options): Use it.
20940 Tue Sep 7 11:39:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20942 * cpperror.c (cpp_file_line_for_message): Constify a char*.
20944 * cppexp.c (parse_number, parse_charconst, cpp_lex,
20945 cpp_parse_expr): Add static prototypes.
20946 (parse_charconst): Don't cast away const-ness.
20947 (token): Constify a char*.
20949 * cppfiles.c (file_name_list, include_hash, find_include_file,
20950 finclude, initialize_input_buffer): Constify a char*.
20951 (file_cleanup, find_position): Add static prototypes.
20953 * cpphash.c (macro_cleanup, macarg, timestamp, special_symbol,
20954 collect_expansion): Add static prototypes.
20955 (cpp_install, create_definition, monthnames): Constify a char*.
20957 * cpphash.h (cpp_install): Likewise.
20959 * cppinit.c (known_suffixes, default_include,
20960 dump_special_to_buffer, NAME, cpp_start_read, cpp_finish): Likewise.
20961 (base_name, dump_special_to_buffer, initialize_dependency_output):
20962 Add static prototypes.
20964 * cpplib.c (my_strerror): Constify a char*.
20965 (null_underflow, null_cleanup, skip_comment, copy_comment,
20966 copy_rest_of_line, handle_directive, pass_thru_directive,
20967 get_directive_token, read_line_number, cpp_print_file_and_line,
20968 v_cpp_error, v_cpp_warning, v_cpp_error_with_line,
20969 v_cpp_warning_with_line, detect_if_not_defined,
20970 consider_directive_while_skipping): Add static prototypes.
20971 (pass_thru_directive, check_macro_name, cpp_expand_to_buffer,
20972 cpp_pedwarn_with_file_and_line): Constify a char*.
20974 * cpplib.h (cpp_options, include_hash, progname, definition,
20975 cpp_pedwarn_with_file_and_line, cpp_expand_to_buffer,
20976 check_macro_name, cpp_pfatal_with_name, cpp_file_line_for_message,
20977 find_include_file, deps_output, include_hash): Constify a char*.
20979 * cppmain.c (progname): Constify.
20980 (main): Add prototype. Use return, not exit.
20982 * fix-header.c (fatal, add_symbols, lookup_std_proto, write_lbrac,
20983 recognized_macro, check_macro_names, read_scan_file, write_rbrac,
20984 inf_skip_spaces, inf_read_upto, inf_scan_ident, inf_scan_ident,
20985 check_protection): Add static prototype.
20987 (progname, recognized_macrom, recognized_extern): Constify a char*.
20988 (main): Add prototype.
20990 * gen-protos.c (progname): Constify a char*.
20992 Tue Sep 7 00:47:52 1999 Mark Mitchell <mark@codesourcery.com>
20994 * emit-rtl.c (free_emit_status): Take decl as a parameter.
20995 (init_emit_once): Add more GC roots.
20996 * except.c (mark_func_eh_entry): New function.
20997 (mark_eh_node): Mark false_label and rethrow_label.
20998 (init_eh): Add more GC roots.
20999 * function.c (free_after_compilation): Take decl as a paramter.
21000 Call free_stmt_status.
21001 (mark_function_state): Don't assume x_parm_reg_stack_loc is
21003 * function.h (free_after_compilation): Change prototype.
21004 (free_varasm_status): Likewise.
21005 (free_emit_status): Likewise.
21006 (free_stmt_status): New function.
21007 * ggc-simple.c (rtx, vecs, trees, strings, bytes_alloced_since_gc):
21008 Remove, replacing with ...
21009 (ggc_status): New structure.
21010 (ggc_chain): New variable.
21011 (init_gcc): Define.
21012 (ggc_push_context): New function.
21013 (ggc_pop_context): Likewise.
21014 (ggc_alloc_rtx): Adjust for use of ggc_chain.
21015 (ggc_alloc_rtvec): Likewise.
21016 (ggc_alloc_tree): Likewise.
21017 (ggc_alloc_string): Likewise.
21018 (ggc_mark_rtx): Mark NOTE_SOURCE_FILE and NOTE_RANGE_INFO.
21019 (ggc_mark_tree): Give language-dependent code a chance to mark
21021 (ggc_mark_tree_varray): Handle empty arrays.
21022 (ggc_collect): Adjust for use of ggc_chain. Clear
21023 bytes_alloced_since_last_gc.
21024 * ggc.h (ggc_pop_context): New function.
21025 (ggc_push_context): Likewise.
21026 * print-tree.c (print_node): Don't print obstacks when GC'ing.
21027 * stmt.c (free_stmt_status): New function.
21028 (init_stmt_for_function): Clear last_expr_value.
21029 * toplev.c (rest_of_compilation): Always call free_after_compilation.
21030 Conditionalize call to ggc_collect.
21031 (main): Call init_ggc.
21032 * tree.c (push_obstacks): Do the push, even when GC'ing.
21033 (push_obstacks_nochange): Likewise.
21034 (pop_obstacks): Liekwise.
21035 * varasm.c (free_varasm_status): Take decl as a parameter.
21037 Tue Sep 7 08:15:49 1999 Gavin Romig-Koch <gavin@cygnus.com>
21039 * config/mips/mips.h (MULTILIB_ENDIAN_DEFAULT) : New macro.
21040 (MULTILIB_ENDIAN_DEFAULT) : Use the new macro.
21041 * config/mips/elf64.h (MULTILIB_DEFAULTS) : Use the new macro.
21042 * config/mips/r3900.h (MULTILIB_DEFAULTS) : Use the new macro.
21044 Tue Sep 7 03:42:45 1999 Mark Klein (mklein@dis.com)
21046 * pa/x-pa-mpeix: New file for the MPE port.
21048 * pa/quadlib.asm: New file for long double support.
21050 * configure.in: Add hppa1.0-*-mpeix for MPE port.
21051 * configure: Rebuilt.
21053 Tue Sep 7 10:08:40 1999 Andreas Schwab <schwab@suse.de>
21055 * final.c (shorten_branches): Fix last change.
21057 Tue Sep 7 00:30:32 1999 Jeffrey A Law (law@cygnus.com)
21059 * pa.h (ASM_OUTPUT_DOUBLE_INT): Delete.
21061 Mon Sep 6 22:44:47 1999 Jeffrey A Law (law@cygnus.com)
21063 * Merge from gcc2 snapshot Jan 9, 1999. See FSFChangeLog for
21066 Mon Sep 6 22:31:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21068 * c-aux-info.c (concat): Don't define.
21070 * cccp.c (my_strerror): Likewise. All callers changed to use
21072 (do_include): Call xstrdup, not xmalloc/strcpy.
21073 (grow_outbuf): Don't check if xrealloc returns NULL, it can't.
21074 (xmalloc, xrealloc, xcalloc, xstrdup): Don't define.
21076 * collect2.c (my_strsignal): Likewise. All callers changed to use
21078 (locatelib): Call xstrdup, not xmalloc/strcpy.
21080 * 1750a.h (ASM_OUTPUT_INTERNAL_LABEL): Call xmalloc, not malloc.
21082 * dsp16xx.c (override_options): Call xstrdup, not xmalloc/strcpy.
21084 * i370.h (ASM_DECLARE_FUNCTION_NAME): Call xmalloc, not malloc.
21086 * mips.c (build_mips16_call_stub): Call xstrdup, not xmalloc/strcpy.
21088 * cppinit.c (cpp_options_init): Call xcalloc, not xmalloc/bzero.
21090 * dwarfout.c (dwarfout_init): Call concat, not xmalloc/strcpy/...
21092 * except.c (new_eh_region_entry): Call xmalloc/xrealloc, not
21094 (find_all_handler_type_matches): Likewise. Don't check return
21096 (get_new_handler, init_insn_eh_region, process_nestinfo): Call
21097 xmalloc, not malloc.
21098 (init_eh_nesting_info): Likewise. Call xcalloc, not xmalloc/bzero.
21100 * gcc.c (xstrerror, xmalloc, xrealloc): Don't define.
21101 (init_spec): Call xcalloc, not xmalloc/bzero.
21102 (set_spec): Call xstrdup, not save_string.
21103 (record_temp_file): Call xstrdup, not xmalloc/strcpy.
21104 (find_a_file): Call xstrdup, not xmalloc/strcpy.
21105 (process_command): Call xstrdup, not save_string.
21106 (main): Call xcalloc, not xmalloc/bzero.
21108 * gcov.c (xmalloc): Don't define.
21109 (create_program_flow_graph): Call xcalloc, not xmalloc/bzero.
21110 (scan_for_source_files): Call xstrdup, not xmalloc/strcpy.
21111 (output_data): Call xcalloc, not xmalloc/bzero.
21113 * haifa-sched.c (schedule_insns): Call xcalloc, not xmalloc/bzero.
21115 * mips-tdump.c (xmalloc): Don't define.
21116 (print_symbol): Call xmalloc, not malloc.
21117 (read_tfile): Call xcalloc, not calloc.
21119 * mips-tfile.c (xfree, my_strsignal, xmalloc, xcalloc, xrealloc):
21120 Don't define. All callers of xfree/my_strsignal changed to use
21121 free/strsignal instead.
21122 (allocate_cluster): Call xcalloc, not calloc.
21124 * objc/objc-act.c (lang_init): Call concat, not xmalloc/strcpy/...
21125 Fix memory leak, free allocated memory.
21127 * prefix.c (translate_name): Call xstrdup, not save_string.
21128 (update_path): Likewise.
21130 * profile.c (branch_prob): Call xstrdup, not xmalloc/strcpy.
21132 * protoize.c (xstrerror, xmalloc, xrealloc, xfree, savestring2):
21133 Don't define. Callers of xfree/savestring2 changed to use
21134 free/concat instead.
21136 * reload1.c (reload): Call xcalloc, not xmalloc/bzero.
21137 (init_elim_table): Likewise.
21139 * resource.c (init_resource_info): Likewise.
21141 * stupid.c (stupid_life_analysis): Likewise.
21143 * toplev.c (xmalloc, xcalloc, xrealloc, xstrdup): Don't define.
21144 (open_dump_file): Call concat, not xmalloc/strcpy/...
21145 (clean_dump_file): Likewise.
21146 (compile_file): Call xstrdup, not xmalloc/strcpy.
21148 Mon Sep 6 15:04:55 1999 Richard Henderson <rth@cygnus.com>
21150 * v850.h (EXPAND_BUILTIN_VA_ARG): New.
21151 * v850.c (v850_va_arg): New.
21153 Tue Sep 7 09:36:01 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21155 * haifa-sched.c: Tidy comments.
21157 Mon Sep 6 14:30:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21159 * Makefile.in (C_AND_OBJC_OBJS): Remove ggc-callbacks.o.
21160 (c-parse.o, c-decl.o, c-lang.o, c-lex.o, c-common.o,
21161 $(out_object_file)): Depend on ggc.h.
21162 * c-common.c: Include "ggc.h".
21163 (combine_strings): If doing GC, use ggc_alloc_string.
21164 * c-decl.c: Include "ggc.h".
21165 (ggc_p): Define with value 0.
21166 (mark_binding_level): New function.
21167 (init_decl_processing): Add GC roots.
21168 (mark_c_function_context): New function.
21169 (lang_mark_false_label_stack): New function.
21170 (lang_mark_tree): New function.
21171 (lang_cleanup_tree): New function.
21172 * c-lang.c: Include "ggc.h".
21173 (lang_init): Call c_parse_init.
21174 * c-lex.c: Include "ggc.h".
21175 (check_linenum): If doing GC, don't copy filenames to permanent
21177 * c-parse.in: Include "ggc.h".
21178 (c_parse_init): New function.
21179 * c-tree.h (c_parse_init, mark_c_function_context): Declare.
21180 * objc/Make-lang.in (objc-parse.o): Depend on ggc.h.
21182 * except.c (mark_eh_state): Mark more state.
21183 * function.c (mark_function_state): Likewise.
21184 * ggc-simple.c (ggc_alloc_rtvec): Bring in sync with non-gc version.
21185 (ggc_alloc_string) [GGC_DUMP]: Fix typo.
21186 * toplev.c (mark_file_stack): New function.
21187 (compile_file): If doing GC, use ggc_alloc_string on input filename.
21188 (main): Add root for input_file_stack.
21190 * i386.c: Include "ggc.h".
21191 (ix86_mark_machine_status): New function.
21192 (override_options): Set mark_machine_status.
21194 Mon Sep 6 15:26:23 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21196 * tree.c (copy_node): Copy node contents also if doing GC.
21198 Mon Sep 6 08:42:06 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
21200 * collect2.c (scan_libraries): Fix double-thinko :-).
21202 Mon Sep 6 02:42:36 1999 Jeffrey A Law (law@cygnus.com)
21204 * collect2.c (scan_libraries): Fix thinko.
21206 * cse.c (delete_trivially_dead_insns): Do not skip the last
21207 insn if it is a real insn.
21209 Sun Sep 5 18:57:42 1999 Mark Mitchell <mark@codesourcery.com>
21211 * Makefile.in (ggc-simple.o): Depend on hash.h.
21212 * ggc.h (ggc_add_tree_hash_table_root): Declare.
21213 (ggc_mark_tree_varray): Likewise.
21214 (ggc_mark_tree_hash_table): Likewise.
21215 * ggc-simple.c: Include hash.h.
21216 (ggc_mark_tree_hash_table_ptr): New function.
21217 (ggc_mark_tree_hash_table_entry): Likewise.
21218 (ggc_mark_tree_hash_table): Likewise.
21219 (ggc_add_tree_hash_table_root): Likewise.
21220 * varray.h (const_equiv_data): Use struct rtx_def *, rather than
21221 rtx, when defining fields.
21223 Sun Sep 5 18:57:42 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
21225 * profile.c (output_func_start_profiler): Remove apparently
21226 nonsensical call to start_sequence.
21228 Sun Sep 5 17:34:33 1999 Richard Henderson <rth@cygnus.com>
21230 * clipper/clipper.c (clipper_va_start): Fix typos.
21232 * pyr/pyr.c (pyr_build_va_list, pyr_va_start, pyr_va_arg): New stubs.
21233 * spur/spur.c (spur_build_va_list, spur_va_start): New stubs.
21234 (spur_va_arg): New stub.
21236 * configure.in: Comment out pyramid.
21238 Sun Sep 5 19:11:01 1999 Michael Meissner <meissner@cygnus.com>
21240 * i386.h (MASK_{DEBUG_{ADDR,ARG},INTEL_SYNTAX}): Move so these
21241 don't conflict with the bits that win32, cygwin, and dgux
21244 Sun Sep 5 09:31:56 1999 Richard Henderson <rth@cygnus.com>
21245 Bernd Schmidt <bernds@cygnus.co.uk>
21247 * integrate.c (function_cannot_inline_p): Do not inline
21248 functions with forced labels.
21250 Sun Sep 5 00:35:17 1999 Richard Henderson <rth@cygnus.com>
21251 Bernd Schmidt <bernds@cygnus.co.uk>
21252 Mark Mitchell <mark@codesourcery.com>
21254 * Makefile.in (ggc-simple.o): Depend on varray.h.
21255 (rtl.o): Depend on ggc.h.
21256 (genattrtab.o): Depend on ggc.h.
21257 (print-tree.o): Likewise.
21258 (fold-const.o): Likewise.
21259 * emit-rtl.c (sequence_element_free_list): Remove, and all references.
21260 (make_insn_raw): Don't cache insns when GC'ing.
21261 (emit_insn_before): Likewise.
21262 (emit_insn_after): Likewise.
21263 (emit_insn): Likewise.
21264 (start_sequence): Use xmalloc to allocate the sequence_stack.
21265 (end_sequence): Add free to free it.
21266 (gen_sequence): Don't cache insns when GC'ing.
21267 (clear_emit_caches): Don't use sequence_element_free_list.
21268 (init_emit): Use xcalloc, not xmalloc+bzero.
21269 * fold-const.c (size_int_wide): Kill the cache, when GC'ing.
21270 * function.c (pop_function_context_from): Use free to free the
21271 fixup_var_refs_queue.
21272 (put_reg_into_stack): Allocate it with xmalloc.
21273 * genattrtab.c: Include ggc.h.
21274 (operate_exp): Don't use obstack_free when GC'ing.
21275 (simplify_cond): Likewise.
21276 (simplify_text_exp): Likewise.
21277 (optimize_attrs): Likewise.
21278 * gengenrtl.c (gendef): Use ggc_alloc_rtx to allocate RTL, when
21280 (gencode): Generate a #include for ggc.h.
21281 * ggc-callbacks.c (ggc_p): Define it to zero.
21282 * ggc-none.c (ggc_p): Likewise.
21283 * ggc-simple.c: Include varray.h.
21284 (ggc_mark_tree_varray): New function.
21285 (ggc_add_tree_varray_root): Likewise.
21286 (ggc_mark_tree_varray_ptr): Likewise.
21287 * ggc.h (ggc_p): Declare.
21288 (varray_head_tag): Likewise.
21289 (ggc_add_tree_varray_root): Declare.
21290 * print-tree.c (print_node): Don't check for TREE_PERMANENT
21291 inconsistencies when GC'ing.
21292 * rtl.c: Include ggc.h.
21293 (rtvec_alloc): Use ggc_alloc_rtvec when GC'ing.
21294 (rtx_alloc): Use ggc_alloc_rtx when GC'ing.
21295 (rtx_free): Don't call obstack_free when GC'ing.
21296 * toplev.c (rest_of_compilation): Call ggc_collect after every
21298 * tree.c (push_obstacks): Do nothing, if GC'ing.
21299 (pop_obstacks_nochange): Likewise.
21300 (pop_obstacks): Likewise.
21301 (make_node): Use ggc_alloc_tree when GC'ing.
21302 (copy_node): Likewise.
21303 (get_identifier): Use ggc_alloc_string when GC'ing.
21304 (build_string): Likewise.
21305 (make_tree_vec): Use ggc_alloc_tree when GC'ing.
21306 (tree_cons): Likewise.
21307 (build1): Likewise.
21308 (type_hash_canon): Don't call obstack_free when GC'ing.
21310 Sat Sep 4 21:52:32 1999 Richard Henderson <rth@cygnus.com>
21312 * haifa-sched.c (schedule_block): Use next_nonnote_insn instead
21313 of NEXT_INSN when examining speculative insns for SCHED_GROUP_P.
21315 Sat Sep 4 20:40:19 1999 Richard Henderson <rth@cygnus.com>
21316 Bernd Schmidt <bernds@cygnus.co.uk>
21317 Mark Mitchell <mark@codesourcery.com>
21319 * Makefile.in (stor-layout.o): Depend on ggc.h.
21320 (expr.o): Depend on ggc.h.
21321 (profile.o): Depend on ggc.h.
21322 (stor-layout.o): Depend on ggc.h.
21323 * emit-rtl.c (init_emit_once): Add gc roots.
21324 * expr.c: Include ggc.h.
21325 (emit_block_move): Add gc roots.
21326 (clear_storage): Likewise.
21327 * expr.h (init_stor_layout_once): New function.
21328 * profile.c: Include ggc.h.
21329 (init_arc_profiler): profiler_label is a root.
21330 * scan.c (make_sstring_space): Trust xrealloc to function
21331 correctly with first parameter NULL.
21332 * stor-layout.c: Include ggc.h.
21333 (set_sizetype): Add gc root.
21334 (init_stor_layout_once): New function.
21335 * toplev.c (compile_file): Call it.
21337 Sat Sep 4 19:26:25 1999 Richard Henderson <rth@cygnus.com>
21338 Bernd Schmidt <bernds@cygnus.co.uk>
21339 Mark Mitchell <mark@codesourcery.com>
21341 * Makefile.in (tree.o): Depend on ggc.h.
21342 (varasm.o): Likewise.
21343 (function.o): Likewise.
21344 (stmt.o): Likewise.
21345 (except.o): Likewise.
21346 (optabs.o): Likewise.
21347 (emit-rtl.o): Likewise.
21348 * emit-rtl.c: Include ggc.h.
21349 (sequence_element_free_list): Remove, and all references.
21350 (mark_sequence): New functions.
21351 (mark_emit_state): New function.
21352 * except.c: Include ggc.h.
21353 (mark_eh_node, mark_eh_stack, mark_eh_queue): New functions.
21354 (mark_tree_label_node): New functions.
21355 (mark_eh_state): New function.
21356 * function.c: Include ggc.h.
21357 (mark_temp_slot, mark_function_chain): New functions.
21358 (mark_function_state): New function.
21359 (init_function_once): New function.
21360 * function.h (init_function_once): New function.
21361 * ggc-callbacks.c (lang_mark_false_label_stack): New function.
21362 * ggc.h (label_node): Declare.
21363 (eh_status, emit_status, stmt_status, varasm_status): Likewise.
21364 (lang_mark_false_label_stack): New function.
21365 (mark_temp_slot): Remove declaration.
21366 (mark_function_chain): Likewise.
21367 (mark_eh_state): Adjust prototype.
21368 (mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab):
21370 * optabs.c: Include ggc.h.
21371 (mark_optab): New function.
21372 (init_optabs): Add gc roots.
21373 * stmt.c: Include ggc.h.
21374 (mark_cond_nesting, mark_loop_nesting): New functions.
21375 (mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise.
21376 (mark_stmt_state): New function.
21377 * toplev.c (compile_file): Call init_function_once.
21378 * tree.c: Include ggc.h.
21379 (type_hash): Move declaration earlier in file.
21380 (TYPE_HASH_SIZE, type_hash_table): Likewise.
21381 (init_obstacks): Add gc roots.
21382 (mark_type_hash): New function.
21383 * varasm.c: Include ggc.h.
21384 (mark_pool_constant): New function.
21385 (mark_varasm_state): New function.
21387 Sat Sep 4 22:28:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21389 * ggc-simple.c (ggc_root, ggc_collect): Wrap prototype with PROTO.
21391 Sat Sep 4 18:01:45 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21393 * c-decl.c (struct language_function): Renamed from struct c_function.
21395 (c_function_chain): Delete.
21396 (push_c_function_context): New arg F. Don't warn about nested
21397 functions here. Fill LANGUAGE elt of F. Delete code to update
21398 c_function_chain. Don't call push_function_context.
21399 (pop_c_function_context): New arg F. Restore from there instead of
21400 from c_function_chain. Don't call pop_function_context. Clear out
21401 LANGUAGE field of F when done.
21402 * c-lang.c: Include "function.h"
21403 (lang_init): Initialize save_lang_status and restore_lang_status.
21404 * c-parse.in (nested_function, nested_function_notype): Warn about
21405 nested functions. Call push_function_context/pop_function_context
21406 instead of the _c_ variants.
21407 * c-tree.h (push_c_function_context, pop_c_function_context): Update
21409 * Makefile.in (c-lang.o): Update dependencies.
21411 * emit-rtl.c (init_emit): Use xmalloc to allocate regno_reg_rtx,
21412 regno_pointer_flag, regno_pointer_align.
21413 (gen_reg_rtx): Use xrealloc to enlarge them.
21414 (free_emit_status): New function.
21415 * function.c (mark_machine_status, mark_lang_status): New variables.
21416 (assign_stack_local_1): Renamed from assign_outer_stack_local. Merge
21417 in some bits from assign_stack_local. All callers changed to use new
21419 (assign_stack_local): Just call assign_stack_local_1.
21420 (free_after_compilation): New function.
21421 (put_reg_into_stack): Simplify to always call assign_stack_local_1.
21422 (trampoline_address): Likewise.
21423 (assign_parms): Use xcalloc/xrealloc to allocate parm_reg_stack_loc.
21424 (prepare_function_start): Explicitly clear some more variables.
21425 * function.h (struct function): New elt can_garbage_collect.
21426 (mark_machine_status, mark_lang_status): Declare variables.
21427 (free_after_compilation, free_emit_status, free_varasm_status,
21428 init_varasm_status): Declare functions.
21429 * toplev.c (rest_of_compilation): Call free_after_compilation when
21430 done with the current function.
21431 * varasm.c (free_varasm_status): New function.
21433 Sat Sep 4 17:15:13 1999 Richard Henderson <rth@cygnus.com>
21435 * sparc.h (EXPAND_BUILTIN_VA_START): Define.
21436 (EXPAND_BUILTIN_VA_ARG): Define.
21437 * sparc.c (sparc_va_start): New.
21438 (sparc_va_arg): New.
21440 Sun Sep 5 11:11:59 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21442 * config/c4x/c4x.h (DBR_OUTPUT_SEQEND): Use XVECEXP not XEXPs.
21444 Sun Sep 5 10:13:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21446 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Disable.
21448 Sat Sep 4 13:44:01 1999 Mark Mitchell <mark@codesourcery.com>
21450 * Makefile.in (C_AND_C_OBJS): Add gcc-callbacks.o.
21451 (OBJS): Add $(GGC).
21452 (ggc-callbacks.o): New target.
21453 * ggc-callbacks.c: New file.
21455 Sat Sep 4 22:53:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21457 * expr.h: Collapse individual optab and libfunc vars to arrays.
21458 (optab_index, libfunc_index): New enumerations.
21459 (optab_table, libfunc_table): New arrays.
21460 Add accessor macros for both.
21462 * optabs.c (optab_table, libfunc_table): New.
21463 Delete declarations for individual optab and libfunc vars.
21465 Sat Sep 4 12:57:17 1999 Richard Henderson <rth@cygnus.com>
21467 * i386/sco5.h (RETURN_POPS_ARGS): Name change ix86_return_pops_args.
21469 Sat Sep 4 11:19:52 1999 Richard Henderson <rth@cygnus.com>
21471 * Makefile.in (GGC, GGC_LIB): New.
21472 (HOST_RTL): Include ggc-none.o.
21473 (ggc-simple.o): New target.
21474 (ggc-none.o): Likewise.
21475 * tree.h (tree_common): Add gc_mark.
21476 * rtl.h (struct rtx_def): Steal a bit from code to make gc_mark.
21477 (struct rtvec_def): Add gc_mark.
21478 * emit-rtl.c (global_rtl): Update static initializers to contain
21479 enough initializers.
21480 * ggc.h, ggc-none.c, ggc-simple.c: New files.
21481 * toplev.c (gc_time): New variable.
21482 (all_time): New variable.
21483 (compile_file): Print gc time.
21484 (print_time): Calculate percentage of the whole.
21486 Sat Sep 4 13:11:01 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21488 Change obstack memory management and varasm constant pool handling so
21489 that nested functions are treated like any other functions.
21490 * function.c (init_machine_status): New variable.
21491 (push_function_context_to): Set contains_functions for the outer
21492 function. Don't call save_varasm_status.
21493 (pop_function_context_from): Don't call restore_varasm_status. Don't
21494 set current_function_contains_functions.
21495 (prepare_function_start): Call init_varasm_status rather than
21496 init_const_rtx_hash_table. Call (*init_machine_status) if the pointer
21498 * function.h (struct function) Add field varasm. Delete fields
21499 inline_obstacks, inl_emit, const_rtx_hash_table, first_pool,
21500 last_pool, const_rtx_sym_hash_table, pool_offset, const_double_chain.
21501 (init_machine_status): Declare.
21502 (save_varasm_status, restore_varasm_status): Delete declarations.
21503 (save_tree_status, restore_tree_status): Delete last argument.
21504 * integrate.c (initialize_for_inline): Lose arg COPY. Delete copying
21505 code. All callers changed.
21506 (copy_decl_list, copy_decl_tree, copy_decl_rtls, copy_for_inline,
21507 save_constants_in_decl_trees, restore_constants, save_constants,
21508 save_for_inline_eh_labelmap, save_for_inline_copying): Delete
21510 (inlining): New variable.
21511 (reg_map, label_map, insn_map, orig_asm_operands_vector,
21512 copy_asm_operands_vector, copy_asm_constraints_vector): Delete
21514 (save_for_inline_nocopy): Don't save constants.
21515 Don't set inl_emit field in current_function.
21516 (expand_inline_function): Use emit field, not inl_emit, of the inlined
21517 function. Set new variable inlining before
21518 calling copy_rtx_and_substitute.
21519 (copy_rtx_and_substitute): In MEM and SYMBOL_REF cases, handle
21520 constant pool references if inlining is nonzero.
21521 Delete ADDRESS and (most of the) CONST cases.
21522 (output_inline_function): Save and restore current_function/
21523 current_function_decl. Delete restore_constants code. Don't call
21524 init_const_rtx_hash_table.
21525 * output.h (init_const_rtx_hash_table): Don't declare.
21526 * rtl.h (struct function): Declare.
21527 (get_pool_constant_for_function, get_pool_mode_for_function): Declare.
21528 * toplev.c (rest_of_compilation): Don't treat nested functions or
21529 functions containing them specially. Delete all code to deal with
21530 save_for_inline_copying.
21531 * tree.c (toplev_inline_obstacks, extra_inline_obstacks,
21532 inline_obstacks): Delete variables.
21533 (save_tree_status): Lose arg CONTEXT. All callers changed.
21534 Simply allocate a new function_maybepermanent_obstack for the new
21535 function, delete all the special cases.
21536 Don't save inline_obstacks.
21537 (restore_tree_status): Lose arg CONTEXT. All callers changed.
21538 Delete special handling for function_maybepermanent_obstack; simply
21540 Don't restore inline_obstacks.
21541 (permanent_allocation): Delete code that frees inline_obstacks.
21542 (print_inline_obstack_statistics): Delete function.
21543 (dump_tree_statistics): Don't call it.
21544 * varasm.c (struct varasm_status): New.
21545 (const_rtx_hash_table, const_rtx_sym_hash_table, first_pool,
21546 last_pool, pool_offset, const_double_chain): Delete global
21547 variables, replace with accessor macros.
21548 (immed_double_const): Don't walk const_double_chain outside a
21549 function, but don't treat nested functions specially anymore.
21550 (immed_real_const_1): Likewise.
21551 (clear_const_double_mem): Don't treat nested functions specially.
21552 (init_const_rtx_hash_table): Deleted, code moved to init_varasm_status.
21553 (save_varasm_status, restore_varasm_status): Delete functions.
21554 (init_varasm_status): New function.
21555 (force_const_mem): Don't treat nested functions specially.
21556 (find_pool_constant): Accept new arg F, search for constants in
21557 that function's pool rather than the current one. All callers
21559 (get_pool_constant_for_function, get_pool_mode_for_function): New
21562 * i386.c (init_386_machine_status): New function, mostly from
21563 clear_386_stack_locals.
21564 (struct machine_functions): Rename element names to avoid name
21566 (pic_label_rtx, pic_label_name, i386_stack_locals): New accessor
21567 macros, replacing global variables.
21568 (clear_386_stack_locals, save_386_machine_status,
21569 restore_386_machine_status): Delete functions.
21570 (override_options): Initialize init_machine_status.
21571 * i386.h (INIT_EXPANDERS): Delete macro.
21572 (save_386_machine_status, restore_386_machine_status,
21573 clear_386_stack_locals): Delete declarations.
21575 Sat Sep 4 16:56:28 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21577 * config/c4x/c4x.md (rptb_init): Renamed from *rptb_init.
21578 (doloop_begin): Simplify pattern and use emit_jump_insn.
21579 (doloop_end): Simplify pattern, switch operand order,
21580 and use emit_jump_insn.
21582 Fri Sep 3 19:02:38 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
21584 * function.h (struct function): Add new element LANGUAGE.
21585 (save_lang_status): Declare new variable.
21586 (restore_lang_status): Likewise.
21587 * function.c (save_lang_status): Define.
21588 (restore_lang_status): Likewise.
21589 (push_function_context_to): Call language-specific save function.
21590 (pop_function_context_from): Call language-specific restore function.
21592 Fri Sep 3 01:16:18 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
21594 * i386.md (movsf_1): Check REG_P before use of REGNO.
21595 (movdf_1): Likewise.
21596 (movxf_1): Likewise.
21597 (extendsfdf2): Likewise.
21598 (extendsfxf2): Likewise.
21599 (extenddfxf2): Likewise.
21601 Sat Sep 4 11:37:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21603 * config/c4x/c4x.c (c4x_emit_move_sequence): Do not force large
21604 constants into memory.
21605 (c4x_shiftable_constant): New function.
21606 * config/c4x/c4x.c (LEGITIMATE_CONSTANT_P): Allow any CONST_INT.
21607 (c4x_shiftable_constant): Declare.
21608 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant,
21609 ashlqi3_noclobber): Add new patterns and associated splitters.
21611 Fri Sep 3 16:22:17 1999 Richard Henderson <rth@cygnus.com>
21613 * dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
21614 * dwarf2out.c (dwarf2out_frame_init): Likewise.
21615 * final.c (shorten_branches): Likewise.
21616 * global.c (global_alloc): Likewise.
21617 * haifa-sched.c (build_control_flow): Likewise.
21618 * stmt.c (check_for_full_enumeration_handling): Likewise.
21619 (estimate_case_costs): Likewise.
21621 Fri Sep 3 15:49:56 1999 Mark Mitchell <mark@codesourcery.com>
21623 * rtl.h (RTL_CHECKC2): Fix typo in last change.
21625 Fri Sep 3 15:13:34 1999 Richard Henderson <rth@cygnus.com>
21627 * flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
21628 (recompute_reg_usage): Likewise.
21629 * rtlanal.c (find_regno_fusage): Likewise.
21631 * rtl.c (rtl_check_failed_code1): New function.
21632 (rtl_check_failed_code2): New.
21633 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
21634 (RTL_CHECKC1, RTL_CHECKC2): New.
21635 (XC*): New accessor macros.
21636 (NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
21637 (ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
21638 (CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
21639 (ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
21640 (TRAP_*, RANGE_INFO_*): Likewise.
21642 Fri Sep 3 15:10:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21644 * Makefile.in (tlink.o): Don't depend on toplev.h.
21646 * collect2.c (c_file, o_file, export_file, import_file, ldout,
21647 output_file, nm_file_name, ldd_file_name, strip_file_name,
21648 c_file_name, prefix_list, libexts, is_ctor_dtor, find_a_file,
21649 add_prefix, prefix_from_env, prefix_from_string, do_wait,
21650 fork_execute, maybe_unlink, add_to_list,
21651 extract_init_priority, write_list, dump_list,
21652 dump_prefix_list, write_list_with_asm, write_c_file,
21653 write_c_file_stat, write_c_file_glob, scan_prog_file,
21654 scan_libraries, is_in_list, resolve_lib_name, use_import_list,
21655 ignore_library, extract_string, notice, dump_file, target_machine,
21656 collect_wait, collect_execute, libname, locatelib, aix_std_libs,
21657 read_file, print_load_command): Constify a char*.
21658 (fdopen, error, fatal, fatal_perror): Don't prototype.
21659 (my_strerror): Remove. All callers use xstrerror instead.
21660 (xcalloc, xmalloc, xrealloc, xstrdup, putenv): Remove definitions.
21661 (main): Add prototype. Constify lots of char* ptrs. Change calls
21662 to xcalloc/strcpy/strcat/... to one call to concat.
21663 (main, scan_prog_file, scan_libraries): Use an intermediate
21664 `const char **' to build an argv array.
21665 (mapfile, libselect, libcompare, locatelib): Add prototypes.
21667 * collect2.h (collect_execute, collect_wait, dump_file,
21668 file_exists): Constify a char*.
21669 (ldout, c_file_name, temporary_obstack, permanent_obstack,
21670 temporary_firstobj, vflag, debug): Add extern declarations.
21671 (fancy_abort, error, notice, fatal, fatal_perror): Add prototypes.
21673 * tlink.c: Don't include toplev.h.
21674 (vflag, debug, ldout, c_file_name, temporary_obstack,
21675 permanent_obstack, temporary_firstobj): Don't declare.
21676 (tlink_execute, frob_extension, symbol_hash_lookup,
21677 file_hash_lookup, demangled_hash_lookup, tlink_init, freadsym,
21678 recompile_files, read_repo_files, demangle_new_symbols,
21679 scan_linker_output): Constify a char*.
21680 (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc,
21681 do_tlink): Mark parameters with ATTRIBUTE_UNUSED.
21683 Fri Sep 3 18:09:24 1999 Andrew Haley <aph@cygnus.com>
21685 * config/m68k/m68kelf.h: Set USE_GAS; this makes gcc generate jbsr
21686 (relative) rather than jsr (absolute) subroutine call insns.
21687 * config/m68k/m68k-coff.h: Ditto.
21689 Fri Sep 3 17:24:31 1999 Richard Earnshaw <rearnsha@arm.com>
21691 * arm.c (note_invalid_constants): No need to ignore ASMs, we can
21692 now rework these too.
21693 (arm_reorg): If an insn can't reach the end of the current pool,
21694 ensure that we emit that pool before the insn.
21696 Fri Sep 3 09:14:32 1999 Marc Espie <espie@tetto.liafa.jussieu.fr>
21698 * tlink.c (scan_linker_output): Skip the initial underscore in
21699 a mangled name if appropriate.
21701 Fri Sep 3 01:28:33 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21703 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
21704 objc_tree_code_name, synth_id_with_class_suffix, warn_with_method,
21705 error_with_ivar, gen_declarator, create_builtin_decl,
21706 my_build_string, generate_descriptor_table, generate_ivars_list,
21707 generate_dispatch_table, check_protocols, TAG_GETCLASS,
21708 TAG_GETMETACLASS, TAG_MSGSEND, TAG_MSGSENDSUPER, TAG_EXECCLASS,
21709 dump_base_name, lang_decode_option, build_encode_expr,
21710 start_class, finish_class, encode_pointer, really_start_method,
21711 gen_declaration, dump_interface, handle_class_ref, handle_impent):
21713 (objc_demangle, objc_printable_name, generate_struct_by_value_array):
21714 Add static prototypes.
21715 (build_objc_string_decl, build_selector_reference_decl,
21716 encode_bitfield, build_class_reference_decl): Remove unused
21717 parameter, all callers changed.
21718 (maybe_objc_method_name): Mark with ATTRIBUTE_UNUSED.
21719 (objc_printable_name): Likewise. Change second parameter to type int.
21720 (init_objc): Use memcpy, not bcopy, to avoid casts.
21722 Thu Sep 2 21:49:52 1999 Richard Henderson <rth@cygnus.com>
21724 * reload1.c (eliminate_regs_in_insn): Avoid eliminating the
21725 reg notes on a deleted insn.
21726 * gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.
21728 Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com)
21730 * i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
21732 Thu Sep 2 22:00:08 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21734 * stmt.c (expand_asm_operands): Fix index into inout_mode when
21737 Thu Sep 2 13:00:48 1999 Richard Henderson <rth@cygnus.com>
21739 * stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
21740 * tm.texi (MD_ASM_CLOBBERS): Document it.
21742 Thu Sep 2 10:22:40 1999 Richard Henderson <rth@cygnus.com>
21744 * dwarf2out.c (dwarf2out_line): Constify `lastfile'.
21745 * except.c (expand_rethrow): Remove unused variable.
21746 * expr.c (do_jump_by_parts_greater_rtx): Likewise.
21747 * flow.c (replace_insns): Likewise.
21748 (create_edge_list, verify_edge_list): Likewise.
21749 * gcse.c (cprop_cc0_jump): Protect declaration with HAVE_cc0.
21751 * genemit.c (gen_expand): Only emit `operands[N]' decl if there
21752 is special code to run.
21753 (main): Don't define operands to emit_operand.
21754 * genrecog.c (main): Don't emit an empty peephole2_insn function.
21756 * rtl.h (NOTE_BASIC_BLOCK): Use X0BBDEF.
21758 * alpha/alpha.h (normal_memory_operand): Declare.
21759 (reg_no_subreg_operand): Declare.
21760 * alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use HOST_WIDE_INT_PRINT_DEC.
21762 Thu Sep 2 10:19:20 1999 Richard Henderson <rth@cygnus.com>
21764 * c-parse.in (compstmt_primary_start): New, broken out of first
21765 part of compstmt handling in primary.
21766 (primary): Use it. Add an error clause.
21767 (compstmt_nostart): Renamed from compstmt; remove all
21768 initial invocations of compstmt_start.
21771 Thu Sep 2 01:35:50 1999 Marc Espie <espie@cvs.openbsd.org>
21773 * protoize.c (gen_aux_info_file): Let pexecute call choose_temp_base if
21776 Thu Sep 2 00:43:59 1999 Finn Hakansson <finn@axis.com>
21778 * combine.c (simplify_shift_const): Remove extra semicolon.
21779 * dwarf2out.c (remove_AT): Likewise.
21780 * expmed.c (expand_mult): Likewise.
21781 * gcov.c (create_program_flow_graph): Likewise.
21782 * reorg.c (mostly_true_jump): Likewise.
21784 Thu Sep 2 00:06:43 1999 Jeffrey A Law (law@cygnus.com)
21786 * fold-const.c (fold_range_test): Do not try to fold the range
21787 test if the rhs or lhs has side effects.
21789 * combine.c (simplify_rtx): Recognize another case of a synthesized
21792 * varasm.c (mark_constant_pool): When marking indirect references,
21793 only look at SYMBOL_REFs.
21795 * except.c (expand_fixup_region_end): Do not peek at
21796 INSN_UID (node->entry->outer_context) for flag_new_exceptions.
21798 Thu Sep 2 13:52:53 1999 Geoffrey Keating <geoffk@cygnus.com>
21800 * flags.h: New variables align_loops, align_loops_log,
21801 align_jumps, align_jumps_log, align_labels, align_labels_log,
21802 align_functions, align_functions_log.
21803 * toplev.c: Define them.
21804 (f_options): Handle -falign-* when they have no argument.
21805 (main): Add logic to set variables for -falign-functions,
21806 -falign-jumps, -falign-labels, -falign-loops.
21807 Make it -fsched-verbose=<n> and -finline-limit=<n>.
21808 (display_help): Change help to match options.
21809 * final.c (LABEL_ALIGN): Default to align_labels_log.
21810 (LABEL_ALIGN_MAX_SKIP): Default to align_labels-1.
21811 (LOOP_ALIGN): Default to align_loops_log.
21812 (LOOP_ALIGN_MAX_SKIP): Default to align_loops-1.
21813 (LABEL_ALIGN_AFTER_BARRIER): Default to align_jumps_log.
21814 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to align_jumps-1.
21815 * varasm.c (assemble_start_function): Handle align_functions.
21817 * config/sparc/sparc.h: Don't declare sparc_align_*.
21818 Don't provide LABEL_ALIGN_AFTER_BARRIER or LOOP_ALIGN.
21819 (DEFAULT_SPARC_ALIGN_FUNCS): Delete; take functionality into
21821 (FUNCTION_BOUNDARY): Fix incorrect use---it's not just a request,
21823 * config/sparc/sparc.c: Delete sparc_align_loops,
21824 sparc_align_jumps, sparc_align_funcs and the corresponding string
21826 (sparc_override_options): Default align_functions on ultrasparc.
21827 Delete -malign-* handling.
21829 * config/mips/mips.c (override_options): On 64-bit targets,
21830 try to align code to 64-bit boundaries.
21831 (print_operand): New substitution, %~,
21832 which aligns labels to align_labels_log.
21833 * config/mips/mips.md (div_trap_normal): Use %~.
21834 (div_trap_mips16): Likewise.
21836 (absdi2): Likewise.
21837 (ffssi2): Likewise.
21838 (ffsdi2): Likewise.
21839 (ashldi3_internal): Likewise.
21840 (ashrdi3_internal): Likewise.
21841 (lshrdi3_internal): Likewise.
21842 (casesi_internal): Likewise.
21844 Wed Sep 1 21:13:48 1999 Richard Henderson <rth@cygnus.com>
21846 Merge new ia32 backend from the branch!
21848 * i386.h, i386.c, i386.md, reg-stack.c, i386/unix.h: Many changes.
21849 See ChangeLog.P2 on new_ia32_branch for details.
21851 * rtl.h (stack_regs_mentioned_p): Delete prototype.
21852 * i386/cygwin.h (SUBTARGET_PROLOGUE): No more do_rtl.
21853 * i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
21854 * i386/gas.h (ASM_FILE_START): Define.
21855 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Update
21856 for name change of ix86_valid_decl_attribute_p.
21857 (i386_pe_valid_type_attribute_p): Similarly.
21859 Wed Sep 1 18:21:23 1999 Richard Henderson <rth@cygnus.com>
21861 * emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
21862 to step through CC modes.
21864 Wed Sep 1 20:18:06 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21866 * regmove.c (fixup_match_1): Don't move INSN in front of P if
21867 it would end up in the shadow of a live flags regsiter.
21869 Wed Sep 1 11:32:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21871 * reload1.c: Fix many indentation problems.
21872 * reload.c: Likewise.
21874 Tue Aug 31 22:08:03 1999 Marc Espie <espie@cvs.openbsd.org>
21876 * alias.c (non_local_reference_p): Constify fmt.
21878 Tue Aug 31 23:19:35 1999 Michael Meissner <meissner@cygnus.com>
21880 * config/i386/xm-cygwin.h (HAVE_DOS_BASED_FILE_SYSTEM): Define.
21882 Tue Aug 31 16:44:52 1999 Jeffrey A Law (law@cygnus.com)
21884 * cse.c (delete_trivially_dead_insns): Do not delete stores to
21885 the internal_arg_pointer.
21887 Tue Aug 31 13:35:42 1999 Richard Henderson <rth@cygnus.com>
21889 Merge peephole2 from new_ia32_branch:
21890 * Makefile.in (STAGESTUFF): Add *.peephole2.
21891 (mostlyclean): Likewise.
21892 (recog.o): Depend on resource.h.
21894 * final.c (peephole): Conditionalize decl on HAVE_peephole.
21895 (final_scan_insn): Likewise for the invocation of peephole.
21896 * genconfig.c (main): Look for peephole and peephole2 patterns.
21897 Emit HAVE_peephole* accordingly.
21898 * genpeep.c (main): Conditionalize entire output on HAVE_peephole.
21899 * flags.h (flag_peephole2): Declare.
21900 * toplev.c: New pass peephole2. New flag -fpeephole2.
21902 * genattrtab.c (main): Count DEFINE_PEEPHOLE2.
21903 * gencodes.c (main): Likewise.
21904 * genextract.c (main): Likewise.
21905 * genoutput.c (main): Likewise.
21906 * genemit.c (max_operand_1): Look for the max scratch operand.
21907 (gen_rtx_scratch): New.
21908 (gen_exp): Use it, and pass on new arg subroutine_type.
21909 (gen_expand): Take max scratch into account.
21910 (gen_split): Emit peephole2 functions.
21911 (output_peephole2_scratch): New.
21912 (main): Include hard-reg-set.h and resource.h. Handle peephole2.
21913 * genrecog.c (routine_type): Add PEEPHOLE2.
21915 (make_insn_sequence): Match outer parallel for peep2. Discard
21916 top level scratches and dups.
21917 (add_to_sequence): New args insn_type and top. Update all callers.
21918 Handle toplevel peep2 matching insns.
21919 (write_subroutine): Handle peep2.
21920 (write_tree_1): Likewise.
21921 (write_tree): Likewise.
21923 (change_state): New arg afterward. Update all callers.
21924 Handle matching separate insns.
21925 * recog.c (recog_next_insn): New.
21926 (peephole2_optimize): New.
21927 * rtl.def (DEFINE_PEEPHOLE2): New.
21928 * resource.c (find_free_register): New argument last_insn. Use it
21929 to find a register available through the entire span.
21930 * resource.h (find_free_register): Update prototype.
21932 Tue Aug 31 11:51:06 1999 Jim Kingdon <http://developer.redhat.com>
21934 * i386.c (output_strlen_unroll): Don't write xops[7]
21935 label if it wasn't set.
21937 1999-08-31 12:44 -0700 Zack Weinberg <zack@bitmover.com>
21939 * cpplib.c (struct directive): Const-ify name pointer and
21940 function pointer prototype.
21941 (validate_else, do_define, do_line, do_include, do_undef,
21942 do_error, do_pragma, do_ident, do_if, do_xifdef, do_else,
21943 do_elif, do_endif, do_sccs, do_assert, do_unassert,
21944 do_warning): Const-ify second arg.
21945 (directive_table): Mark const. Reorder entries by frequency
21946 of usage, record statistics.
21948 1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
21950 * rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
21951 bounds- check RTL accesses if --enable-checking.
21952 (RTVEC_ELT): Bounds check if --enable-checking.
21953 (XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
21954 XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
21955 (XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
21957 (X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
21958 X0BBDEF, X0ADVFLAGS): New macros for accessing '0' slots of RTXes.
21960 (ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
21961 (NOTE_SOURCE_FILE): Use X0STR.
21962 (NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
21963 MEM_ALIAS_SET): Use X0INT.
21964 (NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
21965 JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
21967 * real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
21968 * rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
21969 (rtl_check_failed_bounds, rtl_check_failed_type1,
21970 rtl_check_failed_type2, rtvec_check_failed_bounds): New
21972 (fancy_abort): Fix comment.
21974 * cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
21975 (cse_insn): Decrement LABEL_NUSES for jump target before
21976 deleting jump insn.
21977 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
21978 * final.c (alter_subreg): Compute regno before changing x to
21979 REG; set REGNO(x) after changing it.
21980 * flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
21981 notes containing CONST_INTs.
21982 (delete_eh_regions): Use NOTE_EH_HANDLER.
21983 * function.c (put_reg_into_stack): Make reg a MEM before
21985 (fixup_var_refs_insns): Save REG_NOTES (insn) in case we
21987 (gen_mem_addressof): Make reg a MEM before initializing it.
21988 * integrate.c (copy_rtx_and_substitute): Copy '0' slots with
21990 * local-alloc.c (update_equiv_regs): Zap REG_NOTES before
21991 deleting an insn, not after.
21992 (block_alloc): Only look at PATTERN(insn) if we have to, and
21993 only if it's format class 'i'.
21994 * loop.c (check_dbra_loop): Check bl->biv->add_val is a
21995 CONST_INT before using its INTVAL.
21996 * print-rtl.c (print_rtx): Use X0STR.
21997 * regmove.c (fixup_match_1): Don't look at PATTERN of
21998 non-class-'i' insn chain elements.
21999 * reload.c (loc_mentioned_in_p): Take address of
22000 in->fld[1].rtx directly.
22001 * reload1.c (reload): Change reg to a MEM before initializing
22003 * varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
22005 * config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
22007 Fri Aug 20 13:43:41 1999 Andrew Haley <aph@cygnus.com>
22009 * config/mips/mips.c (machine_dependent_reorg): Force a
22010 barrier to output the local constant pool if a barrier hasn't
22011 been found at a natural point in the instruction stream.
22013 Mon Aug 30 22:04:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22015 * c-parse.in (language_string): Constify.
22017 * dwarf2out.c (language_string): Remove declaration.
22019 * dwarfout.c (language_string): Likewise.
22021 * toplev.c (language_string, init_parse, finish_parse): Likewise.
22023 * tree.h (language_string, init_parse, finish_parse): Declare.
22025 * i386/sun386.h (language_string): Remove declaration.
22027 * mips.h (language_string): Likewise.
22029 * nextstep.h (language_string): Likewise.
22031 * nextstep21.h (language_string): Likewise.
22033 * rs6000.c (language_string): Likewise.
22035 Mon Aug 30 20:56:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22037 * Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
22038 (getpwd.o): Remove target.
22040 * getpwd.c: Delete file. Its in libiberty now.
22042 * dbxout.c (getpwd): Don't prototype.
22043 * dwarf2out.c (getpwd): Likewise
22044 * dwarfout.c (getpwd): Likewise
22045 * final.c (getpwd): Likewise.
22046 * protoize.c (getpwd): Likewise.
22048 Mon Aug 30 20:21:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22050 * cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
22052 Mon Aug 30 16:07:49 1999 Richard Henderson <rth@cygnus.com>
22054 * flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
22055 mark_set_resources.
22057 Mon Aug 30 12:23:53 1999 Jim Wilson <wilson@cygnus.com>
22059 * fixinc/Makefile.in (subdir): New.
22060 (fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
22063 Mon Aug 30 01:02:09 1999 Jeffrey A Law (law@cygnus.com)
22065 * emit-rtl.c (copy_rtx_if_shared): A MEM which references
22066 virtual_stack_vars_rtx or virtual_incoming_args_rtx can not
22069 * invoke.texi: Fix typo.
22071 * dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers
22072 changed. Handle autoincrement addressing modes.
22074 * integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer
22075 just like we would the virtual incoming args register when
22078 Sun Aug 29 23:17:54 1999 David Edelsohn <edelsohn@gnu.org>
22080 * rs6000.h (ASM_FILE_START): Specify complete filename, including
22081 path, in .file directive.
22083 Sun Aug 29 05:06:43 1999 Russ Allbery <rra@stanford.edu>
22085 * gcc.texi (External Bugs): Remove obsolete note about Perl on
22088 1999-08-29 08:38 -0700 Zack Weinberg <zack@bitmover.com>
22090 * stdbool.h: Make the typedef name _Bool, with bool a #defined
22093 Sun Aug 29 09:36:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22095 * tree.c (tree_code_name): Constify a char*.
22097 * tree.h (tree_code_name, decl_printable_name): Likewise.
22099 * function.h (struct function): Likewise.
22101 * toplev.c (decl_name, decl_printable_name): Likewise.
22103 * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise.
22105 * objc/objc-act.c (decl_printable_name): Remove redundant prototype.
22106 (init_objc): Remove function pointer cast.
22108 Sun Aug 29 05:01:17 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
22110 * pa.md (interspace_jump): New pattern.
22111 (builtin_longjmp): New expander.
22113 1999-08-29 Bernd Schmidt <bernds@cygnus.co.uk>
22115 * fp-bit.c (add, sub, multiply, divide, compare, _eq_f2, _ne_f2,
22116 _gt_f2, _ge_f2, _lt_f2, _le_f2, float_to_si, float_to_usi, negate,
22117 sf_to_df, df_to_sf): Fix potential problem with alias analysis.
22119 Sun Aug 29 04:30:52 1999 John Wehle (john@feith.com)
22121 * jump.c (delete_prior_computation): Also check calls
22122 to constant functions. Don't bother checking for a
22123 REG_UNUSED note before adding it.
22124 (delete_computation): Handle multi-word hard registers
22125 when synthesizing missing REG_DEAD notes for a register
22126 which is both set and used by an insn.
22128 1999-08-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22130 * loop.c (this_loop_info): New variable.
22131 (loop_has_call, loop_has_volatile, loop_has_tablejump,
22132 loop_continue, loops_enclosed): Replace with fields in this_loop_info.
22134 (prescan_loop, strength_reduce): New argument loop_info. All callers
22136 (scan_loop): New variable loop_info, initialise to address of
22138 (prescan_loop): Set loop_info->vtop if find NOTE_INSN_LOOP_VTOP.
22139 Delete variable loop_has_multiple_exit targets and replace with
22140 field in this_loop_info.
22141 (find_and_verify_loops): Rename this_loop to this_loop_num.
22142 (strength_reduce): Delete loop_iteration_info. Replace variable
22143 loop_info with function argument of same name.
22144 (insert_bct): Rework test for loop being completely unrolled.
22146 * loop.h (struct loop_info): New fields num, loops_enclosed,
22147 has_call, has_volatile, has_tablejump, has_multiple_exit_targets,
22148 has_indirect_jump, and cont. Redefine use of unroll_number.
22149 (loop_unroll_number): Delete.
22151 * unroll.c (unroll_loop): Store loop unroll count in unroll_number
22152 field of loop_info.
22153 (loop_iterations): Delete variable vtop and instead use
22154 loop_info->vtop computed in prescan_loop.
22156 Sun Aug 29 03:27:23 1999 Scott Weikart <scott@igc.apc.org>
22158 * fix-header.c (main): Do not pass a null pointer to strcmp.
22160 Sun Aug 29 03:18:48 1999 William Bader (william@nscs.fast.net)
22162 * configure.in (i[34567]86-*-sco3.2v4*): Target does not truncate
22164 * configure: Rebuilt.
22166 Sat Aug 28 19:36:05 1999 Jeffrey A Law (law@cygnus.com)
22168 * jump.c (jump_optimize_1): Do not delete assignments to
22169 internal_arg_pointer.
22170 * cse.c (delete_trivially_dead_insns): Always consider a set of
22171 the internal_arg_pointer live.
22173 Sat Aug 28 16:24:31 1999 Richard Henderson <rth@cygnus.com>
22175 * flow.c (flow_delete_insn_chain): Rename from delete_insn_chain.
22176 (update_life_info) [REG_WAS_0]: Search the original insns rather
22177 than the new insns for the note. Fix typos finding note_dest.
22178 If no dest found, discard the note rather than abort.
22179 [REG_NOALIAS]: Handle as REG_NO_CONFLICT.
22180 (replace_insns): Remove the old insn list after update_life_info
22183 Sat Aug 28 16:20:12 1999 Richard Henderson <rth@cygnus.com>
22185 * haifa-sched.c (sched_analyze): Clear LOG_LINKS before calling
22186 sched_analyze_insn.
22187 (sched_analyze_1): Let add_dependence care for not adding dups.
22188 (sched_analyze_2): Likewise.
22189 (add_branch_dependences): Likewise.
22191 Sat Aug 28 15:58:16 1999 Mumit Khan <khan@xraylith.wisc.edu>
22193 * i386/winnt.c (export_list): New type.
22194 (exports_head): Rename to
22195 (export_head): this.
22196 (i386_pe_record_exported_symbol): Add is_data flag.
22197 (i386_pe_asm_file_end): Emit directive for exported variables.
22198 * i386/cygwin.h (i386_pe_record_exported_symbol): Update
22200 * i386/cygwin.h (ASM_OUTPUT_COMMON): Specify symbol type.
22201 (ASM_DECLARE_OBJECT_NAME): Likewise.
22202 (ASM_DECLARE_FUNCTION_NAME): Likewise.
22203 * i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22205 Fri Aug 27 15:35:24 1999 Jeffrey A Law (law@cygnus.com)
22207 * cse.c (fold_rtx): Work around bug in Sun V5.0 compilers.
22209 * pa.c (emit_move_sequence): Do not stop on SUBREG_WORD of an
22212 Fri Aug 27 14:01:19 1999 Marc Espie <espie@cvs.openbsd.org>
22214 * config/openbsd.h: Define SET_ASM_OP.
22215 * tm.texi: cross-reference SET_ASM_OP in the index.
22217 1999-08-27 13:27 -0700 Zack Weinberg <zack@bitmover.com>
22219 * rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format
22220 for a CONST_DOUBLE, at compile time. Initialize rtx_length
22221 and class_narrowest_mode at compile time. Kill init_rtl.
22222 Mark rtx_length, mode_class, mode_size, mode_unit_size,
22223 mode_wider_mode, mode_mask_array, class_narrowest_mode, and
22224 rtx_format as const. Kill all references to EXTRA_CC_MODES or
22226 * rtl.def (CONST_DOUBLE): Use CONST_DOUBLE_FORMAT macro for
22228 * rtl.h: Declare rtx_length and rtx_format as const.
22229 * machmode.def: Define CC(). Use CC() to define CCmode. If
22230 EXTRA_CC_MODES is defined, expand it here.
22231 * machmode.h: Declare mode_class, mode_size, mode_unit_size,
22232 mode_wider_mode, mode_mask_array, and class_narrowest_mode as
22233 const. Kill all references to EXTRA_CC_MODES.
22235 * toplev.c: Don't prototype or call init_rtl.
22236 * optabs.c: Don't call init_mov_optab.
22237 * genemit.c: Don't generate init_mov_optab. Don't call
22239 * gengenrtl.c: Duplicate calculation of CONST_DOUBLE_FORMAT
22241 * genattr.c, genattrtab.c, gencodes.c, genconfig.c,
22242 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
22243 genrecog.c: Don't call init_rtl.
22245 * arc.h, arm.h, c4x.h, i386.h, i960.h, m88k.h, pa.h, pdp11.h,
22246 rs6000.h, sparc.h: Don't define EXTRA_CC_NAMES. Use CC() in
22247 definition of EXTRA_CC_MODES.
22249 * md.texi: Kill ref to EXTRA_CC_NAMES.
22250 * tm.texi: Document new way to define EXTRA_CC_MODES.
22252 * genrecog.c: Do not look up the name of a define_split.
22253 (Unrelated bugfix.)
22255 Fri Aug 27 17:03:42 1999 Nick Clifton <nickc@cygnus.com>
22257 * config/v850/v850.md: Fix typo introduced by previous delta.
22259 Fri Aug 27 09:48:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22261 * gcc.c (fatal): Make definition static to match prototype.
22263 Fri Aug 27 10:33:35 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22265 * combine.c (get_last_value): Don't look for earlier sets if the last
22266 known set is somewhere in between the insns being combined.
22268 Fri Aug 27 10:03:12 BST 1999 Nathan Sidwell <nathan@acm.org>
22270 * configure.in: Don't use shell ! to negate exit codes
22271 * configure: Regenerate
22273 Fri Aug 27 09:36:17 1999 Andreas Schwab <schwab@suse.de>
22275 * function.c (assign_stack_temp_for_type): Fix change of Mar 5 for
22276 the fact that ALIGN is measured in bits, not bytes.
22278 1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
22280 * errors.c: New file; defines functions error, warning, and
22281 fatal, variables have_error and progname.
22282 * errors.h: New file; prototypes and decls for stuff in errors.c.
22284 * Makefile: Add rules to build errors.o and
22285 $(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
22286 genopinit, genrecog, genextract, genpeep, genattr, and
22287 genoutput with errors.o. Add errors.h to deps of genconfig.o,
22288 gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
22289 genpeep.o, genattr.o, and genoutput.o.
22291 * genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
22292 genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
22293 define or prototype fatal. Set progname at beginning of main.
22294 * genoutput.c: Likewise, and don't define or prototype error
22297 * c-typeck.c (c_expand_start_case): Return immediately if exp
22299 * fold-const.c (operand_equal_p): Return immediately if arg1
22300 or arg0 are ERROR_MARKs.
22301 * stor-layout.c (layout_type [case RECORD_TYPE]): Ignore
22302 fields of type ERROR_MARK when calculating if the record can
22305 Fri Aug 27 01:03:48 1999 Jim Kingdon <http://developer.redhat.com>
22306 with much help from Jeffrey A Law and Richard Henderson
22308 * i386.md: In the 6 insns which call output_fix_trunc,
22309 earlyclobber operands[0].
22311 Fri Aug 27 01:01:51 1999 Philip Blundell <pb@nexus.co.uk>
22313 * jump.c (duplicate_loop_exit_test): Call reg_scan_update after
22314 creating new registers.
22316 1999-08-26 23:09 -0700 Zack Weinberg <zack@bitmover.com>
22318 * i386.h: Declare ix86_cpu_string, ix86_arch_string,
22319 i386_reg_alloc_order, i386_regparm_string,
22320 i386_align_loops_string, i386_align_jumps_string,
22321 i386_align_funcs_string, i386_preferred_stack_boundary_string,
22322 and i386_branch_cost_string as type "const char *".
22323 * i386.c: Define all above strings as type "const char *".
22325 Thu Aug 26 20:36:30 1999 Jim Wilson <wilson@cygnus.com>
22327 * dwarf2out.c (output_aranges): Check DWARF_OFFSET_SIZE not PTR_SIZE
22328 when emitting alignment padding. Emit padding byte of 0 instead of 4.
22330 Thu Aug 26 18:11:20 1999 Mark Mitchell <mark@codesourcery.com>
22332 * tree.c (array_type_nelts): Don't create RTL_EXPRs from
22333 SAVE_EXPRs unless the SAVE_EXPRs have already been expanded.
22335 Thu Aug 26 19:33:23 1999 Jim Wilson <wilson@cygnus.com>
22337 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Add default definition.
22338 (debug_dwarf): Add DWARF2_ASM_LINE_DEBUG_INFO support.
22339 (dwarf2out_line, dwarf2out_finish): Likewise.
22340 * tm.texi (DWARF2_ASM_LINE_DEBUG_INFO): Add documetation.
22342 Thu Aug 26 16:10:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
22344 * tree.c (lang_unsave_expr_now) : Correct return type.
22345 * tree.h (lang_unsave_expr_now) : Same.
22347 Thu Aug 26 13:12:29 1999 Jeffrey A Law (law@cygnus.com)
22349 * pa.c (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
22350 instead of duplicating code.
22352 Thu Aug 26 18:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22354 * gcse.c (hash_scan_insn): Don't scan obvious no-ops.
22356 1999-08-26 09:42 -0700 Zack Weinberg <zack@bitmover.com>
22358 * tree.h: fancy_abort always takes three args.
22359 * resource.c: Move include of system.h before toplev.h.
22361 Thu Aug 26 09:46:16 1999 Nick Clifton <nickc@cygnus.com>
22363 * dwarf2out.c (mem_loc_descriptor): Accept LABEL_REFs as well
22366 1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
22368 * system.h: Don't redefine abort or trim_filename.
22369 * rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
22370 or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
22371 whether or not __FUNCTION__ is available.
22372 * tree.h: Duplicate rtl.h's definition of abort, for files
22373 that don't include rtl.h. Delete all code to perform type
22374 checking with a compiler other than GCC.
22375 * varray.h: Delete all code to perform type checking with a
22376 compiler other than GCC. Make VARRAY_CHECK() always evaluate
22377 its arguments exactly once, using a statement expression.
22378 Adjust the VARRAY_<type> accessor macros to match.
22379 * toplev.h (fatal_insn, fatal_insn_not_found): Kill.
22380 (_fatal_insn, _fatal_insn_not_found): New fns, take info on
22381 caller's location. Define fatal_insn and fatal_insn_not_found
22382 as macros that use _fatal_insn and _fatal_insn_not_found.
22383 (fancy_abort, trim_filename): Kill prototypes.
22385 * rtl.c (trim_filename): Move here from toplev.c.
22386 (fancy_abort): New function.
22387 (DIR_SEPARATOR): Provide default definition.
22388 * tree.c (tree_check_failed, tree_class_check_failed): Go
22389 through fancy_abort.
22390 (tree_check, tree_class_check, cst_or_constructor_check,
22391 expr_check): Delete.
22392 * varray.c (varray_check_failed): New function.
22393 * toplev.c (fatal_insn, fatal_insn_not_found): Replace with
22394 _fatal_insn and _fatal_insn_not_found. Go through
22396 (trim_filename, fancy_abort): Delete.
22398 * builtins.c (expand_builtin_args_info): Report ICE with abort.
22399 * except.c (start_catch_handler): Report ICE with error/abort
22401 * final.c (output_operand_lossage): Likewise.
22402 * flow.c (verify_flow_info): Likewise.
22404 * gcc.c: Prototype fatal.
22405 * gengenrtl.c: Undef abort after including rtl.h not system.h.
22406 * genattr.c, genattrtab.c, genemit.c, genextract.c,
22407 genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
22408 Don't define fancy_abort.
22410 Wed Aug 25 17:56:59 1999 Richard Henderson <rth@cygnus.com>
22412 * optabs.c (emit_cmp_and_jump_insns): Be more thorough in
22415 Wed Aug 25 15:35:55 1999 Richard Henderson <rth@cygnus.com>
22417 * m88k.h (VERSION_INFO2): Kill.
22418 (VERSION_STRING): Kill.
22420 (VERSION_INFO1): Tidy.
22421 (TARGET_VERSION): Update.
22422 * m88k/dgux.h (VERSION_INFO2): Kill.
22423 (ASM_FIRST_LINE): Adjust for death of VERSION_STRING.
22424 * m88k/luna.h (VERSION_INFO1): Tidy.
22425 * m88k/sysv4.h (VERSION_INFO1): Likewise.
22426 * m88k.c (out_rcs_id, tm_rcs_id): Kill.
22427 (output_file_start): Adjust for death of VERSION_STRING.
22429 1999-08-25 13:51 -0700 Jim Meyering <meyering@ascend.com>
22431 * cpplib.c (detect_if_not_defined): New function.
22432 (do_if): Use it to detect potential once-only headers.
22434 Wed Aug 25 14:00:18 1999 Jason Merrill <jason@yorick.cygnus.com>
22436 * c-common.c (combine_strings): Always set TREE_CONSTANT.
22438 Wed Aug 25 15:27:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
22440 * combine.c (nonzero_bits) : Allow single-ly set registers to be
22441 anywere in the function only if they are pseudos and set before
22442 being used (not live at the start of the function).
22443 (num_sign_bit_copies) : Same.
22444 (get_last_value_validate) : Same.
22445 (get_last_value) : Same.
22447 Wed Aug 25 11:13:29 1999 Richard Henderson <rth@cygnus.com>
22449 * loop.c (express_from): Try harder to unify (* c N) and (* c M)
22450 where N and M are constant and N is an integer multiple of M.
22452 Wed Aug 25 13:55:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22454 * sbitmap.h (sbitmap_intersection_of_succs): Add prototype.
22455 (sbitmap_intersection_of_preds, sbitmap_union_of_succs,
22456 sbitmap_union_of_preds): Add prototypes.
22457 * sbitmap.c (sbitmap_intersection_of_succs): New function to compute
22458 the intersection of successors with the new flow graph structures.
22459 (sbitmap_intersection_of_preds): New function to compute the
22460 intersection of predecessors with the new flow graph structures.
22461 (sbitmap_union_of_succs): New function to compute the union of
22462 successors with the new flow graph structures.
22463 (sbitmap_union_of_preds): New function to compute the union of
22464 predecessors with the new flow graph structures.
22465 * gcse.c (compute_rdm, compute_available): Use new sbitmap routines.
22466 (expr_reaches_here_p): Use edge and basic_block structures instead
22467 of s_preds and s_succs.
22468 (compute_cprop_avinout): Use new sbitmap routines.
22469 (pre_expr_reaches_here_p): Use edge and basic_block structures instead
22470 of s_preds and s_succs.
22471 * flow.c (compute_flow_dominators): Compute dominators using
22472 edges and basic blocks instead of s_preds and s_succs.
22474 Wed Aug 25 13:41:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22476 * lists.c (unused_insn_list, unused_expr_list): New file for
22477 maintaining various types of lists. New statics for maintaining a
22478 cache of available INSN_LIST and EXPR_LIST nodes.
22479 (free_list): Static function for freeing a list of INSN/EXPR nodes.
22480 (alloc_INSN_LIST): Function to get a free INSN_LIST node.
22481 (alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
22482 (init_EXPR_INSN_LIST_cache): Initialize the cache lists.
22483 (free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
22484 (free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
22485 (free_EXPR_LIST_node): Free an individual EXPR_LIST node.
22486 (free_INSN_LIST_node): Free an individual INSN_LIST node.
22487 * haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
22488 (free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
22489 (remove_dependence, free_pending_lists): Use new global routines.
22490 (flush_pending_lists, sched_analyze_insn): Use new global routines.
22491 (sched_analyze, compute_block_backward_dependences): Use new routines.
22492 (sched_analyze_1, sched_analyze_2): Use new routines.
22493 (schedule_insns): Use new global routines.
22494 * rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
22496 (free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
22497 (free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
22499 * toplev.c (rest_of_compilation): Initialize node cache.
22500 * Makefile.in (OBJS): Add lists.o to list of object files.
22501 (lists.o): Add dependancies.
22503 Wed Aug 25 17:31:56 1999 Nick Clifton <nickc@cygnus.com>
22505 * config/v850/v850.md: Fix compile time warning messages.
22506 * config/v850/v850.c: Fix compile time warning messages.
22507 * config/v850/v850.h: Fix compile time warning messages.
22509 Wed Aug 25 09:44:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22511 * genattr.c (gen_attr): Add prototype arguments for get_attr_*().
22512 Remove unused prototype for `init_lengths'.
22514 Wed Aug 25 09:32:31 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22516 * calls.c (emit_call_1): Mark parameter `stack_size' with
22518 (expand_call): Initialize variable `insn'.
22519 (emit_library_call): Likewise for variable `high_to_save'.
22520 (emit_library_call_value): Likewise.
22521 (store_one_arg): Likewise for variables `lower_bound' and
22524 * combine.c (try_combine): Likewise for variables `i2_code_number'
22525 and `other_code_number'.
22526 (find_split_point): Likewise for variables `pos', `unsignedp' and
22528 (simplify_if_then_else): Likewise for variables `op' and `c1'.
22529 (simplify_and_const_int): Remove unused variable `width'.
22530 (merge_outer_ops): Likewise.
22532 * cse.c (simplify_binary_operation): Cast an INTVAL() to `unsigned
22533 HOST_WIDE_INT' when comparing against one.
22534 (simplify_relational_operation): Likewise.
22535 (cse_insn): Initialize variables `src_eqv_volatile',
22536 `src_eqv_in_memory', `src_eqv_in_struct', `src_eqv_hash' and `sets'.
22538 * final.c (init_final): Constify parameter `filename'.
22539 (final_start_function): Mark parameter `optimize' with
22541 (profile_function): Likewise for parameters `first' and `optimize'.
22542 (output_source_line): Likewise for parameter `file'.
22544 * integrate.c (subst_constants): Cast a value to `size_t' when
22545 comparing against one.
22546 (mark_stores): Initialize variable `mode'. Cast a value to
22547 `size_t' when comparing against one.
22549 * integrate.h (MAYBE_EXTEND_CONST_EQUIV_VARRAY): Likewise.
22551 * loop.c (move_movables): Initialize variable `first'.
22552 (strength_reduce): Likewise for variable `increment'.
22553 (check_dbra_loop): Likewise for variable `comparison_val'. Cast a
22554 value to `size_t' when comparing against one.
22555 (load_mems): Initialize variable `end_label'.
22557 * output.h (init_final): Constify parameter.
22559 * reload.c (decompose): Initialize variable `base'.
22561 * reload1.c (reload): Likewise for variable `is_scalar'.
22562 (spill_hard_reg): Mark parameter `dumpfile' with ATTRIBUTE_UNUSED.
22563 (choose_reload_regs): Initialize variable `mode'.
22564 (emit_reload_insns): Likewise for variable `store_insn'.
22565 (reload_cse_noop_set_p): Mark parameter `insn' with
22567 (reload_combine): Initialize variable `set'.
22569 * unroll.c (unroll_loop): Likewise for variable `local_label'.
22570 (copy_loop_body): Cast a value to `size_t' when comparing against
22573 * varasm.c (assemble_variable): Initialize variable `size_tree'.
22574 (const_hash): Add an `else abort()' in an if-else-if-else sequence.
22575 (remove_from_pending_weak_list): Mark parameter `name' with
22578 Wed Aug 25 11:18:39 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22580 * toplev.c (rest_of_compilation): Use decl_printable_name when opening
22583 Wed Aug 25 10:57:12 1999 Nick Clifton <nickc@cygnus.com>
22585 * config/arm/telf.h (ASM_WEAKEN_LABEL): Define.
22586 (ASM_DECLARE_FUNCTION_NAME): Define.
22587 (TYPE_ASM_OP, SIZE_ASM_OP, TYPE_OPERAND_FORMAT,
22588 ASM_DECLARE_RESULT, ASM_DECLARE_OBJECT_NAME,
22589 ASM_FINISH_DECLARE_OBJECT, ASM_DECLARE_FUNCTION_SIZE): Define if
22590 not already defined.
22592 Wed Aug 25 01:36:11 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
22594 * calls.c (emit_call_1): Use call_pop/call_value_pop for all values
22595 of n_popped when call/call_value are not defined.
22597 Wed Aug 25 01:25:14 1999 Jeffrey A Law (law@cygnus.com)
22599 * tm.texi: GNU CC -> GCC conversion.
22600 (CC1_SPEC): Indicate it is used for all language front ends.
22602 Tue Aug 24 23:43:03 1999 Mark Mitchell <mark@codesourcery.com>
22604 * flow.c (delete_block): Spell NOTE_INSN_EH_REGION_BEG and
22605 NOTE_INSN_EH_REGION_END correctly.
22607 Tue Aug 24 23:26:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
22608 Jeff Law <law@cygnus.com>
22610 * loop.c (strength_reduce): Automatically unroll loops if the
22611 unrolled loop size is smaller than the rolled loop size.
22613 * loop.c (insert_bct): Replace use of sdiv_optab with asr_optab
22614 and delete comment that code should be rewritten.
22616 Tue Aug 24 22:56:35 1999 Jeffrey A Law (law@cygnus.com)
22618 * haifa-sched.c (find_rgns): Mark a block found during the DFS search
22621 * haifa-sched.c (get_visual_tbl_length): Fix off-by-one error.
22623 Tue Aug 24 22:41:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
22625 * fixinc/mkfixinc.sh: Don't fix uwin headers.
22626 * i386/uwin.h (MD_STARTFILE_PREFIX): Define.
22627 (LINK_SPEC): Add -u _main when building executables.
22628 (ASM_DECLARE_FUNCTION): Update from Cygwin.
22629 (ASM_FILE_END): Use the default for ix86-pe.
22630 * i386/xm-uwin.h (HAVE_BCOPY): Undefine.
22632 Tue Aug 24 20:49:47 1999 Art Haas <ahaas@neosoft.com>
22634 * final.c (output_addr_const): Handle case where ASM_OPEN_PAREN
22635 and ASM_CLOSE_PAREN are empty strings.
22637 Wed Aug 25 12:46:22 1999 Fred Fish <fnf@cygnus.com>
22638 Geoffrey Keating <geoffk@cygnus.com>
22640 * Makefile.in (PREPROCESSOR_DEFINES): New macro.
22641 (protoize.o): Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
22642 (unprotoize.o): Ditto.
22643 (test-protoize-simple): Don't define STD_PROTO_DIR.
22644 * protoize.c: Use PARAMS rather than PROTO. Minor whitespace
22645 changes to make 'test-protoize-simple' pass.
22646 (STD_PROTO_DIR): Remove define.
22647 (STANDARD_EXEC_PREFIX): Supply default define.
22648 (standard_exec_prefix): New variable, init to STANDARD_EXEC_PREFIX.
22649 (target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
22650 (target_version): New variable, init to DEFAULT_TARGET_VERSION.
22651 (GET_ENV_PATH_LIST): New macro.
22652 (default_syscalls_dir): No longer initialized to STD_PROTO_DIR.
22653 (do_processing): Initialize default_syscalls_dir using new
22654 macros. Use it to initialize syscalls_absolute_filename.
22656 Tue Aug 24 16:58:15 1999 Richard Henderson <rth@cygnus.com>
22658 * jump.c (jump_optimize_1): Do cmov opt on any single-set; force
22659 B into a register before emit_conditional_move.
22661 Tue Aug 24 15:37:03 1999 Richard Henderson <rth@cygnus.com>
22663 * fold-const.c (fold): Reassociate (+ (+ (* a b) c) (* d e))
22664 as (+ (+ (* a b) (* d e)) c). Factor a common power-of-two
22665 multiplicand out of (+ (* a b) (* c d)).
22667 Tue Aug 24 11:46:10 1999 Bob Manson <manson@cygnus.com>
22668 Richard Henderson <rth@cygnus.com>
22670 * haifa-sched.c (split_hard_reg_notes): Move to flow.c
22671 (new_insn_dead_notes): Likewise.
22672 (update_n_sets): Likewise.
22673 (update_flow_info): Move to flow.c, renamed to update_life_info;
22674 extend to handle multiple source insns.
22675 * flow.c: Include resource.h
22676 (unlink_insn_chain): New.
22677 (split_hard_reg_notes): New.
22678 (maybe_add_dead_note): New.
22679 (maybe_add_dead_note_use): New.
22680 (find_insn_with_note): New.
22681 (new_insn_dead_notes): New.
22682 (update_n_sets): New.
22683 (sets_reg_or_subreg_1, sets_reg_or_subreg): New.
22684 (maybe_remove_dead_notes): New.
22685 (update_life_info): New.
22686 (prepend_reg_notes): New.
22687 (replace_insns): New.
22688 * output.h (update_life_info): Declare.
22689 * recog.c (split_block_insns): Use update_life_info.
22690 * resource.c (find_free_register): Use reg_alloc_order, don't use
22691 fixed regs, make sure the mode is supported, don't use new regs.
22693 * rtl.h (replace_insns): Declare.
22695 Tue Aug 24 13:48:39 1999 Nathan Sidwell <nathan@acm.org>
22697 * expr.c (expand_expr): Cope with COND_EXPRs with one
22698 non-returning branch.
22700 Mon Aug 23 22:28:16 1999 Mark Mitchell <mark@codesourcery.com>
22702 * expr.c (store_expr): Always pass down the target, even when not
22705 1999-08-24 Nick Clifton <nickc@cygnus.com>
22707 * configure.in: Define target_cpu_default for v850 targets.
22708 * configure: Regenerate
22710 * config/v850/v850.h (TARGET_CPU_generic): Define.
22711 (GO_IF_LEGITIMATE_ADDRESS): Insist that SImode and larger constant
22712 addresses are 4 byte aligned.
22714 * config/v850/v850.c (print_operand): Cope with 'R' format DFmode
22717 Tue Aug 24 09:32:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22719 * genattr.c (function_unit_desc): Constify a char*. Add prototype.
22720 (main): Add prototypes.
22722 * genattrtab.c (substitute_address, write_const_num_delay_slots,
22723 attr_eq, attr_numeral, attr_equal_p, attr_copy_rtx): Prototype.
22724 (write_attr_get): Emit prototypes along with function definition.
22725 (write_eligible_delay): Mark a parameter with ATTRIBUTE_UNUSED.
22726 (write_complex_function): Emit static prototype along with
22727 function definition.
22729 * genemit.c (gen_split): Emit prototypes along with function
22732 * genoutput.c (output_epilogue): Add prototype to `insn_outfun'.
22733 Likewise for predicates and `insn_operand_predicate'.
22734 (process_template): Emit static prototype along with function
22737 * genrecog.c (make_insn_sequence): Constify a char*. Add
22738 prototypes for get_split_*().
22739 (write_subroutine): Emit prototypes along with function
22742 Tue Aug 24 12:35:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22744 * gcse.c (find_avail_set): Follow chains of register-register copies.
22745 Use oprs_not_set_p to guarantee that the returned value can be
22747 (cprop_insn): Don't verify the return value of find_avail_set with
22750 * gcse.c (cprop_jump): New function, broken out of cprop_insn.
22751 (cprop_cc0_jump): New function.
22752 (cprop_insn): Break out new function cprop_jump and use it.
22753 Also use cprop_cc0_jump for machines with CC0.
22754 (cprop): Don't crash if cprop_insn turned the insn into a NOTE.
22756 * tree.h (current_function_calls_setjmp,
22757 current_function_calls_longjmp): Delete declarations.
22758 * dsp16xx.c: Include "function.h".
22759 * elxsi.c: Likewise.
22760 * gmicro.c: Likewise.
22761 * h8300.c: Likewise.
22762 * i370.c: Likewise.
22763 * m32r.c: Likewise.
22764 * mn10200.c: Likewise.
22765 * mn10300.c: Likewise.
22766 * ns32k.c: Likewise.
22767 * spur.c: Likewise.
22768 * v850.c: Likewise.
22770 * rtl.h (rtx_equal_function_value_matters): Declare.
22771 * toplev.c (rtx_equal_function_value_matters): Don't declare.
22773 * function.c: Likewise.
22774 * emit-rtl.c: Likewise.
22776 Tue Aug 24 02:47:44 1999 Jeffrey A Law (law@cygnus.com)
22778 * expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION
22781 1999-08-24 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22783 * jump.c (delete_barrier_successors) Match (set (pc) (pc)) insn
22786 Mon Aug 23 23:35:52 1999 Matthias Klose <doko@cs.tu-berlin.de>
22788 * cpp.texi: Add a node documenting macro varargs (copied
22791 1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com>
22793 * cppspec.c: Put a null pointer at the end of the new argv.
22795 Mon Aug 23 21:23:24 1999 Jeffrey A Law (law@cygnus.com)
22797 * configure.in: Remove code to select/de-select the haifa
22798 scheduler. Every scheduled port gets haifa now.
22799 * configure: Rebuilt.
22800 * flags.h, genattrtab.c, rtl.h, toplev.c: Remove HAIFA ifdefs.
22802 * Makefile.in: Corresponding changes.
22804 Mon Aug 23 16:04:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22806 * optabs.c (prepare_cmp_insn): Turn COMPARISON arg into a pointer.
22807 All callers changed.
22808 (prepare_float_lib_cmp): Likewise.
22809 Use FLOAT_LIB_COMPARE_RETURNS_BOOL.
22810 * expr.h (emit_float_lib_cmp): Delete declaration.
22811 * tm.texi (FLOAT_LIB_COMPARE_RETURNS_BOOL): Document.
22812 * sparc.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): Define.
22813 * sparc.md (bcc and scc patterns): Don't handle TFmode comparisons
22815 (cmptf): Now conditional on TARGET_HARD_QUAD.
22817 Fri Aug 20 17:52:27 1999 Jim Wilson <wilson@cygnus.com>
22819 * resource.c (mark_target_live_regs): Use
22820 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
22822 Fri Aug 20 19:07:55 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22824 * rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
22826 * rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.
22828 * genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.
22830 Fri Aug 20 18:53:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22832 * rtl.h (rtx_format): Constify a char*.
22834 * rtl.c (rtx_format): Likewise.
22835 (copy_rtx, copy_most_rtx, read_rtx): Likewise.
22836 (init_rtl): Use accessor macro, not `rtx_format'.
22838 * alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
22841 * caller-save.c (mark_referenced_regs): Likewise.
22843 * combine.c (subst, make_compound_operation, known_cond,
22844 gen_rtx_combine, update_table_tick, get_last_value_validate,
22845 use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.
22847 * cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
22848 refers_to_p, canon_reg, fold_rtx, cse_process_notes,
22849 count_reg_usage): Likewise.
22851 * emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
22854 * final.c (leaf_renumber_regs_insn): Likewise.
22856 * flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
22857 dump_edge_info, count_reg_references): Likewise.
22859 * function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
22860 fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
22863 * gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
22864 oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
22865 add_label_notes): Likewise.
22867 * genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
22868 clear_struct_flag, count_sub_rtxs, count_alternatives,
22869 compares_alternatives_p, contained_in_p, walk_attr_value,
22870 write_expr_attr_cache): Likewise.
22872 * genconfig.c (walk_insn_part): Likewise.
22874 * genemit.c (max_operand_1, gen_exp): Likewise.
22876 * genextract.c (walk_rtx): Likewise.
22878 * genflags.c (num_operands): Likewise.
22880 * genoutput.c (scan_operands): Likewise.
22882 * genpeep.c (match_rtx): Likewise.
22884 * genrecog.c (add_to_sequence): Likewise.
22886 * haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
22889 * integrate.c (save_constants, copy_for_inline,
22890 copy_rtx_and_substitute, subst_constants, restore_constants):
22893 * jump.c (mark_jump_label, invert_exp, redirect_exp,
22894 rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.
22896 * local-alloc.c (contains_replace_regs, memref_referenced_p):
22899 * loop.c (record_excess_regs, rtx_equal_for_loop_p,
22900 add_label_notes, replace_call_address, count_nonfixed_reads,
22901 invariant_p, find_single_use_in_loop, find_mem_givs,
22902 find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
22905 * print-rtl.c (reg_names, print_rtx): Likewise.
22907 * recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.
22909 * reg-stack.c (stack_regs_mentioned_p, record_label_references,
22910 record_reg_life_pat, swap_rtx_condition, goto_block_pat,
22911 print_blocks): Likewise.
22913 * regclass.c (fix_register, record_address_regs,
22914 reg_scan_mark_refs): Likewise.
22916 * regmove.c (stable_but_for_p): Likewise.
22918 * reload.c (loc_mentioned_in_p, operands_match_p,
22919 find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
22920 copy_replacements, refers_to_regno_for_reload_p,
22921 refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
22922 reload_when_needed_name, reg_class_names, debug_reload_to_stream):
22925 * reload1.c (eliminate_regs, scan_paradoxical_subregs,
22926 delete_address_reloads_1, count_occurrences,
22927 reload_cse_mem_conflict_p, reload_combine_note_use,
22928 add_auto_inc_notes): Likewise.
22930 * resource.c (mark_referenced_resources, mark_set_resources):
22933 * rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
22934 reg_mentioned_p, regs_set_between_p, modified_between_p,
22935 modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
22936 rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
22937 may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
22938 jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.
22940 * sched.c (sched_analyze_2, attach_deaths): Likewise.
22942 * stupid.c (stupid_mark_refs): Likewise.
22944 * unroll.c (remap_split_bivs): Likewise.
22946 * varasm.c (mark_constants): Likewise.
22948 * a29k/a29k.c (uses_local_reg_p): Likewise.
22950 * alpha/alpha.c (summarize_insn): Likewise.
22952 * arm/arm.c (symbol_mentioned_p, label_mentioned_p,
22953 eliminate_lr2ip): Likewise.
22955 * arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.
22957 * i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
22958 reg_mentioned_in_mem): Likewise.
22960 * ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
22961 symbolic_reference_mentioned_p): Likewise.
22963 * romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.
22965 * sh/sh.c (regs_used, mark_use): Likewise.
22967 * vax/vax.c (vax_rtx_cost): Likewise.
22969 Fri Aug 20 18:38:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22971 * machmode.h (mode_name): Constify a char*.
22973 * rtl.c (mode_name): Likewise.
22975 * genopinit.c (gen_insn): Use accessor macro, not `mode_name'.
22977 * optabs.c (init_libfuncs): Constify a char*.
22979 * print-tree.c (mode_name): Remove redundant declaration.
22980 (print_node): Use accessor macro, not `mode_name'.
22982 * reload1.c (dump_needs): Constify a char*. Use accessor macro,
22984 (new_spill_reg): Constify a char*.
22986 * tree.c (mode_name): Remove redundant declaration.
22988 Fri Aug 20 18:31:26 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22990 * rtl.c (rtx_name): Constify a char*.
22992 * rtl.h (rtx_name, fix_sched_param): Likewise.
22994 * gmicro/gmicro.c (rtx_name): Remove redundant declaration.
22995 (mypr): Use accessor macro, not `rtx_name'.
22997 * genemit.c (print_code): Constify a char*.
22999 * genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.
23001 * genpeep.c (print_code): Constify a char*.
23003 * genrecog.c (print_code): Likewise.
23005 * graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
23006 end_bb): Add static prototype.
23007 (draw_edge): Constify a char*.
23008 (end_bb): Remove unused parameter.
23010 * haifa-sched.c (fix_sched_param, safe_concat, print_exp
23011 print_block_visualization): Constify a char*.
23013 Fri Aug 20 15:02:10 1999 Mark Mitchell <mark@codesourcery.com>
23015 * c-common.c (c_get_alias_set): Update comment.
23017 1999-08-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
23019 * linux.h (LIB_SPEC): Added.
23021 Fri Aug 20 22:32:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23023 * config/c4x/c4x.h (STARTFILE_SPEC): Don't def.
23025 1999-08-19 18:43 -0700 Zack Weinberg <zack@bitmover.com>
23027 * tree.c (expr_check): Fix typo in last change.
23029 1999-08-19 14:44 -0700 Zack Weinberg <zack@bitmover.com>
23031 * rtl.def (NOTE): Change format to "iuu0n".
23032 (ADDR_DIFF_VEC): Change format to "eEee0".
23033 (ADDRESSOF): Change format to "eit".
23035 * rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
23036 (RTVEC_ELT): Change to match.
23037 (XVECEXP): Use XVEC and RTVEC_ELT.
23038 (INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
23039 ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
23040 (PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
23041 CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
23042 TRAP_CONDITION, TRAP_CODE): Use XEXP.
23043 (INTVAL): Use XWINT.
23044 (ADDRESSOF_DECL): Use XTREE.
23045 (SET_ADDRESSOF_DECL): Delete.
23046 (NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
23047 NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill. These have been
23048 ifdefed out since 2.6 at least.
23049 (gen_rtvec_vv): Delete prototype.
23051 * rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
23053 (copy_most_rtx): Handle 't' format letter.
23054 * emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
23055 (gen_rtvec_vv): Delete function. All callers changed to use
23056 gen_rtvec_v instead.
23057 * print-rtl.c (print_rtx): Move special casing of NOTEs to
23058 the '0' format letter.
23060 * function.c (gen_mem_addressof): Don't use
23061 SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
23063 * integrate.c (copy_rtx_and_substitute): Likewise.
23064 Copy 't' slots with XTREE.
23065 (subst_constants): Treat 't' slots like '[swi]' slots.
23066 * cse.c (canon_hash, exp_equiv_p): Treat 't' slots like '0' slots.
23067 * jump.c (rtx_equal_for_thread_p): Likewise.
23068 * rtlanal.c (rtx_equal_p): Likewise.
23069 * stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
23070 only four arguments.
23071 * gengenrtl.c (type_from_format): Provide correct types for
23075 * tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
23076 If a recent gcc is in use (always in stage2 and beyond), use
23077 statement expressions, so we don't make a function call unless
23078 the check fails. Evaluate arguments exactly once.
23079 (CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
23080 TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
23082 (CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
23083 they evaluate their arguments exactly once, irrespective of
23084 the compiler in use.
23086 * tree.c [ENABLE_CHECKING]: Define whichever set of functions
23087 is used by the currently-enabled check macros. This is:
23088 (tree_check_failed, tree_class_check_failed): For gcc.
23089 (tree_check, tree_class_check, cst_or_constructor_check,
23090 expr_check): For other compilers.
23092 * gencheck.c: Do not define any *_CHECK1 macros.
23094 Thu Aug 19 14:42:38 1999 Mike Stump <mrs@wrs.com>
23095 Mark Mitchell <mark@codesourcery.com>
23097 * c-common.c (c_get_alias_set): Fix support for poitners and
23100 Thu Aug 19 11:51:22 EDT 1999 John Wehle (john@feith.com)
23102 * alias.c: Include tree.h.
23103 (nonlocal_reference_p, mark_constant_function): New functions.
23104 * flow.c (life_analysis): Call mark_constant_function.
23105 * rtl.h (mark_constant_function): Declare it.
23107 Thu Aug 19 15:02:01 1999 Nick Clifton <nickc@cygnus.com>
23109 * config/rs6000/rs6000.c (rs6000_override_options): Fix test for
23110 unrecognisable switches.
23112 Wed Aug 18 23:31:57 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23114 * loop.c (recombine_givs): Set ix field after sorting.
23115 (recombine_givs): Remove bogus index / giv lockstep looping.
23117 Wed Aug 18 18:20:40 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23119 * expmed.c (emit_store_flag): If UNSIGNEDP, call unsigned_condition
23121 (emit_store_flag_force): Use do_compare_rtx_and_jump.
23122 (do_cmp_and_jump): Formatting fixes.
23123 * expr.c (do_compare_and_jump): Renamed from compare; changed to call
23124 do_compare_rtx_and_jump instead of compare_from_rtx.
23125 (do_compare_rtx_and_jump): New function; mostly copied from
23127 (do_jump_for_compare): Delete.
23128 (expand_expr): Use do_compare_rtx_and_jump when handling MAX_EXPR and
23130 (do_jump): Use do_compare_and_jump or do_compare_rtx_and_jump instead
23131 of compare/do_jump_for_compare pairs.
23132 (do_jump_by_parts_greater): Use do_jump_by_parts_greater_rtx.
23133 (do_jump_by_parts_greater_rtx): Use do_compare_rtx_and_jump instead of
23134 compare_from_rtx/do_jump_for_compare pairs.
23135 (do_jump_by_parts_equality): Likewise.
23136 (do_jump_by_parts_equality_rtx): Likewise.
23137 * expr.h (do_compare_rtx_and_jump): Declare.
23138 * optabs.c (prepare_cmp_insn): New function, contains most of the code
23139 that used to be in emit_cmp_insn.
23140 (cmp_available_p): New function.
23141 (prepare_operand): New function.
23142 (emit_cmp_and_jump_insn_1): New function, contains some code that used
23143 to be in emit_cmp_insn.
23144 (prepare_float_lib_cmp): Renamed from emit_float_lib_cmp; change some
23145 parameters to be pointers; don't emit final compare but modify some of
23146 the values pointed to by the args so the caller can perform the
23147 correct comparison.
23148 (expand_binop): Call emit_store_flag_force with signed forms of
23150 (expand_abs): Use do_compare_rtx_and_jump instead of compare_from_rtx/
23151 emit_jump_insn pair.
23152 (emit_cmp_and_jump_insn): Use prepare_cmp_insn and
23153 emit_cmp_and_jump_insn_1. Call emit_queue.
23154 (emit_cmp_insn): Just call emit_cmp_and_jump_insns with zero for LABEL
23156 * flow.c (tidy_fallthru_edge): If HAVE_cc0, verify insn before a
23157 jump sets cc0 before deleting it.
23158 * integrate.c (expand_inline_function): Likewise.
23159 * unroll.c (unroll_loop): Similar changes in several places.
23160 (copy_loop_body): If HAVE_cc0, verify insn before a jump sets cc0
23161 before deleting it.
23163 Wed Aug 18 06:37:44 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23165 * Makefile.in (insn-recog.o): Update dependencies.
23166 * genrecog.c (main): Make generated file include "function.h".
23168 Sat Aug 14 00:54:57 1999 Geoffrey Keating <geoffk@cygnus.com>
23170 * cse.c (cse_insn): Call never_reached_warning when a jump is
23171 changed to be unconditional.
23172 * flags.h: Declare warn_notreached.
23173 * flow.c (delete_block): Call never_reached_warning when
23174 a block is deleted.
23175 * jump.c (delete_barrier_successors): Call never_reached_warning
23176 when we delete everything after a BARRIER.
23177 (never_reached_warning): New function.
23178 * rtl.h: Declare never_reached_warning.
23179 * toplev.c (warn_notreached): New variable.
23180 (lang_independent_options): Set warn_notreached
23181 when -Wunreachable-code.
23182 (compile_file): We need line numbers for -Wunreachable-code.
23184 Tue Aug 17 22:06:11 1999 Jan Hubicka <hubicka@freesoft.cz>
23186 * haifa-sched.c (insn_unit): Fix typo on out of range test.
23187 * sched.c (insn_unit): Likewise.
23189 Tue Aug 17 21:57:23 1999 Andreas Schwab <schwab@suse.de>
23191 * combine.c (distribute_notes): Handle REG_EH_RETHROW.
23193 Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
23195 * flow.c (create_edge_list): Use xmalloc, not malloc.
23197 Tue Aug 17 01:40:54 1999 Loren Rittle <ljrittle@acm.org>
23199 * fixinc/inclhack.def (no_double_slash): Do not trash single-line
23200 C-style comments. Do not lose the character before double slash.
23202 Mon Aug 16 18:08:22 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
23204 * basic-block.h (struct edge_list): Stucture to maintain a vector
23206 (EDGE_INDEX_NO_EDGE, EDGE_INDEX, INDEX_EDGE_PRED_BB, INDEX_EDGE_SUCC_BB,
23207 INDEX_EDGE, NUM_EDGES): New Macros for accessing edge list.
23208 (create_edge_list, free_edge-List, print_edge_list, verify_edge_list):
23209 New function prototypes.
23210 * flow.c (create_edge_list): Function to create an edge list.
23211 (free_edge_list): Discards memory used by an edge list.
23212 (print_edge_list): Debug output showing an edge list.
23213 (verify_edge_list): Internal consistency check for an edge list.
23214 (find_edge_index): Function to find an edge index for a pred and succ.
23216 Mon Aug 16 11:56:36 1999 Mark Mitchell <mark@codesourcery.com>
23218 * tree.c (type_hash_add): Use permalloc to allocate nodes in the
23221 Mon Aug 16 17:04:15 1999 Jorn Rennecke <amylaar@cygnus.co.uk>
23223 * mips.h (CLASS_CANNOT_CHANGE_SIZE): Define.
23225 Fri Aug 13 15:20:43 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
23227 * config/i386/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
23229 Fri Aug 13 10:21:28 1999 Nick Clifton <nickc@cygnus.com>
23231 * toplev.c (rest_of_compilation): Allow machine dependent
23232 reorganisation pass to place information into the RTL dump
23233 file if it so wishes.
23235 Sun Aug 15 12:41:21 1999 Jim Wilson <wilson@cygnus.com>
23237 * explow.c (hard_function_value): Use VOIDmode instead of
23239 * stmt.c (expand_return): Likewise.
23240 * stor-layout.c (get_best_mode): Likewise.
23242 * genemit.c (gen_expand): If next is MATCH_PAR_DUP, then output
23243 emit call instead of emit_insn call.
23245 Sat Aug 14 15:04:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
23247 * configure.in: Handle --disable/enable-win32-registry.
23248 * install.texi: Document --disable/enable-win32-registry.
23249 * acconfig.h (ENABLE_WIN32_REGISTRY): New macro.
23250 (WIN32_REGISTRY_KEY): New macro.
23251 * prefix.c: Use to enable/disable win32-specific code.
23252 (lookup_key): Use versioned key.
23253 * configure: Regenerate.
23254 * config.in: Likewise.
23256 Fri Aug 13 17:41:55 1999 Jason Merrill <jason@yorick.cygnus.com>
23258 * cpplib.c (read_line_number): New fn, split out of...
23261 Fri Aug 13 14:18:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
23263 tree.c (lang_unsave_expr_now) : New.
23264 (unsave_expr_now): Call lang_unsave_expr_now.
23265 tree.h (lang_unsave_expr_now) : New.
23267 Fri Aug 13 00:49:46 1999 Jason Merrill <jason@yorick.cygnus.com>
23269 * toplev.c (flag_new_exceptions): On by default.
23271 1999-08-13 Michael Meissner <meissner@cygnus.com>
23273 * Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B.
23275 Fri Aug 13 01:29:57 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
23277 * dwarfout.c (fundamental_type_code): Return FT_boolean for
23278 INTEGER_TYPE with precision==1, it's __java_boolean.
23280 Thu Aug 12 23:51:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23282 * global.c (prune_preferences): Move some invariants out of the
23285 Thu Aug 12 15:30:29 1999 Jesse Perry (jap@unx.dec.com)
23287 * configure.in (alpha*-dec-osf*): Add osf5.
23289 Sun Aug 1 22:24:03 1999 Philip Blundell <philb@gnu.org>
23291 * configure.in: Rework handling of ARM GNU/Linux slightly.
23292 (arm*-*-linux-gnuoldld): New target.
23293 * configure: Regenerate.
23294 * install.texi (Configurations): Add arm-*-linux-gnu{oldld} and
23295 arm-*-elf. Mention that arm-*-linux-gnuaout is obsolete.
23296 * config/arm/linux-oldld.h: New file.
23297 * config/arm/linux-elf26.h: Don't include linux-elf.h.
23298 (TARGET_DEFAULT, SUBTARGET_LINK_SPEC, SUBTARGET_EXTRA_ASM_SPEC):
23300 * config/arm/linux-elf.h (ASM_SPEC): Define.
23301 (TARGET_DEFAULT, SUBTARGET_EXTRA_LINK_SPEC,
23302 SUBTARGET_EXTRA_ASM_SPEC, CPP_APCS_PC_DEFAULT): Add definitions
23303 for 26-bit APCS and old linker.
23304 (CPP_PREDEFINES): Define `__arm__'; don't define `arm' or
23306 (FP_DEFAULT): Define to FP_SOFT3 for all machines.
23307 * config/arm/linux-aout.h (CPP_PREDEFINES): Define `__arm__';
23308 don't define `arm' or `arm_elf'.
23309 * config/arm/t-linux (EXTRA_MULTILIB_PARTS, MULTILIB_OPTIONS,
23310 MULTILIB_DIRNAMES): Define. Fix typo in comment.
23312 Thu Aug 12 10:14:47 1999 Andreas Schwab <schwab@suse.de>
23314 * rtl.texi: Fix typo.
23316 Wed Aug 11 23:50:57 1999 Jason Merrill <jason@yorick.cygnus.com>
23318 * invoke.texi (C++ Dialect Options): Add -fms-extensions.
23320 Wed Aug 11 12:59:37 1999 Mark Mitchell <mark@codesourcery.com>
23322 * extend.texi (C++ Signatures): Remove node.
23323 * invoke.texi: Remove discussion of -fhandle-signatures,
23324 signature, sigof, __signature__, and __sigof__.
23326 Wed Aug 11 03:38:25 1999 Jeffrey A Law (law@cygnus.com)
23328 * Makefile.in (JAVAGC): Removed.
23330 Wed Aug 11 02:13:26 1999 Mumit Khan <khan@xraylith.wisc.edu>
23332 * i386/cygwin.h (ASM_OUTPUT_ALIGNED_BSS): Define.
23334 1999-08-11 Mark Elbrecht <snowball3@bigfoot.com>
23336 * i386/djgpp.h (ASM_OUTPUT_ALIGNED_BSS): Define.
23338 1999-08-11 Richard Earnshaw (rearnsha@arm.com)
23340 * emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
23341 a register that is already known to be a pointer.
23343 1999-08-11 Bruce Korb <ddsinc09@ix.netcom.com>
23345 * fixinc/inclhack.tpl: Only install assert.h conditionally.
23346 * fixinc/inclhack.sh: Regenerated.
23347 * fixinc/fixincl.sh: Regenerated.
23349 Wed Aug 11 00:34:22 1999 Joe Buck <jbuck@synopsys.com>
23351 * invoke.texi: s/GNU CC/GCC/ for consistency with gcc.texi.
23352 Fix documentation of -ansi flag to describe its C++ behavior.
23353 Remove bogus reference to GCC 2.9.
23355 Tue Aug 10 17:19:02 1999 Jim Wilson <wilson@cygnus.com>
23357 * config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on
23358 note if it is non-NULL.
23360 Tue Aug 10 10:47:42 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
23362 * except.h (eh_nesting_info): Add new structure defintion.
23363 (init_eh_nesting_info, free_eh_nesting_info): Add function prototypes.
23364 (reachable_handlers, update_rethrow_references): Add function
23366 * rtl.h (struct rtvec_def): Update comments. REG_EH_RETHROW takes
23367 a rethrow symbol instead of an integer exception region number.
23368 * flow.c (Make_edges): Use new exception nesting routines to determine
23369 which handlers are reachable from a CALL or asynchronous insn.
23370 Dont add an edge for calls with a REG_EH_REGION of -1 to non-local
23372 (delete_eh_regions): Update rethrow labels, and don't delete
23373 regions which are the target of a rethrow.
23374 * except.c (struct func_eh_entry): Add rethrow_ref field, now we can
23375 avoid overloading the SYMBOL_REF_USED flag.
23376 (rethrow_symbol_map): Use new rethrow_ref field.
23377 (rethrow_used): Use new rethrow_ref field.
23378 (expand_rethrow): REG_EH_RETHROW now has a SYMBOL_REF instead
23379 of an integer. Fix formatting.
23380 (output_exception_table_entry): Use new rethrow_ref field.
23381 (can_throw): Check for EH_REGION_NOTE before deciding
23382 whether a CALL can throw or not.
23383 (scan_region): Call rethrow_used() instead of accessing data structure.
23384 (update_rethrow_references): New function to make sure only regions
23385 which are still targets of a rethrow are flagged as such.
23386 (process_nestinfo): New static function to initialize a handler
23387 list for a specific region.
23388 (init_eh_nesting_info): New function to allocate and initialize
23389 the list of all EH handlers reachable from all regions.
23390 (reachable_handlers): New function to retrieve the list of handlers
23391 reachable from a specific region and insn.
23392 (free_eh_nesting_info): New function to dispose of a list of
23393 reachable handlers.
23395 Tue Aug 10 10:39:31 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
23397 * flow.c (split_edge): Set JUMP_LABEL field.
23398 (commit_one_edge_insertion): Set head correctly for insert_before.
23399 When inserting insns, update insn block numbers if allocated.
23401 Tue Aug 10 09:26:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23403 * dwarf2out.c (dwarf2out_frame_debug_expr, add_incomplete_type,
23404 retry_incomplete_types): Add static prototype.
23405 (stripattributes, dwarf_cfi_name, ASM_OUTPUT_DWARF_STRING,
23406 dwarf_tag_name, dwarf_attr_name, dwarf_form_name,
23407 dwarf_stack_op_name, dwarf_type_encoding_name, add_AT_string,
23408 dwarf2_name, add_name_attribute, lookup_filename, dwarf2out_line,
23409 dwarf2out_start_source_file, dwarf2out_define, dwarf2out_undef):
23412 * dwarf2out.h (dwarf2out_define, dwarf2out_undef,
23413 dwarf2out_start_source_file, dwarf2out_line): Likewise.
23415 Tue Aug 10 09:21:46 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23417 * output.h (assemble_name): Constify a char*.
23419 * varasm.c (UNIQUE_SECTION, assemble_start_function,
23420 assemble_variable, assemble_name): Likewise.
23422 * dwarf2out.c (ASM_NAME_TO_STRING): Likewise.
23424 * arm/pe.c (arm_pe_unique_section): Likewise.
23426 * i386/cygwin.h (STRIP_NAME_ENCODING): Likewise.
23428 * i386/i386-interix.h (STRIP_NAME_ENCODING): Likewise.
23430 * i386/interix.c (i386_pe_unique_section): Likewise.
23432 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
23434 * i386/winnt.c (i386_pe_unique_section): Likewise.
23436 * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise.
23438 * mn10200/mn10200.h (ASM_OUTPUT_LABELREF): Likewise.
23440 * mn10300/mn10300.h (ASM_OUTPUT_LABELREF): Likewise.
23442 * pa/pa.c (output_call): Likewise.
23444 * pa/pa.h (ASM_OUTPUT_MI_THUNK): Likewise.
23446 * pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
23448 * rs6000/rs6000.c (rs6000_output_load_toc_table, output_toc):
23451 * rs6000/rs6000.h (RS6000_OUTPUT_BASENAME, STRIP_NAME_ENCODING):
23454 * rs6000/sol2.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
23456 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_INT,
23457 STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Likewise.
23459 * v850/v850.h (ASM_OUTPUT_LABELREF): Likewise.
23461 Mon Aug 9 19:54:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23463 * real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy.
23465 Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23467 * tree.h (lang_identify): Constify a char*.
23468 (print_error_function): Add extern prototype. Constify a char*.
23470 * c-lang.c (lang_identify): Constify a char*.
23472 * objc/objc-act.c (lang_identify): Constify a char*.
23474 Mon Aug 9 16:21:53 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23476 * genpeep.c (main): Make generated file include "function.h".
23477 * arm.c (function_really_clobbers_lr): Delete INLINE_HEADER case.
23479 Mon Aug 9 10:08:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23481 * Makefile.in: Update dependencies.
23482 * alias.c: Include "function.h"
23483 * c-decl.c: Likewise.
23484 * caller-save.c: Likewise.
23485 * calls.c: Likewise.
23486 * combine.c: Likewise.
23488 * explow.c: Likewise.
23489 * final.c: Likewise.
23490 * global.c: Likewise.
23491 * graph.c: Likewise.
23492 * local-alloc.c: Likewise.
23493 * loop.c: Likewise.
23494 * optabs.c: Likewise.
23495 * profile.c: Likewise.
23496 * recog.c: Likewise.
23497 * regclass.c: Likewise.
23498 * regmove.c: Likewise.
23499 * reload.c: Likewise.
23500 * reorg.c: Likewise.
23501 * resource.c: Likewise.
23502 * sched.c: Likewise.
23503 * stupid.c: Likewise.
23504 * config/1750a/1750a.c: Likewise.
23505 * config/a29k/a29k.c: Likewise.
23506 * config/arc/arc.c: Likewise.
23507 * config/arm/arm.c: Likewise.
23508 * config/arm/thumb.c: Likewise.
23509 * config/c4x/c4x.c: Likewise.
23510 * config/clipper/clipper.c: Likewise.
23511 * config/convex/convex.c: Likewise.
23512 * config/fx80/fx80.c: Likewise.
23513 * config/i860/i860.c: Likewise.
23514 * config/m68k/m68k.c: Likewise.
23515 * config/m88k/m88k.c: Likewise.
23516 * config/mips/mips.c: Likewise.
23517 * config/pdp11/pdp11.c: Likewise.
23518 * config/pyr/pyr.c: Likewise.
23519 * config/romp/romp.c: Likewise.
23520 * config/sh/sh.c: Likewise.
23521 * config/tahoe/tahoe.c: Likewise.
23522 * config/vax/vax.c: Likewise.
23523 * config/we32k/we32k.c: Likewise.
23524 * config/sparc/sparc.c: Include "function.h".
23525 (mem_min_alignment): Test current_function rather than
23526 regno_pointer_align.
23527 * config/pa/pa.c: Likewise.
23528 (compute_frame_size): Delete declaration of
23529 current_function_outgoing_args_size.
23530 * config/arc/arc.h (current_function_varargs): Delete declaration.
23531 * config/elxsi/elxsi.h (current_function_calls_alloca): Delete
23533 * config/i370/i370.h (current_function_outgoing_args_size): Delete
23535 * config/i386/i386.h (FINALIZE_PIC): Delete declaration of
23536 current_function_uses_pic_offset_table.
23537 * config/m68k/a-ux.h (FUNCTION_EXTRA_EPILOGUE): Delete declaration
23538 of current_function_returns_pointer.
23539 * config/m68k/altos3068.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
23540 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
23541 * config/m68k/m68kv4.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
23542 * config/m68k/mot3300.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
23543 * config/m68k/pbb.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
23544 * config/m68k/tower-as.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
23545 * config/m88k/m88k.c: Include "function.h"
23546 (call_used_regs, current_function_pretend_args_size,
23547 current_function_outgoing_args_size, frame_pointer_needed): Delete
23549 * config/m88k/m88k.h (current_function_pretend_args_size): Delete
23551 * config/mips/mips.h (current_function_calls_alloca): Delete
23553 * config/mn10200/mn10200.h (current_function_needs_context,
23554 rtx_equal_function_value_matters): Delete declarations.
23555 * config/ns32k/ns32k (current_function_uses_pic_offset_table,
23556 flag_pic): Delete declarations.
23557 * config/pa/pa.h (current_function_pretend_args_size,
23558 current_function_decl): Delete declarations.
23559 * config/pa/som.h (current_function_varargs): Delete declaration.
23560 * config/pdp11/pdp11.h (current_function_pretend_args_size): Delete
23562 * config/pyr/pyr.h (current_function_pretend_args_size,
23563 current_function_args_size, current_function_calls_alloca): Delete
23565 * config/sh/sh.h (current_function_varargs): Delete declaration.
23566 * config/sparc/sparc.h (current_function_outgoing_args_size,
23567 current_function_calls_alloca, current_function_decl): Delete
23569 * config/spur/spur.h (current_function_pretend_args_size,
23570 current_function_calls_alloca): Delete declarations.
23571 * config/v850/v850.c (current_function_outgoing_args_size): Delete
23573 * config/vax/vms.h (current_function_name): Delete declaration.
23574 * gcse.c: Include "function.h".
23575 (current_function_name, current_function_calls_setjmp): Delete
23577 * haifa-sched.c: Include "function.h".
23578 (forced_labels): Delete declaration.
23579 * jump.c: Likewise.
23580 * reg-stack.c: Likewise.
23581 * reload1.c: Likewise.
23582 * genemit.c (main): Make generated file include function.h.
23583 * genoutput.c (output_prologue): Likewise.
23585 * builtins.c (saveregs_value, apply_args_value): Delete variables.
23586 * emit-rtl.c (reg_rtx_no, first_label_num, first_insn, last_insn,
23587 sequence_rtl_expr, cur_insn_uid, last_linenum, last_filename,
23588 regno_pointer_flag, regno_pointer_flag_length, regno_pointer_align,
23589 regno_reg_rtx, sequence_stack): Delete variables. Add accessor
23590 macros for some of them.
23591 (emit_filename, emit_lineno): Delete declarations.
23592 (gen_reg_rtx): Use memset/memcpy instead of bzero/bcopy. Access
23593 regno_pointer_* variables through current_function.
23594 (gen_inline_header_rtx): Delete function.
23595 (save_emit_status): Delete function.
23596 (set_new_last_label_num): New function.
23597 (clear_emit_caches): New function.
23598 (restore_emit_status): Just clear last_labelnum and call
23600 (get_last_insn_anywhere): Variable sequence_stack is now accessed
23601 through macro seq_stack.
23602 (add_insn_after): Likewise.
23603 (add_insn_before): Likewise.
23604 (remove_insn): Likewise.
23605 (pop_topmost_sequence): Likewise.
23606 (in_sequence_p): Likewise.
23607 (start_sequence_for_rtl_expr): Likewise.
23608 (start_sequence): Likewise, and likewise for
23609 sequence_rtl_expr/seq_rtl_expr.
23610 (push_topmost_sequence): Likewise.
23611 (end_sequence): Likewise.
23612 (init_virtual_regs): Now takes a "struct emit_status *" argument.
23613 All callers changed. Store into that pointer instead of globals.
23614 (init_emit): Allocate emit elt of current_function.
23615 Changes for sequence_rtl_expr/sequence_stack renaming.
23616 Call clear_emit_caches instead of doing it in-line.
23617 Access regno_pointer_* variables through current_function.
23618 (init_emit_once) Don't clear sequence_stack.
23620 * expr.c (pending_stack_adjust, inhibit_defer_pop, pending_chain):
23622 (arg_pointer_save_area): Delete declaration.
23623 (finish_expr_for_function): Renamed from init_queue; no longer static.
23624 (init_expr): Don't call init_queue.
23625 (save_expr_status, restore_expr_status): Delete functions.
23626 (expand_expr): Changes to reflect new layout of struct function.
23627 Don't access current_function_check_memory_usage when current_function
23629 * expr.h (forced_labels, save_expr_regs, saveregs_value,
23630 apply_args_value, current_function_calls_alloca, inhibit_defer_pop,
23631 current_function_outgoing_args_size, current_function_arg_offset_rtx,
23632 current_function_uses_const_pool, function_call_count,
23633 current_function_uses_pic_offset_table, nonlocal_labels,
23634 current_function_internal_arg_pointer, nonlocal_goto_stack_level,
23635 current_function_check_memory_usage, nonlocal_goto_handler_slots,
23636 pending_stack_adjust, target_temp_slot_level, temp_slot_level): Delete
23638 (finish_expr_for_function): Declare.
23639 * flags.h (current_function_has_nonlocal_label,
23640 current_function_has_nonlocal_goto, current_function_is_thunk,
23641 current_function_has_computed_jump): Delete declarations.
23642 * flow.c (forced_labels): Delete declaration.
23643 * function.c (current_function_pops_args,
23644 current_function_returns_struct, current_function_returns_pcc_struct,
23645 current_function_needs_context, current_function_calls_setjmp,
23646 current_function_calls_longjmp, current_function_has_nonlocal_label,
23647 current_function_has_nonlocal_goto, current_function_is_thunk,
23648 current_function_has_computed_jump, current_function_calls_alloca,
23649 current_function_contains_functions, current_function_returns_pointer,
23650 current_function_epilogue_delay_list, current_function_args_size,
23651 current_function_pretend_args_size, current_function_arg_offset_rtx,
23652 current_function_outgoing_args_size, current_function_varargs,
23653 current_function_stdarg, current_function_args_info, cleanup_label,
23654 current_function_name, current_function_uses_const_pool,
23655 current_function_instrument_entry_exit, current_function_return_rtx,
23656 current_function_uses_pic_offset_table, nonlocal_labels,
23657 current_function_internal_arg_pointer, current_function_cannot_inline,
23658 current_function_check_memory_usage, function_call_count,
23659 nonlocal_goto_handler_slots, nonlocal_goto_handler_labels,
23660 nonlocal_goto_stack_level, return_label, save_expr_regs,
23661 stack_slot_list, rtl_expr_chain, tail_recursion_label, temp_slots,
23662 tail_recursion_reentry, arg_pointer_save_area, frame_offset,
23663 context_display, trampoline_list, parm_birth_insn, invalid_stack_slot,
23664 last_parm_insn, max_parm_reg, parm_reg_stack_loc, sequence_rtl_expr,
23665 temp_slot_level, var_temp_slot_level, target_temp_slot_level):
23667 (push_function_context_to): Don't save them. Don't call
23668 save_storage_status, save_emit_status or save_expr_status.
23669 (pop_function_context_from): Don't restore them. Don't call
23670 restore_storage_status or restore_expr_status.
23671 (get_func_frame_size): New function.
23672 (get_frame_size): Use it.
23673 (assign_outer_stack_local): Reflect some member name changes in struct
23675 (put_reg_into_stack): Likewise.
23676 (assign_stack_temp_for_type): sequence_rtl_expr was renamed to
23678 (fixup_var_refs): Likewise.
23679 (fix_lexical_addr): Likewise.
23680 (trampoline_address): Likewise.
23681 (prepare_function_start): Clear field inlinable of current_function.
23682 (init_function_for_compilation): New function.
23683 (expand_dummy_function_end): New function.
23684 (expand_function_end): Call finish_expr_for_function.
23685 * function.h (struct emit_status): New; fields moved here from struct
23686 function and from global variables. Add accessor macros for some of
23688 (struct expr_status): Likewise.
23689 (REGNO_POINTER_ALIGN, REGNO_POINTER_FLAG): Moved here from regs.h.
23690 (struct function): Add fields expr and emit, inlinable, inl_emit,
23691 original_arg_vector, original_decl_initial, inl_last_parm_insn,
23692 inl_max_label_num. Add many comments.
23693 Add accessor macros for all elts of struct function that no longer
23694 have a global variable.
23695 (cleanup_label, return_label, frame_offset, tail_recursion_label,
23696 tail_recursion_reentry, arg_pointer_save_area, rtl_expr_chain,
23697 stack_slot_list): Delete declarations.
23698 (get_func_frame_size): Declare.
23699 (save_expr_status, restore_expr_status, save_emit_status,
23700 save_storage_status, restore_storage_status): Delete declarations.
23701 (init_virtual_regs): Declare.
23702 * output.h (current_function_pops_args,
23703 current_function_returns_struct, current_function_returns_pcc_struct,
23704 current_function_needs_context, current_function_calls_setjmp,
23705 current_function_calls_longjmp, current_function_calls_alloca,
23706 current_function_has_nonlocal_label, current_function_varargs,
23707 current_function_has_computed_jump, current_function_returns_pointer,
23708 current_function_contains_functions, current_function_args_size,
23709 current_function_pretend_args_size, current_function_stdarg,
23710 current_function_outgoing_args_size, current_function_args_info,
23711 current_function_name, current_function_return_rtx,
23712 current_function_epilogue_delay_list,
23713 current_function_uses_const_pool, current_function_cannot_inline):
23714 Delete declarations.
23715 * regs.h (reg_rtx_no, regno_pointer_flag, regno_pointer_flag_length,
23716 regno_reg_rtx): Delete declaration.
23717 (REGNO_POINTER_FLAG): Delete macro.
23718 * stmt.c (expand_goto): Changes to reflect that some fields in struct
23719 function were renamed.
23720 * stor-layout.c (save_storage_status, restore_storage_status): Delete
23722 * toplev.c: Include "function.h".
23723 (current_function_decl): Delete declaration.
23724 (compile_file): Call init_dummy_function_start and
23725 expand_dummy_function_end around some initializations that need to
23727 (rest_of_compilation): Use DECL_SAVED_INSNS properly.
23728 Call init_function_for_compilation.
23729 * unroll.c: Include "function.h"
23730 (unroll_loop): Access regno_pointer_* variables through
23733 * tree.h (struct tree_decl): Add elt f to saved_insns member.
23734 (DECL_SAVED_INSNS): use it.
23735 (expand_dummy_function_end): Declare.
23736 (init_function_for_compilation): Declare.
23737 * calls.c (calls_function_1): Change use of DECL_SAVED_INSNS now
23738 that it's no longer an INLINE_HEADER.
23739 (expand_call): Likewise.
23740 * integrate.c (finish_inline): Delete function.
23741 (max_parm_reg, parm_reg_stack_loc): Delete declarations.
23742 (initialize_for_inline): Delete min_labelno, max_labelno and max_reg
23743 args. Don't generate an INLINE_HEADER rtx, just return the arg
23744 vector. All callers changed.
23745 (save_for_inline_copying): Create a duplicate struct emit_status to
23746 hold the emit state for compiling the current function. Use this and
23747 the other new fields in struct function that are for integration
23748 instead of an INLINE_HEADER.
23749 Use memcpy instead of bcopy.
23750 Store the current struct function in DECL_SAVED_INSNS of fndecl.
23751 (save_for_inline_nocopy): Similar changes, except no new emit_status
23753 (expand_inline_function): Get information from function structure,
23754 not from an inline header rtx.
23755 (output_inline_function): Lose code to extract the necessary
23756 information from an inline header; simply put back the function
23757 structure into current_function. Clear its inlinable elt.
23758 * rtl.def (INLINE_HEADER): Delete.
23759 * rtl.h: Delete all accessors for an INLINE_HEADER.
23760 (gen_inline_header_rtx): Delete declaration.
23761 (regno_reg_rtx, regno_pointer_align, nonlocal_goto_handler_labels):
23762 Delete declarations.
23763 (REGNO_POINTER_ALIGN): Delete.
23764 (clear_emit_caches): Declare.
23765 (set_new_last_label_num): Declare.
23767 Mon Aug 9 01:52:24 1999 Jason Merrill <jason@yorick.cygnus.com>
23769 * print-tree.c (print_node): Print base for OFFSET_TYPEs.
23771 * except.c (expand_eh_region_start_for_decl): Always start a new block.
23772 * stmt.c (is_eh_region): Make sure current_function is present, too.
23774 Mon Aug 9 01:15:24 1999 Jeffrey A Law (law@cygnus.com)
23776 * pa.h (HARD_REGNO_MODE_OK): Correctly handle FPregs, even when
23777 for 64bit PA targets.
23779 * pa.h (SELECT_SECTION): Define.
23780 * som.h (SELECT_SECTION): Delete.
23782 Sun Aug 8 15:13:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23784 * alias.c (init_alias_analysis): Wrap call to
23785 `prologue_epilogue_contains' within HAVE_prologue||HAVE_epilogue.
23787 1999-08-07 Bruce Korb <autogen@linuxbox.com>
23789 * fixinc/inclhack.def(irix_asm_apostrophe): IRIX 5.2's
23790 <sys/asm.h> contains an asm comment with an apostrophe
23791 * fixinc/inclhack.sh: regen
23792 * fixinc/fixincl.x: regen
23794 Sat Aug 7 19:37:07 1999 Richard Henderson <rth@cygnus.com>
23796 * function.c (init_function_start): Clear prologue & epilogue.
23797 (prologue_epilogue_contains): New function.
23798 * alias.c (init_alias_analysis): Use it.
23799 * rtl.h (prologue_epilogue_contains): Declare it.
23801 Sat Aug 7 19:32:16 1999 Richard Henderson <rth@cygnus.com>
23803 * jump.c (onlyjump_p): New function.
23804 * rtl.h: Declare it.
23805 * flow.c (delete_unreachable_blocks): Use onlyjump_p instead
23806 of condjump_p in calling tidy_fallthru_edge and merge_blocks.
23808 Sat Aug 7 17:09:36 1999 Richard Henderson <rth@cygnus.com>
23810 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_REG_SET
23811 to invert loops. Simplify block scanning.
23813 Sat Aug 7 02:11:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23815 * gcse.c (hash_scan_set): Treat SYMBOL_REFs like CONST_INTs.
23816 (cprop_insn): Treat SYMBOL_REFs like CONST_INTs.
23818 1999-08-07 Jonathan Larmour <jlarmour@cygnus.co.uk>
23820 * config/sparc/liteelf.h: New file to support sparclite-elf target
23821 * config/sparc/t-sp86x: New file to support sparc86x targets
23822 * config/sparc/sp86x-aout.h: New file to support sparc86x-aout target
23823 * config/sparc/sp86x-elf.h: New file to support sparc86x-elf target
23824 * configure.in: Support above target triplets
23825 * configure: Regenerated
23827 Sat Aug 7 01:39:27 1999 Philippe De Muyter <phdm@macqel.be>
23829 * fixinc/server.c (server_setup): Do not prefix function used as
23830 parameter with `&'.
23832 Sat Aug 7 00:21:20 1999 Richard Henderson <rth@cygnus.com>
23834 * alpha.md (movhi and movqi patterns): Correct predicate for !BWX.
23835 Remove fp reg alternatives.
23837 Sat Aug 7 00:06:54 1999 Jeffrey A Law (law@cygnus.com)
23839 * Makefiin (TAROUTOPTS): Kill.
23840 (install-headers-tar): Use "xpf" for tar headerfile extraction
23841 * i370/x-oe (TAROUTOPTS): Delete.
23842 * m68k/x-apollo68 (TAROUTOPTS): Delete.
23843 * m68k/x-hp320 (TAROUTOPTS): Delete.
23844 * m68k/x-hp320g (TAROUTOPTS): Delete.
23845 * gcc.texi: Update bug reporting text.
23847 1999-08-6 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
23849 * reg-stack.c (change_stack) Fixed problem with negative array index.
23851 Fri Aug 6 23:08:44 1999 Jeffrey A Law (law@cygnus.com)
23853 * extend.texi, install.texi: Fix spelling mistakes.
23855 * Makefile.in (PREMADE_ATTRTAB_MD, PREMADE_ATTRTAB): Delete.
23856 (s-attrtab); No longer try to use pre-made insn-attrtab file.
23857 * mips/t-bsd: Delete references to obsolete PREMADE_ATTRTAB and
23858 PREMADE_ATTRTAB_MD.
23859 * mips/t-ecoff: Likewise.
23860 * mips/t-elf: Likewise.
23861 * mips/t-mips: Likewise.
23862 * mips/t-osfrose: Likewise.
23863 * mips/t-r3900: Likewise.
23864 * mips/t-svr3: Likewise.
23865 * mips/t-svr4: Likewise.
23866 * mips/t-ultrix: Likewise.
23868 * gcc.texi: Document recommend means to provide software floating
23869 point libraries in libgcc.a
23871 1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
23873 * c-lex.c (yylex): We can have a number with no digits.
23875 Fri Aug 6 16:53:55 EDT 1999 John Wehle (john@feith.com)
23877 * jump.c (delete_prior_computation): New function, broken
23878 out of delete_computation. Check for side effects with
23879 side_effects_p instead of FIND_REG_INC_NOTE. Handle
23880 multi-word hard registers.
23881 (delete_computation): Use it. Check for side effects with
23882 side_effects_p instead of FIND_REG_INC_NOTE. Synthesize a
23883 missing REG_DEAD note for a register which is both set and
23886 Fri Aug 6 11:05:29 1999 Jeffrey A Law (law@cygnus.com)
23888 * elf.h (TEXT_SPACE_P, FUNCTION_NAME_P): Delete.
23889 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT): Likewise.
23890 (ASM_FILE_START): Import _mcount with the right type.
23891 (ASM_DECLARE_FUNCTION_NAME): Define.
23892 (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
23893 * pa.c (output_function_prologue): Always emit the function's label
23895 * pa.h (TEXT_SPACE_P): Define.
23896 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
23897 (ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT, ASM_GLOBALIZE_LABEL): Likewise.
23898 * som.h (TEXT_SPACE_P): Delete.
23899 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
23900 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT): Likewise.
23902 Thu Aug 5 19:29:39 1999 Jim Wilson <wilson@cygnus.com>
23904 * expr.c (emit_group_load): Allow src to be a CONCAT.
23906 Thu Aug 5 22:27:15 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23908 * config/sh/lib1funcs.asm (___movstrSI0): Change or r0,r0,r0 to nop.
23909 (___mulsi3): Use '!' comment character.
23911 Thu Aug 5 13:34:14 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23913 * reload1.c (maybe_fix_stack_asms): Also declare P as "const char *".
23915 Thu Aug 5 02:40:42 1999 Jeffrey A Law (law@cygnus.com)
23917 * gcc.c: Update URLs and mail addresses.
23918 * gcc.texi: Likewise.
23920 Thu Aug 5 01:14:13 1999 Daniel Jacobowitz <drow@false.org>
23922 * rs6000.c (current_file_function_operand): Return zero for
23924 (rs6000_encode_section_info): Do not set SYMBOL_REF_FLAG for
23926 * rs6000.h (ENCODE_SECTION_NIFO): Do not set SYMBOL_REF_FLAG
23929 Thu Aug 5 00:56:30 1999 Geoffrey Keating <geoffk@cygnus.com>
23931 * rs6000.c (rs6000_stack_info): For ABI_V4/ABI_SOLARIS -fpic, always
23932 allocate space in the stack frame for the PIC register.
23934 Thu Aug 5 00:20:47 1999 Jeffrey A Law (law@cygnus.com)
23936 * m68k.md (xordi3, anddi3): These patterns are not available on
23939 Wed Aug 4 23:39:20 1999 Mark Mitchell <mark@codesourcery.com>
23941 * real.c (GET_REAL): Don't violate ANSI/ISO aliasing rules.
23942 (PUT_REAL): Likewise.
23944 Wed Aug 4 20:45:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23946 * final.c (shorten_branches): Don't add an alignment for loops
23947 that have no label inside.
23949 Wed Aug 4 16:39:24 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23951 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp): Wrap
23952 prototypes in macro HAVE_cmpstrsi.
23954 * cpplib.c (cpp_get_token): Remove unused label `op3'.
23956 * emit-rtl.c (operand_subword): Remove unused variable
23959 * rtl.c (shallow_copy_rtx): Remove unused variable `format_ptr'.
23961 * tree.c (chainon): Wrap variable `t2' in macro ENABLE_CHECKING.
23963 Wed Aug 4 13:29:23 1999 Zack Weinberg <zack@bitmover.com>
23965 * cpphash.c (macroexpand): Delete leading whitespace when arg
23966 is concatenated before.
23967 (unsafe_chars): Correct test for whether + and - can extend a
23970 * cppinit.c (cpp_start_read): Do dependencies for
23971 -include/-imacros files also.
23973 * cpplib.c (cpp_scan_buffer): In no-output mode, don't bother
23974 tokenizing non-directive lines.
23975 (cpp_expand_to_buffer): Temporarily disable no-output mode.
23976 * cppmain.c: In no-output mode, just call cpp_scan_buffer for
23979 Wed Aug 4 12:53:44 1999 Jason Merrill <jason@yorick.cygnus.com>
23981 * expr.c (expand_expr, case PLUS_EXPR): Fix parallel case, too.
23983 * c-lex.c: Sync with C++ frontend.
23984 (linemode): New variable.
23985 (parse_float): imag, conversion_errno, and type are output only.
23986 (yylex): Adjust. Move initial '.' case into main switch.
23988 (handle_generic_pragma): Just deal with tokens.
23989 (readescape): Use ISXDIGIT and ISGRAPH.
23990 * c-parse.in: Add END_OF_LINE token.
23992 * c-lex.c (lang_init): Generalize.
23993 (nextchar): Remove. Replace uses with UNGETC.
23994 (skip_white_space): Handle linemode here. Optimize for cpplib.
23995 (skip_white_space_on_line): Remove.
23996 (extend_token_buffer_to): New fn.
23997 (extend_token_buffer): Use it.
23998 (read_line_number, check_newline): Just deal with tokens.
23999 (token_getch, token_put_back): New fns.
24000 (yylex): Use them. More cpplib optimizations. Simplify.
24002 Wed Aug 4 12:53:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
24003 Jason Merrill <jason@yorick.cygnus.com>
24005 * c-lex.c (init_parse): Set cpp_token to CPP_DIRECTIVE.
24006 (consume_string): Make this smart about USE_CPPLIB.
24007 (check_newline): Rewrite to be intelligent about USE_CPPLIB.
24008 (yylex): Rewrite to be intelligent about USE_CPPLIB.
24009 Also, clean up cases where we redundantly set token_buffer[0].
24010 (read_line_number): New fn.
24011 (ignore_escape_flag): New variable.
24013 Wed Aug 4 13:12:17 1999 Jeffrey A Law (law@cygnus.com)
24015 * a29k/t-a29kbare: Fix some comments.
24016 (LIB2FUNCS_EXTRA): Remove fp-bit.c and dp-bit.c
24017 (FPBIT, DPBIT): Define.
24018 * a29k/t-vx29k: Likewise.
24019 * arc/t-arc: Likewise.
24020 * arm/t-arm-elf: Likewise.
24021 * arm/t-bare: Likewise.
24022 * arm/t-pe: Likewise.
24023 * arm/t-pe-thumb: Likewise.
24024 * arm/t-semi: Likewise.
24025 * arm/t-thumb: Likewise.
24026 * arm/t-thumb-elf: Likewise.
24027 * arm/t-thumb-linux: Likewise.
24028 * h8300/t-h8300: Likewise.
24029 * i960/t-i960: Likewise.
24030 * i960/t-vxworks960: Likewise.
24031 * m32r/t-m32r: Likewise.
24032 * mips/t-ecoff: Likewise.
24033 * mips/t-elf: Likewise.
24034 * mips/t-r3900: Likewise.
24035 * pa/t-pro: Likewise.
24036 * rs6000/t-aix43: Likewise.
24037 * rs6000/t-beos: Likewise.
24038 * rs6000/t-newas: Likewise.
24039 * rs6000/t-ppccomm: Likewise.
24040 * rs6000/t-rs6000: Likewise.
24041 * rs6000/t-winnt: Likewise.
24042 * rs6000/t-xnewas: Likewise.
24043 * rs6000/t-xrs6000: Likewise.
24044 * sh/t-sh: Likewise.
24045 * sparc/t-elf: Likewise.
24046 * sparc/t-sparcbare: Likewise.
24047 * sparc/t-sparclite: Likewise.
24048 * sparc/t-splet: Likewise.
24049 * v850/t-v850: Likewise.
24050 * mn10200/t-mn10200: Fix comments.
24051 * mn10300/t-mn10300: Likewise.
24053 * pa.md (divsi3, udivsi3, modsi3, umodsi3 expanders): Clobber a new
24054 dummy operand. Allocate a new pseudo for the dummy operand.
24055 (divsi3, udivsi3, modis3, umodsi3 patterns): Corresponding changes.
24057 * pa.md (movqi, movhi patterns): Do not expose FP regs to regclass.
24059 Wed Aug 4 11:53:55 1999 Tom Tromey <tromey@cygnus.com>
24061 * configure: Rebuilt.
24062 * configure.in: Removed --enable-java-gc option and JAVAGC subst.
24064 Wed Aug 4 09:06:14 1999 Richard Earnshaw (rearnsha@arm.com)
24066 * recog.c (preproces_constraints): Zero recog_op_alt before
24067 processing the constraints.
24069 * arm.c (typedef minipool_node): Renamed from pool_node.
24070 (minipool_vector, minipool_size, minipool_vector_label): Similarly.
24071 (add_minipool_constant): New function.
24072 (dump_minipool): New function.
24073 (find_barrier): Remove special case for getting the insn size of
24074 an insn that references the constant pool.
24075 (minipool_fixup): New structure.
24076 (push_minipool_barrier): New function.
24077 (push_minipool_fix): New function.
24078 (note_invalid_constants): New function.
24079 (add_pool_constant, dump_table, fixit, broken_move): Delete.
24080 (arm_reorg): Rewrite code to fix up the constant pool into a
24081 series of mini-pools embedded in the insn stream.
24082 (arm_output_epilogue): New function, made mainly from the body
24083 of output_func_epilogue.
24084 (output_func_epilogue): Move insn generation part of epilogue code
24085 to arm_output_epilogue.
24086 * arm.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Delete.
24087 * arm.md (pool_range): New attribute.
24088 (zero_extendqidi2): Add attribute pool_range.
24089 (zero_extend_hisi_insn, load_extendqisi, extendhisi_insn,
24090 extendqihi_insn, extendqisi_insn, movdi, movsi_insn, pic_load_addr,
24091 pic_load_addr_based_insn, movhi_insn_arch4, movhi_insn_littleend,
24092 movhi_insn_bigend, loadhi_si_bigend, movsf_hard_insn, movsf_soft_insn,
24093 movdf_hard_insn, movdf_soft_insn, movxf_hard_insn): Likewise.
24094 (epilogue): New expand.
24095 (epilogue_insn): New insn. Call arm_output_epilogue.
24097 * arm.c (arm_poke_function_name): Undo change of July 17. Tidy up.
24098 * arm.h (TARGET_SWITCHES): Add missing doc string for TARGET_DEFAULT.
24100 Mon Aug 2 19:18:44 1999 Jason Merrill <jason@yorick.cygnus.com>
24102 * linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
24104 1999-08-04 Mark Elbrecht <snowball3@bigfoot.com>
24106 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Define.
24108 Wed Aug 4 02:15:32 1999 Richard Henderson <rth@cygnus.com>
24110 * jump.c (delete_insn): Delete the addr_vec when deleting a tablejump.
24112 Wed Aug 4 01:48:08 1999 Jim Kingdon <http://developer.redhat.com>
24114 * global.c: Fix comment.
24116 Wed Aug 4 01:43:01 1999 Ian Lance Taylor <ian@zembu.com>
24118 * gcc.c (access_check): New static function.
24119 (find_a_file): Use it when searching a directory list.
24120 * collect2.c (find_a_file): Don't accept directories found when
24121 searching a directory list.
24123 Wed Aug 4 01:40:43 1999 Philippe De Muyter <phdm@macqel.be>
24125 * tlink.c (symbol_hash_lookup): Do not prefix functions used as
24126 function parameters with `&'.
24127 (file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.
24129 Wed Aug 4 01:08:44 1999 Jeffrey A Law (law@cygnus.com)
24131 * flow.c (delete_unreachable_blocks): Do not call merge_blocks
24132 or tidy_fallthru_edge if the last insn in the block is not
24133 an unconditional jump or a simple conditional jump.
24135 Tue Aug 3 20:21:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24137 * Makefile.in (c-decl.o): Depends on defaults.h.
24139 Tue Aug 3 14:14:52 1999 Jeffrey A Law (law@cygnus.com)
24141 * pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for
24143 (CLASS_MAX_NREGS): Likewise.
24145 Tue Aug 3 03:51:20 1999 Jeffrey A Law (law@cygnus.com)
24147 * cse.c (cse_insn): Fix dumb thinko in last change.
24149 Tue Aug 3 10:36:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24151 * reload1.c (maybe_fix_stack_asms): Declare CONSTRAINTS as
24154 Mon Aug 2 23:45:45 1999 Hans-Peter Nilsson <hp@bitrange.com>
24156 * dwarf2out.c (add_location_or_const_value_attribute): Correct
24157 test for sizes of passed and declared parameter types.
24159 Tue Aug 3 00:03:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24161 * fixincludes: Fix the return type of bsearch, char* -> void*.
24163 * fixinc/inclhack.def: Likewise.
24165 Mon Aug 2 18:29:32 1999 Mark Mitchell <mark@codesourcery.com>
24167 * invoke.texi (-fdump-translation-unit): New option.
24169 Mon Aug 2 17:54:19 1999 Richard Henderson <rth@cygnus.com>
24171 * expr.h (PROMOTE_PROTOTYPES): Move ...
24172 * defaults.h: ... to here.
24173 * c-decl.c: Include defaults.h instead of expr.h.
24174 * c-typeck.c: Include defaults.h.
24176 Mon Aug 2 17:10:24 1999 Mark Mitchell <mark@codesourcery.com>
24178 * toplev.h (errorcount): Declare.
24179 (warningcount): Likewise.
24180 (sorrycount): Likewise.
24181 * c-lex.c (errorcount): Don't declare.
24182 * dwarf2out.c (errorcount): Don't declare.
24184 Mon Aug 2 17:02:08 1999 Jason Merrill <jason@yorick.cygnus.com>
24186 * config/libgloss.h: Add a note discouraging use with ELF.
24187 * configure.in: Don't use libgloss.h for ELF targets.
24188 Always use_collect2 on a.out targets.
24190 Mon Aug 2 16:27:42 1999 Jim Wilson <wilson@cygnus.com>
24192 * combine.c (force_to_mode, case LSHIFTRT): Add goto shiftrt.
24193 (force_to_mode, case ASHIFTRT): Add shiftrt label.
24195 Tue Aug 3 00:45:02 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24197 * loop.c (strength_reduce): When doing biv->giv conversion, update
24198 reg note of NEXT->insn.
24200 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
24202 * real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad.
24204 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
24206 * c-decl.c (get_parm_info, store_parm_decls): Change all uses of
24207 PROMOTE_PROTOTYPES, so that it tests it as a C expression.
24208 Ensure expr.h is included.
24209 * c-typecheck.c (convert_arguments): Ditto.
24211 * expr.h: Supply default for PROMOTE_PROTOTYPES (0).
24213 * config/arc/arc.h: Define PROMOTE_PROTOTYPES to 1.
24214 * config/convex/convex.h: Ditto.
24215 * config/dsp16xx/dsp16xx.h: Ditto.
24216 * config/fx80/fx80.h: Ditto.
24217 * config/gmicro/gmicro.h: Ditto.
24218 * config/i370/i370.h: Ditto.
24219 * config/i386/i386.h: Ditto.
24220 * config/m32r/m32r.h: Ditto.
24221 * config/m68k/m68k.h: Ditto.
24222 * config/m88k/m88k.h: Ditto.
24223 * config/mips/mips.h: Ditto.
24224 * config/pa/pa.h: Ditto.
24225 * config/pyr/pyr.h: Ditto.
24226 * config/tahoe/tahoe.h: Ditto.
24227 * config/we32k/we32k.h: Ditto.
24229 * config/sparc/sparc.h: Define PROMOTE_PROTOTYPES
24230 based on arch size.
24232 * config/i1750a/i1750a.h: Define PROMOTE_PROTOTYPES to 0.
24234 * config/i860/paragon.h: Remove PROMOTE_PROTOTYPES
24237 * tm.texi: Document new usage of PROMOTE_PROTOTYPES.
24239 1999-08-02 Richard Henderson <rth@cygnus.com>
24241 * m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set
24242 for the register spill block.
24243 (m32r_va_arg): New.
24244 * m32r.h (EXPAND_BUILTIN_VA_ARG): New.
24245 (EXPAND_BUILTIN_SAVEREGS): Delete #if 0 code.
24247 * m32r.h (INT8_P): Don't short-cut test with (unsigned).
24248 (INT16_P, CMP_INT16_P, UINT16_P): Likewise.
24249 (UPPER16_P, UINT24_P, INT32_P, UINT5_P): Likewise.
24251 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
24253 * config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef
24254 MAX_WCHAR_TYPE defined in sparc.h.
24255 * config/sparc/linuxaout.h: Likewise.
24256 * config/sparc/linux64.h: Likewise.
24257 Also default to -mvis if CPU is UltraSPARC.
24259 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
24261 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro.
24262 (RTX_OK_FOR_OLO10): Likewise.
24263 (GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable
24264 %lo(), allow it in addresses...
24265 (PRINT_OPERAND_ADDRESS): ... and print it appropriately.
24266 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo()
24267 does not make sense.
24268 * config/sparc/sparc.c (sparc_hard_reg_printed): New array.
24269 (sparc_output_scratch_registers): New function.
24270 (output_function_prologue, sparc_flat_output_function_prologue): Use
24272 * varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if
24274 * tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it.
24275 * configure.in: Add check for .register pseudo-op support in as and
24276 check for offsetable %lo().
24277 * acconfig.h: Add templates for the above checks.
24278 * configure: Regenerate.
24280 1999-08-02 Richard Henderson <rth@cygnus.com>
24282 * sparc/linux64.h (TARGET_DEFAULT): Remove MASK_APP_REGS.
24283 * sparc/sol2-sld-64.h (TARGET_DEFAULT): Likewise.
24284 * sparc/sol2.h (TARGET_DEFAULT): Likewise.
24286 Mon Aug 2 23:46:45 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24288 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
24291 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
24293 * config/float-sparc.h: New file.
24294 * configure.in: Use float_format=sparc for sparc-*-linux-gnulibc1,
24295 sparc-*-linux-gnu and sparc64-*-linux*.
24297 1999-08-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24299 * rs6000.c (rs6000_va_list): Type is an array.
24300 (rs6000_va_start): Don't doubly adjust for varargs.
24301 (rs6000_va_arg): Evaluate long long GPR adjustment.
24303 Mon Aug 2 16:15:57 1999 David Edelsohn <edelsohn@gnu.org>
24305 * rs6000/aix43.h (SUBTARGET_SWITCHES): Use -m64 and -m32 instead of
24306 -maix64 and -maix32.
24307 (ASM_SPEC, ASM_CPU_SPEC, CPP_SPEC, CPP_CPU_SPEC, LIB_SPEC,
24308 LINK_SPEC): Change appropriately.
24309 * rs6000/rs6000.c (short_cint_operand): Use CONST_OK_FOR_LETTER_P.
24310 (u_short_cint_operand): Likewise.
24311 * rs6000/rs6000.md (movdi splitters): Add TARGET_POWERPC64 support
24313 * rs6000/t-aix43 (MULTILIB): Change to -m64.
24315 * invoke.texi (RS/6000 Submodel): Document 64-bit processor options.
24317 Mon Aug 2 16:15:57 1999 Geoff Keating <geoffk@cygnus.com>
24319 * rs6000/rs6000.c (num_insns_constant_wide): Correct
24320 for type promotion.
24321 (add_operand): Get test correct for 64-bit HOST_WIDE_INT.
24322 (non_add_cint_operand): Likewise.
24323 (logical_operand): Likewise.
24324 (non_logical_cint_operand): Likewise.
24325 (print_operand): Correct printf()s for 64-bit HOST_WIDE_INT.
24326 (print_operand_address): Correct printf() for 64-bit HOST_WIDE_INT.
24327 (rs6000_select_rtx_section): Suppress warning.
24328 (small_data_operand): Suppress warning.
24329 (rs6000_got_register): Suppress warning.
24330 * rs6000/rs6000.md (andsi3): HOST_WIDE_INT is a signed
24331 type, so `J' is generally the wrong constraint for a SImode value;
24333 (andsi3_internal2): Likewise.
24334 (andsi3_internal3): Likewise.
24335 (iorsi3_internal1): Likewise.
24336 (xorsi3_internal1): Likewise.
24338 (movsf_softfloat): Likewise.
24339 (scc insns): Likewise.
24340 (movsi+2): Preserve sign bits of SImode constant.
24341 (floatsidf2_internal+1): Sign-extend SImode constant correctly.
24342 (movdf+1): Sign-extend properly.
24343 (movdi_32+1): Sign-extend properly.
24344 (scc insns): Sign-extend properly.
24346 * md.texi (RS/6000 EXTRA_CONSTRAINTS): Update documentation for J,
24349 1999-08-02 Richard Henderson <rth@cygnus.com>
24351 * alpha.c (override_options): Move ev6 alpha_tp frobbing out of
24352 -mcpu parsing code.
24353 (print_operand): Notice alpha_fptm not alpha_tp for sw completion.
24354 * alpha.md (all fp insns): Likewise.
24356 1999-08-02 Nick Clifton <nickc@cygnus.com>
24358 * config/v850/v850.h (STRICT_ALIGNMENT): Only define if not
24361 Mon Aug 2 03:38:33 1999 Jeffrey A Law (law@cygnus.com)
24363 * pa.c (legitimize_pic_address): Clarify comments. Do not call the
24364 pic_load_label generator directly.
24365 * pa.md (pic_load_label): Clarify comments. Remove modes on operands.
24366 No longer a named pattern.
24368 Mon Aug 2 09:38:10 1999 Nick Clifton <nickc@cygnus.com>
24370 * explow.c (force_reg): Call force_operand if X does not
24371 satisfy general_operand.
24373 Mon Aug 2 01:34:22 1999 Jeffrey A Law (law@cygnus.com)
24375 * fix-header.c (main): When testing for CONTINUED, use string
24376 equality, not pointer equality.
24378 Mon Aug 2 01:27:24 1999 Dan Nicolaescu <dann@ics.uci.edu>
24380 * sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.
24382 Sun Aug 1 22:46:42 1999 Jeffrey A Law (law@cygnus.com)
24384 * cse.c (cse_insn): Fix loop which deletes insns after a jump
24385 that has become an unconditional jump.
24387 * m68k.c (output_function_prologue): Fix typo in CPU32 case.
24388 (output_function_epilogue): Similarly.
24390 Sun Aug 1 20:14:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24392 * tree.h (init_dummy_function_start): Declare.
24394 Sun Aug 1 12:55:31 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24396 * stmt.c (emit_filename, emit_lineno, expr_stmts_for_value,
24397 last_expr_type, last_expr_value, block_start_count, block_stack,
24398 stack_block_stack, cond_stack, loop_stack, case_stack, nesting_stack,
24399 nesting_depth, goto_fixup_chain): Delete global vars; now allocated
24400 dynamically in stmt elt of struct function for each function.
24401 (struct nesting): Rename function_call_count elt to n_function_calls,
24402 target_temp_slot_level to block_target_temp_slot_level. All users
24404 (struct stmt_status): New structure definition.
24405 Add many accessor macros for stmt_status elements which previously
24406 were global variables.
24407 (init_stmt_for_function): Allocate stmt elt for current_function.
24408 Reflect that block_start_count was renamed to
24409 current_block_start_count.
24410 (save_stmt_status, restore_stmt_status): Delete functions.
24411 (preserve_subexpressions_p): Don't access loop_stack when outside
24413 (expand_start_bindings): Reflect that block_start_count was renamed to
24414 current_block_start_count.
24415 (expand_fixup): Likewise.
24416 (expand_decl): Don't access block_stack when outside a function.
24417 (expand_decl_cleanup): Likewise.
24418 (expand_dcc_cleanup): Likewise.
24419 (expand_dhc_cleanup): Likewise.
24420 (expand_anon_union_decl): Likewise.
24421 (set_file_and_line_for_stmt): New function.
24422 (in_control_zone_p): New function.
24424 * function.h (struct function): Add new elt stmt.
24425 Delete elts block_stack, stack_block_stack, cond_stack, loop_stack,
24426 case_stack, nesting_stack, nesting_depth, block_start_count,
24427 last_expr_type, last_expr_value, expr_stmts_for_value, emit_filename,
24428 emit_lineno, goto_fixup_chain.
24429 (save_eh_status, restore_eh_status, save_stmt_status,
24430 restore_stmt_status): Delete declarations.
24431 * function.c (push_function_context_to): Don't call save_stmt_status.
24432 (pop_function_context_to): Don't call restore_stmt_status.
24433 * tree.h (in_control_zone_p): Declare.
24434 * rtl.h (set_file_and_line_for_stmt): Declare.
24436 * emit-rtl.c (emit_line_note): Don't set emit_filename/emit_lineno;
24437 call set_file_and_line_for_stmt.
24439 Thu Jul 31 12:34:45 1999 Joe Buck <jbuck@synopsys.com>
24441 * gcc.texi: Use terms "GNU Compiler Collection" and "GCC".
24442 Also update copyright.
24444 Sat Jul 31 11:10:07 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24446 * c-pragma.c: Don't include "except.h".
24447 * emit-rtl.c: Likewise.
24448 * stor-layout.c: Likewise.
24449 * tree.c: Likewise.
24450 * varasm.c: Likewise.
24452 * flow.c: Include "function.h".
24453 * tree.h (init_dummy_function_start): Declare new function.
24455 * except.h (struct eh_status): New structure.
24456 (struct label_node, struct eh_entry): Declare even if tree.h hasn't
24458 (eh_return_stub_label, ehstack, catchstack, ehqueue,
24459 catch_clauses, false_label_stack, caught_return_label_stack,
24460 protect_list, current_function_ehc): Add accessor macros for the
24461 corresponding fields in current_function->eh; delete declarations
24462 for all items that used to be declared here.
24463 * except.c (eh_return_stub_label, ehstack, catchstack, ehqueue,
24464 catch_clauses, false_label_stack, caught_return_label_stack,
24465 protect_list, current_function_ehc): Delete variables.
24466 (init_eh_for_function): Allocate current_function->eh.
24467 (save_eh_status, restore_eh_status): Delete functions.
24469 * function.h (struct function): Add fields next_global and eh.
24470 Delete all exception handling related fields.
24471 * function.c (current_function): New variable.
24472 (all_functions): New variable.
24473 (push_function_context_to): Don't allocate a struct function,
24474 use current_function instead. Call init_dummy_function_start when
24475 outside a function. Clear current_function before returning.
24476 (pop_function_context_from): Restore current_function.
24477 Don't free the restored struct function.
24478 (prepare_function_start): New function.
24479 (init_dummy_function_start): New function.
24480 (init_function_start): Break out some code into prepare_function_start
24483 * stmt.c (save_stmt_status): Don't call save_eh_status.
24484 (restore_stmt_status): Don't call restore_eh_status.
24486 * Makefile.in: Update dependencies.
24488 Sat Jul 31 04:10:01 1999 Jeffrey A Law (law@cygnus.com)
24490 * pa.c (compute_frame_size): Use STARTINg_FRAME_OFFSET instead
24491 of depending on a magic constant value. Update comments.
24492 (hppa_expand_prologue): Similarly.
24494 * pa.md (reload_indi, reload_outdi): Allow any register for the
24495 original reload register.
24497 Fri Jul 30 19:41:35 1999 Jim Wilson <wilson@cygnus.com>
24499 * cccp.c (print_help): Change marcos to macros.
24501 1999-07-30 Richard Henderson <rth@cygnus.com>
24503 * c-typeck.c (initializer_constant_valid_p): Move ...
24504 * c-common.c (initializer_constant_valid_p): ... here. Use
24505 FOO_TYPE_P instead of tests against TREE_CODE. Allow subtraction
24506 of label addresses.
24507 * c-common.h (initializer_constant_valid_p): Declare.
24508 * c-tree.h (initializer_constant_valid_p): Remove.
24510 Fri Jul 30 16:33:42 1999 Mathias Froehlich <frohlich@na.uni-tuebingen.de>
24512 * config/i386/sol2-c1.asm: Align the stack.
24513 * config/i386/sol2-gc1.asm: Likewise.
24515 1999-07-30 Vladimir Makarov <vmakarov@loony.cygnus.com>
24517 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto
24518 -Asparclite for sparc86x.
24519 (CPP_CPU32_DEFAULT_SPEC, CPP_CPU_SPEC): Remove -D__sparc_v8__ for
24521 (ASM_CPU_SPEC): Use -Asparclite for sparc86x.
24523 Fri Jul 30 14:53:56 1999 Jakub Jelinek <jj@ultra.linux.cz>
24525 * config/sparc/linux64.h (CC1_SPEC): Preserve CPU specified by
24526 the user if using the non-default arch size in BI_ARCH configuration.
24527 * config/sparc/sol2-sld-64.h (CC1_SPEC): Ditto.
24529 * config/sparc/sparc.md (cmp_mul_set, cmp_udiv_cc_set):
24530 Fix patterns so that they actually match.
24531 (cmp_sdiv_cc_set): Ditto, also don't require g0 to be zero.
24532 (mulsidi3_sp64, const_mulsidi3_sp64): New patterns.
24533 (const_mulsidi3_sp32): Renamed from const_mulsidi3, only on
24535 (mulsidi3): Reflect this in the expand.
24536 (smulsi3_highpart): Only on TARGET_ARCH32.
24537 (umulsidi3_sp64, const_umulsidi3_sp64): New patterns.
24538 (const_umulsidi3_sp32): Renamed from const_umulsidi3.
24539 (umulsidi3): Reflect this in the expand.
24540 (umulsi3_highpart): Only on TARGET_ARCH32.
24541 (divsi3_sp32): Renamed from divsi3, only on TARGET_ARCH32,
24542 don't require g0 to be zero.
24543 (udivsi3_sp32): Renamed from udivsi3, only on TARGET_ARCH32.
24544 ({,u}divsi3): New expands.
24545 ({,u}divsi3_sp64): New patterns.
24546 (after lshrdi3_v8plus): Four new patterns to help combiner
24547 optimizing nested mixed mode shifts.
24549 * config/sparc/sparc.c (sparc_override_options): Use deprecated
24550 v8 instructions if optimizing for UltraSPARC I, II, IIi, as it
24551 speed things up. Don't use them by default on plain v9 in 64bit
24552 mode, according to what SPAMv9 sais.
24554 * config/sparc/sparc.h: Fix comments, e.g. Linux already preserves
24555 top 32 bits of %[og][0-7] in signal handlers.
24556 Also, TARGET_HARD_MUL32 now is only true for TARGET_ARCH32.
24558 Fri Jul 30 03:00:41 1999 Jeffrey A Law (law@cygnus.com)
24560 * pa.md (zvdep_imm32): Renamed from zvdep_imm.
24561 (ashlsi3): Corresponding changes.
24563 * pa.c (compute_zdepwi_operands): Renamed from compute_zdepi_operands.
24565 Thu Jul 29 18:37:13 1999 Jeffrey A Law (law@cygnus.com)
24567 * pa.h (FIRST_PARM_CALLER_OFFSET): Delete.
24569 Thu Jul 29 19:01:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24571 * arm.h (Hint): Delete macro.
24572 Substitute HOST_WIDE_INT for Hint in some prototypes.
24573 * arm.c: Substitute HOST_WIDE_INT for Hint in one prototype.
24575 Thu Jul 29 09:21:42 1999 Nick Clifton <nickc@cygnus.com>
24577 * builtins.c (expand_builtin_setjmp): Use force_operand to
24578 make sure that the buffer address is in a suitable form to be
24579 passed to force_reg.
24581 Wed Jul 28 12:50:48 1999 Geoff Keating <geoffk@cygnus.com>
24583 * config/mips/mips.c: system.h handles MIN and MAX, don't undefine
24586 Wed Jul 28 13:18:35 1999 Jeffrey A Law (law@cygnus.com)
24588 * pa.md (indirect_jump): Remove mode from match_operand. Verify
24589 proper mode in the condition string.
24590 (icacheflush, dcacheflush): Remove modes from match_operands.
24592 * pa.c (emit_move_sequence): Always convert scratch_reg to the
24593 proper mode before using it.
24595 * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
24598 * pa.c (store_reg): Do not call add_high_const generator directly.
24599 (load_reg, set_reg_plus_d): Likewise.
24600 * pa.md (add_high_const): No longer a named pattern.
24602 * pa.c (legitimize_address): Consistently use Pmode rather than
24603 SImode. Do not call gen_pic2_highpart directly anymore.
24604 * pa.md (pic2_highpart): No longer a named pattern.
24605 (pic2_lo_sum): Similarly. Reformat to make more readable.
24607 * pa.md (call, call_value): Use "word_mode" instead of "SImode" as
24612 Wed Jul 28 11:28:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24614 * builtins.c (expand_builtin): Typo in call to expand_builtin_ffs.
24616 Wed Jul 28 11:23:48 1999 Richard Henderson <rth@cygnus.com>
24618 * pa.c (hppa_builtin_saveregs): Use get_varargs_alias_set
24619 and tag the spill mems.
24620 (hppa_va_start): New.
24621 (hppa_va_arg): New.
24622 * pa.h (EXPAND_BUILTIN_VA_START): New.
24623 (EXPAND_BUILTIN_VA_ARG): New.
24625 Wed Jul 28 11:22:21 1999 Richard Henderson <rth@cygnus.com>
24627 * mn10300.c (mn10300_builtin_saveregs): Use get_varargs_alias_set
24628 and tag the spill mems.
24629 (mn10300_va_start): New.
24630 (mn10300_va_arg): New.
24631 * mn10300.h (EXPAND_BUILTIN_VA_START): New.
24632 (EXPAND_BUILTIN_VA_ARG): New.
24634 Wed Jul 28 11:20:19 1999 Richard Henderson <rth@cygnus.com>
24636 * mn10200.c (mn10200_va_arg): New.
24637 * mn10200.h (EXPAND_BUILTIN_VA_ARG): New.
24639 Wed Jul 28 11:19:06 1999 Richard Henderson <rth@cygnus.com>
24641 * builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
24642 rather than play with TREE_INT_CST_LOW.
24644 1999-07-27 Philip Blundell <pb@nexus.co.uk>
24646 * config/arm/telf.h: Include dbxelf.h.
24647 (CPP_PREDEFINES): Only define if not already defined.
24648 (ASM_IDENTIFY_GCC): Likewise.
24649 (SUBTARGET_EXTRA_SECTIONS): Likewise.
24650 (SUBTARGET_EXTRA_SECTION_FUNCTIONS): Likewise.
24651 * config/arm/thumb.h (LINK_SPEC): Only define if not already
24653 (DBX_DEBUGGING_INFO): Don't define.
24654 * config/arm/linux-telf.h: New file.
24655 * config/arm/linux-tgas.h: New file.
24656 * config/arm/t-thumb-linux: New file.
24657 * config/arm/uclinux-elf.h: New file.
24658 * config/arm/uclinux-telf.h: New file.
24659 * configure.in (arm-*-uclinux, thumb-*-linux-gnu,
24660 thumb-*-uclinux): New targets.
24661 * configure: Regenerate.
24663 Tue Jul 27 23:20:21 1999 Jeffrey A Law (law@cygnus.com)
24665 * pa.md (post_store, pre_load): New expanders.
24666 (post_stwm, pre_ldwm): Renamed to post_stw and pre_ldw respectively.
24667 (post_ldwm, pre_stwm): Make these unnamed patterns since we never
24668 need to directly generate RTL for them.
24669 * pa.c (hppa_expand_prologue, hppa_expand_epilogue): Corresponding
24672 Tue Jul 27 16:05:52 1999 David Edelsohn <edelsohn@gnu.org>
24674 * aix43.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add rs64a and PPC630.
24675 * rs6000.c (processor_target_table): Add powerpc64, rs64a, and PPC630.
24676 (rs6000_cpu): Choose between 32-bit and 64-bit default processors.
24677 (secndary_reload_class): Make TARGET_ELF conditional compile.
24678 (print_operand_address): Similar.
24679 (output_toc): Print all values as hex.
24680 (get_issue_rate): Rearrange and add RS64A and PPC630.
24681 * rs6000.h (processor_type): Add RS64A and PPC630.
24682 (PROCESSOR_POWERPC64): New.
24683 (PROMOTE_MODE): Use word_mode.
24684 (RTX_COSTS): Add RS64A and PPC630.
24685 * rs6000.md (scheduling information): Add lmul and ldiv
24686 representing 64-bit integer multiply and divide. Add rs64a and
24687 PPC630 information.
24688 (ashldi3): Add support for "rldic" instruction.
24689 * sysv4.h (PROCESSOR_DEFAULT): Change to PROCESSOR_750.
24691 Tue Jul 27 15:31:53 1999 Vladimir Makarov <vmakarov@toad.to.cygnus.com>
24693 * config/sparc/sparc.c (sparc_override_options): Enable SPARCLITE
24694 instead of V8 for sparclite86x in cpu_table.
24696 Tue Jul 27 17:49:42 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24698 * config/arm/coff.h (ASM_FILE_START): If generating SDB output, call
24699 output_file_directive.
24701 Tue Jul 27 03:15:33 1999 Jason Merrill <jason@yorick.cygnus.com>
24703 * expr.c (expand_expr, case PLUS_EXPR): Get the mode from the
24704 tree for op1, not the rtl.
24706 Tue Jul 27 00:18:34 1999 Richard Henderson <rth@cygnus.com>
24708 * m88k.c (m88k_builtin_saveregs): Break out the constructor code
24709 to m88k_va_start, leaving only the register spill.
24710 (m88k_build_va_list): New.
24711 (m88k_va_start): New.
24712 (m88k_va_arg): New.
24713 * m88k.h (BUILD_VA_LIST_TYPE): New.
24714 (EXPAND_BUILTIN_VA_START): New.
24715 (EXPAND_BUILTIN_VA_ARG): New.
24717 Mon Jul 26 19:07:11 1999 Geoff Keating <geoffk@cygnus.com>
24719 * config/rs6000/rs6000.c (rs6000_expand_builtin_saveregs):
24720 Rename from expand_builtin_saveregs.
24721 * config/rs6000/rs6000.h (EXPAND_BUILTIN_SAVEREGS): Change caller.
24723 Mon Jul 26 22:52:47 1999 Richard Henderson <rth@cygnus.com>
24725 * i960.c (i960_setup_incoming_varargs): Use get_varargs_alias_set
24726 for the register spill block.
24727 (i960_build_va_list): New.
24728 (i960_va_start): New.
24729 (i960_va_arg): New.
24730 * i960.h (BUILD_VA_LIST_TYPE): New.
24731 (EXPAND_BUILTIN_VA_START): New.
24732 (EXPAND_BUILTIN_VA_ARG): New.
24733 * i960.md (store_multiple): Use change_address on individul mems.
24735 Mon Jul 26 22:43:12 1999 Richard Henderson <rth@cygnus.com>
24737 * builtins.c (stabilize_va_list): Don't INDIRECT_REF through
24739 (std_expand_builtin_va_start): Back out one word if !stdarg_p.
24740 (expand_builtin_va_end): Evaluate arg for side effects.
24741 * c-common.c (c_common_nodes_and_builtins): Construct a
24742 va_list_arg_type_node to handle array decomposition to pointer.
24744 Mon Jul 26 18:51:34 1999 Richard Henderson <rth@cygnus.com>
24746 * except.c (st_dynamic_cleanup): Use force_operand on the
24749 Mon Jul 26 16:43:26 1999 Richard Henderson <rth@cygnus.com>
24751 * c4x.h (EXPAND_BUILTIN_VA_ARG): New.
24752 * c4x.c (c4x_va_arg): New.
24754 Mon Jul 26 12:30:09 1999 Jason Merrill <jason@yorick.cygnus.com>
24756 * cpplib.c (cpp_get_token): Don't return a CPP_POP if the buffer
24757 has manual_pop set.
24759 1999-07-26 Nathan Sidwell <nathan@acm.org>
24761 * eh-common.h (__eh_matcher): Prototype correctly.
24763 Mon Jul 26 17:24:51 1999 Philip Blundell <pb@nexus.co.uk>
24765 * config/arm/thumb.h (THUMB_FLAG_SINGLE_PIC_BASE): Define.
24766 (TARGET_SINGLE_PIC_BASE): Likewise.
24767 (GOT_PCREL, NEED_GOT_RELOC, NEED_PLT_RELOC): Provide default
24769 (TARGET_CALLEE_INTERWORKING): Fix typo in comment.
24770 (TARGET_SWITCHES): Add -m{no-}single-pic-base.
24771 (TARGET_OPTIONS): Add -mpic-register=N.
24772 (OUTPUT_INT_ADDR_CONST): New macro.
24773 (INDEX_REGISTER_RTX_P, PIC_OFFSET_TABLE_REGNUM, FINALIZE_PIC,
24774 LEGITIMATE_PIC_OPERAND_P): Likewise.
24775 (LEGITIMIZE_ADDRESS, GOT_IF_LEGITIMATE_ADDRESS): Support PIC.
24776 (ASM_OUTPUT_INT): Use OUTPUT_INT_ADDR_CONST rather than calling
24777 output_addr_const directly.
24778 (PRINT_OPERAND_PUNCT_VALID_P): Accept `|' for compatibility with
24780 (thumb_pic_register, thumb_pic_register_string): Declare.
24782 * config/arm/thumb.c (symbol_mentioned_p): New function: Imported
24784 (label_mentioned_p): New function: Imported from arm.c.
24785 (legitimize_pic_address): New function: Imported from arm.c.
24786 (is_pic):New function: Imported from arm.c.
24787 (thumb_finalize_pic):New function: Imported from arm.c.
24788 (add_constant): Cope with PIC constants.
24789 (fixit): Cope with PIC constants.
24790 (output_return): Do not treat the PIC register as live if
24791 TARGET_SINGLE_PIC_BASE is true.
24792 (thumb_function_prologue): Do not treat the PIC register as live if
24793 TARGET_SINGLE_PIC_BASE is true.
24794 (thumb_expand_prologue): Do not treat the PIC register as live if
24795 TARGET_SINGLE_PIC_BASE is true.
24796 (thumb_unexpand_epilogue): Do not treat the PIC register as live if
24797 TARGET_SINGLE_PIC_BASE is true.
24798 (thumb_print_operand): Accept '|'.
24799 (thumb_override_options): Process PIC options.
24801 * config/arm/thumb.md (movsi): Support PIC.
24802 (call_insn): Change "i" constraint to "X".
24803 (call_value_insn): Likewise.
24804 (consttable_4, consttable_8, consttable_end): Set and clear
24805 "making_const_table" as appropriate.
24806 (pic_load_addr, pic_add_dot_plus_four): New insns.
24808 * invoke.texi (Thumb Options): Fix spelling. Document new
24809 options -msingle-pic-base and -mpic-register=.
24811 1999-07-26 Andrew Haley <aph@cygnus.com>
24813 * config/m32r/initfini.c (__init): Use a full word immediate for
24814 __fini: this allows it to be placed in any memory region.
24816 * config/m32r/t-m32r: Compile crtinit.o and crtfini.o for
24817 -mmodel=medium. This is OK for all memory models.
24819 Mon Jul 26 11:58:46 1999 Nick Clifton <nickc@cygnus.com>
24821 * config/arm/arm.c: Replace %R%s in asm_fprintf strings with %r.
24822 * config/arm/arm.h: Replace %R%s in asm_fprintf strings with %r.
24824 Mon Jul 26 10:23:36 1999 Nick Clifton <nickc@cygnus.com>
24826 * final.c (asm_fprintf): Accept ASM_FPRINTF_EXTENSIONS, if
24829 * tm.texi: Document ASM_FPRINTF_EXTENSIONS.
24831 Sun Jul 25 23:51:59 1999 Richard Henderson <rth@cygnus.com>
24833 * i860.h (EXPAND_BUILTIN_SAVEREGS): New.
24834 (BUILD_VA_LIST_TYPE): New.
24835 (EXPAND_BUILTIN_VA_START): New.
24836 (EXPAND_BUILTIN_VA_ARG): New.
24837 * i860.c (output_delayed_branch): Disable.
24838 (output_delay_insn): Likewise.
24839 (i860_saveregs): New.
24840 (i860_build_va_list): New.
24841 (i860_va_start): New.
24842 (i860_va_arg): New.
24843 * i860.md: Disable all peepholes using output_delayed_branch.
24844 * i860/sysv4.h (I860_SVR4_VA_LIST): New.
24846 Sun Jul 25 23:44:13 1999 Richard Henderson <rth@cygnus.com>
24848 * clipper.h (EXPAND_BUILTIN_SAVEREGS): Remove argument.
24849 (BUILD_VA_LIST_TYPE): New.
24850 (EXPAND_BUILTIN_VA_START): New.
24851 (EXPAND_BUILTIN_VA_ARG): New.
24852 * clipper.c (clipper_builtin_saveregs): Only dump registers.
24853 Return the address of the save area.
24854 (clipper_build_va_list): New.
24855 (clipper_va_start): New.
24856 (clipper_va_arg): New.
24858 Sun Jul 25 22:56:47 1999 Richard Henderson <rth@cygnus.com>
24860 * arc.h (EXPAND_BUILTIN_VA_START): New.
24861 (EXPAND_BUILTIN_VA_ARG): New.
24862 * arc.c (arc_setup_incoming_varargs): Set alias set of
24864 (arc_va_start): New.
24867 Sun Jul 25 22:45:55 1999 Richard Henderson <rth@cygnus.com>
24869 * alpha.h (EXPAND_BUILTIN_SAVEREGS): Delete.
24870 (BUILD_VA_LIST_TYPE): New.
24871 (EXPAND_BUILTIN_VA_START): New.
24872 (EXPAND_BUILTIN_VA_ARG): New.
24873 * alpha.c (alpha_builtin_saveregs): Delete.
24874 (alpha_build_va_list): New.
24875 (alpha_va_start): New.
24876 (alpha_va_arg): New.
24878 Sun Jul 25 21:40:33 1999 Jeffrey A Law (law@cygnus.com)
24880 * config/svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in
24882 (DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP): Likewise.
24883 (FINI_SECTION_ASM_OP, ASM_OUTPUT_SECTION_NAME): Likewise.
24885 * gcc.texi: More changes related to list conversion.
24886 * invoke.texi: Likewise.
24888 Sun Jul 25 18:15:39 1999 Richard Henderson <rth@cygnus.com>
24890 * builtins.c (expand_builtin_saveregs): Remove static, remove exp
24891 and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
24892 (expand_builtin_next_arg): Accept ARGLIST not EXP.
24893 (stabilize_va_list): New function.
24894 (std_expand_builtin_va_start): New function.
24895 (expand_builtin_va_start): New function.
24896 (get_varargs_alias_set): New function.
24897 (std_expand_builtin_va_arg): New function.
24898 (expand_builtin_va_arg): New function.
24899 (expand_builtin_va_end): New function.
24900 (expand_builtin_va_copy): New function.
24901 (expand_builtin): Call them.
24902 * c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list,
24903 __builtin_{varargs_start,stdarg_start,end,copy}.
24904 (build_va_arg): New function.
24905 * c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete.
24906 (build_va_arg): Declare.
24907 * c-decl.c (ptr_type_node, va_list_type_node): New.
24908 * c-parse.gperf (__builtin_va_arg): New.
24909 * c-parse.in (VA_ARG): New token.
24910 (unary_expr): Recognize it.
24911 * expr.c (expand_expr): Expand VA_ARG_EXPR.
24912 * expr.h (std_expand_builtin_va_start): Declare.
24913 (std_expand_builtin_va_arg): Declare.
24914 (expand_builtin_va_arg): Declare.
24915 (get_varargs_alias_set): Declare.
24916 * tree.def (VA_ARG_EXPR): New.
24917 * tree.h (BUILT_IN_VARARGS_START): New.
24918 (BUILT_IN_STDARG_START, BUILT_IN_VA_END): New.
24919 (ptr_type_node, va_list_type_node): Declare.
24920 * tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument.
24921 * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
24922 * m88k.h, m88k.c: Likewise.
24923 * mn10300.h, mn10300.c: Likewise.
24924 * pa.h, pa.c: Likewise.
24925 * rs6000.h, rs6000.c: Likewise.
24926 * sh.h, sh.c: Likewise.
24927 * sparc.h, sparc.c: Likewise.
24929 * emit-rtl.c (operand_subword): Copy alias set.
24930 (change_address): Likewise.
24932 Sun Jul 25 15:04:37 1999 Jeffrey A Law (law@cygnus.com)
24934 * pa.c (compute_frame_size): Scan all the used callee saved registers,
24935 not just the first one.
24937 Fri Jul 23 14:09:58 1999 Philip Blundell <pb@nexus.co.uk>
24939 * config/arm/arm.h (TARGET_SWITCHES): Add
24940 -m{no-}single-pic-base. Correct help string for -mshort-load-words.
24941 (TARGET_OPTIONS): Add -mpic-register=.
24942 (ARM_FLAG_SINGLE_PIC_BASE, TARGET_SINGLE_PIC_BASE): Define.
24943 (arm_pic_register_string): Declare.
24944 (NEED_PLT_GOT): Delete, replace with ...
24945 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. New macros.
24946 (OUTPUT_INT_ADDR_CONST): Replace NEED_PLT_GOT with NEED_GOT_RELOC.
24947 (ASM_OUTPUT_MI_THUNK): Replace NEED_PLT_GOT with NEED_PLT_RELOC.
24948 * config/arm/arm.c (arm_override_options): Add new option
24950 (arm_pic_register_string): New variable.
24951 (arm_finalize_pic): Respect TARGET_SINGLE_PIC_BASE.
24952 (output_func_prologue): If TARGET_SINGLE_PIC_BASE, treat the PIC
24953 register as never live. Use NEED_PLT_RELOC not NEED_PLT_GOT.
24954 (output_return_instruction): Likewise.
24955 * config/arm/elf.h (NEED_PLT_GOT): Delete, replace with ...
24956 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. Define to flag_pic.
24957 * config/arm/arm.md: Use NEED_PLT_RELOC in place of NEED_PLT_GOT.
24959 * invoke.texi (ARM Options): Fix spelling. Remove duplicate
24960 mention of -msched-prolog. Document new options -msingle-pic-base
24961 and -mpic-register=.
24963 Thu Jul 22 18:23:56 1999 Richard Henderson <rth@cygnus.com>
24965 * haifa-sched.c (reemit_notes): Tidy.
24966 * sched.c (reemit_notes): Duplicate 1998-08-31 patch to
24969 Thu Jul 22 18:21:04 1999 Richard Henderson <rth@cygnus.com>
24971 * explow.c (trunc_int_for_mode): New function.
24972 (plus_constant_wide): Use it.
24973 * combine.c (simplify_and_const_int): Likewise.
24974 (merge_outer_ops): Likewise.
24975 (simplify_shift_const): Likewise.
24976 * cse.c (simplify_unary_operation): Likewise.
24977 (simplify_binary_operation): Likewise.
24978 * emit-rtl.c (operand_subword): Likewise.
24979 * rtl.h: Declare it.
24981 Thu Jul 22 14:34:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24983 * config/arm/arm.c (arm_print_operand): Fix typo in 'M' case
24984 (use NUM_REGS instead of NUM_INTS).
24986 Thu Jul 22 11:25:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24988 * builtins.c: New file.
24989 * expr.c (saveregs_value, apply_args_value): Delete definition,
24990 moved into builtins.c.
24991 (string_constant): No longer static.
24992 (get_pointer_alignment, c_strlen, get_memory_rtx, expand_builtin,
24993 apply_args_size, apply_result_size, result_vector,
24994 expand_builtin_apply_args, expand_builtin_apply,
24995 expand_builtin_return): Delete functions, moved into builtins.c.
24996 (INCOMING_REGNO, OUTGOING_REGNO): Delete unused macros.
24997 * expr.h (saveregs_value, apply_args_value): Declare variables.
24998 (expand_builtin, string_constant): Declare functions.
24999 * Makefile.in: Update to build builtin.o.
25001 Wed Jul 21 00:46:58 1999 Mark P. Mitchell <mark@codesourcery.com>
25003 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro.
25004 * tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Define it.
25005 * dwarf2out.c (dwarf2out_init): Don't output a label to mark the
25006 start of the text section if DWARF2_GENERATE_TEXT_SECTION_LABEL is
25008 * config/mips/iris6.h (DWARF2_GENERATE_TEXT_SECTION_LABEL):
25011 1999-07-21 Michael Meissner <meissner@cygnus.com>
25013 * print-rtl.c (print_rtx): Print the names of the virtual
25016 Wed Jul 21 16:00:32 1999 Nick Clifton <nickc@cygnus.com>
25018 * config/arm/arm.h (INITIAL_ELIMINATION_OFFSET): Fix typo
25019 introduced in previous delta.
25021 Wed Jul 21 14:30:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25023 * c-lang.c (finish_file): Rename void_list_node to void_list_node_1
25024 to avoid name clash.
25026 Wed Jul 21 08:39:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
25028 * c-lex.c (yylex) : Correct the test for overflow when lexing
25031 Tue Jul 20 18:02:42 1999 Richard Henderson <rth@cygnus.com>
25033 * haifa-sched.c (insn_cost): FREE implies cost 0 and vice versa.
25034 (adjust_priority): Always call ADJUST_PRIORITY.
25035 (schedule_insn): Only put insns into the ready at cost 0.
25036 (schedule_block): Remove redundant initial sort. Give clock_var
25037 and can_issue_more to MD_SCHED_REORDER. Requeue if hazard cost
25039 * tm.texi (MD_SCHED_REORDER): Update docs.
25041 * sparc.h (MD_SCHED_REORDER): Update. Set CAN_ISSUE_MORE.
25042 * sparc.c (ultra_reorder_called_this_block): Delete.
25043 (ultrasparc_sched_init): Don't set it.
25044 (ultrasparc_sched_reorder): Don't check it.
25046 Tue Jul 20 17:07:54 1999 Richard Henderson <rth@cygnus.com>
25048 * rs6000.h (struct rs6000_args): Add sysv_gregno.
25049 * rs6000.c (init_cumulative_args): Init sysv_gregno.
25050 (function_arg_boundary): Align DFmode.
25051 (function_arg_advance): Restructure for ABI_V4; use sysv_gregno
25052 to get fp reg and stack overflow correct.
25053 (function_arg): Likewise.
25054 (function_arg_pass_by_reference): True for TFmode for ABI_V4.
25055 (setup_incoming_varargs): Restructure for ABI_V4; use
25056 function_arg_advance to skip final named argument.
25057 (expand_builtin_saveregs): Properly unskip the last integer arg
25058 when doing varargs. Adjust overflow location calculation.
25060 * ginclude/va-ppc.h (struct __va_list_tag): Make gpr and fpr
25061 explicitly unsigned.
25062 (__VA_FP_REGSAVE): Use new OFS argument instead of AP->fpr directly.
25063 (__VA_GP_REGSAVE): Similarly.
25064 (__va_longlong_p): Delete.
25065 (__va_arg_type_violation): New declaration.
25066 (va_arg): Restructure. Flag promotion errors. Align double.
25067 TFmode passed by reference.
25069 * rs6000.md (movdi_32+1): Use GEN_INT after arithmetic
25070 in the HOST_BITS_PER_WIDE_INT > 32 case.
25072 Tue Jul 20 12:37:30 1999 Hans-Peter Nilsson <hp@bitrange.com>
25074 * dwarf2out.c (output_abbrev_section): Terminate with a zero.
25076 Tue Jul 20 12:12:27 1999 Jason Merrill <jason@yorick.cygnus.com>
25078 * gcc.c (default_compilers, cpp-output): Pass -fpreprocessed.
25079 * toplev.c (documented_lang_options): Add -fpreprocessed.
25080 * cpplib.h (struct cpp_buffer): Add preprocessed.
25081 * cppinit.c (cpp_handle_option): Handle -fpreprocessed.
25082 (cpp_start_read): Don't expand macros or emit an initial #line
25083 directive if -fpreprocessed.
25085 Tue Jul 20 12:12:09 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
25087 * cpplib.h (struct cpp_buffer): Added manual_pop for
25088 better C++ tokenization.
25089 * cpplib.c (cpp_get_token): Return CPP_EOF if manual_pop.
25090 Also, support C++ tokenization for ->*, .*, <?, and >? operators.
25091 * c-common.c (cpp_token): Make non-static.
25093 Tue Jul 20 11:24:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25095 * c-common.h: New file.
25096 * c-common.c (permanent_obstack): Delete unused declaration.
25097 (c_global_trees): New array.
25098 (c_common_nodes_and_builtins): New function; split off common code
25099 from init_decl_processing in both c-decl.c and cp/decl.c.
25100 * c-tree.h: Delete lots of declarations of tree nodes; replaced by
25101 c_global_trees and accessor macros defined in c-common.h.
25102 Include c-common.h.
25103 * c-decl.c: Delete definitions for tree nodes that were replaced by
25105 (init_decl_processing): Build void_list_node.
25106 Call c_common_nodes_and_builtins; delete code to generate the common
25108 * objc/objc-act.c (build_module_descriptor): Rename variable
25109 void_list_node to avoid clash with c-common.h.
25111 * Makefile.in: Update dependencies.
25112 * objc/Make-lang.in: Likewise.
25114 Mon Jul 19 14:22:18 1999 Mark P. Mitchell <mark@codesourcery.com>
25116 * config/mips/iris6gld.h (MAKE_DECL_ONE_ONLY): Define.
25117 (UNIQUE_SECTION_P): Likewise.
25118 (UNIQUE_SECTION): Likewise.
25120 1999-07-19 Linas Vepstas <linas@linas.org>
25122 * config/i370/README: New file.
25123 * config/i370/linux.h: New file.
25124 * config/i370/mvs.h: New file.
25125 * config/i370/oe.h: New file.
25126 * config/i370/t-linux: New file.
25127 * config/i370/t-mvs: New file.
25128 * config/i370/t-oe: New file.
25129 * config/i370/x-oe: New file.
25130 * config/i370/xm-linux.h: New file.
25131 * config/i370/xm-mvs.h: New file.
25132 * config/i370/xm-oe.h: New file.
25134 * i370.c (label_node_t): Add first_ref_page, label_addr,
25135 label_first_ref, label_last_ref members.
25136 (mvs_need_base_reload): Renamed from mvs_label_emitted.
25137 (MAX_MVS_LABEL_SIZE): Define.
25138 (MAX_LONG_LABEL_SIZE): Define.
25139 (alias_node_t, alias_anchor, alias_number): New.
25140 (mvs_function_table): Reorder for EBCDIC.
25141 (ascebc, ebcasc): Unconditionally define.
25142 (i370_branch_dest, i370_branch_length): New functions.
25143 (i370_short_branch, i370_label_scan): New functions.
25144 (mvs_get_label): Renamed from mvs_add_label. Search for
25145 an existing label before creating a new one.
25146 (mvs_add_label): New function.
25147 (mvs_get_label_page): New function.
25148 (mvs_free_label_list): Renamed from mvs_free_label. Iterate
25149 over the entire list.
25150 (mvs_check_page) [TARGET_HLASM]: Use BASR not BALR.
25151 (mvs_check_page) [TARGET_ELF_ABI]: New function.
25152 (mvs_add_alias, mvs_need_alias): New functions.
25153 (mvs_get_alias, mvs_check_alias): New functions.
25154 (handle_pragma): New function.
25155 (mvs_function_check): New function.
25156 (unsigned_jump_follows_p): Search harder.
25157 (i370_function_prolog) [TARGET_HLASM]: Handle LE370. Scan labels.
25158 (i370_function_prolog) [TARGET_ELF_ABI]: New function.
25159 * i370.h (TARGET_VERSION): Delete.
25160 (CPP_SPEC, CPP_PREDEFINES): Delete.
25161 (mvs_label_emitted): Delete.
25162 (TARGET_EBCDIC): Delete.
25163 (MAP_CHARACTER): Define only if TARGET_EBCDIC.
25164 (HANDLE_PRAGMA): Define.
25165 (HARD_REGNO_NREGS): Handle complex modes.
25166 (HARD_REGNO_MODE_OK): Likewise.
25167 (CLASS_MAX_NREGS): Likewise.
25168 (RET_REG): Likewise.
25169 (EXTRA_CONSTRAINT): Define.
25170 (RETURN_IN_MEMORY): True for DImode.
25171 (TRAMPOLINE_TEMPLATE): Use gen_rtx instead of GEN_INT.
25172 (FUNCTION_PROFILER): Delete.
25173 (COUNT_REGS): Fail if REG_P but not REG_OK_FOR_BASE_P.
25174 (NOTICE_UPDATE_CC): Correct handling of MULT, DIV, logicals and shifts.
25175 (TARGET_ESC, TARGET_BELL): Conditionally define for TARGET_EBCDIC.
25176 (TARGET_BS, TARGET_TAB, TARGET_NEWLINE): Likewise.
25177 (TARGET_VT, TARGET_FF, TARGET_CR): Likewise.
25178 (ASM_FILE_START): Add "RMODE ANY".
25179 (ASM_OUTPUT_EXTERNAL): Check for aliases.
25180 (ASM_GLOBALIZE_LABEL): Likewise.
25181 (ASM_OUTPUT_LABELREF): Likewise.
25182 (ASM_OUTPUT_COMMON): Likewise.
25183 (PRINT_OPERAND): Handle 'K', 'W', default.
25184 (PRINT_OPERAND_ADDRESS): New.
25185 (Lots of defines): Add support for TARGET_ELF_ABI.
25186 * i370.md (attr length): New. Define for all patterns.
25187 (*): Lots of tweeks to assembly output and constraints.
25189 Mon Jul 19 15:09:29 1999 David Edelsohn <edelsohn@gnu.org>
25191 * rs6000.md (arithmetic, logical, and shift Rc combiner patterns):
25192 Disable patterns performing SImode comparisons with SImode values
25193 if TARGET_POWERPC64 and instruction does not sign-extend or does
25194 not mask to narrower than SImode, i.e. where bit 31 and bit 63 may
25195 differ for signed quantities.
25196 (indirect_jump): Add expander to choose RTL based on TARGET_64BIT.
25197 (tablejump): Patterns contingent on TARGET_64BIT not TARGET_POWERPC64.
25198 (decrement_and_branch_on_count): Add 64-bit variant.
25200 Mon Jul 19 09:36:27 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25202 * final.c (output_asm_insn): When searching for the matching string
25203 for a given dialect, don't run past the end of the list of
25204 alternatives if there are fewer alternatives in the template than
25207 1999-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
25209 * gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org.
25210 Removed paragraph about compression of files and size limitation,
25211 duplicated in the FAQ. Use gcc-patches for posting patches.
25212 * gcc.c (main): Updated URL with bug reporting instructions to
25213 gcc.gnu.org. Removed e-mail address.
25214 * system.h (abort): Likewise.
25216 1999-07-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25218 * Makefile.in (stmp-multilib-sub): Make the files extracted
25219 from $(LIBGCC1) writable.
25221 Sat Jul 17 14:25:46 1999 Nick Clifton <nickc@cygnus.com>
25223 * config/arm/aout.h: Reformat for improved readability.
25225 * config/arm/arm.h: Reformat for improved readability.
25226 Replace uses of fprintf with asm_fprintf where appropriate.
25227 (ARM_DECLARE_FUNCTION_NAME): New macro: Perform any generic ARM
25228 function declaration assembler actions.
25229 (NUM_INTS): New macro: Convert from bytes to words.
25230 (NUM_REGS): New macro: Compute number of registers required to
25231 hold a quanitity of tyep MODE.
25232 (NUM_REGS2): New macro: Like NUM_REGS but also copes with BLKmode
25234 (NUM_ARG_REGS): New macro: The number of argument registers
25236 (ARG_REGISTER): New macro: Compute the register number of the Nth
25238 (LAST_ARG_REGNUM): New macro: The number of the last argument
25240 (SP_REGNUM): New macro: Register number of the stack pointer.
25241 (FP_REGNUM): New macro: Register number of the frame pointer.
25242 (FUNCTION_ARG, FUNCTION_ARG_PARTIAL_NREGS, INIT_CUMULATIVE_AGS,
25243 FUNCTION_ARG_ADVANCE, SETUP_INCOMING_VARARGS): Change
25244 CUMULATIVE_ARGS so that it counts registers not bytes.
25246 * config/arm/arm.c: Rename TARGET_THUMB_INTERWORK to
25248 Replace uses of fprintf with asm_fprintf where appropriate.
25249 (output_ascii_pseudo_op): Replace with version from thumb.c
25251 * config/arm/coff.h (ASM_FILE_START): Emit ASM_APP_OFF.
25253 * config/arm/elf.h (CPP_PREDEFINES): Replace with
25254 SUBTARGET_CPP_SPEC.
25255 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
25256 (ASM_FILE_START): Emit ASM_APP_OFF.
25258 Fri Jul 16 13:48:09 1999 Jeffrey A Law (law@cygnus.com)
25260 * pa.c (compute_frame_size): Round frame according to
25261 STACK_BOUNDARY rather than a hardwired value.
25263 * pa.h (POINTER_SIZE, PARM_BOUNDARY): Define in terms of BITS_PER_WORD.
25265 * configure.in (hppa*-*-hpux11*): Use symbolic MASK_PA_11 instead
25267 * configure: Rebuilt.
25269 * configure.in (hppa*-*-linux*): New configuration.
25270 * configure: Rebuilt.
25271 * pa.h (MAX_OFILE_ALIGNMENT): Delete.
25272 * pa/som.h (MAX_OFILE_ALIGNMENT): Define.
25273 * pa/pa-linux.h: New file.
25274 * pa/t-linux: New file.
25275 * pa/xm-linux.h: New file.
25277 * pa.c (hppa_legitimize_address): Change references from SImode to
25278 either Pmode or word_mode as appropriate.
25279 (emit_move_sequence, store_reg, load_reg): Likewise.
25280 (set_reg_plus_d, hppa_expand_prologue): Likewise.
25281 (output_mul_insn): Likewise.
25282 * pa.h (PROMOTE_MODE): Likewise.
25283 (INITIALZE_TRAMPOLINE): Likewise.
25284 (Pmode): Define to word_mode.
25286 * pa.c (compute_frame_size): Use UNITS_PER_WORD instead of hardwired
25287 value of 4. Allocate 8 bytes for each FP register save.
25288 (hppa_expand_epilogue): Use UNITS_PER_WORD instead of harwarewired
25290 (hppa_expand_prologue): Likewise.
25291 * pa.h (PROMOTE_MODE): Likewise.
25292 (HARD_REGNO_MODE_OK, FUNCTION_ARG_SIZE): Likewise.
25293 (FUNCTION_ARG_BOUNDARY): Likewise.
25295 * invoke.texi (HPPA Options): Remove -mspace/-mno-space.
25297 * pa.c (out_of_line_prologue_epilogue): Delete.
25298 (override_options): Remove -mspace related code.
25299 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
25300 (compute_frame_size): Only allocate space for register that
25301 actually need to be saved.
25302 * pa.h (MASK_SPACE, TARGET_SPACE): Delete.
25303 (TARGET_SWITCHES): Remove -mspace, -mno-space
25304 * pa/t-pa (LIB2FUNCS_EXTRA): Remove ee.asm and ee_fp.asm
25305 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise. Remove -mspace multilib.
25306 * pa/ee.asm, pa/ee_fp.asm: Delete.
25308 * pa/elf.h (ASM_OUTPUT_DOUBLE_INT): Define.
25310 * config/svr4.h (CONST_SECTION_ASM_OP): Do not emit assembler
25311 directive in column zero.
25313 Fri Jul 16 01:39:57 1999 Jeffrey A Law (law@cygnus.com)
25315 * m68k.c (output_function_prologue): Fix computation of save mask
25316 when generating PIC code.
25318 Thu Jul 15 15:40:09 1999 Jim Wilson <wilson@cygnus.com>
25320 * tree.c (build_type_attribute_variant): Move current_obstack restore
25321 after build_qualified_type call.
25323 1999-07-15 Mark Mitchell <mark@codesourcery.com>
25325 * configure.in: Use t-iris6, even with GNU LD.
25326 * config/mips/iris6gld.h: Fix typo in linker spec.
25327 * config/mips/t-iris6gld: Remove.
25329 Thu Jul 15 15:15:43 1999 David Edelsohn <edelsohn@gnu.org>
25331 * rs6000.md (insv, extzv): Remove SImode dependence in named
25332 patterns. Explicitly generate DImode RTL if PowerPC64 and
25334 (insvdi): Reverse start and size in instruction template.
25336 1999-07-12 Joseph S. Myers <jsm28@cam.ac.uk>
25338 * invoke.texi: Typo fixes.
25340 Wed Jul 14 23:28:06 1999 Jeffrey A Law (law@cygnus.com)
25342 * emit-rtl.c (gen_realpart): Issue an error for cases GCC can not
25343 handle at this time instead of silently generating incorrect code.
25344 (gen_imagpart): Likewise.
25346 * reload.c (find_reloads): Emit a USE for a pseudo register without
25347 a hard register if we could not create an optional reload for the
25350 Wed Jul 14 23:45:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25352 * c-typeck.c (output_init_element, process_init_element):
25353 When advancing constructor_unfilled_fields for a RECORD_TYPE,
25354 check for nameless bit fields.
25356 Wed Jul 14 01:57:39 1999 Richard Henderson <rth@cygnus.com>
25358 * regclass.c (scan_one_insn): Notice subregs that change the
25359 size of their operand.
25360 (record_reg_classes): Use that to obey CLASS_CANNOT_CHANGE_SIZE.
25362 Wed Jul 14 01:41:42 1999 Jeffrey A Law (law@cygnus.com)
25364 * configure.in (alpha*-*-*): Include alpha/t-ieee.
25365 * configure: Rebuilt.
25366 * alpha/t-ieee: New file.
25368 Tue Jul 13 10:45:58 1999 Jeffrey A Law (law@cygnus.com)
25370 * rs6000.c (find_addr_reg): Do not select r0 as an address
25373 Tue Jul 13 00:46:18 1999 Philippe De Muyter <phdm@macqel.be>
25375 * m68k/x-mot3300 (XCFLAGS): List of big files now includes `cse.o'.
25377 Mon Jul 12 14:29:15 1999 Jeffrey A Law (law@cygnus.com)
25379 * rs6000.md (movsf): Do not force easy FP constants into memory.
25381 * expr.c (expand_expr, case PLUS_EXPR): Pass constants through
25382 immed_double_const to ensure they are properly truncated then
25385 Mon Jul 12 10:40:01 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
25387 * config/arm/thumb.c (thumb_reorg): Call replace_symbols_in_block
25388 always unless NO_DEBUG is used. Compile this code
25390 (replace_symbols_in_block): Compile it unconditionally.
25392 Sun Jul 11 12:32:32 1999 Jeffrey A Law (law@cygnus.com)
25394 * configure.in (i?86-*-elf*): New target.
25395 * configure: Rebuilt.
25396 * i386/i386elf.h, i386/t-i386elf: New files.
25398 Fri Jul 9 22:39:44 1999 Jason Merrill <jason@yorick.cygnus.com>
25400 * toplev.c (main): Don't complain about saying -gdwarf.
25401 (rest_of_compilation): Remove redundant code.
25403 Fri Jul 9 19:08:55 1999 Jim Wilson <wilson@cygnus.com>
25405 * unroll.c (unroll_loops): Don't delete named CODE_LABELs.
25407 Fri Jul 9 18:54:18 1999 Felix Lee <flee@cygnus.com>
25409 * config/i960/i960.c (ret_label): Change asm label from "LR:" to
25410 "Li960R:", to avoid name clash.
25412 Fri Jul 9 10:48:28 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25414 * loop.c (check_dbra_loop): When reversing a loop, delete all
25415 REG_EQUAL notes referencing the reversed biv except those which are
25416 for a giv based on it.
25418 Fri Jul 9 03:51:52 1999 Jeffrey A Law (law@cygnus.com)
25420 * version.c: Drop "gcc-" prefix from version #.
25422 Thu Jul 8 18:06:30 1999 Jason Merrill <jason@yorick.cygnus.com>
25424 * dwarf2out.c (dwarf2out_line): Emit a line number comment after
25425 the label if we're being verbose.
25427 Thu Jul 8 14:18:46 1999 Richard Henderson <rth@cygnus.com>
25429 * m68k.c (output_function_prologue): Add pic register to mask
25430 if live and flag_pic.
25431 (output_function_epilogue): Likewise.
25433 Thu Jul 8 12:55:12 1999 Jeffrey A Law (law@cygnus.com)
25435 * dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Do not put assembler
25436 directives in column zero.
25438 * pa/elf.h (ASM_FILE_START): Define.
25439 * pa/som.h (ASM_FILE_START): Include .level directives.
25440 * pa/hpux10.h (ASM_FILE_START): Delete.
25441 * pa/hpux11.h (ASM_FILE_START): Delete.
25443 * pa/elf.h (BSS_SECTION_ASM_OP): Use .section .bss.
25445 Thu Jul 8 18:03:19 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25447 * reload1.c (choose_reload_regs): Never call remove_adress_replacements
25448 when reload_out equals reload_in.
25450 Thu Jul 8 16:50:14 1999 Nick Clifton <nickc@cygnus.com>
25452 * invoke.texi (Spec Files): New node: Describe the contents of
25455 Thu Jul 8 10:28:25 1999 Craig Burley <craig@jcb-sc.com>
25457 * invoke.texi (DEC Alpha Options): Put @end table at
25458 beginning of line, to avoid confusing texi2html.
25460 Thu Jul 8 09:22:06 1999 Nick Clifton <nickc@cygnus.com>
25462 * config/arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Fixed typo
25463 introduced in previous delta.
25465 Wed Jul 7 02:00:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25467 * reload1.c (gen_reload): When synthesizing a 3 operand add
25468 sequence, improve test for when to reload OP1 into the reload
25469 register instead of OP0.
25471 Wed Jul 7 01:38:03 1999 Jim Wilson <wilson@cygnus.com>
25473 * unroll.c (unroll_loop): Don't delete NOTE_INSN_DELETED_LABEL notes.
25475 1999-07-07 Manfred Hollstein <mhollstein@cygnus.com>
25477 * m88k/dguxbcs.h (CPP_SPEC): Add missing \ in multi-line
25480 Wed Jul 7 01:16:43 1999 Richard Henderson <rth@cygnus.com>
25482 * ginclude/varargs.h (__builtin_va_alist_t): New typedef.
25483 (va_dcl): Use __builtin_va_alist_t.
25485 Wed Jul 7 01:14:42 1999 Jason Merrill <jason@yorick.cygnus.com>
25487 * dwarf2out.c (gen_struct_or_union_type_die): Only remember types
25488 on the permanent_obstack.
25489 * dwarfout.c (output_type): Likewise.
25491 Tue Jul 6 15:25:32 1999 Gavin Romig-Koch <gavin@cygnus.com>
25493 * c-common.c (unsigned_type,signed_type,signed_or_unsigned_type) :
25494 Merged from c-typeck.c and cp/typeck.c.
25495 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
25496 Merged into c-common.
25498 Tue Jul 6 13:06:01 1999 Dave Brolley <brolley@cygnus.com>
25500 * c-lex.c (errorcount): Declare it.
25501 (finish_parse): Update errorcount when using CPPLIB.
25503 1999-07-06 Bruce Korb <ddsinc09@ix.netcom.com>
25505 * fixinc/inclhack.def(end_else_label): Double the backslash so
25506 sed gets a chance to see it.
25507 * fixinc/inclhack.sh: regen
25508 * fixinc/fixincl.x: regen
25510 Fri Jul 2 18:49:51 1999 Nick Clifton <nickc@cygnus.com>
25512 Add framework to support armv5 architecture when it becomes
25515 * config/arm/arm.c (FL_ARCH5): New processor capability flag.
25516 (arm_arch5): New variable.
25517 (all_architectures): Add armv5 line.
25518 * config/arm/arm.h (CPP_CPU_ARCH_SPEC): Define __ARM_ARCH_5__ if
25519 -march=armv5 is specified on the command line.
25520 (arm_arch5): Export this variable.
25521 * invoke.texi: Document new string accepted by -march= switch for
25524 * config/arm/arm.h: Replace use of constant 12 as a register
25525 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
25526 * config/arm/arm.c: Replace use of constant 12 as a register
25527 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
25529 * config/arm/elf.h: Tidy up.
25530 * config/arm/coff.h: Tidy up.
25532 Thu Jul 1 19:08:13 1999 Mark P. Mitchell <mark@codesourcery.com>
25534 * gcc/configure.in (mips-sgi-irix6*): Handle --with-gnu-ld.
25535 * gcc/config/mips/t-iris6gld: New file.
25536 * gcc/config/mips/iris6gld.h: Likewise.
25538 Fri Jul 2 13:23:39 1999 Gavin Romig-Koch <gavin@cygnus.com>
25540 * c-decl.c (widest_integer_literal_type_node,
25541 widest_unsigned_literal_type) : New.
25542 (init_decl_processing): Handle/use the two new types.
25543 * c-common.c (type_for_size,type_for_mode) : Same.
25544 * c-lex.c (yylex) : Same.
25545 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
25547 * c-tree.h (widest_integer_literal_type_node,
25548 widest_unsigned_literal_type) : New.
25550 Fri Jul 2 03:05:44 1999 Jeffrey A Law (law@cygnus.com)
25552 * dwarfout.c (field_byte_offset): Correctly compute the object's
25553 byte offset for the first bit of a field which crosses an alignment
25554 boundary on a !BYTES_BIG_ENDIAN target.
25556 Fri Jul 2 01:36:36 1999 Robert Lipe <robertlipe@usa.net>
25558 * fixinc.svr4: Fix <arpa/inet.h> by deleting protos for htons and
25561 Fri Jul 2 00:46:47 1999 Richard Henderson <rth@cygnus.com>
25562 Jeff Law <law@cygnus.com>
25564 * ginclude/varargs.h (va_dcl): Use word_mode for type of
25567 * except.c: Include intl.h.
25568 (expand_eh_return): Set current_function_cannot_inline.
25569 (save_eh_status, restore_eh_status): Twiddle eh_return_stub_label.
25570 * function.h (struct function): Add eh_return_stub_label.
25571 * flow.c (delete_unreachable_blocks): Don't merge across EH edges.
25572 * Makefile.in (except.o): Depend on intl.h.
25574 Fri Jul 2 00:04:23 1999 David Edelsohn <edelsohn@gnu.org>
25576 * rs6000.md (movdf_hardfloat32): Handle PRE_INC and PRE_DEC the
25577 same as offsettable in cases 1 and 2.
25579 Thu Jul 1 20:54:10 1999 Richard Henderson <rth@cygnus.com>
25581 * alpha.md (extqh): Define as 64-((R&7)*8) instead of 56-(((R-1)&7)*8).
25582 (extlh, extwh): Likewise.
25584 Thu Jul 1 11:05:25 1999 Gavin Romig-Koch <gavin@cygnus.com>
25586 * c-lex.c (yylex): Improve 'integer constant out of range' messages.
25588 Wed Jun 30 16:51:41 1999 Nick Clifton <nickc@cygnus.com>
25590 * configure.in: Add arm-pe and thumb-pe targets.
25591 * configure: Regenerate.
25593 * thumb.c (arm_naked_function_p): New function: Determines if
25594 a function is naked (has no gcc generated prologue/epilogue).
25595 (is_called_in_ARM_mode): Return true if the func has the
25596 interfacearm attribute.
25597 (output_return): Do not generate a return for naked functions.
25598 (thumb_function_prologue): Do not generate a prologue for
25600 (thumb_expand_prologue): Do not generate a prologue for naked
25602 (thumb_expand_epilogue): Do not generate an epilogue for naked
25604 (arm_valid_machine_decl_attribute): New function, copied from
25605 arm.c: Permit naked and interfacearm attributes.
25607 * config/arm/pe.c: New file: Support code for arm-pe target.
25608 * config/arm/pe.h: New file: Header file for arm-pe target.
25609 * config/arm/tpe.h: New file: Header file for thumb-pe target.
25610 * config/arm/t-thumb-pe: New file: Makefile fragment for
25613 1999-07-01 Mark Kettenis <kettenis@gnu.org>
25615 * config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if
25616 -fPIC or -fpic is specified.
25618 Wed Jun 30 03:31:54 1999 Jeffrey A Law (law@cygnus.com)
25620 * expr.c (emit_block_move): Use copy_to_mode_reg for
25621 !TARGET_MEM_FUNCTIONS case too.
25623 * configure.in (hppa*-*-*): Add som.h or elf.h to tm_file as
25625 * configure: Rebuilt.
25626 (hppa1.1-*-pro*, hppa1.1-*-rtems*): Define target_cpu_default.
25627 * pa.h: Include dbxelf.h. Delete various dbx/stabs related
25628 definitions made redundant by dbxelf.h inclusion. Delete
25629 lots of definitions related to assembly output that are
25630 specific to the SOM object format.
25631 * pa.c (output_function_prologue): Do not emit the function's
25633 * pa-pro-end.h (STARTFILE_SPEC): Undefine before redefining.
25634 * pa-pro.h: Deleted.
25635 * som.h: New file with SOM specific definitions.
25636 * elf.h: New file with ELF specific definitions.
25638 * elfos.h (const_section): Output a tab before assembler directives.
25639 (ctors_section, dtors_section): Likewise.
25640 (ASM_OUTPUT_SECTION_NAME): Likewise.
25642 * pa/pa1.h: Delete unused file.
25644 Tue Jun 29 01:37:53 1999 Jeffrey A Law (law@cygnus.com)
25646 * configure.in (hppa*-hp-hpux11*): New configuration.
25647 * configure: Rebuilt.
25648 * pa/pa-hpux11.h: New file.
25649 * pa.h (CPP_SPEC): Conditionally add -D__STDC_EXT__ to the cpp
25652 * mips.md (leasi, leadi): New patterns.
25654 * expr.c (emit_block_move): Properly handle case where one of the
25655 block move arguments has a queued increment or decrement.
25656 (clear_storage): Similarly. Fix formatting goof.
25658 1999-06-28 "David O'Brien" <obrien@NUXI.com>
25660 * fixinc/inclhack.def(stdio_va_list): This patch Removes a
25661 semicolon from the BSD VA_LIST replacement expression.
25663 * fixinc/inclhack.sh: regen
25664 * fixinc/fixincl.x: regen
25666 * fixinc/mkfixinc.sh: Have `i[34567]86-*-freebsd*' machines
25667 now use the fixincl program.
25669 Mon Jun 28 05:28:12 1999 Jeffrey A Law (law@cygnus.com)
25671 * m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA
25672 case. Also make the PIC register call_used.
25674 * m68k.h (FINALIZE_PIC): Delete.
25675 * m68k.c (finalize_pic): Delete.
25677 Mon Jun 28 05:16:35 1999 Richard Henderson <rth@cygnus.com>
25679 * m68k.h (PREFERRED_RELOAD_CLASS): Don't force any FP const_doubles
25682 Mon Jun 28 04:07:27 1999 David Edelsohn <edelsohn@gnu.org>
25684 * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.
25686 Sun Jun 27 02:39:08 1999 Richard Henderson <rth@cygnus.com>
25688 * jump.c (jump_optimize_1): Validate the cmov copy to a temporary.
25690 Sat Jun 26 17:18:18 1999 David Edelsohn <edelsohn@gnu.org>
25692 * rs6000.c (print_operand, case 'L'): Use plus_constant_for_output.
25694 Fri Jun 25 11:33:24 1999 Richard Henderson <rth@cygnus.com>
25696 * alpha.c (override_options): Add -mcpu=ev45 as an alias for ev4.
25698 Fri Jun 25 13:41:25 1999 David Edelsohn <edelsohn@gnu.org>
25700 * rs6000.c (output_toc): Always use hex values for floating-point
25701 constants. Store single-precision values in upper-half of TOC
25702 entry in 64-bit mode.
25703 * rs6000.md (floatsidf2, floatunssidf2): Add !TARGET_POWERPC64
25704 to final constraints.
25705 (fix_truncdfsi2 splitter): Change pattern matching fctiwz.
25706 (fctiwz): Improve accuracy of RTL for pattern.
25708 Fri Jun 25 11:26:38 1999 Gavin Romig-Koch <gavin@cygnus.com>
25710 * expr.c (expand_expr): Allow RTL_EXPR's through the
25711 MAX_INTEGER_COMPUTATION_MODE checks.
25713 Fri Jun 25 06:06:37 1999 Richard Henderson <rth@cygnus.com>
25715 * alpha.h (MASK_SUPPORT_ARCH, MASK_CPU_EV5, MASK_CPU_EV6): Define
25716 such that MASK_SUPPORT_ARCH is not negative.
25718 Fri Jun 25 05:35:44 1999 Jeffrey A Law (law@cygnus.com)
25720 * loop.c (verify_dominator): Properly handle ADDR_VEC and
25721 ADDR_DIFF_VEC insns that appear inside loops.
25723 Thu Jun 24 22:54:05 1999 David Edelsohn <edelsohn@gnu.org>
25724 Jeff Law <law@cygnus.com>
25726 * rs6000.md (movdf_hardfloat32): Revert previous patch.
25727 Handle LO_SUM the same as offsettable in cases 1 and 2.
25728 * rs6000.c (find_addr_reg): Revert previous patch.
25730 Thu Jun 24 22:43:12 1999 Philippe De Muyter <phdm@macqel.be>
25732 * system.h (strstr): New external function declaration.
25733 * acconfig.h (NEED_DECLARATION_STRSTR): New define slot.
25734 * configure.in (GCC_NEED_DECLARATIONS): Check for strstr.
25735 * config.in, configure: Rebuilt.
25737 1999-06-24 Tom Tromey <tromey@cygnus.com>
25739 * gcc.c (main): Read user-specified specs files after computing
25740 additional startfile_prefixes.
25742 Thu Jun 24 15:00:47 1999 Mark Mitchell <mark@codesourcery.com>
25744 Revert these two patches:
25746 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25747 * loop.c (strength_reduce): When doing biv->giv conversion, update
25748 reg note of NEXT->insn.
25750 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25751 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
25753 (recombine_givs): Set ix field after sorting.
25755 Wed Jun 23 21:26:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25757 * rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
25758 for the parts of an UNSPEC / UNSPEC_VOLATILE.
25760 1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com>
25762 *fixinc/inclhack.def: Add fix development commentary
25763 (read_ret_type): reactivate and add selection clause
25764 (zzz_*): tweak output file name to match what is used in hackshell.tpl
25765 *fixinc/{fixincl.x|inclhack.sh}: regen
25767 Wed Jun 23 00:48:21 1999 Jason Merrill <jason@yorick.cygnus.com>
25769 * expr.c (expand_expr): STRIP_NOPS before checking against
25770 MAX_INTEGER_COMPUTATION_MODE
25771 (check_max_integer_computation_mode): Likewise.
25773 Tue Jun 22 20:23:43 1999 Jim Wilson <wilson@cygnus.com>
25775 * md.texi (smul@var{m}3_highpart): Add missing 's' prefix.
25777 1999-06-22 Jim Wilson <wilson@cygnus.com>
25779 * expr.c (store_expr): When target is a promoted subreg, return a
25780 promoted subreg as a result.
25782 Tue Jun 22 17:14:58 1999 Michael Meissner <meissner@cygnus.com>
25784 * dwarf2out.c (dwarf2out_frame_debug_expr): Reformat to match GNU
25786 (dwarf2out_define): Mark unused parameters appropriately.
25787 (gen_unspecified_parameters_die): Ditto.
25788 (gen_subprogram_die): Fix signed/unsigned warnings.
25789 (gen_variable_die): Ditto.
25791 1999-06-22 Bruce Korb <ddsinc09@ix.netcom.com>
25793 * fixinc/inclhack.def(end_else_label): combined else_label
25794 and endif_label and fixed the sed expression.
25795 *fixinc/{fixincl.x|inclhack.sh}: regen
25797 Tue Jun 22 01:58:18 1999 Jeffrey A Law (law@cygnus.com)
25799 * rs6000.md (movdf_hardfloat32): Use %X instead of always emitting
25800 'x' when handling non-offsettable addresses
25802 Tue Jun 22 00:20:05 1999 Richard Earnshaw (rearnsha@arm.com)
25804 * final.c (shorten_branches): Don't try to split an insn that has
25807 Mon Jun 21 12:47:39 1999 Mark Mitchell <mark@codesourcery.com>
25809 * config/mips/mips.c (symbolic_expression_p): New function.
25810 (mips_select_rtx_section): Put symbolic expressions in the
25811 data section, not the read-only data section.
25813 Mon Jun 21 22:13:06 1999 Jeffrey A Law (law@cygnus.com)
25815 * rs6000.md (find_addr_reg): Handle LO_SUM addresses.
25817 Mon Jun 21 20:10:42 1999 Richard Henderson <rth@cygnus.com>
25819 * collect2.c (main): Log frame table count.
25820 (GCC_OK_SYMBOL) [ECOFF]: Accept stGlobal.
25821 (scan_prog_file) [COFF]: Handle frame tables.
25823 * alpha/alpha.h (UNALIGNED_SHORT_ASM_OP): Define.
25824 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Define.
25825 * alpha/elf.h: Undef them again.
25826 * alpha/vms.h: Remove their definitions.
25828 Tue Jun 22 03:17:53 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25830 * sh.c (machine_dependent_reorg): When fixing up fp pcloads,
25831 remove the clobber of r0 and change the REG_UNUSED note to
25834 1999-06-21 Jakub Jelinek <jj@ultra.linux.cz>
25836 * real.c (ereal_from_double): Fix for 64-bit big endian hosts.
25837 * emit-rtl.c (gen_lowpart_common): Add case for hosts where double
25838 fits in HOST_WIDE_INT and one uses union to access a long constant
25841 Mon Jun 21 17:18:25 1999 Richard Henderson <rth@cygnus.com>
25843 * sparc.c (sparc_override_options): Don't allow profiling for
25844 code models other than medlow.
25845 (sparc_function_profiler): New function from old FUNCTION_PROFILER
25846 macro. Use ASM_GENERATE_INTERNAL_LABEL and MCOUNT_FUNCTION.
25847 (sparc_function_block_profiler): Likewise. Use user_label_prefix.
25848 (sparc_block_profiler): Likewise.
25849 (sparc_function_block_profiler_exit): Likewise.
25850 * sparc.h (FUNCTION_PROFILER): Call new sparc.c function.
25851 (FUNCTION_BLOCK_PROFILER): Likewise.
25852 (BLOCK_PROFILER): Likewise.
25853 (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
25854 (MCOUNT_FUNCTION): New.
25855 * sparc/pbd.h (FUNCTION_PROFILER): Delete.
25856 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Delete.
25857 * sparc/sun4o3.h (FUNCTION_PROFILER): Delete.
25858 (MCOUNT_FUNCTION): New.
25859 * sparc/sysv4.h (FUNCTION_BLOCK_PROFILER): Delete.
25860 (BLOCK_PROFILER): Delete.
25861 (MCOUNT_FUNCTION): New.
25863 Mon Jun 21 14:11:29 1999 David Edelsohn <edelsohn@gnu.org>
25865 * rs6000.md (movdf_hardfloat32): Fix typo in case 2.
25867 Mon Jun 21 12:27:17 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
25869 * config/mips/elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25872 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25875 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25878 * config/arm/telf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25881 Mon Jun 21 14:58:42 1999 Nick Clifton <nickc@cygnus.com>
25883 * config/arm/arm.h: Add cpp support for ARM920 and ARM920T cpu
25886 Mon Jun 21 06:22:21 1999 Mark Elbrecht <snowball3@bigfoot.com>
25888 * i386/djgpp.h (LIB_SPEC): New.
25889 (STARTFILE_SPEC): New.
25891 * i386/xm-djgpp.h (NO_SYS_SIGLIST): Deleted. Now obsolete.
25893 Mon Jun 21 06:19:33 1999 Philippe De Muyter <phdm@macqel.be>
25895 * fixinc/Makefile.in (gnu-regex.o): Do not define STDC_HEADERS in
25898 * system.h (WSTOPSIG): New macro.
25900 Mon Jun 21 05:33:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
25902 * c-pragma.c (push_alignment): Don't ignore alignments greater than
25904 (insert_pack_attributes): Take into account member natural
25907 * i386/winnt.c (exports_head): New static variable.
25908 (i386_pe_record_exported_symbol): New function.
25909 (i386_pe_asm_file_end): Use.
25910 * i386/cygwin.h (ASM_OUTPUT_COMMON): Record the exported
25911 symbols to be emitted at end of assembly.
25912 (ASM_DECLARE_OBJECT_NAME): Likewise.
25913 (ASM_DECLARE_FUNCTION_NAME): Likewise.
25915 * i386/uwin.h (CPP_SPEC): Use -idirafter instead -iprefix and
25918 Mon Jun 21 04:44:31 1999 Jeffrey A Law (law@cygnus.com)
25920 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Fix paren error introduced
25923 Sun Jun 20 17:27:20 1999 Richard Henderson <rth@cygnus.com>
25925 * haifa-sched.c (sched_analyze_1): Use free_list instead of
25926 zapping reg_last_uses directly.
25927 (sched_analyze_2, sched_analyze_insn): Likewise.
25928 (sched_analyze): Likewise. Don't clear reg_last_uses on calls.
25930 Sun Jun 20 16:57:29 1999 David Edelsohn <edelsohn@gnu.org>
25932 * rs6000.md (movdf_hardfloat32): Use worst case insn length
25933 attributes for cases 1 and 2.
25935 Sat Jun 19 22:52:55 1999 Richard Henderson <rth@cygnus.com>
25937 * haifa-sched.c (sched_analyze): Mark call-user regs as clobbered
25940 Sat Jun 19 05:40:07 1999 Philip Blundell <pb@nexus.co.uk>
25942 * arm.c (arm_reload_in_hi): Invert sense of test on BYTES_BIG_ENDIAN.
25944 Sat Jun 19 05:25:05 1999 Richard Earnshaw (rearnsha@arm.com)
25946 * arm.h (CONDITIONAL_REGISTER_USAGE): If flag_pic, never use
25947 PIC_OFFSET_TABLE_REGNUM for general alloaction.
25948 (INITIAL_ELIMINATION_OFFSET): Count the fact that the PIC register
25949 must be stacked if it is used for PIC accesses.
25950 * arm.c (use_return_insn): Handle PIC register specially.
25951 (output_return_instruction): Likewise.
25952 (output_func_{prologue,epilogue}): Likewise.
25953 (output_expand_prologue): Likewise.
25955 * arm.md (*adddf_esfdf_df): Renamed from *adddf_df_esfdf.
25956 (*strsi_predec): Renamed from *strqi_predec.
25957 (*loadsi_shiftpreinc): Renamed from *loadqi_shiftpreinc.
25958 (*loadsi_shiftpredec): Renamed from *loadqi_shiftpredec.
25960 * arm.c (arm_override_options): Remove warning about PIC code
25961 not being supported.
25963 Fri Jun 18 23:47:06 1999 David Edelsohn <edelsohn@gnu.org>
25965 * rs6000.c (find_addr_reg): New function.
25966 * rs6000.h (find_addr_reg): Declare.
25967 (offsettable_addr_operand): Delete.
25968 * rs6000.md (movdf_hardfloat32): Handle non-offsettable loads
25969 from and stores to GPRs.
25971 Fri Jun 18 15:44:18 1999 Richard Henderson <rth@cygnus.com>
25973 * alpha.c (alpha_expand_block_move): Use get_insns rather than
25974 gen_sequence as argument to emit_no_conflict_block.
25976 Fri Jun 18 07:02 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25978 * fixinc/mkfixinc.sh: enable the fixincl program for DG/UX
25979 * fixinc/inclhack.def(dgux_int_varargs): script must end with \n
25980 *fixinc/fixincl.x: regen
25981 *fixinc/inclhack.sh: regen
25983 Thu Jun 17 15:06:10 PDT 1999 Don Lindsay <dlindsay@cygnus.com>
25985 * added support for -mpcrel (PC relative addressing for m68k)
25986 based on code done by Michael Tiemann <tiemann@axon.cygnus.com>.
25987 * invoke.texi (m68000 options): Add documentation for -mpcrel flag.
25988 * m68k.c (print_operand_address): Handle 32-bit PIC case.
25989 (comments for general_src_operand): Add some explanation
25990 about EXTRA_CONSTRAINTS.
25991 (OVERRIDE_OPTIONS): Enable -fPIC in combination with -mpcrel.
25992 * m68kelf.h (OVERRIDE_OPTIONS): Ditto.
25993 (LEGITIMATE_PIC_OPERAND_P): Fix typo.
25994 (LEGITIMATE_PIC_OPERAND_P): Re-derive from m68k.h case.
25995 * m68k.h (LEGITIMATE_PIC_OPERAND_P): Fix delete-o.
25996 (INDIRECTABLE_1_ADDRESS): Delete spurious '/' at end of macro.
25997 (OVERRIDE_OPTIONS): Change behavior so that -mpcrel implies -fpic
25998 if not already set.
25999 (OVERRIDE_OPTIONS): Merge in changes from m68k.h.
26000 * m68k.h (TARGET_PCREL): New target flag.
26001 (TARGET_SWITCHES): Add "pcrel" as a recognized switch.
26002 (OVERRIDE_OPTIONS): Add checks for -mpcrel.
26003 (LEGITIMATE_PIC_OPERAND_P): Don't normally accept anything that
26004 contains a SYMBOL_REF. Relax this constraint during reload, since
26005 we want to use the predicates, not reload's built-in concept of a
26006 valid memory address, to control what insns need reloading.
26007 (EXTRA_CONSTRAINT): Define constraints to accept pc-relative
26008 operands (essentially 'g', 'm', and 's' under normal circumstances).
26009 * m68k.c (print_operand): Cause printing of pc-relative addresses
26010 to include pc register.
26011 (print_operand_address): Ditto.
26012 (general_src_operand): Accept operands that are not only
26013 general_operands, but are also valid when used as a pc-relative
26015 (nonimmediate_src_operand): Similar, for nonimmediate_operands.
26016 (memory_src_operand): Similar, for memory_operands.
26017 (pcrel_address): New predicate to accept the special case of a
26018 pc-relative address.
26019 * m68k.md (many patterns): Rewrite common SImode, HImode, and
26020 QImode insns to accept *_src_operand instead of *_operand where
26021 pc-relative operands can fit. For example, a pc-relative operand
26022 can be used as a memory source operand for addsi3, but not as a
26023 memory destination.
26024 * hp320.h linux.h m68kv4.h (LEGITIMATE_PIC_OPERAND_P) as in m68k.h.
26026 Fri Jun 18 09:11:07 1999 Nick Clifton <nickc@cygnus.com>
26028 * config/arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS): New Marco: USe
26029 .thumb_set pseudo op to mark aliases of thumb functions.
26031 Wed Jun 16 18:19:13 1999 Nick Clifton <nickc@cygnus.com>
26033 * varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in
26034 preference to ASM_OUTPUT_DEF, if it is defined.
26036 * tm.texi: Document new, optional target macro
26037 ASM_OUTPUT_DEF_FROM_DECLS.
26039 Thu Jun 17 15:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
26041 * fixincludes: ISCNTL patch
26042 * fixinc/inclhack.def (ioctl_fix_ctrl): Fix the definition of [_]*ISCTRL().
26043 (dgux_int_varargs): new for DG/UX
26044 * fixinc/{fixincl.x,inclhack.sh}: Regenerated.
26046 Thu Jun 17 21:34:24 1999 Jeff Law <law@cygnus.com>
26048 * invoke.texi (ia32 options): Fix typo.
26050 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26052 * loop.c (strength_reduce): When doing biv->giv conversion, update
26053 reg note of NEXT->insn.
26055 Thu Jun 17 14:25:08 1999 Jeffrey A Law (law@cygnus.com)
26057 * loop.c (move_movables): Note issues with replacing REGs with
26059 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Handle SUBREGs properly.
26061 Thu Jun 17 13:28:30 1999 David O'Brien <obrien@FreeBSD.org>
26063 * i386/freebsd-elf.h (LINK_SPEC): Fix typo.
26065 * i386/freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and
26066 the reference to `mcount' was not correct for the ELF on FreeBSD.
26068 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26070 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
26073 (recombine_givs): Set ix field after sorting.
26075 Thu Jun 17 02:54:30 1999 Jeffrey A Law (law@cygnus.com)
26077 * emit-rtl.c (operand_subword): Tighten checks for when it is safe
26078 to safe to extract a subword out of a REG.
26080 Thu Jun 17 01:45:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26082 * sh.md (mulsi3): Don't add a no-op move at the end.
26084 Wed Jun 16 20:29:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26086 * cse.c (cse_insn): Don't put hard register source into tables for
26087 the last insn of a libcall.
26089 Wed Jun 16 19:44:33 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26091 * loop.c (strength_reduce): Insert sets of derived givs at every
26092 biv increment, even if it's the only one.
26094 Wed Jun 16 10:33:02 1999 Jason Merrill <jason@yorick.cygnus.com>
26096 * dwarfout.c (add_incomplete_type): New fn.
26097 (output_type): Call it.
26098 (retry_incomplete_types): New fn.
26099 (dwarfout_finish): Call it.
26101 From Eric Raskin <ehr@listworks.com>:
26102 (output_type): Output types for bases.
26104 Tue Jun 15 12:51:23 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
26106 * mips.c (mips_output_conditional_branch): Add `break'
26107 between `default' label and `close braces'.
26109 Tue Jun 15 01:55:20 1999 David O'Brien <obrien@FreeBSD.org>
26111 * i386/freebsd-elf.h (LINK_SPEC): clean up the linking library
26112 specifications and make it realistic.
26113 (LIB_SPEC): Likewise.
26115 Mon Jun 14 15:38:43 1999 Jim Wilson <wilson@cygnus.com>
26117 * config/mips/mips.c (mips_secondary_reload_class): Check for
26118 (PLUS (SP) (REG)) and return appropriate register class.
26119 * config/mips/mips.md (reload_insi): Delete predicate for operand 1.
26120 Handle (PLUS (SP) (REG)).
26121 (tablejump): In mips16 code, use emit_insn instead of emit_jump_insn.
26122 (tablejump_mips161, tablejump_mips162): Use emit_jump_insn instead
26123 of emit_insn for tablejump.
26125 Mon Jun 14 17:26:40 1999 David Edelsohn <edelsohn@gnu.org>
26127 * rs6000.c (output_prolog): RS6000_CALL_GLUE must be
26128 asm_fprintf format string by itself.
26129 (output_function_profiler): Likewise.
26131 Mon Jun 14 12:57:38 1999 David Mosberger <davidm@hpl.hp.com>
26133 * combine.c (simplify_logical, case AND): Only call
26134 simplify_and_const_int if the mode is no wider than HOST_WIDE_INT
26135 or the constant is positive.
26137 Mon Jun 14 11:43:41 1999 Nick Clifton <nickc@cygnus.com>
26139 * configure.in: Fix typo in rs6000-ibm-aix4 case.
26140 * configure: Regenerate.
26142 Mon Jun 14 03:55:40 1999 Jeffrey A Law (law@cygnus.com)
26144 * configure.in (rs6000-ibm-aix4.3*, powerpc-ibm-aix4.3*): Do not
26145 require a sub-version #.
26146 * configure: Rebuilt.
26148 1999-06-14 Robert Lipe (robertlipe@usa.net)
26150 * svr4.h (DWARF2_DEBUGGING_INFO): Check for redefinition.
26152 Mon Jun 14 10:30:52 BST 1999 Nathan Sidwell <nathan@acm.org>
26154 * c-typeck.c (process_init_element): Detect excess elements in
26155 char array initializer.
26157 1999-06-14 Andreas Jaeger <aj@arthur.rhein-neckar.de>
26159 * gcc.texi: Mention gcc 2.96 instead of egcs 1.00.
26161 Sat Jun 12 22:29:48 EDT 1999 Jerry Quinn <jquinn@nortelnetworks.com>
26163 * invoke.texi (Option Summary): Add -fpermissive flag.
26165 Sat Jun 12 03:40:42 1999 Jeffrey A Law (law@cygnus.com)
26167 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Do nothing with operands
26168 that require PIC code sequences.
26170 Wed Jun 9 16:29:01 1999 Nick Clifton <nickc@cygnus.com>
26172 * configure.in: Add new target: thumb-elf.
26173 * configure: Regenerate.
26174 * config/arm/t-thumb-elf: New file: Makefile fragment for
26176 * config/arm/telf.h: New file: Header file for thumb-elf
26179 Fri Jun 11 03:17:51 1999 Jeffrey A Law (law@cygnus.com)
26181 * Makefile.in (libgcc2): Pass MAYBE_USE_COLLECT2 as an argument.
26182 * libgcc2.c (__CTOR_LIST, __DTOR_LIST); Do not provide
26183 initializers is some circumstances.
26185 * fixinc/inclhack.def (endif_label): Add additional selector for
26186 more bogus stuff after #endif statements.
26187 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
26189 Thu Jun 10 20:44:36 1999 Mumit Khan <khan@xraylith.wisc.edu>
26191 * i386/cygwin.h (SET_ASM_OP): Define.
26193 Thu Jun 10 20:37:57 1999 Mumit Khan <khan@xraylith.wisc.edu>
26195 * reg-stack.c (stack_reg_life_analysis): Find all the RETURN insns.
26197 Thu Jun 10 19:23:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26199 * sh.h (TARGET_HARWARD, TARGET_HARVARD): Changed the former to the
26202 * sh.md (ic_invalidate_line_i): Remove second alternative.
26204 Thu Jun 10 06:55 1999 Bruce Korb <ddsinc09@ix.netcom.com>
26206 *fixinc/inclhack.def(sun_auth_proto): We do not know how to
26207 test for the presence of valid prototypes. Delete bypass expr.
26208 (ioctl_fix_ctrl): Correct the selection expression.
26209 (no_double_slash): Correct quoting rules
26210 *fixinc/fixincl.x: regen
26211 *fixinc/inclhack.sh: regen
26213 Thu Jun 10 15:08:15 1999 Nick Clifton <nickc@cygnus.com>
26215 * config/arm/arm.c (struct all_cores): Add ARM920 and ARM920t.
26217 Wed Jun 9 15:57:57 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26219 * rs6000.md (movsi_got_internal_mem): Delete.
26220 * rs6000.h (CONDITIONAL_REGISTER_USAGE): Mark PIC_OFFSET_TABLE_REGNUM.
26221 (GOT_TOC_REGNUM): Delete.
26222 (PIC_OFFSET_TABLE_REGNUM): Define.
26223 (FINALIZE_PIC): Disable.
26224 * rs6000.c (rs6000_got_register): New code for fixed pic register.
26225 (rs6000_replace_regno): Delete.
26226 (rs6000_finalize_pic): Likewise.
26227 (output_prolog): Handle PIC_OFFSET_TABLE_REGNUM.
26229 Wed Jun 9 19:44:26 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26231 * loop.c (loop_insn_first_p): Don't compare LUIDs when P
26232 is a note; use <= for the compare; advance P while it is
26235 Wed Jun 9 13:12:24 1999 Jeffrey A Law (law@cygnus.com)
26237 * fixinc/inclhack.def (no_double_slash): Fix quoting for test.
26238 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh; Rebuilt.
26240 * varasm.c (remove_from_pending_weak_list): Verify t->name
26241 is non-NULL before passing it to strcmp.
26243 Wed Jun 9 06:50 1999 Bruce Korb <ddsinc09@ix.netcom.com>
26245 *fixinc/inclhack.def(sun_auth_proto): bypass the patch if
26246 the typed arguments are not part of a comment
26247 (ioctl_fix_ctrl): Added a purpose comment
26248 *fixinc/fixincl.x: regenerate
26249 *fixinc/inclhack.sh: regenerate
26251 Wed Jun 9 22:57:02 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
26253 * invoke.texi: Add C4x invocation docs.
26255 Wed Jun 9 22:34:38 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
26257 * config/c4x/c4x.h (TARGET_EXPOSE_LDP, LEGITIMIZE_RELOAD_ADDRESS):
26259 * config/c4x/c4x.c (c4x_emit_move_sequence, src_operand): Use
26261 (c4x_legitimize_reload_address): New function.
26262 * config/c4x/c4x.md: Update docs.
26264 Wed Jun 9 04:14:48 1999 Jeffrey A Law (law@cygnus.com)
26266 * fixincludes: Avoid removing '.'.
26267 * fixinc/fixinc.svr4: Likewise.
26268 * fixinc/fixinc.winnt: Likewise.
26269 * fixinc/inclhack.tpl: Likewise.
26270 * fixinc/fixincl.sh, fixinc/inclhack.sh: Rebuilt.
26272 1999-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26274 * fixinc/inclhack.def (sun_catmacro): Escape parens in the select
26276 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
26278 Wed Jun 9 03:10:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
26280 * c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
26283 Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
26285 * configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
26286 * configure: Regenerate.
26288 Tue Jun 8 05:47:48 1999 Richard Earnshaw (rearnsha@arm.com)
26290 * optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute
26293 Mon Jun 7 22:30:37 1999 Jeffrey A Law (law@cygnus.com)
26295 * fixinc/inclhack.def (avoid_bool): Also catch
26296 "typedef [unsigned] int bool".
26297 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
26299 * m68k/x-hp3bsd44: Delete obsolete and incorrect file.
26300 * configure.in (m68k-hp-bsd4.4): No longer use x-hp3bsd44.
26301 * configure: Rebuilt.
26303 Mon Jun 7 22:05:03 1999 Mark Kettenis <kettenis@gnu.org>
26305 * config/i386/gnu.h: Include <gnu.h> right after <i386/linux.h>,
26306 such that we can override its definitions if necessary.
26307 (CPP_SPEC): New define. Support processor specific predefines via
26309 (CC1_SPEC): New define. Support processor specific compiler
26310 options via %(cc1_cpu).
26311 (STARTFILE_SPEC): New define. Use crt0.o instead of crt1.o for
26314 1999-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26316 * fixinc/inclhack.def (math_gcc_ifndefs): Insert whitespace
26317 between sed's -e flag, and the open-quote following it.
26318 * fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
26320 Mon Jun 7 20:34:20 1999 Robert Lipe <robertlipe@usa.net>
26321 Jeffrey A Law (law@cygnus.com)
26323 * varasm.c (assemble_start_function): Remove the function
26324 from the pending weak decls list when we define a function.
26325 (assemble_variable): Similarly for variables.
26326 (weak_finish): Ignore items on the list with a NULL name.
26327 (remove_from_ending_weak_list); New function to "remove" an item
26328 from the pending weak declarations list.
26330 Mon Jun 7 19:27:07 1999 Jerry Quinn <jquinn@nortelnetworks.com>
26332 * pa.md (fmpyfadd, fmpynfadd, fnegabs): New patterns.
26334 Mon Jun 7 14:07:39 1999 Dave Brolley <brolley@cygnus.com>
26336 * c-lex.c (GETC): Redefine to call getch.
26337 (UNGETC): Redefine to call put_back.
26338 (putback_buffer): New structure type.
26339 (putback): New static structure.
26340 (getch): New function.
26341 (put_back): New function.
26342 (yylex): Replace unused bytes from bad multibyte character.
26344 Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com>
26346 * cpplib.c (do_define): Cast `alloca' return value.
26347 (do_include, do_undef, do_pragma): Likewise.
26348 * cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return
26350 * cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values.
26351 * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value.
26353 Sun Jun 6 11:58:34 1999 Jakub Jelinek <jj@ultra.linux.cz>
26355 * sparc.md (abstf2): This should be an expand.
26356 (split after abstf2_notv9): Fix mode.
26357 (abstf2_hq_v9): New pattern.
26358 (abstf2_v9): Only use when no hard quad.
26359 (absdf2_v9): Fix if target is not the same as source.
26360 (ashrsi3_extend, ashrsi3_extend2, lshrsi3_extend, lshrsi3_extend2):
26361 Add correct output constraints.
26363 Sat Jun 5 17:04:16 1999 Craig Burley <craig@jcb-sc.com>
26365 From Dave Love to egcs-patches on 20 May 1999 17:38:38 +0100:
26366 * invoke.texi: Clarify text vis-a-vis Intel CPUs.
26368 Sat Jun 5 12:11:24 1999 Mark Mitchell <mark@codesourcery.com>
26370 * mips.h (mips_output_conditional_branch): New function.
26371 (mips_adjust_insn_length): Likewise.
26372 (ASSEMBLER_SCRATCH_REGNUM): New macro.
26373 (ADJUST_INSN_LENGTH): Likewise.
26374 * mips.c (print_operand): Add `F' and `W' for floating-point
26375 comparison opcodes.
26376 (machine_dependent_reorg): Adjust MIPS16 code; instruction-lengths
26378 (mips_adjust_insn_length): New function.
26379 (mips_output_conditional_branch): New function.
26380 * mips.md (length): Adjust attribute definition to handle
26381 conditional branches. Change lengths to bytes, rather than
26382 instructions throughout. Remove length attribute from
26383 instructions whose length is four bytes, and rely on the default
26385 (dslot): Fix typo in comment.
26386 Reword conditional branch patterns to use
26387 mips_output_conditional_branch.
26389 Fri Jun 4 13:30:27 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26391 * alpha/osf.h (CPP_SUBTARGET_SPEC): Handle -threads.
26392 (LIB_SPEC): Likewise.
26393 Link with -lprof1_r for -g/-pg.
26395 1999-06-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
26397 * loop.c (check_dbra_loop): Fix change of Jan 19.
26399 Fri Jun 4 00:12:40 1999 Marc Espie <espie@cvs.openbsd.org>
26401 * freebsd-elf.h (SWITCH_TAKES_ARG): Redefine, not define.
26402 (STARTFILE_SPEC): Define, override the svr4.h version.
26403 (ENDFILE_SPEC): Likewise.
26405 Thu Jun 3 23:58:55 1999 Jeffrey A Law (law@cygnus.com)
26407 * fixinc/inclhack.def (limits_ifndefs): Also apply to sys/limits.h
26408 * fixinc/fixincl.x: Regenerated.
26409 * fixinc/inclhack.sh: Regenerated.
26411 Fri Jun 4 05:42:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26413 * sh.c (barrier_align): Don't return early for normal branch/barrier
26414 when optimizing for SH2.
26416 Thu Jun 3 22:27:50 1999 Robert Lipe <robertlipe@usa.net>
26418 * i386/udk.h (LINK_SPEC): Correct linker search path for
26421 Fri Jun 4 03:20:40 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26423 * sh.c (fixup_addr_diff_vecs): Emit braf reference label.
26424 (braf_label_ref_operand): Delete.
26425 * sh.h (PREDICATE_CODES): Remove braf_label_ref_operand.
26426 * sh.md (casesi_jump_2): Operand1 is now the inside of a
26427 label_ref, and has no predicate.
26428 The patten has a predicate to guard against invalid substitutions.
26429 (dummy_jump): Delete.
26430 (casesi): Update use of casesi_jump_2.
26432 Thu Jun 3 07:48 1999 Bruce Korb <ddsinc09@ix.netcom.com>
26434 *fixinc/inclhack.def(Io_Def_Quotes): corrected sed expression
26435 *fixinc/fixincl.x: regenerate
26436 *fixinc/inclhack.sh: regenerate
26438 Thu Jun 3 02:15:07 1999 Jason Merrill <jason@yorick.cygnus.com>
26440 * dwarf2out.c (add_incomplete_type): New fn.
26441 (gen_struct_or_union_type_die): Call it.
26442 (retry_incomplete_types): New fn.
26443 (dwarf2out_finish): Call it.
26445 Thu Jun 3 01:19:03 1999 Jeffrey A Law (law@cygnus.com)
26447 * gcse.c (insert_insn_end_bb): Correct placement of insns when the
26448 current block starts with a CODE_LABEL and ends with a CALL and
26449 we can not find all the argument setup instructions for the CALL.
26451 Wed Jun 2 15:44:15 1999 Mark Mitchell <mark@codesourcery.com>
26453 Revert this change:
26454 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
26455 something is a candidate for optimize_bit_field_compare.
26457 Wed Jun 2 21:53:05 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26459 * sh.h (CONST_OK_FOR_I, CONST_OK_FOR_L): Cast VALUE to HOST_WIDE_INT.
26461 Wed Jun 2 12:25:55 1999 Richard Henderson <rth@cygnus.com>
26463 * alpha.c (override_options): Thinko in last patch.
26465 * alpha/osf.h (CPP_SUBTARGET_SPEC): Define.
26466 (LIB_SPEC): Recognize -pthread.
26468 Wed Jun 2 08:42:55 1999 Nick Clifton <nickc@cygnus.com>
26470 * config/arm/tcoff.h (USER_LABEL_PREFIX): Synchronise with
26471 definition in config/arm/coff.h
26472 * config/arm/coff.h: Add comment about USER_LABEL_PREFIX.
26474 Wed Jun 2 07:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
26476 * fixinc/fixincl.c(global def): Add FD_SHELL_SCRIPT to mark
26477 fixes that need "file=xxx\n" prepended before invocation
26478 (start_fixer - new): starting the fixer process is complex enough
26479 to warrent its own routine. It prepends the "file=xxx\n" stuff.
26480 (process): uses the new routine; omit usage of putenv()
26481 * fixinc/fixincl.tpl: mark shell scripts with FD_SHELL_SCRIPT
26482 * fixinc/fixincl.x: regenerate
26484 Wed Jun 2 02:29:07 1999 Jeffrey A Law (law@cygnus.com)
26486 * README, configure.in, gcc.1, gcc.texi: Update name (egcs -> gcc)
26487 and version #s (1.1 -> 2.96) as needed.
26488 * README.g77: Kill way out of date file in the toplevel directory.
26490 Wed Jun 2 00:52:34 1999 David O'Brien <obrien@FreeBSD.org>
26492 * configure.in (i[34567]86-*-freebsdelf): Don't include linux.h,
26493 i386/freebsd-elf.h no longer requires it. Instead include svr4.h.
26494 * configure: Rebuilt.
26495 * i386/freebsd-elf.h (DEFAULT_VTABLE_THUNKS): Define.
26496 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, SET_ASM_OP): Likewise.
26497 (PREFERRED_DEBUGGING_TYPE, WCHAR_UNSIGNED): Likewise.
26498 (SWITCH_TAKES_ARG): Likewise.
26499 * i386/freebsd.h: Remove FREEBSD_NATIVE support.
26500 * config/t-freebsd: Moved from config/i386/ so it can used for all
26503 Mon May 31 02:22:55 1999 Philippe De Muyter <phdm@macqel.be>
26505 * m68k/x-mot3300 (XCFLAGS): Fixed to match stb.o, not f/stb.o.
26507 Wed Jun 2 00:08:34 1999 Robert Lipe <robertlipe@usa.net>
26509 * configure.in (i[34567]86-*-udk*): Install headers with cpio.
26510 * configure: Rebuilt.
26512 Tue Jun 1 19:06:22 1999 David Edelsohn <edelsohn@gnu.org>
26514 * rs6000/aix41.h (RS6000_CALL_GLUE): Define.
26515 * rs6000/aix43.h (RS6000_CALL_GLUE): Likewise.
26516 * rs6000/rs6000.c (rs6000_file_start): Use putc.
26517 (rs6000_output_load_toc_table): Same.
26518 (output_prolog, output_mi_thunk): Same.
26519 * rs6000/rs6000.h (SELECT_SECTION): Formatting.
26520 (ASM_GLOBALIZE_LABEL): Use putc.
26522 Mon May 31 15:23:23 1999 Richard Henderson <rth@cygnus.com>
26524 * alpha.md (reload_*_help): New patterns and splitters.
26525 (reload_*): Use them.
26526 (mov[qh]i): Likewise.
26528 Mon May 31 11:48:07 1999 Mark Mitchell <mark@codesourcery.com>
26530 * cccp.c (handle_directive): Handle backslash-newlines in quoted
26533 Mon May 31 09:36:11 1999 Cort Dougan <cort@cs.nmt.edu>
26535 * rs6000/linux.h (LINK_SPEC): Use emulation elf32ppclinux.
26537 Mon May 31 11:40:20 EDT 1999 John Wehle (john@feith.com)
26539 * flow.c (mark_regs_live_at_end, insn_dead_p,
26540 mark_set_1, mark_used_regs): Only give FRAME_POINTER_REGNUM
26541 and HARD_FRAME_POINTER_REGNUM special treatment if reload
26542 hasn't run or the frame pointer is needed.
26543 * haifa-sched.c (attach_deaths): Likewise.
26544 * sched.c (attach_deaths): Likewise.
26546 Mon May 31 00:46:17 1999 Jeffrey A Law (law@cygnus.com)
26548 * jump.c (jump_optimize_1): Only set CAN_REACH_END if
26549 calculate_can_reach_end returns nonzero.
26551 * configure.in (native gas tests): Search for an assembler in the
26552 same manner that the installed compiler will.
26553 * configure: Rebuilt.
26554 * tm.texi (MD_EXEC_PREFIX): Note need to update configure.in too.
26556 * alias.c (find_base_term): Improve handling of addresses
26557 constructed from binary operations.
26559 Sun May 30 14:29:17 1999 Eric Raskin (ehr@listworks.com)
26561 * dgux.h (STARTFILE_SPEC): Fix incorrectly matched curly-braces.
26563 Sun May 30 14:19:13 1999 Jeffrey A Law (law@cygnus.com)
26565 * function.h (cleanup_label, frame_offset): Declare.
26566 (tail_recursion_label, tail_recursion_reentry): Likewise.
26567 (arg_pointer_save_area, rtl_expr_chain): Likewise.
26568 * stmt.c (cleanup_label, frame_offset): Delete extern declarations.
26569 (tail_recursion_label, tail_recursion_reentry): Likewise.
26570 (arg_pointer_save_area, rtl_expr_chain): Likewise.
26572 Sat May 29 19:08:10 1999 Philip Blundell <philb@gnu.org>
26574 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Only define if not already
26576 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Define.
26577 (MAX_OFILE_ALIGNMENT): Define.
26579 Fri May 28 21:40 1999 Robert Lipe <robertlipe@usa.net>
26581 * fixincl.c: Replace local include scheme with #includes of
26582 gansidecl.h and system.h.
26583 * procopen.c: Likewise.
26584 * server.c: Likewise.
26586 Fri May 28 03:47:03 1999 Eric Raskin (ehr@listworks.com)
26588 * i386/t-dgux (EXTRA_PARTS): Add crti.o
26589 (crti.o): Add build rule and dependencies.
26590 * fixinc/fixinc.dgux: Use modified _int_varargs.h
26592 Fri May 28 03:41:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26594 * rs6000/sysv4.h (CC1_SPEC): Add support for -profile
26595 (LIB_LINUX_SPEC): Likewise.
26596 (LIB_LINUX_SPEC): Add support for -pthread
26597 (CPP_OS_LINUX_SPEC): Likewise.
26598 (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are
26601 Thu May 27 13:04:52 1999 H.J. Lu (hjl@gnu.org)
26603 * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for
26605 (notice_update_cc, output_float_compare): Enable TARGET_CMOVE support.
26606 (output_float_compare, output_fp_cc0_set): Fix the FLOAT comparison
26607 for IEEE math and CC_FCOMI.
26608 (put_jump_code): No IEEE if CC_FCOMI is set.
26610 1999-05-27 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
26612 * fold-const.c (fold_truthop): Make the field reference unsigned
26613 when converting a single bit compare.
26615 Thu May 27 02:40:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26617 * loop.c (strength_reduce): Don't do biv->giv conversion on constants.
26619 Thu May 27 02:09:27 1999 Jeffrey A Law (law@cygnus.com)
26621 * varasm.c (STRIP_NAME_ENCODING): Remove default definition.
26622 * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
26625 * reload.c (push_reload): Do not call remove_address_replacements
26626 when presented with identical optional reloads.
26628 Wed May 26 14:18:05 1999 Richard Henderson <rth@cygnus.com>
26630 * alpha.h (MASK_FIX, TARGET_FIX): New.
26631 (MASK_*): Reorganize constants.
26632 (CPP_AM_FIX_SPEC): New.
26633 (TARGET_SWITCHES): Add FIX.
26634 (EXTRA_SPECS): Likewise.
26635 (CPP_CPU_EV6_SPEC): Use FIX, not CIX.
26636 (SECONDARY_MEMORY_NEEDED): Likewise.
26637 (REGISTER_MOVE_COST): Likewise.
26638 * alpha.c (override_options): Add FIX support. Always use
26639 ALPHA_TP_PROG for ev6.
26640 * alpha.md (sqrt and mov[sd]i patterns): Use FIX, not CIX.
26641 * alpha/elf.h (ASM_FILE_START): Look at FIX too.
26642 * configure.in (target_cpu_default2) [ev6]: Use FIX, not CIX.
26644 Wed May 26 09:53:05 1999 Mark Mitchell <mark@codesourcery.com>
26646 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
26647 something is a candidate for optimize_bit_field_compare.
26649 Wed May 26 09:40:02 1999 Mark Mitchell <mark@codesourcery.com>
26651 * gcc.texi (Passes): Document branch-shortening.
26652 * invoke.texi (Debugging Options): Document the fact that `-dp'
26653 outputs length information for instructions.
26655 Wed May 26 08:49:31 1999 Nick Clifton <nickc@cygnus.com>
26657 * flow.c: Revert previous delta.
26659 Wed May 26 06:05:10 1999 Nick Clifton <nickc@cygnus.com>
26661 * flow.c (insn_dead_p): Check against frame_pointer_rtx not
26662 FRAME_POINTER_REGNUM.
26663 (mark_set_1): Ditto.
26664 (mark_used_regs): Ditto.
26666 Wed May 26 02:19:31 1999 Philip Blundell <pb@nexus.co.uk>
26668 * arm.h (NEED_PLT_GOT): Fix mistake in last change.
26669 (GOT_PCREL): New macro. Define to 1 if not already defined.
26670 * arm/elf.h (GOT_PCREL): Define to 0.
26671 * arm.c (arm_finalize_pic): Take into account the setting of
26674 Tue May 25 14:06:06 1999 Jeffrey A Law (law@cygnus.com)
26676 * output.h (STRIP_NAME_ENCODING): Provide default definition.
26677 * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.
26679 * flow.c (mark_set_1): Do not record BLKmode stores as dead
26680 store elimination candidates.
26682 Tue May 25 08:55:57 1999 Gavin Romig-Koch <gavin@cygnus.com>
26684 * config/mips/mips.h (ASM_OUTPUT_DOUBLE_INT) : Use 'dword' if
26687 Mon May 24 20:30:08 1999 Jim Wilson <wilson@cygnus.com>
26689 * configure.in (rs6000-ibm-aix4.[12]*): Delete use of aix41-gld.h.
26690 Add use of x-aix41-gld.
26692 Mon May 24 16:44:09 1999 Jakub Jelinek <jj@ultra.linux.cz>
26694 * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
26695 (ASM_OUTPUT_DESTRUCTOR): Define.
26697 Mon May 24 14:35:24 1999 Jeffrey A Law (law@cygnus.com)
26699 * loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
26700 last CODE_LABEL in a loop if we have previously passed a jump
26701 to the top of the loop.
26703 Mon May 24 07:56:29 1999 Nick Clifton <nickc@cygnus.com>
26705 * config/arm/arm.h (OUTPUT_INT_ADDR_CONST): Fix blunder made when
26706 applying Philip's patch.
26708 Mon May 24 01:02:12 1999 Mark Mitchell <mark@codesourcery.com>
26710 * stmt.c (expand_end_bindings): Ignore any elements of VARS that
26713 Sun May 23 20:31:16 1999 Jeffrey A Law (law@cygnus.com)
26715 * loop.c (strength_reduce): Grow reg_single_usage as needed.
26717 Sun May 23 10:13:20 1999 David O'Brien <obrien@FreeBSD.org>
26719 * i386/freebsd-elf.h (LINK_SPEC): Change -static to -Bstatic.
26720 Also remove a useless comment.
26722 Sun May 23 10:05:23 1999 Jerry Quinn <jquinn@nortelnetworks.com>
26724 * pa.md (negdf2,negsf2): Use fneg instead of fsub on pa 2.0.
26726 Sat May 22 21:02:06 1999 David Edelsohn <edelsohn@gnu.org>
26728 * collect2.c (main): Only generate import or export file and add
26729 to link arguments if non-empty. Use xmalloc not alloca.
26730 (write_{export,import}_file): Delete.
26731 (write_aix_file): New function.
26732 (locatelib): Use xmalloc not malloc.
26733 (GCC_OK_SYMBOL): Do not check type if aix64.
26735 Sat May 22 09:35:51 1999 Philip Blundell <pb@nexus.co.uk>
26737 Based on patch by Scott Bambrough and Pat Beirne:
26738 * config/arm/arm.c (making_const_table): New variable.
26739 * config/arm/arm.h (making_const_table): Declare.
26740 (OUTPUT_INT_ADDR_CONST): Mark symbols as position independent if
26742 * config/arm/arm.md (consttable_4, consttable_8, consttable_end):
26743 Keep track of when we are building the constant table.
26745 Sat May 22 09:34:22 1999 Philip Blundell <pb@nexus.co.uk>
26747 * config/arm/arm.c (arm_override_options): Fix erroneous warning
26750 Sat May 22 09:06:33 1999 Nick Clifton <nickc@cygnus.com>
26752 * config/arm/arm.h (NEED_PLT_GOT): Only define if not already
26755 Sat May 22 07:17:05 1999 Nick Clifton <nickc@cygnus.com>
26757 * tm.texi (FUNCTION_ARG): Correct description of a stack element
26760 Sat May 22 01:27:49 1999 Mark Mitchell <mark@codesourcery.com>
26762 * expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.
26764 Fri May 21 21:19:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26766 * rs6000.c (output_mi_thunk): Enable full support again.
26768 Fri May 21 20:09:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26770 * sh.h (BRANCH_COST): Define.
26772 Thu May 20 10:00:42 1999 Stephen L Moshier <moshier@world.std.com>
26774 * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
26776 Thu May 20 09:58:57 1999 Jan Hubicka <hubicka@freesoft.cz>
26778 * function.c (assign_stack_local): Align stack slot propertly.
26779 (assign_outer_stack_local): Likewise.
26781 Thu May 20 10:38:43 1999 Mark Mitchell <mark@codesourcery.com>
26783 * expr.h (lang_expand_constant): Declare.
26784 * toplev.c (lang_expand_constant): Define it.
26785 * varasm.c (output_constant): Use it.
26787 Thu May 20 11:28:53 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26789 * optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
26790 Change function definitions to K&R style.
26792 Thu May 20 08:16:39 1999 Bruce Korb <ddsinc09@ix.netcom.com>
26794 * fixinc/fixincl.c: We must not ignore SIGCLD now.
26796 Thu May 20 07:06:39 1999 Alexandre Oliva <aoliva@acm.org>
26798 * fixinc/Makefile.in(gnu-regex.o): add $(INCLUDES) to compile options
26799 * fixinc/fixincl.c(wait_for_pid): K&R-ify arguments
26800 (several places): omit static initialization
26801 (process): use single fd, since only the read fd is used
26802 * fixinc/gnu-regex.c: define 'const' away, if not supported
26803 * fixinc/procopen.c(several places): omit static initialization
26804 * fixinc/server.c: define 'volitile' away, if not supported
26806 1999-05-20 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
26808 * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
26809 asm_fprintf and %L to generate the label name.
26810 * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
26811 (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.
26813 Thu May 20 01:40:55 1999 Jeffrey A Law (law@cygnus.com)
26815 * jump.c (can_reverse_comparison_p): Do not abort if the comparison
26816 insn for a conditional jump can not be found.
26818 Wed May 19 23:58:58 1999 Jeffrey A Law (law@cygnus.com)
26820 * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
26821 on variables in specific sections other than .sbss and .sdata.
26823 Wed May 19 03:56:56 1999 Mark Mitchell <mark@codesourcery.com>
26825 * stmt.c (expand_return): Call start_cleanup_deferral and
26826 end_cleanup_deferral around conditional code.
26828 Wed May 19 08:40:08 1999 Bruce Korb <ddsinc09@ix.netcom.com>
26830 * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
26831 filename lists. Utilizes new "krstr" AutoGen function.
26832 * fixinc/fixincl.x: Rebuilt.
26834 Wed May 19 02:47:11 1999 Jan Hubicka (hubicka@freesoft.cz)
26836 * i386.c (output_float_compare): Avoid GNU-C extensions.
26838 Wed May 19 00:34:40 1999 Jeffrey A Law (law@cygnus.com)
26840 * version.c: Bump to distinguish mainline tree from the
26843 See ChangeLog.1 for earlier changes.