1 2000-04-10 Nick Clifton <nickc@cygnus.com>
3 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
5 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
7 (ARM_SIGN_EXTEND): Use HOST_UINT.
8 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
9 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
10 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
11 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
13 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
14 (arm_gen_constant): Use HOST_UINT.
15 (arm_canonicalize_constant): Use HOST_UINT.
16 (arm_reload_in_hi): Use HOST_UINT.
17 (arm_reload_out_hi): Use HOST_UINT.
18 (output_multi_immediate): Use HOST_UINT.
19 (int_log2): Use HOST_UINT.
20 (arm_poke_function_name): Use HOST_UINT.
21 (arm_output_epilogue): Use arm_volatile_func().
22 (output_thumb_prologue): Use arm_strip_name_encoding().
24 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
27 of sequence point problems.
29 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
31 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
33 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
35 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
37 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
38 __classof__, and __headof__ from the list of gnu keywords.
39 (-ansi): Remove -foperator-names from list of implied options.
40 Do not call it ANSI C++.
41 (-foperator-names): Document as -fno-operator-names.
43 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
45 * cpphash.c (timestamp): Delete.
46 (del_HASHNODE): If type is T_MCONST, free value.cpval.
47 (special_symbol): Remove unnecessary braces. Remove
48 T_VERSION. Treat T_STDC like T_CONST unless
49 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
50 when one is encountered, then convert them into T_MCONST
52 * cppinit.c (builtin_array): version_string is T_MCONST.
53 __STDC__ has a "1" in its cpval. Don't have a terminator
54 entry. Clean up which entries are dumped.
55 (initialize_builtins): Only __STDC__ gets the special
56 -traditional treatment. Count the length of builtin_array.
57 Render version_string here.
58 * cpphash.h: Remove T_VERSION. Add T_MCONST.
59 * cpplib.h (struct cpp_reader): Remove timebuf.
61 2000-04-09 Richard Henderson <rth@cygnus.com>
63 * genrecog.c (pred): Update comparison_operator for the unordered
66 * config/i386/i386.c (no_comparison_operator): Disallow unordered
68 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
69 (uno_comparison_operator): New.
70 (put_condition_code): Handle UNORDERED/ORDERED.
71 (unsigned_comparison): Likewise.
72 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
73 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
74 (ix86_expand_fp_compare): Use them. Take scratch as argument,
75 update all callers. Handle all 8 unordered operators.
76 (ix86_expand_setcc): Lose the unordered argument, update all callers.
77 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
78 * config/i386/i386.h (PREDICATE_CODES): Update.
79 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
80 (ix86_expand_branch, ix86_expand_setcc): Update.
81 * config/i386/i386.md (sunordered, sordered): New.
82 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
83 (bunordered, bordered): New.
84 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
85 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
86 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
88 2000-04-09 Philip Blundell <philb@gnu.org>
90 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
92 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
94 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
95 fix_truncxfhi2): New patterns.
96 * i386.c (output_fix_trunc): Handle converting to HImode.
98 2000-04-08 Alex Samuel <samuel@codesourcery.com>
100 * ssa.c (convert_to_ssa): Eliminate dead code when calling
102 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
103 (for_each_successor_phi): Change parameter to basic_block.
104 (coalesce_regs_in_successor_phi_nodes): Likewise.
105 (coalesce_regs_in_copies): Likewise.
106 (compute_coalesced_reg_partition): Use basic_block instead of index.
107 * rtl.h (convert_to_ssa): Delete.
108 (convert_from_ssa): Likewise.
109 (successor_phi_fn): Likewise.
110 (for_each_successor_phi): Likewise.
111 (in_ssa_form): Likewise.
112 * basic-block.h (convert_to_ssa): Moved from rtl.h.
113 (convert_from_ssa): Likewise.
114 (successor_phi_fn): Likewise.
115 (in_ssa_form): Likewise.
116 (for_each_successor_phi): Likewise. Change parameter to basic_block.
117 * flow.c (calculate_global_regs_live): Pass a basic_block to
118 for_each_successor_phi.
120 2000-04-08 Richard Henderson <rth@cygnus.com>
122 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
123 was modified in the current insn.
125 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
127 * arm/thumb.md: Delete.
128 * arm/thumb-protos.h: Delete.
130 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
132 Merge changes from merged-arm-thumb-backend-branch onto trunk.
134 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
136 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
139 * arm.md (nop): Use the standard RTL expression. Don't code as a
141 (*arm_nop, *thumb_nop): Delete.
143 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
144 constants. Use casts instead.
145 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
146 output_multi_immediate, arm_poke_function_name): Likewise.
147 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
148 MASK_RETURN_ADDDR): Likewise.
150 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
152 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
155 * arm.md (eh_epilogue): New function.
156 * arm.h (struct machine_function): Move to here ...
157 * arm.c: ... from here.
158 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
159 (thumb_exit): Extra parameter eh_ofs. All callers changed.
160 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
162 2000-03-30 Nick Clifton <nickc@cygnus.com>
164 * config/arm/semi.h (ASM_SPEC): Restore definition.
165 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
167 * config/arm/elf.h (ASM_SPEC): Restore definition.
168 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
170 * config/arm/arm.h (ASM_SPEC): Remove definition.
171 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
173 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
175 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
177 2000-03-24 Nick Clifton <nickc@cygnus.com>
179 Various formating tidyups, elimination of compile time
180 warnings and synchronisation with internal sources:
182 * config/arm/arm-protos.h (assemble_align): Add prototype.
183 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
184 (gen_comapre_reg): Rename to arm_gen_compare_reg.
185 (arm_return_addr_rtx): Rename to arm_return_addr.
187 * config/arm/arm.c: Include except.h.
188 Define shorter typenames for strict minipool_node and struct
190 (arm_return_in_memory): For WinCE return all structures <= 32 bits
192 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
193 (gen_comapre_reg): Rename to arm_gen_compare_reg.
195 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
197 (ASM_SPEC): Define if not already defined.
198 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
200 * config/arm/arm.md: Rename references to gen_rotated_half_load to
201 arm_gen_rotated_half_load, and references to gen_comapre_reg to
203 (indirect_jump): Only accept register operands.
204 (load_indirect_jump): Keep this pattern since combine can generate
207 * config/arm/coff.h: Include aout.h.
208 (MULTILIB_DEFAULTS): Only define if not already defined.
210 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
211 into arm.h (so that COFF ports can support thumb based aliases).
212 (ASM_SPEC): Move definition into arm.h
214 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
216 (ASM_SPEC): Move definition to arm.h
218 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
220 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
221 for entries in the .bss section
223 2000-03-23 Nick Clifton <nickc@cygnus.com>
225 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
226 to thumb_far_jump_used_p.
228 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
229 single integer parameter.
231 * config/arm/arm.c (struct machine_function): Add two new
232 fields, 'far_jump_used' and 'arg_pointer_live'.
233 (thumb_far_jump_used_p): Once the decision has been made that
234 far jumps might be used, always return true.
235 If being called from the initial elimination offset macro then
236 do not bother to perform the test if the arg pointer is not
238 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
239 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
241 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
243 * arm.c (output_return_instruction): Handle more cases where we can
244 return from a function with an ldr instruction.
245 (arm_output_epilogue): Likewise.
247 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
248 if we need to push a large stack frame and there are no callee-saved
251 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
252 in ARM code if the frame pointer has been eliminated.
254 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
255 unspec_volatile arguments to avoid duplicates.
256 (consttable_1, consttable_2): Fixes for big-endian mode.
258 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
261 Re-write constant pool code.
262 * arm.c (minipool_node, minipool_fix): New types.
263 (minifix): Delete type.
264 (arm_add_minipool_constant): Delete.
265 (arm_compute_minipool_offsets, arm_find_barrier,
266 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
267 (get_jump_table_size): Now returns HOST_WIDE_INT.
268 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
270 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
271 (assign_minipool_offsets, arm_print_value): Likewise.
272 (dump_minipool): Rewrite.
273 (arm_barrier_cost): New function.
274 (create_fix_barrier): New function.
275 (push_minipool_barrier): New function.
276 (push_minipool_fix): Record additional information about the fixup
278 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
279 check the mode of what needs fixing.
280 (arm_reorg): Rewrite.
282 2000-03-08 Nick Clifton <nickc@cygnus.com>
284 * config/arm/arm.md (indirect_jump): Force constant addresses into
287 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
289 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
291 2000-02-24 Nick Clifton <nickc@cygnus.com>
293 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
294 adjust is word aligned.
295 (thumb_expand_epilogue): Make sure that stack adjust is word
298 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
300 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
302 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
303 pointer relative addresses.
305 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
307 * arm.c (find_barrier): Find the last barrier within the allowed
310 2000-02-09 Nick Clifton <nickc@cygnus.com>
312 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
314 2000-02-09 Nick Clifton <nickc@cygnus.com>
316 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
317 ARM_FUNCTION_PROFILER.
319 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
320 ARM_FUNCTION_PROFILER.
322 * config/arm/linux-oldld.h: Imported from mainline sources.
324 2000-02-07 Nick Clifton <nickc@cygnus.com>
326 * config/arm/lib1funcs.asm: Merge in thumb functions from
329 * config/arm/lib1thumb.asm: Delete.
331 2000-02-04 Nick Clifton <nickc@cygnus.com>
333 * config/arm/arm.c: Sychronised with current Red hat local
335 * config/arm/arm.h: Ditto.
336 * config/arm/arm-protos.h: Ditto.
338 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
340 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
342 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
345 2000-02-02 Nick Clifton <nickc@cygnus.com>
347 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
349 * config/arm/arm.md (epilogue): Fix rtl checking abort because
350 (return) was emited using an emit_insn() call.
352 2000-01-31 Nick Clifton <nickc@cygnus.com>
354 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
356 (thumb_exit): Move frame pointer back into hard frame pointer
357 register if backtracing is being used.
359 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
361 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
364 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
366 * config/arm/arm.md (neg_pool_offset): Provide default for new
368 (arm_movsi_insn): Add neg_pool_offset attribute.
369 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
370 rtx for the insn that starts the scan and an unsigned long for its
371 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
372 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
373 instructions in *PINSERTED.
374 (struct minipool_fixup): Add MIN_ADDRESS elt.
375 (sort_fixups): Compute it.
376 (arm_reorg): Changes to support inserting pools before the insn to be
379 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
381 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
382 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
383 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
385 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
387 * config/arm/semi.h (TARGET_VERSION): Do not define if already
389 (TARGET_DEFAULT): Do not define if already defined.
391 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
393 * config/arm/arm.md (anddi3): Allow disjoint source operands.
394 (iordi3): Allow disjoint source operands.
395 (xordi3): Allow disjoint source operands.
396 (negdi2): Permit construction for ARM and Thumb.
397 (arm_negdi2): Renamed version of old negdi2 pattern.
398 (thumb_negdi2): New pattern: Only permit non-overlapping
399 source and destination.
401 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
403 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
404 scratch low register so that it will not be deleted.
406 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
408 * config/arm/pe.h (ARM_PE): Define.
410 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
411 interfacearm attribute if this is a PE toolchain.
412 (output_return_instruction): Do not emit anything if the function
413 has the naked attribute set.
414 (is_called_in_ARM_mode): If the function has the interfacearm
415 attribute then return true.
416 (thumb_expand_prologue): Do not generate a prologue for naked
418 (thumb_expand_epilogue): Do not generate an epilogie for a naked
420 (output_thumb_prologue): Do not bother if the function is naked.
421 Strip PE encoding from function name before emitting.
423 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
425 * arm.md (pic_load_addr): Fix constraints.
427 * arm.md (casesi_insn): Fix mis-applied patch.
429 * arm.md ("core" function unit): Add rules for single- and
431 (All TARGET_THUMB patterns): Add "type" attribute information
433 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
434 the following insn is a CALL.
436 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
438 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
439 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
440 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
442 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
444 * config/arm/linux-gas.h: oops - this file was missed out when the
445 branch was created...
447 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
449 * thumb.c: Deleted. Move contents to ...
451 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
453 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
456 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
457 declare a prototype for asm_output_align();
459 * arm.c (thumb_condition_code): Delete.
460 (arm_print_operand): Always use arm_condition_code array.
462 * arm.c (thumb_return_addr_rtx): Delete.
463 (arm_save_machine_status, arm_restore_machine_status): Delete.
464 (arm_init_machine_status, arm_mark_machine_status): New functions.
465 (arm_init_expanders): Update accordingly.
466 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
467 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
468 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
470 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
472 * configure.in : Fix arm-*-aout target to use new t-arm-aout
474 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
477 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
479 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
480 stack backtrace structure.
482 * config/arm/arm-protos.h: Add prototypes for functions defined in
485 * config/arm/arm.c (arm_override_options): Fix selection of
486 attributes of default processor.
488 * config/arm/coff.h: Delete needless #include.
490 * config/arm/pe.c: Delete unused code.
492 * config/arm/pe.h (CPP_DEFINES): Delete
493 (SUBTARGET_CPP_SPEC): Define.
494 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
496 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
498 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
500 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
502 (CAN_DEBUG_WITHOUT_FP): Define.
503 (FIXED_REGISTERS): Make r11 call-saved.
504 (CALL_USED_REGISTERS): Likewise.
505 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
506 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
507 frame-pointer is required.
508 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
509 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
510 if the target normally needs a stack frame in non-leaf functions.
511 (use_return_insn): Correct logic for determining when a return
512 instruction can be used.
513 (output_return_instruction): Handle the frame-pointer register as
514 a normal register when not TARGET_APCS_FRAME.
515 (arm_output_prologue): Likewise.
516 (arm_output_epilogue): Likewise.
517 (output_func_epilogue): Likewise.
518 (arm_expand_prologue): Likewise.
519 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
521 * arm.c (use_return_insn): No need to check floating point regs if
523 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
524 the code of value stored in the minipool array.
525 (arm_add_minipool_constant): Likewise.
527 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
529 * basic-block.h (conflict_graph_enum_fn): K&R fix.
531 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
533 * tree.c (tree_expr_nonnegative_p): New function.
535 * tree.h (tree_expr_nonnegative_p): Declare.
537 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
538 elide some sign_compare warnings.
539 (build_conditional_expr): Likewise.
541 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
543 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
545 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
546 * i386.c (print_operand): Use the proper suffix for a 387 HImode
547 operand. Abort if a 387 operand has an unsupported size.
549 2000-04-08 Neil Booth <NeilB@earthling.net>
551 * cppexp.c (parse_charconst): Null does not end character
553 * cppinit.c (ISTABLE): Null character handled as whitespace.
554 * cpplex.c (null_warning): new function.
555 (skip_string): Emit warning if nulls encountered.
556 (_cpp_skip_hspace): Emit warning if nulls encountered.
557 (_cpp_lex_token): Emit warning if nulls encountered. Drop
561 2000-04-07 Richard Henderson <rth@cygnus.com>
563 * flow.c (loop_depth): Remove.
564 (reg_next_use, cc0_live, mem_set_list): Replace with ...
565 (struct propagate_block_info): New.
566 (life_analysis): Don't allocate reg_next_use.
567 (propagate_block_delete_insn): Break out of propagate_block.
568 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
569 (propagate_block_delete_libcall): Likewise.
570 (propagate_block): Create a propagate_block_info struct to pass
571 to subroutines. Allocate one not two temporary regsets. Don't
572 clobber memory for const calls. Look for clobbers in
573 CALL_INSN_FUNCTION_USAGE.
574 (mark_set_regs): Recognize COND_EXEC.
575 (mark_set_reg): Break out of mark_set_1.
576 (mark_used_reg): Break out of mark_used_regs.
577 (mark_used_regs): Recognize COND_EXEC.
578 (insn_dead_p): Use propagate_block_info struct.
579 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
580 (find_auto_inc, try_pre_increment_1): Likewise.
581 (print_rtl_with_bb): Dump regs live at end too.
582 (count_reg_sets_1): Pass in loop_depth.
583 (count_reg_sets, count_reg_references): Likewise.
584 (recompute_reg_usage): Provide it.
586 2000-04-07 Richard Henderson <rth@cygnus.com>
588 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
591 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
593 * cpplib.c (do_elif): Skip the rest of the line if we're
594 not going to bother evaluating it.
595 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
596 to avoid pointless calls to the lexer.
598 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
600 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
602 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
604 * calls.c (expand_call): emit_queue if we're trying a sibcall.
606 2000-04-07 Jakub Jelinek <jakub@redhat.com>
608 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
610 2000-04-06 Geoff Keating <geoffk@cygnus.com>
612 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
613 crtend so they can be multilibbed.
614 (STAGESTUFF): Remove s-crt and s-crtS.
616 2000-04-07 Richard Henderson <rth@cygnus.com>
618 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
619 if we discover we need a pseudo and no_new_pseudos is true.
620 * config/alpha/alpha.md (ne:DI insn): New.
621 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
623 2000-04-07 Richard Henderson <rth@cygnus.com>
625 * rtl.def (COND_EXEC): New.
626 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
627 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
629 * genconfig.c (have_cond_arith_flag): Remove.
630 (have_cond_exec_flag): New.
631 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
632 (main): Print HAVE_conditional_execution.
634 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
635 (sched_analyze_insn, print_pattern): Likewise.
636 * reload.c (find_equiv_reg): Likewise.
637 * rtlanal.c (reg_referenced_p): Likewise.
638 (note_stores, dead_or_set_regno_p): Likewise.
639 (reg_overlap_mentioned_p): Rewrite to use a switch.
641 * ggc.h (struct rtx_def): Forward declare.
643 * print-rtl.c (debug_rtx_range): New.
644 * rtl.h (debug_rtx_range): Declare.
646 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
648 * gcse.c (gcse_main): Don't rebuild the CFG here.
649 (delete_null_pointer_checks): Likewise.
650 * ssa.c (convert_to_ssa): Likewise.
651 * toplev.c (rest_of_compilation): Do it here instead. Combine
652 sequential calls to TIMEVAR. Consistently use `insns' instead of
653 `get_insns()'. Always split insns after reload when optimizing.
655 * basic-block.h (merge_blocks_nomove): Declare.
656 (tidy_fallthru_edge): Declare.
657 * flow.c (merge_blocks_nomove): Document as merging into previous
658 blocks. Remove cruft from between blocks; remove all edges out of A.
659 (tidy_fallthru_edge): Export.
661 2000-04-06 Alex Samuel <samuel@codesourcery.com>
663 * ssa.c (compute_conservative_reg_partition): Declare with
665 * toplev.c (clean_dump_file): Remove previously-deleted function
666 inadvertantly merged back in.
667 * conflict.c (conflict_graph_add): Use a single call to
668 htab_find_slot to look up and insert.
670 2000-04-06 Richard Henderson <rth@cygnus.com>
672 * genrecog.c (*): Rename _last_insn to last_insn.
673 (make_insn_sequence): Set the position of the peephole2 C test
674 to be at the last insn.
676 2000-04-06 Richard Henderson <rth@cygnus.com>
678 * flow.c (compute_flow_dominators): Free worklist.
680 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
682 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
684 2000-04-06 Alex Samuel <samuel@codesourcery.com>
686 * rtl.h (INSN_P): New macro.
687 (successor_phi_fn): New typedef.
688 (for_each_successor_phi): New prototype.
689 (in_ssa_form): New variable.
690 (PHI_NODE_P): Likewise.
691 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
692 phi nodes in successors.
693 (mark_used_regs): Add PHI case.
694 (set_phi_alternative_reg): New function.
695 (life_analysis): Assert that dead code elimination is not selected
697 * toplev.c (to_ssa_time): New variable.
698 (from_ssa_time): Likewise.
699 (compile_file): Zero to_ssa_time and from_ssa_time.
700 Print time to convert to and from SSA.
701 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
702 (print_time): Compute percent fraction as integer.
703 * ssa.c (PHI_NODE_P): Moved to rtl.h.
704 (convert_to_ssa): Check if we're already in SSA.
705 Don't eliminate dead code in life_analysis.
706 Rerun flow and life analysis at bottom.
707 (eliminate_phi): Use canonical regnos when adding nodes.
708 (mark_reg_in_phi): New function.
709 (mark_phi_and_copy_regs): Likewise.
710 (convert_from_ssa): Rerun life analysis at top.
711 Use coalesced partition.
712 Check for removing a phi node at the end of the block.
713 (compute_coalesced_reg_partition): New function.
714 (coalesce_regs_in_copies): Likewise.
715 (coalesce_reg_in_phi): Likewise.
716 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
717 (for_each_successor_phi): Likewise.
718 (rename_context): New struct.
719 (rename_block): Use a rename_context with rename_insn_1. When
720 renaming sets of a subreg, emit a copy of the entire reg first.
721 (rename_insn_1): Treat data as a rename_context *. Save current
723 (rename_set_data): Add field set_insn.
724 * Makefile.in (HASHTAB_H): Move up in file.
725 (OBSTACK_H): New macro.
726 (collect2.o): Use OBSTACK_H in dependencies.
727 (sdbout.o): Likewise.
728 (emit-rtl.o): Likewise.
729 (simplify-rtx.o): Likewise.
730 (fix-header.o): Likewise.
731 (OBJS): Add conflict.o.
732 (conflict.o): New rule.
733 * basic-block.h: Include partition.h.
734 (conflict_graph): New typedef.
735 (conflict_graph_enum_fn): Likewise.
736 (conflict_graph_new): New prototype.
737 (conflict_graph_delete): Likewise.
738 (conflict_graph_add): Likewise.
739 (conflict_graph_conflict_p): Likewise.
740 (conflict_graph_enum): Likewise.
741 (conflict_graph_merge_regs): Likewise.
742 (conflict_graph_print): Likewise.
743 (conflict_graph_compute): Likewise.
744 * conflict.c: New file.
746 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
748 * tlink.c (read_repo_files): Don't look for .rpo info for
751 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
753 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
755 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
757 * config/sh/lib1funcs.asm (___udivsi3_i4):
758 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
759 only depends on FMOVD_WORKS.
761 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
763 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
764 make double constant 8-byte aligned.
766 2000-04-06 Jakub Jelinek <jakub@redhat.com>
768 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
769 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
770 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
771 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
772 Accept storing GENERAL_REGS into offsetable memory.
773 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
774 building a TFmode constant other than 0.0L into GENERAL_REGS.
776 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
778 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
780 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
782 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
783 (macro_cleanup): No need to cast pbuf->macro.
784 (collect_expansion): Use _cpp_get_define_token. Goto done if
785 it returns VSPACE. Remove check for trailing space after
787 (_cpp_create_definition): Don't diddle flags here. Return
789 (unsafe_chars): Handle c1 being EOF.
790 (push_macro_expansion): Use unsafe_chars for both accidental-paste
791 checks. Don't push the buffer till after we're done with
793 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
794 (PEEKN, FORWARD, GETC, PEEKC): Use them.
795 (cpp_push_buffer): Don't set new->alimit. Set new->mark
797 (_cpp_parse_assertion): Don't NUL terminate.
798 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
799 hspace before calling _cpp_parse_assertion. Remove all sets
800 of only_seen_white. Treat '\f' as hspace. Don't do anything
801 special with '\n' here.
802 (maybe_macroexpand): Handle T_EMPTY hash entries without
803 pushing a buffer at all.
804 (cpp_get_token): Handle clearing only_seen_white here. Handle
805 incrementing the line number here. Clear
806 potential_control_macro as well as only_seen_white, if
808 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
809 (_cpp_get_define_token): New function, basically like
810 _cpp_get_directive_token was but doesn't eat horizontal space.
811 Don't do anything with only_seen_white here.
812 (_cpp_get_directive_token): Just call _cpp_get_define_token
813 repeatedly till it returns non-hspace.
815 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
816 (conditional_skip, skip_if_group): Return int.
817 (DIRECTIVE_TABLE): Change origin of all conditional directives
819 (TRAD_DIRECT_P): New macro.
820 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
821 an error for a bogus directive, unless -lang-asm. Use
822 TRAD_DIRECT_P. Loop calling handler functions till one returns
824 (get_macro_name): Don't diddle flags here.
825 (do_define): Diddle flags here. Use _cpp_get_directive_token.
826 Create T_EMPTY nodes for #define macro /* nothing */.
827 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
828 Use hp->name when calling pass_thru_directive.
829 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
830 Return the result of conditional_skip and/or skip_if_group.
831 Don't call _cpp_output_line_command.
832 (consider_directive_while_skipping): Use _cpp_get_directive_token.
833 Issue -Wtraditional warnings as appropriate. Don't complain
834 about unrecognized directives. If we are to stop skipping,
835 return the number of the directive that ended the skip.
836 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
837 expansion and line commands while skipping. Return the result
838 of consider_directive_while_skipping, if nonzero.
839 (do_endif): Just set potential_control_macro here.
840 (validate_else): Use _cpp_get_directive_token.
841 (do_assert, do_unassert): Don't save pointers into the
842 token_buffer across calls to the lexer. Use
843 _cpp_get_directive_token.
845 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
846 pointer, not an offset. Replace 'data', which was a generic
847 pointer, with 'macro', which points to a struct hashnode.
848 (cpp_reader): Add 'potential_control_macro' pointer.
849 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
850 (CPP_BUF_GET, CPP_FORWARD): Delete.
851 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
852 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
853 ACTIVE_MARK_P): Update.
854 (_cpp_get_define_token): New internal function.
855 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
857 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
859 * configure.in: And here.
860 * configure: Regenerate.
861 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
862 --enable-libstdcxx-v3 is passed at configure time.
863 * config.h.in: Regenerate.
865 2000-04-05 Mark Mitchell <mark@codesourcery.com>
867 * final.c (final): Use xcalloc to allocate line_note_exists.
868 * function.c (free_after_compilation): Free the temp_slots.
869 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
870 (combine_temp_slot): Free temp_slots when they get combined.
871 (purge_addressof): Fix typo in comment.
872 * stmt.c (mark_goto_fixup): Mark the fixup itself.
873 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
875 * ggc.h: Include varray.h.
876 (ggc_pending_trees): Declare.
877 (ggc_mark_tree_children): Remove declaration.
878 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
879 * ggc-common.c (ggc_pending_trees): New variable.
880 (ggc_mark_roots): Call ggc_mark_trees.
881 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
882 the ggc_pending_trees.
883 * Makefile.in (GGC_H): New variable. Use it throughout in place
886 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
888 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
891 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
893 * sh.c (sh_insn_length_adjustment): New function.
894 * sh-protos.h (sh_insn_length_adjustment): Declare.
895 * sh.h (ADJUST_INSN_LENGTH): Use it.
897 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
899 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
900 from the insn where REG_RETVAL is added.
901 (emit_no_conflict_block): Ditto.
903 * md.texi (Standard Names): Clarify when movX is needed.
905 * combine.c (simplify_comparison) [MINUS]: Do not replace
906 all (op (minus A B) 0) with (op A B).
908 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
909 J"orn Rennecke <amylaar@cygnus.co.uk>
911 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
912 (block_lump_real): Likewise.
914 2000-04-05 Chris Demetriou <cgd@netbsd.org>
916 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
917 remaining non-zero debugging masks.
919 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
921 * basic-block.h (verify_flow_info): Declare.
922 (flow_loop_outside_edge_p): Declare.
923 * flow.c (verify_flow_info): Remove declaration.
924 (clear_log_links, flow_loop_outside_edge_p): Likewise.
926 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
928 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
931 2000-04-05 Jakub Jelinek <jakub@redhat.com>
933 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
934 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
935 seqdi_zero_trunc+1): Allow splits only if registers are
938 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
940 * acconfig.h: Add HAVE_GAS_HIDDEN.
941 * config.in: Regenerated.
942 * configure.in: Add test for .hidden pseudo-op in gas.
943 * configure: Regenerated.
944 * crtstuff.c: Include auto-host.h.
945 Emit additional .hidden pseudo-op for __dso_handle if the
946 assembler knows about it.
948 2000-04-04 Philippe De Muyter <phdm@macqel.be>
950 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
951 before freeing argnames.
952 * cpplib.c (do_ifndef): Cast return value of xstrdup.
954 2000-04-05 Michael Meissner <meissner@redhat.com>
956 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
957 Walton <jonboy@gordian.com> to make memory references with update
958 work wtih -mregnames.
960 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
962 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
963 (regrename_optimize): Rename variables `def_uses' and
964 `ext_basic_blocks' to avoid conflicts with similarly named
965 typedefs in traditional C.
967 * calls.c (initialize_argument_information): Fix typo in previous
970 2000-04-04 Richard Henderson <rth@cygnus.com>
972 * regrename.c (consider_available): Test fixed_regs not
973 PIC_OFFSET_TABLE_REGNUM.
975 2000-04-04 Geoff Keating <geoffk@cygnus.com>
977 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
979 (CRTSTUFF_T_CFLAGS_S): Delete definition.
980 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
981 (ENDFILE_LINUX_SPEC): Always use crtend.
982 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
983 (powerpc-*-linux-gnu): Likewise.
984 * configure: Regenerate.
986 * config/rs6000/eabi.h: Don't include sysv4.h.
987 (MULTILIB_DEFAULTS): Don't define.
988 * config/rs6000/eabiaix.h: Don't include eabi.h.
989 * config/rs6000/eabile.h: Delete.
990 * config/rs6000/eabilesim.h: Delete.
991 * config/rs6000/eabisim.h: Don't include eabi.h.
992 * config/rs6000/linux.h: Don't include sysv4.h.
993 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
994 (MULTILIB_DEFAULTS): Don't redefine.
995 * config/rs6000/rtems.h: Don't include eabi.h.
996 * config/rs6000/sol2.h: Don't include sysv4le.h.
997 * config/rs6000/sysv4le.h: Don't include sysv4.h.
998 * config/rs6000/t-ppc: Delete.
999 * config/rs6000/t-ppcgas: Correct comment.
1000 * config/rs6000/t-ppcos: Correct comment. Don't build
1001 multilibs for -fPIC, rather use -fPIC -mstrict-align
1003 * config/rs6000/t-ppc: Delete.
1004 * config/rs6000/vxppc.h: Don't include sysv4.h.
1005 * config/rs6000/vxppcle.h: Delete.
1006 * configure.in: Use multiple header files for p2pc ELF targets
1007 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
1008 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
1009 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
1010 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
1011 always available for these platforms.
1013 2000-04-04 Richard Henderson <rth@cygnus.com>
1015 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
1017 2000-04-04 Stan Cox <scox@cygnus.com>
1019 * Makefile.in: Add rules for regrename.o
1020 * regrename.c: New file.
1021 * rtl.h (regrename_optimize): Add prototype.
1022 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
1023 (compile_file, decode_d_option): Add support for -frename-registers.
1024 (rest_of_compilation): Call regrename_optimize.
1025 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
1028 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
1030 * Makefile (gccbug): New target.
1031 (doc): Depend on it.
1032 * gcc.texi (Bugs): Link subnodes.
1034 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
1035 Document severities, priorities, and classes in bug form.
1037 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
1039 * cpplex.c (trigraph_map, speccase): Combine into single
1041 (NORMAL, NONTRI): New macros.
1042 (_cpp_read_and_prescan): Change to use unified table. Use
1043 is_hspace to test for whitespace.
1045 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
1046 definition that doesn't provoke the "empty body in an
1047 if-statement" warning.
1049 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
1051 * builtins.c (expand_builtin_strlen): Force the source to
1052 be a memory address.
1054 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1056 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
1058 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
1060 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
1061 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
1062 (ECF_IS_CONST): Rename to ECF_CONST.
1063 (special_function_p): Make static, change interface.
1064 (flags_from_decl_or_type, try_to_integrate): Break out from ...
1065 (expand_call) ... here; convert number of variables to flags.
1066 (emit_library_call_vlue_1): Likewise.
1067 (setjmp_call_p): New function.
1068 (initialize_argument_information): Accepts flags as argument;
1070 (precompute_arguments): Likewise.
1071 * tree.h (special_function_p): Remove.
1072 (setjmp_call_p): Add prototype.
1074 2000-04-04 Jakub Jelinek <jakub@redhat.com>
1076 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
1077 so that addresses are offsetable by up to 16 bytes.
1078 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
1079 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
1082 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
1083 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
1084 (movsf): Don't force any constant to memory if target is integer
1086 Move fp_zero_operand check below the const0_rtx check.
1087 (movtf): Likewise. Also allow fp_zero_operand for stores into
1089 (movdf): Likewise. Also allow fp_zero_operand for stores into
1090 memory and into integer hard registers.
1091 (clear_df, clear_dfp, movdf_const_intreg_sp32,
1092 movdf_const_intreg_sp64): Remove.
1093 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
1095 (movdf_no_e_insn_v9_sp32): New pattern.
1096 (movdf_insn_v9only): Remove.
1097 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
1098 (movdf_insn_sp64): Remove.
1099 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
1100 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
1101 (following splits): Rewrite conditions. Add two new splits
1102 for storing 0.0 into memory and registers.
1103 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
1104 (movtf_insn_sp32): Redo constraints and conditions.
1105 (movtf_insn_vis_sp32): New pattern.
1106 (movtf_no_e_insn_sp32): Redo constraints and conditions.
1107 (movtf_insn_hq_sp64): Likewise.
1108 (movtf_insn_hq_vis_sp64): New pattern.
1109 (movtf_insn_sp64): Redo constraints and conditions.
1110 (movtf_insn_vis_sp64): New pattern.
1111 (movtf_no_e_insn_sp64): Redo constraints and conditions.
1112 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
1114 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
1115 -mvis or -m64 to take down the number of various reload patterns.
1117 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
1119 * pa/pa-64.h: New file.
1120 * pa/pa64-regs.h: New file.
1121 * pa/pa64-start.h: New file.
1122 * pa/t-pa64: New file.
1123 * pa/xm-pa64hpux.h: New file.
1125 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1127 * sparc.c (output_restore_regs): Prototype.
1128 (sparc_emit_float_lib_cmp): Constification.
1130 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
1132 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
1135 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
1136 (get_value_hash, hash_rtx): Likewise.
1138 * ssa.c (compute_conservative_reg_partition): Prototype.
1140 * tree.c (mark_hash_entry): Prototype.
1142 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
1144 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
1145 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
1146 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
1148 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
1149 * objc/lang-specs.h: Likewise.
1151 2000-04-03 Neil Booth <NeilB@earthling.net>
1153 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
1154 and SYNTAX_ERROR2. Replace `' in messages with ''.
1155 (op_to_str): Make re-entrant.
1156 (_cpp_parse_expr): Implement new error macros. Use | rather
1157 than || to logically or 2 boolean integers. Simply expression
1158 checking we have a left operand iff needed.
1160 2000-04-03 Nick Clifton <nickc@cygnus.com>
1162 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
1164 2000-04-03 Philip Blundell <philb@gnu.org>
1166 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
1168 2000-04-03 Felix Lee <flee@cygnus.com>
1170 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
1171 (run_shell): Use it.
1173 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
1175 * Makefile.in (stmp-int-hdrs): Make include subdir here...
1176 (stmp-fixproto): ...rather than here.
1178 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
1180 * pa.c (print_operand): Compute 'base' only inside the code paths
1183 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
1185 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
1188 2000-04-03 Philipp Thomas <pthomas@suse.de>
1190 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
1192 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
1194 * Makefile.in (alias.o): Depend on $(TREE_H).
1196 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
1198 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
1200 * cpplib.c (_cpp_handle_directive): Improve warnings for
1201 traditional C and indented directives.
1203 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
1204 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
1205 fixinc/inclhack.def: Indent the # of #include_next one space.
1206 * cp/rtti.c: Un-indent #if and #endif.
1208 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
1209 syntax error, but an error has already been printed.
1210 * cpplex.c (_cpp_parse_assertion): Give a more specific error
1211 message when called with nothing remaining on the line.
1212 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
1213 OTHER token, not an ASSERTION.
1214 * cpplib.c (do_assert): When we create a 'base' node, clear
1215 its aschain pointer.
1217 2000-04-02 Neil Booth <NeilB@earthling.net>
1219 * cppexp.c: New typedef op_t. struct operation and struct
1220 token updated to use it.
1221 (op_to_str): New function.
1222 (_cpp_parse_expr): Error messages modified to use op_to_str.
1224 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1226 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
1227 before checking MUST_PASS_IN_STACK.
1229 2000-04-02 Neil Booth <NeilB@earthling.net>
1231 * cppexp.c: New FINISHED dummy token. Combine operator initial
1232 flags and initial priority into a single constant. New
1233 EQUALITY macro. New operator flag SHORT_CIRCUIT.
1234 (_parse_cpp_expr): Implement new constants. Take left operand
1235 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
1236 parse indicated by reducing FINISHED token. Remove new lines
1237 from cpp_error messages.
1239 2000-04-01 Mark Mitchell <mark@codesourcery.com>
1241 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
1244 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
1246 * cpplib.c: Include symcat.h. Add 'origin' field to struct
1247 directive. Add origin values to DIRECTIVE_TABLE. Generate
1248 the strings and function names on the fly. Take the #sccs
1249 entry out of the table if SCCS_DIRECTIVE is not defined.
1250 (_cpp_handle_directive): Decide if the # was at the beginning
1251 of the line here. Issue -pedantic warnings for extended
1252 directives here. Warn about K+R directives with the #
1253 indented, and C89/extended directives with the # not indented,
1255 (do_import, do_include_next, do_warning, do_ident, do_sccs,
1256 do_assert, do_unassert): Don't issue pedantic warning here.
1258 * cpphash.h: Add CPP_WTRADITIONAL macro.
1259 * cpplib.h (struct cpp_options): Rename warn_stringify to
1260 warn_traditional; update comments.
1261 * cppinit.c (handle_option): Set warn_traditional not
1263 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
1264 CPP_WTRADITIONAL (pfile).
1265 * cpplex.c (_cpp_lex_token): Don't decide if directives should
1266 be ignored in -traditional mode here.
1268 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
1269 to initialize speccase[] and trigraph_map[]. Delete all
1270 references to pfile->input_speccase. Always treat '?' as a
1271 special character. Remove table-initialization code from
1272 _cpp_init_input_buffer.
1274 * cpplib.h (struct cpp_reader): Remove input_speccase field.
1275 * cppinit.c (cpp_cleanup): Don't free input_speccase.
1277 2000-04-01 Richard Henderson <rth@cygnus.com>
1279 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
1280 (mostlyclean): Likewise.
1282 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
1283 (struct dump_file_info, enum dump_file_index, dump_file): New.
1284 (open_dump_file): Take a dump_file_index not a suffix, and a decl
1285 not a string. Clean out file if we havn't yet done so. Do nothing
1286 if the dump isn't enabled.
1287 (close_dump_file): Do nothing if the dump isn't open. Dump
1288 graph data if requested.
1289 (dump_rtl, clean_dump_file): Remove.
1290 (compile_file): Don't clean the dump files. Only finalize .bp dump
1291 if flag_test_coverage or flag_branch_probabilities. Only finalize
1292 .combine dump if optimizing. Iterate over dump_file to finalize the
1294 (rest_of_compilation): Update for open_dump_file/close_dump_file.
1295 Convert all uses of dump_rtl.
1296 (decode_d_option): Iterate over dump_file to implement 'a' and to
1297 locate pass-specific dumps.
1299 2000-04-01 Neil Booth <NeilB@earthling.net>
1301 * cppexp.c: Redefine priority constants.
1302 (_cpp_parse_expr): Replace left and right priority scheme with
1303 single priority logic. Move LOGICAL to same place as COMPARE.
1304 Remove bogus check for multiple unary +/- operators.
1306 2000-04-01 Neil Booth <NeilB@earthling.net>
1308 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
1309 within the switch statement. Binary operations break out of
1310 the switch naturally. '(' tokens handled by forcing
1311 immediate shift. ')' handled by forcing immediate reduce to
1312 the previous '('. New error messages.
1314 2000-03-31 Geoff Keating <geoffk@cygnus.com>
1316 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
1317 part', it's already in use. Use %K instead. Add a return at the
1318 end of what is now %K.
1319 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
1321 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
1323 * builtins.c (expand_builtin_apply): Pass proper parameters to
1324 allocate_dynamic_stack_space.
1325 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
1326 update stack_pointer_delta; do not update arg_size_so_far.
1327 (compute_argument_block_size): Use stack_delta instead of
1328 stack_pointer_pending and arg_size_so_far.
1329 (expand_call): Add sanity checking for stack_pointer_delta;
1330 save and restore stack_pointer_delta for SIB, use
1331 stack_pointer_delta for alignment; do not update arg_space_so_far.
1332 (emit_library_call_value): Use stack_pointer_delta for alignment.
1333 (store_one_arg): Do not update arg_space_so_far.
1334 * explow.c (adjust_stack, anti_adjust_stack): Update
1335 stack_pointer_delta.
1336 (allocate_dynamic_stack_space): Add sanity checking for
1337 stack_pointer_delta.
1338 * expr.c (init_expr, clear_pending_stack_adjust): Clear
1339 stack_pointer_delta.
1340 (emit_push_insn): Update stack_pointer_delta.
1341 * function.h (struct expr_status): Add x_stack_pointer_delta;
1342 remove x_arg_space_so_far.
1343 (arg_space_so_far): Remove.
1344 (stack_pointer_delta): New macro.
1346 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
1348 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
1349 Reorder struct cpp_options and struct cpp_reader for better
1350 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
1351 takes two args. Change all 'char' flags to 'unsigned char'.
1352 Move show_column flag into struct cpp_options. Don't
1353 prototype cpp_options_init.
1354 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
1355 cppinit.c, cpplex.c, cpplib.c:
1356 Replace CPP_OPTIONS (pfile)->whatever with
1357 CPP_OPTION (pfile, whatever), and likewise for
1358 opts = CPP_OPTIONS (pfile); ... opts->whatever;
1360 * cppinit.c (merge_include_chains): Take a cpp_reader *.
1361 Extract CPP_OPTION (pfile, pending) and work with that
1363 (cpp_options_init): Delete.
1364 (cpp_reader_init): Turn on on-by-default options here.
1365 Allocate the pending structure here.
1366 (cl_options, enum opt_code): Define these from the same table,
1367 kept in a large macro. Add -fshow-column and -fno-show-column
1370 * cpperror.c (v_message): If show_column is off, don't print
1373 * cppmain.c: Update for new interface.
1374 * fix-header.c: Likewise.
1376 2000-03-30 Geoff Keating <geoffk@cygnus.com>
1378 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
1380 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
1381 are passed to any invocation of AR_FOR_TARGET.
1382 (AR_CREATE_FOR_TARGET): New macro.
1383 (AR_EXTRACT_FOR_TARGET): New macro.
1384 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
1385 AR_EXTRACT_FOR_TARGET.
1386 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
1387 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
1388 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
1389 AR_EXTRACT_FOR_TARGET to sub-makes.
1391 2000-03-31 Neil Booth <NeilB@earthling.net>
1393 * cppexp.c: Delete SKIP_OPERAND. Correct priority
1395 (_cpp_parse_expr): Check for multiple unary +/- operators.
1396 Correct priorities of ':' and '?'. Treat ')' as having a
1397 value. Ensure conditional expression is not void.
1399 2000-03-31 Mark Mitchell <mark@codesourcery.com>
1401 * alias.c (canon_rtx): Make it global.
1402 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
1404 * cse.c (struct table_elt): Add canon_exp.
1406 (invalidate): Canonicalize expressions only once.
1407 * rtl.h (canon_rtx): Declare.
1409 2000-03-30 Mark Mitchell <mark@codesourcery.com>
1411 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
1412 * alias.c (reg_known_value): Add comments.
1413 (init_alias_analysis): Likewise.
1414 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
1416 (cse_basic_block): Fix typo in comment.
1417 * emit-rtl.c: Include hashtab.h.
1418 (const_int_htab): New variable.
1419 (const_int_htab_hash): New function.
1420 (const_int_htab_eq): Likewise.
1421 (rtx_htab_mark_1): Likewise.
1422 (rtx_htab_mark): Likewise.
1423 (gen_rtx_CONST_INT): Cache all CONST_INTs.
1424 (unshare_all_rtx): Fix formatting.
1425 (init_emit_once): Initialize const_int_htab.
1426 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
1428 * rtl.texi: Document the fact that all CONST_INTs with the same
1431 2000-03-30 Richard Henderson <rth@cygnus.com>
1433 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
1435 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
1437 * configure.in: Comment out --enable-c-cpplib stanza.
1438 * configure: Regenerate.
1440 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1442 * expr.c (store_constructor): Properly compute displacement and
1443 alignment when offset is variable.
1445 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
1446 cases of alignment in bytes.
1448 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
1450 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
1451 since it is used to generate c-parse.y.
1452 * objc-parse.c, objc-parse.y: Regenerated.
1454 * function.c (expand_function_end): Pass alignment argument to
1455 emit_block_move in bits, not bytes.
1457 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1459 * expr.c (move_by_pieces_ninsns): Fix one more missing align
1462 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
1464 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
1465 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
1466 * function.c (assign_parms): Likewise.
1467 * integrate.c (expand_inline_function): Likewise.
1468 * stmt.c (expand_decl): Likewise.
1469 (copy_rtx_and_substitute): Likewise.
1470 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
1471 (clear_by_pieces): Fix error in last change.
1472 * emit-rtl.c (init_emit): Set known registers alignment in bits.
1473 * function.h (regno_pointer_align): Now unsigned.
1474 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
1476 * config/i386/i386.c (aligned_operand): Likewise.
1477 * config/sparc/sparc.c (mem_min_alignment): Likewise.
1478 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
1479 (unaligned_memory_operand): Likewise.
1480 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
1481 Also make alignments and sizes unsigned and some whitespace cleanup.
1482 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
1484 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
1485 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
1486 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
1487 (expand_builtin_memset): Likewise, but to clear_storage.
1488 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
1489 (restore_fixed_argument_area): Likewise.
1490 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
1491 (load_register_parameters): Likewise, to emit_group_load.
1492 (expand_call): Likewise, to emit_group_store and emit_block_move.
1493 (emit_library_call_value_1): Likewise, to emit_block_move.
1494 (store_one_arg): Likewise, and to emit_push_insn.
1495 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
1496 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
1497 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
1498 (emit_block_move, emit_group_load, emit_group_store): Likewise.
1499 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
1500 (expand_assigment, store_expr, store_constructor_field): Likewise.
1501 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
1502 (store_constructor, store_field, get_inner_reference): Likewise.
1503 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
1504 (expand_expr, case COMPONENT_REF): Likewise.
1505 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
1506 and positions; reindent code.
1507 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
1508 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
1509 (assign_parms): Likewise to emit_group_store.
1510 * optabs.c (prepare_cmp_insn): Alignment is in bits.
1511 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
1512 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
1513 (expand_return): Likewise to {extract,store}_bit_field.
1514 * stor-layout.c (get_mode_alignment): Minor cleanup.
1515 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
1516 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
1518 2000-03-29 Nick Clifton <nickc@cygnus.com>
1520 * config/arm/arm.h: Undo effects of previous delta:
1521 (ASM_SPEC): Do not define.
1522 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
1524 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
1527 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1529 * cppinit.c (cpp_start_read): Call initialize_dependency_output
1530 only after reading in the primary source file.
1532 2000-03-29 Geoff Keating <geoffk@cygnus.com>
1534 * c-common.c (c_common_nodes_and_builtins): The first parameter to
1535 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
1536 or a reference to a va_list.
1537 * builtins.c (stabilize_va_list): Simplify now we don't have to
1538 work around C array address decay.
1539 * c-typeck.c (convert_for_assignment): Handle assignment to
1540 a reference parameter by taking the address of the RHS.
1541 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
1542 (va_copy): Likewise.
1543 (__va_copy): Likewise.
1544 * ginclude/varargs.h (va_start): Likewise.
1545 (__va_copy): Likewise.
1547 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
1549 * i386/djgpp.h: Remove extraneous "+".
1551 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
1553 * calls.c (expand_call): Fix typo in last change.
1555 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
1557 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
1560 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1562 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
1563 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
1564 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
1565 * tree.c (bit_position, byte_position): Likewise.
1566 * tree.h: Declare new functions.
1568 2000-03-29 Nick Clifton <nickc@cygnus.com>
1570 * config/arm/arm.c: Minor formatting changes/
1571 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
1573 (ASM_SPEC): Define if not already defined.
1575 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1577 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
1580 2000-03-29 Jakub Jelinek <jakub@redhat.com>
1582 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
1583 value, don't output it as unsigned.
1585 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
1587 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
1589 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1591 * c-common.c (c_common_nodes_and_builtins): Don't special case
1592 cplus_mode when declaring builtin bzero/bcmp, always avoid
1593 prototype arguments.
1595 2000-03-29 Bruce Korb <bkorb@gnu.org>
1597 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
1600 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
1602 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
1603 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
1604 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
1605 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
1606 (save_fixed_argument_area, restore_fixed_argument_area):
1607 conditionize by #ifdef REG_PARM_STACK_SPACE only.
1608 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
1609 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
1610 (precompute_register_parameters): Avoid #ifdefs on
1611 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
1612 (stire_one_args): Likewise.
1613 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
1614 (emit_library_call_value_1): Likewise.
1615 (compute_argument_block_size): Align to STACK_BOUNDARY only for
1616 ACCUMULATE_OUTGOING_ARGS.
1617 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
1619 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
1620 (use_crosses_set_p): Likewise.
1621 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
1622 #define ACCUMULATE_OUTGOING_ARGS 1.
1623 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
1625 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
1627 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
1628 (TARGET_SWITCHES): Add push-args, no-push-args,
1629 accumulate-outgoing-args and no-accumulate-outgoing-args.
1630 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
1631 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
1632 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
1634 (emit_push_insn): Likewise.
1635 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
1636 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
1637 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
1638 (STACK_DYNAMIC_OFFSET): Define correctly for both
1639 ACCUMULATE_OUTGOING_ARGS and normal mode.
1640 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
1641 * tm.texi (PUSH_ARGS): Document.
1642 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
1644 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
1646 * flags.h (flag_optimize_sibling_calls): Declare.
1647 * calls.c (expand_call): Fail sibcall when
1648 !flag_optimize_sibling_calls
1649 * invoke.texi (flag_optimize_sibling_calls): Document.
1650 * toplev.c (flag_optimize_sibling_calls): New global variable.
1651 (f_options): Add flag_optimize_sibling_calls.
1652 (rest_of_compilation): Conditionize
1653 optimize_sibling_and_tail_recursive_calls by
1654 flag_optimize_sibling_calls.
1655 (main): Set flag_optimize_sibling_calls for -O2.
1656 * stmt.c (expand_return): Conditionize tail recursion by
1657 flag_optimize_sibling_calls.
1659 2000-03-29 Richard Henderson <rth@cygnus.com>
1661 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
1662 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
1664 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
1666 * except.c (add_eh_table_entry): Mark type_info's as referenced.
1668 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1670 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
1672 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
1673 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
1674 * config/rs6000/aix.h: then modified likewise.
1676 2000-03-28 Richard Henderson <rth@cygnus.com>
1678 * rtl.h: Redistribute enum reg_note documentation.
1679 Kill trailing whitespace.
1680 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
1681 Kill trailing whitespace.
1683 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
1685 * cppfiles.c (hash_IHASH): Just return i->hash.
1686 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
1687 htab_find_with_hash.
1688 (cpp_read_file): Likewise.
1689 (find_include_file): Likewise. Properly initialize
1690 ih->nshort. Share ih->name and ih->nshort if possible.
1691 * cpphash.c (_cpp_calc_hash): New function.
1692 (hash_HASHNODE): Just return h->hash.
1693 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
1694 htab_find_with_hash.
1695 * cpphash.h: Prototype _cpp_calc_hash.
1696 * cppinit.c (initialize_builtins): Provide a valid hash
1697 to _cpp_make_hashnode, using _cpp_calc_hash.
1699 * cpphash.c (collect_expansion): # is not a special character
1700 in object-like macros. In -traditional mode, /**/ is not
1701 token paste at the beginning or end of the line.
1702 * cpplib.c (do_include, do_import, do_include_next): If
1703 parse_include fails, return immediately.
1705 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
1707 * config/arm/arm.md (return peepholes): Update to reflect the new
1709 * config/arm/arm.c (arm_volatile_func): Also check
1710 current_function_nothrow.
1711 (output_return_instruction, output_func_prologue): Use it.
1712 (arm_output_epilogue, arm_expand_prologue): Likewise.
1714 2000-03-27 Tom Tromey <tromey@cygnus.com>
1716 * gcc.c (handle_braces): In {x*...} case, break out of loop if
1719 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1721 * expr.c (store_constructor): SIZE now signed.
1722 For EXPR_SIZE, don't evaluate size; just needed if constant.
1723 * fold-const.c (fold): Fix a number of cases when folded tree is
1725 * function.c (flush_addressof): Reenable.
1726 * tree.h (flush_addressof): Likewise.
1727 * toplev.c (independent_decode_option): Look at strings_processed.
1728 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
1730 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
1732 * sibcall.c (indentify_call_return_value): Find last call in the chain;
1733 Allow stack adjustment after function call.
1735 * regmove.c (struct csa_memlist): Make mem field rtx *.
1736 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
1737 (try_apply_stack_adjustment): Replace whole MEM rtx.
1738 (combine_stack_adjustments_for_block): Update calls
1739 to record_one_stack_ref.
1741 2000-03-28 Neil Booth <NeilB@earthling.net>
1743 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
1744 '\\' rather than a null character, so nulls are not special. Fix
1745 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
1746 speed trigraph conversion.
1747 (_cpp_init_input_buffer): Initialize trigraph map.
1749 2000-03-27 Alan Modra <alan@linuxcare.com.au>
1751 * config/i386/i386.c (output_387_binary_op): Correct intel
1752 mode assembly output, and add spaces after commas in AT&T
1753 output. Correct Unixware assembler comment. Document input
1754 constraints. Comment fp operations. Reduce profligate buffer
1755 size. Remove extraneous abort. Localize temp var.
1756 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
1757 (output_fix_trunc): Add spaces after commas in assembly output.
1759 2000-03-27 Richard Henderson <rth@cygnus.com>
1761 * i386-protos.h (ix86_match_ccmode): Declare.
1762 * i386.c (ix86_match_ccmode): New.
1763 (ix86_expand_fp_compare): Update for pattern renames.
1764 (ix86_expand_strlensi_unroll_1): Likewise.
1765 * i386.h (EXTRA_CC_MODES): Add CCZ.
1766 (SELECT_CC_MODE): Use it for EQ/NE zero.
1767 * i386.md (cmpsi_ccz_1): New.
1769 (*testsi_ccz_1): New.
1770 (testqi_ccz_1): New.
1771 (cmpsi_ccno_1): Rename from cmpsi_0.
1772 (testsi_ccno_1): Rename from testsi_1.
1773 (testqi_ccno_1): Rename from testqi_1.
1774 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
1775 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
1776 (*cmphi_0): Use ix86_match_ccmode.
1777 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
1778 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
1779 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
1780 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
1781 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
1782 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
1783 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
1784 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
1785 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
1786 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
1787 (appropriate peepholes): Likewise.
1788 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
1789 (*subsi_3, *subhi_3, *subqi_3): Remove.
1790 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
1791 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
1792 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
1793 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
1794 (x86_shift_adj_1): Use CCZ.
1795 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
1797 2000-03-27 Stan Cox <scox@cygnus.com>
1799 * resource.h (mark_resource_type): New.
1800 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
1801 find_free_register): Use mark_resource_type.
1802 (mark_set_resources): Change include_delayed_effects
1803 to mark_resource_type.
1804 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
1805 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
1806 Use mark_resource_type.
1808 2000-03-27 Richard Henderson <rth@cygnus.com>
1810 * i386.md (call_pop_0, call_value_pop_0): New.
1811 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
1812 (call_value_pop_1): Likewise.
1813 (call_0, call_value_0): New.
1814 (call_1, call_value_1): Remove constraint from unused arg.
1816 2000-03-27 Nick Clifton <nickc@cygnus.com>
1818 * invoke.texi (Spec Files): Document new spec % command created by
1819 Tom Tromey's recent patch.
1821 2000-03-27 Jakub Jelinek <jakub@redhat.com>
1823 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
1826 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1828 * expr.c (expand_assignment): Fix typo in last change.
1830 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
1832 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1834 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
1835 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
1836 and DECL_INLINE if FUNCTION_DECL.
1837 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
1838 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
1839 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
1840 (combine_parm_decls): Likewise.
1841 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
1842 * print-tree.c (print_node): Likewise.
1843 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
1844 DECL_TRANSPARENT_UNION on proper decl types.
1845 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
1846 * stor-layout.c (layout_decl): Only check DECL_PACKED and
1847 DECL_BIT_FIELD of FIELD_DECL.
1848 * tree.h (DECL_RESULT_FLD): New macro.
1850 * expr.c (expand_assignment): Add code to handle variable-sized
1853 2000-03-26 Richard Henderson <rth@cygnus.com>
1855 * calls.c (expand_call): Pass parms not original exp to
1856 optimize_tail_recursion. Mind return value instead of looking
1858 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
1859 call_expr. Move checks for call_expr and current_function_decl ...
1860 (expand_return): ... here.
1862 2000-03-26 Tom Tromey <tromey@cygnus.com>
1864 * gcc.c (handle_braces): Recognize `%{<S}' construct.
1865 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
1867 (process_command): Use them.
1868 (check_live_switch): Likewise.
1869 (give_switch): Skip ignored switches.
1871 2000-03-26 Jan Hubicka <jh@suse.cz>
1873 * jump.c (jump_optimize_1): Fix typo in elide optimizations
1874 for minimal jump pass test.
1876 2000-03-26 Mark Mitchell <mark@codesourcery.com>
1878 * integrate.c (function_cannot_inline_p): Do inline functions that
1881 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1883 * stor-layout.c (layout_type, set_sizetype): early_type_list is
1884 now a list of TREE_LIST entries, not types.
1885 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
1887 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
1888 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
1890 * config/mips/mips.c (function_arg): Likewise; also remove cast
1891 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
1892 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
1893 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
1894 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
1895 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
1896 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
1897 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
1898 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
1899 num_adjusts now unsigned.
1900 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
1901 * config/sparc/sparc.c (struct function_arg_record_value_parms):
1903 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
1904 as is BITPOS variable; use host_integerp and int_bit_position.
1905 (function_arg_record_value_2): Likewise.
1906 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
1907 Variable REGNO now unsigned.
1908 (function_arg_record_value): NREGS now unsigned.
1910 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
1912 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
1914 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1916 * Rework fields used to describe positions of bitfields and
1917 modify sizes to be unsigned and use HOST_WIDE_INT.
1918 * alias.c (reg_known_value_size): Now unsigned.
1919 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
1920 (really_start_incremental_init): Use bitsize_zero_node.
1921 (push_init_level, pop_init_level, output_init_element): Likewise.
1922 Use bitsize_unit_node and bitsize_one_node.
1923 (output_pending_init_elements, process_init_element): Likewise.
1924 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
1925 (make_extraction): Position and length HOST_WIDE_INT and unsigned
1926 HOST_WIDE_INT, respectively.
1927 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
1928 (num_sign_bit_copies): Returns unsigned.
1929 BITWIDTH now unsigned; rework arithmetic.
1930 Remove recursive call from arg to MAX.
1931 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
1932 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
1934 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
1935 (find_split_point, expand_compound_operation, make_extraction): LEN
1936 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
1937 (make_field_assignment): Likewise.
1938 (combine_simplify_rtx): Add cast.
1939 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
1940 (force_to_mode): WIDTH now unsigned; add cast.
1941 (if_then_else_cond): SIZE now unsigned.
1942 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
1943 (extended_count): Now returns unsigned.
1944 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
1945 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
1946 (simplify_comparison): MODE_WIDTH now unsigned.
1947 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
1948 (mark_used_regs_combine): Likewise; rework arithmetic.
1949 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
1950 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
1951 (record_promoted_value): REGNO now unsigned.
1952 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
1953 (get_last_value): REGNO now unsigned.
1954 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
1955 (reg_dead_regno, reg_dead_endregno): Now unsigned.
1956 (remove_death): Arg REGNO now unsigned.
1957 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
1958 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
1960 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
1961 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
1962 (struct cse_reg_info): REGNO now unsigned.
1963 (cached_regno): Now unsigned.
1964 (REGNO_QTY_VALID_P): Add cast.
1965 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
1966 (remove_invalid_regs): Likewise.
1967 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
1968 as are variables END and I.
1969 (get_cse_reg_info, insert): Likewise.
1970 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
1971 (canon_hash): Likewise.
1972 (insert_regs, lookup_for_remove): REGNO now unsigned.
1973 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
1975 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
1976 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
1977 * emit-rtl.c (subreg_realpart_p): Add cast.
1978 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
1979 (operand_subword_force): Arg I is now unsigned.
1980 * except.c (eh_regs): Variable I is now unsigned.
1981 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
1982 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
1983 length is unsigned HOST_WIDE_INT; likewise for internal variables.
1984 (store_split_bit_field, extract_fixed_bit_field): Likewise.
1985 (extract_split_bit_field, store_bit_field, extract_bit_field):
1987 * expr.c (store_constructor_fields, store_constructor, store_field):
1988 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
1989 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
1990 (do_jump): Likewise.
1991 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
1992 MAX_SIZE is now unsigned.
1993 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
1994 (emit_group_store): Likewise.
1995 (emit_move_insn): I now unsigned.
1996 (store_constructor): Use host_integerp, tree_low_cst, and
1998 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
1999 Rework all calculations to use trees and new fields.
2000 * expr.h (promoted_input_arg): Regno now unsigned.
2001 (store_bit_field, extract_bit_field): Adjust types of pos and size.
2002 (mark_seen_cases): Arg is HOST_WIDE_INT.
2003 * flow.c (verify_wide_reg_1): REGNO now unsigned.
2004 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
2005 precisions and alignments are unsigned.
2006 (optimize_bit_field_compare, fold_truthop): Likewise.
2007 (int_const_binop): Adjust threshold for size_int_type_wide call.
2008 (fold_convert): Likewise.
2009 (size_int_type_wide): Make table larger and fix thinko that only
2010 had half of table used.
2011 (all_ones_mask_p, fold): Precisions are unsigned.
2012 * function.c (put_reg_info_stack): REGNO is unsigned.
2013 (instantiate_decl): Size is HOST_WIDE_INT.
2014 (instantiate_virtual_regs): I is unsigned.
2015 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
2016 (promoted_input_arg): REGNO is unsigned.
2017 * function.h (struct function): x_max_parm_reg is now unsigned.
2018 * gcse.c (max_gcse_regno): Now unsigned.
2019 (struct null_pointer_info): min_reg and max_reg now unsigned.
2020 (lookup_set, next_set): REGNO arg now unsigned.
2021 (compute_hash_table): REGNO and I now unsigned.
2022 (handle_avail_expr): regnum_for_replacing now unsigned.
2023 (cprop_insn): REGNO now unsigned.
2024 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
2025 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
2026 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
2027 * hard-reg-set.h (reg_class_size): Now unsigned.
2028 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
2029 * jump.c (mark_modified_reg): I now unsigned; add cast.
2030 (rtx_equal_for_thread_p): Add cast.
2031 * loop.c (max_reg_before_loop): Now unsigned.
2032 (struct_movable): REGNO now unsigned.
2033 (try_copy_prop): REGNO arg unsigned.
2034 (regs_match_p): XN and YN now unsigned.
2035 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
2036 (strength_reduce): Likewise; NREGS also unsigned.
2037 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
2038 * loop.h (struct iv_class): REGNO now unsigned.
2039 (max_reg_before_loop, first_increment_giv, last_increment_giv):
2041 * machmode.h (mode_size, mode_unit_size): Now unsigned.
2042 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
2043 * optabs.c (expand_binop): I and NWORDS now unsigned.
2044 (expand_unop): I now unsigned.
2045 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
2046 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
2047 * real.c (significand_size): Now returns unsigned.
2048 * real.h (significand_size): Likewise.
2049 * regclass.c (reg_class_size): Now unsigned.
2050 (choose_hard_reg_mode): Both operands now unsigned.
2051 (record_reg_classes): REGNO and NR now unsigned.
2052 (reg_scan): NREGS now unsigned.
2053 (reg_scan_update): old_max_regno now unsigned.
2054 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
2055 * reload.c (find_valid_class): BEST_SIZE now unsigned.
2056 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
2057 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
2058 Likewise for variable R.
2059 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
2060 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
2061 (find_equiv_reg): Add casts.
2062 (regno_clobbered_p): Arg REGNO now unsigned.
2063 * reload.h (struct reload): NREGS now unsigned.
2064 (refers_to_regno_for_reload_p): Regno args are unsigned.
2065 (regno_clobbered_p): Likewise.
2066 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
2067 (compute_use_by_pseudos): REGNO now unsigned.
2068 (find_reg): I and J now unsigned, new variable K, and change loop
2069 variables accordingly; THIS_NREGS now unsigned.
2070 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
2071 (spill_hard_reg): REGNO arg now unsigned; add casts.
2072 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
2073 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
2074 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
2075 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
2076 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
2077 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
2078 (emit_reload_insns): REGNO now unsigned.
2079 (reload_cse_move2add): Add cast.
2080 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
2082 * resource.c (mark_referenced_resources, mark_set_resources): New
2083 variable R; REGNO and LAST_REGNO now unsigned.
2084 (mark_target_live_regs): J and REGNO now unsigned.
2085 * rtl.c (mode_size, mode_unit_size): Now unsigned.
2086 * rtl.h (union rtunion_def): New field rtuint.
2087 (XCUINT): New macro.
2088 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
2089 (operand_subword, operand_subword_force): Word number is unsigned.
2090 (choose_hard_reg_mode): Operands are unsigned.
2091 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
2092 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
2093 (regno_use_in, combine_instructions, remove_death): Likewise.
2094 (reg_scan, reg_scan_update): Likewise.
2095 (extended_count): Return is unsigned.
2096 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
2097 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
2098 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
2099 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
2100 (reg_reg_last_1): FIRS and LAST now unsigned.
2101 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
2102 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
2104 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
2105 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
2106 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
2107 (replace_regs): Arg NREGS now unsigned.
2108 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
2109 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
2110 (simplify_binary_operation): Likewise.
2111 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
2112 THIS_LAST now unsigned.
2113 (cselib_record_set): Add cast.
2114 * ssa.c (ssa_max_reg_num): Now unsigned.
2115 (rename_block): REGNO now unsigned.
2116 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
2118 (all_cases_count): Just return -1 not -2.
2119 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
2120 Rework tests to use trees whenever possible.
2121 Use host_integerp and tree_low_cst.
2122 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
2123 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
2124 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
2125 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
2126 (smallest_mode_for_size): Likewise.
2127 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
2128 KNOWN_ALIGN is now an alignment, so simplify code.
2129 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
2130 (start_record_layout): Renamed from new_record_layout_info.
2131 Update to new fields.
2132 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
2134 (place_union_field): Renamed from layout_union_field.
2135 Update to use new fields in rli.
2136 (place_field): Renamed from layout_field.
2137 Major rewrite to use new fields in rli; pass alignment to layout_decl.
2138 (finalize_record_size): Rework to use new fields in rli and handle
2140 (compute_record_mode): Rework to simplify and to use new DECL fields.
2141 (finalize_type_size): Make rounding more consistent.
2142 (finish_union_layout): Deleted.
2143 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
2144 (layout_type, case RECORD_TYPE): Call new function names.
2145 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
2146 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
2147 (get_best_mode): UNIT is now unsigned; remove casts.
2148 * tree.c (bit_position): Compute from new fields.
2149 (byte_position, int_byte_position): New functions.
2150 (print_type_hash_statistics): Cast to remove warning.
2151 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
2152 (build_index_type): Likewise; make subtype of sizetype.
2153 (build_index_2_type): Pass sizetype to build_range_type.
2154 (build_common_tree_nodes): Use size_int and bitsize_int to
2155 initialize nodes; add bitsize_{zero,one,unit}_node.
2156 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
2157 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
2158 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
2159 (DECL_FIELD_BITPOS): Deleted.
2160 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
2161 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
2162 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
2163 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
2164 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
2165 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
2166 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
2167 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
2168 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
2169 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
2170 (DECL_ALIGN): Adjust to new field in union.
2171 (DECL_OFFSET_ALIGN): New field.
2172 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
2173 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
2174 (union tree_decl): Add struct for both aligns.
2175 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
2176 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
2177 (struct record_layout_info): Rework fields to have offset
2178 alignment and byte and bit position.
2179 (start_record_layout, place_field): Renamed from old names.
2180 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
2181 (byte_position, int_byte_position): Likewise.
2182 (get_inner_reference): Change types of position and length.
2183 * unroll.c (unroll_loop): New variable R; use for some loops.
2184 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
2185 (calculate_giv_inc): Arg REGNO now unsigned.
2186 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
2187 * varasm.c (assemble_variable): Clean up handling of size using
2188 host_integerp and tree_low_cst.
2189 (decode_addr_const): Use byte, not bit, position.
2190 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
2191 use tree_low_cst and int_bit_position.
2192 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
2194 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
2196 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
2197 (reorder_block_def): New members eff_head and eff_end.
2198 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
2199 (verify_insn_chain): New function.
2200 (skip_insns_between_block): Add code to skip deleted insns.
2201 Check for note before using.
2202 (chain_reorder_blocks): Replace calls to skip_insns_between_block
2203 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
2204 Check for note before using.
2205 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
2206 (fixup_reorder_chain): Restructure, clean up, defect removal.
2207 (reorder_basic_blocks): Remove last_insn and references to it.
2208 Moved insn chain verification code into a new function (see above).
2209 Delete defective code that sets last insn.
2210 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
2213 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2215 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
2217 2000-03-24 Richard Henderson <rth@cygnus.com>
2219 * tree.c (lang_safe_for_unsave): Remove.
2220 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
2221 allowing for two levels of unsafeness. Remove lang hook.
2222 * tree.h: Update declarations.
2223 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
2224 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
2225 Always fail sibcalls when there are pending cleanups.
2227 2000-03-24 Geoff Keating <geoffk@cygnus.com>
2229 * flow.c (propagate_block): When we delete an ADDR_VEC,
2230 also delete the BARRIER following it if there is one.
2232 2000-03-24 Richard Henderson <rth@cygnus.com>
2234 * builtins.c (expand_builtin_bzero): Convert `length' argument
2237 2000-03-24 Jakub Jelinek <jakub@redhat.com>
2239 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
2240 comparison if regno's are equal.
2241 * calls.c (initialize_argument_informat): Add ecf_flags argument.
2242 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
2243 (expand_call): Update caller.
2244 Avoid making a sibling call if argument size of the callee is larger
2245 than argument size of the caller.
2246 Call hard_function_value with outgoing set if in sibcall pass.
2247 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
2249 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
2250 Change LEAF_REGISTERS from an array initializer to actual array
2251 identifier. Move static global variable into the function.
2252 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
2253 sequences for leaf functions.
2254 * global.c (global_alloc): Likewise.
2255 * tm.texi (LEAF_REGISTERS): Update documentation.
2257 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
2258 TARGET_FLAT leaf disabling hack.
2259 (LEAF_REGISTERS): Changed from an array initializer to actual array
2260 identifier to avoid duplication and remove the above hack.
2261 (FUNCTION_OK_FOR_SIBCALL): Define.
2262 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
2263 always like call attribute.
2264 (eligible_for_sibcall_delay): New attribute.
2265 (sibcall): New delay type.
2266 (sibcall, sibcall_value, sibcall_epilogue): New expands.
2267 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
2268 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
2269 * config/sparc/sparc.c (sparc_leaf_regs): New array.
2270 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
2272 (output_function_epilogue): Move part of the code into
2273 output_restore_regs.
2274 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
2276 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
2279 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
2280 until infrastructure is finished.
2282 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
2284 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
2285 (save_parm_insns): Not here.
2287 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2289 * builtins.c (expand_builtin_bzero): New function.
2290 (expand_builtin): Handle bzero.
2292 * builtins.def: Add BUILT_IN_BZERO.
2294 * c-common.c (c_common_nodes_and_builtins): Provide builtin
2295 prototype & function for bzero.
2297 2000-03-23 Michael Meissner <meissner@redhat.com>
2299 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
2300 change adding TARGET_FP to the TF floating point insns, except for
2301 trunctfsf2, which generates direct calls to truncdfsf2.
2303 2000-03-23 Geoff Keating <geoffk@cygnus.com>
2305 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
2306 try to protect against middle-end changes that break binary
2308 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
2310 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2312 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
2314 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2316 * calls.c (expand_call): If TARGET is passed by reference and
2317 is readonly, write a CLOBBER.
2319 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2321 * builtins.c (expand_builtin): Handle bcmp.
2323 * builtins.def: Add BUILT_IN_BCMP.
2325 * c-common.c (c_common_nodes_and_builtins): Provide builtin
2326 prototype & function for bcmp.
2328 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
2330 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
2331 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
2332 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
2334 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
2336 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
2337 alternative when using -fp64 -gp32.
2339 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
2341 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
2342 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
2343 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
2345 * frame.h (frame_state): Revert last change.
2346 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
2347 * libgcc2.c (throw_helper): Revert last change.
2349 2000-03-22 Richard Henderson <rth@cygnus.com>
2351 * stmt.c (expand_asm_operands): Don't promote the temporary.
2353 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2355 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
2356 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
2357 c_get_alias_set): Likewise.
2358 * c-decl.c (duplicate_decls): Likewise.
2359 * c-typeck.c (default_conversion,build_unary_op): Likewise.
2360 * calls.c (initialize_argument_information): Likewise.
2361 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
2363 * dwarfout.c (decl_class_context,output_type): Likewise.
2364 * expr.c (get_inner_reference): Likewise.
2365 * fold-const.c (simple_operand_p,fold): Likewise.
2366 * function.c (aggregate_value_p): Likewise.
2367 * stmt.c (expand_asm_operands): Likewise.
2368 * varasm.c (named_section): Likewise.
2370 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
2372 Implement dwarf2 exception handling for the ARM.
2373 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
2374 (DWARF_FRAME_RETURN_COLUMN): Define.
2375 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
2376 REG_FRAME_RELATED_EXPR note.
2377 (emit_sfm): Likewise.
2378 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
2379 * dwarf2out.c (reg_save): Handle saving a register to itself.
2380 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
2381 * except.c (eh_regs): Don't use the static chain reg if it's
2383 * frame.h (frame_state): Add cfa_saved field.
2384 * frame.c (execute_cfa_insn): Set it.
2385 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
2387 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
2389 (instantiate_virtual_regs): Adjust.
2391 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
2392 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
2393 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
2395 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
2396 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
2398 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2400 * builtins.def: New file.
2402 * Makefile.in (TREE_H): Depend on builtins.def.
2404 * builtins.c (built_in_names): Use builtins.def.
2406 * tree.h (built_in_function): Likewise.
2408 2000-03-22 Mark Mitchell <mark@codesourcery.com>
2410 * tree.c (size_in_bytes): Return size_zero_node, not
2413 2000-03-22 Geoff Keating <geoffk@cygnus.com>
2415 * config/fp-bit.c (pack_d): Correct the case when a denormal
2416 is rounded up and stops being denormal.
2418 2000-03-21 Richard Henderson <rth@cygnus.com>
2420 * config/alpha/alpha.c (function_arg): Check for void_type_node
2421 before using MUST_PASS_IN_STACK.
2423 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
2425 * regmove.c (combine_stack_adjustments_for_block): Check that
2426 the stack pointer is a valid memory address.
2428 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
2430 * calls.c: re-install Mar 16 emit_library_call merge.
2432 2000-03-21 Jakub Jelinek <jakub@redhat.com>
2434 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
2435 we cannot be sure that if reload_completed base register will
2436 be properly aligned.
2438 2000-03-21 Richard Henderson <rth@cygnus.com>
2440 * flow.c (delete_block): Fix typo last change.
2442 2000-03-21 Mark Mitchell <mark@codesourcery.com>
2444 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
2445 not COMPLETE_TYPE_P, to check the type of the expression.
2447 2000-03-21 Michael Meissner <meissner@redhat.com>
2449 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
2450 all floating point insns that just tested the macro
2451 TARGET_HAS_XFLOATING_LIBS.
2452 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
2453 used to only use the gprs.
2455 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
2457 * tree.h (COMPLETE_TYPE_P): New macro.
2458 (COMPLETE_OR_VOID_TYPE_P): New macro.
2459 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
2460 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
2461 * c-aux-info.c (gen_type): Use them.
2462 * c-common.c (c_expand_expr_stmt): Likewise.
2463 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
2464 grokdeclarator, grokparms, finish_struct, start_function,
2465 store_parm_decls, combine_parm_decls): Likewise.
2466 * c-parse.y (cast_expr): Likewise.
2467 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
2468 c_size_in_bytes, c_alignof, build_component_ref,
2469 build_indirect_ref, build_array_ref, convert_arguments,
2470 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
2471 * calls.c (initialize_argument_information): Likewise.
2472 * convert.c (convert_to_integer): Likewise.
2473 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
2474 * dwarfout.c (location_or_const_value_attribute,
2475 output_enumeration_type_die, output_structure_type_die,
2476 output_union_type_die, output_type): Likewise.
2477 * expr.c (safe_from_p, expand_expr): Likewise.
2478 * function.c (assign_parms): Likewise.
2479 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
2480 * tree.c (build_array_type, build_function_type,
2481 build_method_type, build_offset_type, build_complex_type): Likewise.
2482 * c-parse.c, c-parse.h: Regenerated.
2484 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2486 * config/c4x/rtems.h: Include config/rtems.h.
2488 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
2490 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
2491 decl is a FUNCTION_DECL
2493 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
2495 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
2496 function uses output registers. Don't save RP for leaf functions.
2497 Do save RP even if no epilogue.
2498 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
2499 (CALL_USED_REGISTERS): Unmark in registers.
2500 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
2503 2000-03-20 Geoff Keating <geoffk@cygnus.com>
2505 * config/rs6000/rs6000.md (bunordered): New expander.
2506 (bordered): New expander.
2507 (buneq): New expander.
2508 (bunge): New expander.
2509 (bungt): New expander.
2510 (bunle): New expander.
2511 (bunlt): New expander.
2512 (bltgt): New expander.
2514 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
2515 (ccr_bit_negated_p): New function.
2516 (print_operand): For %C, generate appropriate cror for UNEQ,
2517 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
2519 2000-03-20 Andreas Jaeger <aj@suse.de>
2521 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
2524 * tree.h (safe_for_unsave): Prototype.
2526 2000-03-20 Richard Henderson <rth@cygnus.com>
2528 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
2529 (combine_stack_adjustments_for_block): Don't allow sp references
2530 in the side of a set we're not fixing up.
2531 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
2532 after life_analysis.
2534 2000-03-20 Richard Henderson <rth@cygnus.com>
2536 * calls.c (expand_call): Don't bother generating tail call
2537 sequences if there are pending cleanups. Use
2538 expand_start_target_temps/expand_end_target_temps to elide
2539 cleanups created during sibcall expansion.
2541 2000-03-20 Geoff Keating <geoffk@cygnus.com>
2543 * configure.in: Set $IFS to a value if it doesn't already have one
2544 in the --enable-checking handling.
2545 * configure: Regenerate.
2547 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2549 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
2550 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
2553 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
2555 * jump.c (delete_noop_moves): Remove code attempting to
2556 combine stack adjustments.
2558 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2560 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
2561 * except.c (emit_cleanup_handler): Use them.
2562 (expand_end_all_catch): Likewise.
2563 * function.c (fixup_var_refs): Likewise.
2564 (expand_function_end): Clear catch_clauses_last.
2565 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
2566 * except.h (struct eh_status): New field x_catch_clauses_last.
2567 (catch_clauses_last): New define.
2569 * Makefile.in (tree.o): Depend on HASHTAB_H.
2570 * tree.c: Include hashtab.h.
2571 (struct type_hash): Remove next field.
2572 (TYPE_HASH_SIZE): Remove.
2573 (TYPE_HASH_INITIAL_SIZE): New define.
2574 (type_hash_table): Change type to htab_t.
2575 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
2576 mark_hash_entry): New functions.
2577 (init_obstacks): Allocate type hash.
2578 (type_hash_lookup): Use htab functions.
2579 (type_hash_add, mark_type_hash): Likewise.
2580 (dump_tree_statistics): Call print_type_hash_statistics.
2582 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2584 * rs6000/t-aix41: New file.
2586 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
2588 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
2590 * tm.texi (Driver): Fix typos and tweak entry for
2592 Move misplaced STRUCT_FORCE_BLK entry ...
2593 (Storage Layout): ... to here.
2594 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
2596 2000-03-19 Richard Henderson <rth@cygnus.com>
2598 * flow.c (delete_block): Delete the addr_vec along with the block.
2599 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
2602 * fold-const.c (extract_muldiv): Apply type check for defined
2603 overflow to multiply as well as divide.
2605 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
2607 2000-03-18 Mark Mitchell <mark@codesourcery.com>
2609 * emit-rtl.c (remove_unncessary_notes): Check that all
2610 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
2611 associated NOTE_BLOCK.
2612 * function.h (identify_blocks): Update comments.
2613 (reorder_blocks): Declare.
2614 * function.c (identify_blocks): Don't take paramters.
2615 (reorder_blocks): Don't take parameters.
2616 * loop.h (find_loop_tree_blocks): Remove.
2617 (unroll_block_trees): Likewise.
2618 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
2619 reorder_blocks instead of unroll_block_trees.h
2620 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
2621 * stmt.c (find_loop_tree_blocks): Remove.
2622 (unroll_block_trees): Likewise.
2623 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
2624 in whole-function mode.
2625 * tree.h (reorder_blocks): Remove declaration.
2627 * expr.c: Include intl.h.
2628 * Makefile.in (expr.o): Depend on intl.h.
2630 2000-03-18 Richard Henderson <rth@cygnus.com>
2632 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
2634 2000-03-18 Mark Mitchell <mark@codesourcery.com>
2636 * tree.h (tree_index): Remove enumerals for integer types.
2637 (integer_type_kind): New type.
2638 (integer_types): New variable.
2639 (char_type_node): Adjust.
2640 (signed_char_type_node): Likewise.
2641 (unsigned_char_type_node): Likewise.
2642 (short_integer_type_node): Likewise.
2643 (short_unsigned_type_node): Likewise.
2644 (integer_type_node): Likewise.
2645 (unsigned_type_node): Likewise.
2646 (long_integer_type_node): Likewise.
2647 (long_unsigned_type_node): Likewise.
2648 (long_long_integer_type_node): Likewise.
2649 (long_long_unsigned_type_node): Likewise.
2650 * tree.c (integer_types): New variable.
2651 (init_obstacks): Register it as a root.
2653 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
2655 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
2656 NEXT_INSN. Update last insn in chain.
2658 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
2660 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
2661 with TYPE_DECL_SUPPRESS_DEBUG set.
2663 2000-03-18 Richard Henderson <rth@cygnus.com>
2665 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
2667 2000-03-18 Richard Henderson <rth@cygnus.com>
2669 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
2670 care for HALF_PIC_P.
2671 (expander_call_insn_operand): Remove.
2672 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
2673 * i386.h (PREDICATE_CODES): Update.
2674 * i386.md (all call expanders): Remove predicates, remove special
2675 handling for half-pic.
2676 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
2677 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
2678 (sibcall_epilogue): New.
2680 2000-03-17 Richard Henderson <rth@cygnus.com>
2682 * rtlanal.c (single_set): Reject if the parallel has anything
2683 except SET or USE or CLOBBER.
2685 2000-03-17 Jeff Law <law@cygnus.com>
2686 Richard Henderson <rth@cygnus.com>
2688 * Makefile.in (OBJS): Add sibcall.o.
2690 * sibcall.c: New file.
2691 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
2692 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
2693 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
2694 Emit sibcall patterns when requested. Update all callers.
2695 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
2696 elimination seems feasable.
2697 * final.c (leaf_function_p): Sibling calls don't discount being
2699 * flow.c (HAVE_sibcall_epilogue): Provide default.
2700 (find_basic_blocks_1): Sibling calls don't throw.
2701 (make_edges): Make edge from sibling call to EXIT.
2702 (propagate_block): Don't remove sibcall_epilogue insns.
2703 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
2704 (sibcall_epilogue): New.
2705 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
2706 (identify_blocks_1): Likewise. Break out from ...
2707 (identify_blocks): ... here.
2708 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
2709 (reorder_blocks): ... here.
2710 (init_function_for_compilation): Zap prologue/epilogue as varrays.
2711 (record_insns): Extend a varray instead of mallocing new memory.
2712 (contains): Read a varray not array of ints.
2713 (sibcall_epilogue_contains): New.
2714 (thread_prologue_and_epilogue_insns): Emit and record
2715 sibcall_epilogue patterns.
2716 (init_function_once): Allocate prologue/epilogue varrays.
2717 * genflags.c (gen_insn): Treat sibcall patterns as calls.
2718 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
2720 (save_for_inline_nocopy): ... here.
2721 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
2723 (expand_inline_function): ... here.
2724 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
2725 (subst_constants): Handle 'n' formats.
2726 * jump.c (jump_optimize_minimal): New.
2727 (jump_optimize_1): New arg `minimal'; update callers. Elide most
2728 optimizations if it's set.
2729 * rtl.c (copy_rtx): Do copy jump & call for insns.
2730 * rtl.h (struct rtx_def): Document use of jump and call for insns.
2731 (SIBLING_CALL_P): New.
2732 (sibcall_use_t): New.
2733 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
2734 Invoke optimize_sibling_and_tail_recursive_calls.
2735 * tree.c (lang_safe_for_unsave): New.
2736 (safe_for_unsave): New.
2737 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
2739 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
2740 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
2741 (*sibcall_osf_1, *sibcall_value_osf_1): New.
2743 2000-03-17 Mark Mitchell <mark@codesourcery.com>
2745 * objc/objc-act.c (encode_method_prototype): Pass types, not
2746 PARM_DECLs, to int_size_in_bytes.
2748 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
2750 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
2752 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
2753 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
2755 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2757 * Clean up usages of TREE_INT_CST_LOW.
2758 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
2759 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
2761 * c-tree.h (min_precision): Move declaration to here.
2762 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
2763 (build_unary_op, add_pending_init): Use bit_position.
2764 (pending_init_member, process_init_element): Likewise.
2765 (really_start_incremental_init, push_init_level, pop_init_level):
2766 Don't make copies of nodes or modify them in place, use consistent
2767 types when tracking positions, and use tree routines computations.
2768 (set_init_index, output_init_element): Likewise.
2769 (output_pending_init_elements, process_init_element): Likewise.
2770 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
2771 tree_low_cst and int_bit_position; also minor cleanup.
2772 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
2773 (print_cst_octal): Precision is unsigned.
2774 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
2775 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
2776 (simple_type_align_in_bits): Result is unsigned int.
2777 Use tree_int_low_cst and host_integerp.
2778 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
2779 (field_byte_offset): Result is HOST_WIDE_INT.
2780 Change types of internal variables so alignments are unsigned int,
2781 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
2782 Use host_integerp, tree_low_cst, and int_bit_position.
2783 (add_bit_offset_attribute): Likewise.
2784 (add_data_member_location_attribute): Use tree_cst_low.
2785 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
2786 (add_bit_size_attribute): Use tree_low_cst.
2787 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
2788 * dwarfout.c: Similar changes to dwarf2out.c.
2789 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
2790 * genoutput.c (n_occurences): Return -1 for null string.
2791 (strip_whitespace): Accept null string and make into function.
2792 (scan_operands): Reflect above changes.
2793 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
2794 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
2795 * ssa.c (rename_registers): Add missing cast of arg to bzero.
2796 * tree.c (int_size_in_bytes): Check for too big to represent.
2797 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
2798 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
2800 (min_precision): Delete from here.
2801 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
2802 and int_bit_position.
2803 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
2804 (encode_method_def): Likewise.
2805 (build_ivar_list_initializer): Use int_bit_position.
2806 (generate_shared_structures): Convert size.
2807 (encode_type, encode_complete_bitfield): Use integer_zerop.
2808 (encode_bitfield): Use tree_low_cst and int_bit_position.
2810 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2812 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
2814 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2816 * call.c (special_function_p): It is only malloc if it returns
2819 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2821 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
2822 (C33_FLAG, TARGET_C3X): Add macros.
2823 (TARGET_SWITCHES): Add -m33 option.
2824 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
2826 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2828 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
2829 (PARALLEL_PACK_FLAG): Delete.
2830 (TARGET_SWITCHES): Update.
2831 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
2833 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2835 * fold-const.c (fold): Fix a few cases when the returned result
2836 is not of the same type as the input.
2838 2000-03-16 Nick Clifton <nickc@cygnus.com>
2840 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
2843 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2845 * libgcc2.h: Move prototypes above macros with the same name.
2846 Wrap some function prototypes in the conditional which indicates
2847 whether they are supported, i.e. "BITS_PER_UNIT == 8".
2849 2000-03-16 Richard Henderson <rth@cygnus.com>
2851 * calls.c: Revert last two changes.
2853 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
2855 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
2856 has exponent 0 is a zero.
2858 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
2859 HASH may already be nonzero. Add code/mode into hash value
2860 immediately after repeat label.
2861 (cselib_lookup): Don't leave the hash table in an inconsistent
2862 state before a hash lookup operation.
2864 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
2866 * i386.md (all HI and QI mode non-move patterns): Conditionize
2867 by TARGET_[HQ]IMODE_MATH.
2868 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
2869 x86_promote_qi_regs): Declare.
2870 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
2871 TARGET_PROMOTE_QI_REGS): New macros.
2872 (PROMOTE_MODE): New macro.
2873 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
2874 x86_promote_qi_regs): New global variables.
2876 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
2878 * calls.c (emit_library_call_value_1): Break out from ...; handle
2879 VOIDmode function calls too.
2880 (emit_library_call_value): ... here.
2881 (emit_library_call): Implement by calling emit_library_call_value_1.
2883 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
2885 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
2886 Update arg_space_so_far on stack adjustments.
2887 (emit_library_call, emit_library_call_value): Likewise; take into
2888 account arg_space_so_far and pending_stack_adjust when calculcating
2891 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
2893 * flow.c: Move all basic block reordering code into its own file.
2894 (create_basic_block): Externalize.
2895 * bb-reorder.c: New file. Copy all basic block reordering code from
2896 flow.c to this file.
2897 (reorder_basic_blocks): Fix fencepost error in for-loop.
2898 (reorder_basic_blocks): Remove braces from single statement for-loops.
2899 * basic-block.h: Add declaration for create_basic_block.
2900 * Makefile.in: Add rules for bb-reorder.o.
2902 2000-03-16 Neil Booth <NeilB@earthling.net>
2904 * cppinit.c (handle_option): Implement #unassert directive
2905 as -A- command line option.
2906 (print_help): Update.
2907 * cpptexi.c: Update.
2909 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
2911 * md.texi (Standard Names): Document `jump'.
2913 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
2915 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
2918 2000-03-15 Geoff Keating <geoffk@cygnus.com>
2920 Merge changes from newppc-branch onto trunk.
2922 2000-03-15 Geoff Keating <geoffk@cygnus.com>
2924 * rs6000.c (toc_hash_table): Update for new hash table functions.
2925 (toc_hash_function): Likewise.
2926 (toc_hash_eq): Likewise.
2927 (toc_hash_mark_entry): Likewise.
2928 (toc_hash_mark_table): Likewise.
2929 (output_toc): Likewise.
2930 (rs6000_add_gc_roots): Likewise.
2932 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2934 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
2935 (AR_FLAGS_FOR_TARGET): here. New macro.
2937 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
2939 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
2940 fpmem_operand) Delete.
2942 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
2943 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
2944 (rs6000_save_machine_status, rs6000_restore_machine_status,
2945 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
2946 references to above variables.
2947 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
2948 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
2949 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
2950 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
2951 (XER_REGNO_P, XER_REGNO): New.
2952 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
2953 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
2954 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
2956 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
2957 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
2958 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
2960 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2962 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
2963 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
2964 * rs6000.h: from here.
2966 * rs6000-protos.h (rs6000_select_section): Provide prototype.
2967 (rs6000_select_rtx_section): Likewise.
2968 (rs6000_encode_section_info): Likewise.
2969 (sdata_section): Likewise.
2970 (sdata2_section): Likewise.
2971 (sbss_section): Likewise.
2972 * sysv4.h (rs6000_select_section): Delete prototype.
2973 (rs6000_select_rtx_section): Likewise.
2974 (rs6000_encode_section_info): Likewise.
2975 (sdata_section): Likewise.
2976 (sdata2_section): Likewise.
2977 (sbss_section): Likewise.
2978 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
2980 * sysv4.h: Delete various unnecessary #undef's and put a comment
2981 on the remaining ones.
2982 Change various comments according to coding standard.
2984 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
2986 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
2987 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
2988 (CR0_REGNO_P) Remove.
2989 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
2990 setup_incoming_varargs, mtcrf_operation, print_operand,
2991 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
2992 Use the above macros.
2994 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
2996 * config/rs6000/rs6000.md: Added a new alternative for each
2997 pattern that had a 'x' alternative but no 'y' alternative.
2998 Added a new split for each of the above patterns.
3000 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3002 * aix41.h (ASM_CPU_SPEC): Delete.
3003 (CPP_CPU_SPEC): Delete.
3005 * aix.h (RS6000_OUTPUT_BASENAME): Define.
3006 (ASM_OUTPUT_LABEL): Define.
3007 (ASM_GLOBALIZE_LABEL): Define.
3008 (STRIP_NAME_ENCODING): Define.
3009 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
3010 (STRIP_NAME_ENCODING): Don't define.
3011 (ASM_OUTPUT_LABEL): Don't define.
3012 (ASM_GLOBALIZE_LABEL): Don't define.
3013 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
3014 names, and ASM_OUTPUT_LABEL to output labels, rather than
3016 (ASM_OUTPUT_LABEL): Define.
3017 (ASM_OUTPUT_INT): Use assemble_name.
3018 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
3019 (STRIP_NAME_ENCODING): Don't undefine first.
3020 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
3022 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
3023 specified with 'asm' even with -fleading-underscore.
3024 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
3025 (output_epilog): Likewise.
3026 (output_toc): Likewise.
3027 * tramp.asm: Handle -fleading-underscore correctly.
3029 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
3031 (nonlocal_goto_receiver): Delete.
3032 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
3034 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
3035 (SET_ASM_OP): Define.
3036 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
3038 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
3041 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
3042 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
3044 * rs6000.h: Add 'u' to more constants.
3046 2000-02-18 David Edelsohn <edelsohn@gnu.org>
3048 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
3050 2000-02-15 David Edelsohn <edelsohn@gnu.org>
3052 * rs6000.c (reg_or_u_cint_operand): New function.
3053 (logical_operand): Handle 64-bit hosts.
3054 (logical_u_operand): New function.
3055 (non_logical_cint_operand): Handle 64-bit hosts.
3056 (non_logical_u_cint_operand): New function.
3057 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
3058 (PREDICATE_CODES): Define new functions.
3059 * rs6000-protos.h: Declare new functions.
3060 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
3061 (movdi_64): Bracket code intended for 64-bit hosts. Create
3062 CONST_DOUBLE for 32-bit values.
3063 (scc insns): Generate DImode compares.
3064 (mfcr insns): Create DImode versions.
3065 (sge matchers): New patterns.
3067 2000-02-15 Gabriel Paubert <paubert@iram.es>
3069 * rs6000.md: Correct instructions length attributes and
3070 constraints on unsigned compare instructions.
3071 (*ne0): Disable for PowerPC64.
3073 2000-02-11 Geoff Keating <geoffk@cygnus.com>
3075 * rs6000.c (output_function_profiler): Use .long for a 32-bit
3076 quantity, fix profile1.C test failure under -fPIC.
3078 * rs6000.c: Add 'u' to many constants to suppress warnings.
3079 (constant_pool_expr_1): Make static.
3080 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
3081 * rs6000.h: Add 'u' to many constants to suppress warnings.
3083 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
3084 for the start of the TOC, instead of LCTOC..0.
3085 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
3087 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
3088 (load_toc_aix_di): Use LCTOC..1.
3090 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
3091 * rs6000.c (rs6000_legitimize_address): New function from
3092 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
3093 symbols in the constant pool that really are TOC references.
3094 (print_operand_address): For ELF, write TOC offsets under
3095 -fPIC as subtractions in the insn.
3096 (output_toc): For ELF, define symbols in TOC as normal labels,
3098 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
3099 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
3100 (create_TOC_reference): Prototype only when RTX_CODE is defined.
3101 * rs6000.md (movsi): Only use create_TOC_reference on
3102 symbols in the constant pool that really are TOC references.
3104 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
3105 * rs6000.c (rs6000_reorg): Delete.
3106 * rs6000-protos.h (rs6000_reorg): Delete.
3108 2000-02-09 Geoff Keating <geoffk@cygnus.com>
3110 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
3112 * aix.h (SETUP_FRAME_ADDRESSES): Define.
3113 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
3114 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
3115 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
3116 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
3117 rs6000_aix_emit_builtin_unwind_init.
3118 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
3119 rs6000_emit_eh_toc_restore on AIX.
3120 (return_eh_si): Use r2.
3121 (return_eh_di): Use r2.
3123 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
3124 since we're breaking binary compatibility anyway.
3126 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
3128 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
3129 constant_pool_expr_p): Declare them.
3130 (constant_pool_expr_p): Declare it.
3131 * config/rs6000/rs6000.c (toc_label_name): Define.
3132 (rs6000_override_options): Set toc_label_name.
3133 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
3134 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
3135 uses_TOC): New functions.
3136 (print_operand): Delete old '*' case.
3137 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
3138 and strip off rtl for TOC before calling output_addr_const.
3139 (rs6000_emit_load_toc_table): Use toc_label_name.
3140 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
3142 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
3143 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
3144 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
3145 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
3146 into explicit TOC_REGISTER offsets.
3147 (TOC_REGISTER): New macro.
3148 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
3149 TARGET_TOC to reference TOC_REGISTER.
3150 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
3151 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
3152 uses_TOC before emitting label references.
3154 2000-02-05 Geoff Keating <geoffk@cygnus.com>
3156 * rs6000.md (stack_tie): Fix warning.
3158 * eabi-ctors.c: Use 'asm' names for the start/end variables,
3159 to handle -fleading-underscore.
3160 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
3161 (USER_LABEL_PREFIX): New macro.
3162 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
3163 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3164 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
3165 call-linux can use the same multilibs.
3166 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
3167 and call-linux multilibs. Do multilib with -fleading-underscore.
3168 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
3169 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
3172 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
3173 have MASK_SOFT_FLOAT set.
3174 (CPP_FLOAT_DEFAULT_SPEC): New macro.
3175 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
3176 CPP_FLOAT_DEFAULT_SPEC.
3178 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
3179 * rs6000.md: Whitespace change.
3180 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
3181 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
3183 2000-02-05 Geoff Keating <geoffk@cygnus.com>
3185 * rs6000.md (eh_epilogue): New expander.
3186 (eh_reg_restore): New expand/split/insn combination.
3187 (return_eh_si): New insn.
3188 (return_eh_di): New insn.
3190 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
3191 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
3192 * eabi-ctors.c (__do_global_ctors): Register this object's
3193 frame. Clean up. Call atexit() after the constructors.
3194 (__do_global_dtors): Deregister this object's frame. Clean up.
3195 Allow for recursive calls to exit().
3196 * rs6000.c (fixuplabelno): New variable.
3197 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
3198 TARGET_RELOCATABLE, it slows down exec() under linux.
3199 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
3201 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
3202 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
3203 (ASM_OUTPUT_DWARF_DELTA2): New macro.
3204 (ASM_OUTPUT_DWARF_DELTA4): New macro.
3205 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
3206 (ASM_OUTPUT_DWARF_ADDR): New macro.
3207 (ASM_OUTPUT_DWARF_DATA4): New macro.
3208 (ASM_OUTPUT_DWARF_DATA2): New macro.
3209 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
3210 (ASM_OUTPUT_DWARF_OFFSET): New macro.
3211 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
3213 2000-02-03 Geoff Keating <geoffk@cygnus.com>
3215 * rs6000.c (rs6000_sr_alias_set): New variable.
3216 (rs6000_override_options): Initialise rs6000_sr_alias_set.
3217 (rs6000_emit_stack_tie): New function.
3218 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
3219 in a way that dwarf2out can understand.
3220 (rs6000_frame_related): New function.
3221 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
3222 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
3223 Use rs6000_emit_stack_tie when needed.
3224 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
3225 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
3226 * rs6000.md (stack_tie): New insn.
3227 (return_internal_si): Allow return value to be in the count
3229 (return_internal_di): Likewise.
3231 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
3233 2000-02-03 Geoff Keating <geoffk@cygnus.com>
3235 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
3237 2000-01-31 Geoff Keating <geoffk@cygnus.com>
3239 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
3241 * rs6000.md (stmw): Use the right POWER opcode.
3244 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3246 * rs6000-protos.h: New file.
3248 * rs6000.c: Include tm_p.h. Fix compile time warnings.
3250 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
3253 * sysv4.h: Likewise.
3255 2000-01-28 Geoff Keating <geoffk@cygnus.com>
3257 * ../../configure.in: Delete powerpcle-*-winnt*
3258 and powerpcle-*-pe|powerpcle-*-cygwin*.
3259 * ../../configure: Regenerated.
3261 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
3262 (TARGET_WINDOWS_NT): Delete.
3264 (CALL_NT_DLLIMPORT): Delete.
3265 Delete NT-specific code.
3266 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
3269 * nt-ci.asm: Delete.
3270 * nt-cn.asm: Delete.
3271 * ntstack.asm: Delete.
3273 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3275 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
3276 (ASM_FILE_START): Likewise.
3277 (ASM_DECLARE_FUNCTION_NAME): Likewise.
3278 (ASM_OUTPUT_LABELREF): Likewise.
3279 (ASM_OUTPUT_SKIP): Likewise.
3280 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3281 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3282 (ASM_OUTPUT_CASE_LABEL): Likewise.
3283 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3284 (ASM_OUTPUT_ASCII): Likewise.
3286 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
3288 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
3289 reload_toc_labelno for non-prologue TOC reloads. Also, don't
3290 increment rs6000_pic_labelno here.
3291 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
3292 and increment rs6000_pic_labelno here.
3294 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
3296 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
3297 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
3298 allocation knows (reg) is dead before the insn.
3300 2000-01-21 Geoff Keating <geoffk@cygnus.com>
3302 * rs6000.md (movsi_to_cr): Correct typo in output template.
3304 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
3306 * rs6000.c (rs6000_pic_labelno): Always define.
3307 (rs6000_pic_func_labelno): Delete.
3308 (lmw_operation): Check for a zero base register,
3309 which doesn't mean what we want.
3310 (stmw_operation): New function.
3311 (print_operand): Define new 'l' modifier.
3312 (rs6000_stack_info): We must save all 64 bits of the registers
3313 if TARGET_POWERPC64.
3314 (rs6000_output_load_toc_table): Delete.
3315 (rs6000_emit_load_toc_table): New function.
3316 (rs6000_allocate_stack_space): Delete.
3317 (rs6000_emit_allocate_stack): New function.
3318 (rs6000_emit_prologue): New function.
3319 (output_prolog): Use rs6000_emit_prologue.
3320 (rs6000_emit_epilogue): Change a few variable names to be
3321 more accurate. Restore all 64 bits of the registers if
3322 TARGET_POWERPC64. Only restore the FP registers which were used
3323 if they are being saved/restored one-at-a-time.
3324 (output_mi_thunk): Delete inefficient code generation.
3325 (output_function_profiler): Don't use rs6000_output_load_toc_table.
3326 * rs6000.h: Declare rs6000_emit_load_toc_table,
3327 rs6000_allocate_stack_space, stmw_operation. Don't declare
3328 rs6000_output_load_toc_table.
3329 * rs6000.md (elf_high): Allow register 0, but discourage it
3331 (elf_low): Support loading into register 0.
3332 (load_toc_aix_si): New pattern.
3333 (load_toc_aix_di): New pattern.
3334 (load_toc_v4_pic_si): New pattern.
3335 (load_toc_v4_pic_di): New pattern.
3336 (load_toc_v4_PIC_1): New pattern.
3337 (load_toc_v4_PIC_1b): New pattern.
3338 (load_toc_v4_PIC_2): New pattern.
3339 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
3340 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
3341 (prologue): New expander.
3342 (movesi_from_cr): New pattern.
3343 (stmw): New pattern.
3344 (save_fpregs_si): New pattern.
3345 (save_fpregs_di): New pattern.
3347 2000-01-19 Geoff Keating <geoffk@cygnus.com>
3349 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
3354 2000-01-19 Geoff Keating <geoffk@cygnus.com>
3356 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
3358 (movsi_got_internal): Likewise.
3359 (movsi_got_internal+1): Likewise.
3360 (set_sp): 'unspec 7' does a SImode clobber.
3362 2000-01-19 Geoff Keating <geoffk@cygnus.com>
3364 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
3365 allocate a stack temporary.
3366 (floatsidf2_internal): Likewise.
3367 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
3369 (floatunssidf2): Don't use the fpmem "register", just
3370 allocate a stack temporary.
3371 (floatunssidf2_internal): Likewise.
3372 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
3374 (floatsidf2_loadaddr): Delete.
3375 (floatsidf2_store1): Delete.
3376 (floatsidf2_store2): Delete.
3377 (floatsidf2_load): Delete.
3378 (fix_truncdfsi2): Don't use the fpmem "register", just
3379 allocate a stack temporary.
3380 (fix_truncdfsi2_internal_si): Delete.
3381 (fix_truncdfsi2_internal_di): Delete.
3382 (fix_truncdfsi2_internal): New insn.
3383 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
3384 (fix_truncdfsi2_store): Delete.
3385 (fix_truncdfsi2_load): Delete.
3386 (fctiwz): Produce gen_fctiwz.
3388 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
3390 * eabi.h (INVOKE__main): Define.
3391 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
3393 (rs6000_emit_prologue): Likewise.
3394 * rs6000.h (struct rs6000_stack): Don't keep track of whether
3395 this is the main program.
3397 2000-01-19 Geoff Keating <geoffk@cygnus.com>
3399 * rs6000.c (rs6000_va_arg): Delete some unused variables.
3401 2000-01-19 Geoff Keating <geoffk@cygnus.com>
3403 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
3404 goes after the argument.
3406 2000-01-12 Geoff Keating <geoffk@cygnus.com>
3408 * rs6000.md: Document 'unspec' values used.
3409 (epilogue): New expander.
3410 (movesi_to_cr_one): New expander.
3411 (movesi_to_cr and following): New pattern.
3413 (return_internal_si): New pattern.
3414 (return_internal_di): New pattern.
3415 (return_and_restore_fpregs_si): New pattern.
3416 (return_and_restore_fpregs_di): New pattern.
3417 * rs6000.h: Declare new functions.
3418 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
3419 rather than rs6000_calls_p.
3420 (rs6000_makes_calls): Delete.
3421 (lmw_operation): New function.
3422 (mtcrf_operation): New function.
3423 (rs6000_emit_epilogue): New function.
3424 (output_epilog): Call rs6000_emit_epilogue and final if
3425 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
3427 2000-01-12 Geoff Keating <geoffk@cygnus.com>
3429 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
3430 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
3431 * aix.h (SUBTARGET_SWITCHES): Document switches.
3432 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
3433 sched-prolog and sched-epilog the same. Document all the
3435 (TARGET_OPTIONS): No longer allow -mdebug-.
3437 2000-01-12 Geoff Keating <geoffk@cygnus.com>
3439 * rs6000.h (ASM_FILE_END): Move to aix.h.
3440 (EXTRA_SECTIONS): Move to aix.h.
3441 (READONLY_DATA_SECTION): Move to aix.h.
3442 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
3443 (SELECT_SECTION): Move to aix.h.
3444 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
3445 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
3446 (LINK_REGISTER_REGNUM): New definition.
3447 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
3448 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
3450 * sysv4.h: Delete the code between the inclusion of rs6000.h
3452 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
3453 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
3454 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
3455 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
3456 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
3457 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
3458 (fix_truncdfsi2_internal_di): New pattern.
3459 (fix_truncdfsi2_store): The second arg here is Pmode too.
3460 (fix_truncdfsi2_load): The second arg here is Pmode too.
3461 (tablejumpdi): Now that switch tables hold only SImode values,
3462 gcc needs to know how to add them to the pc which is DImode.
3463 * rs6000.c (rs6000_stack_info): Use symbolic name for
3464 LINK_REGISTER_REGNUM.
3465 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
3466 (output_toc): Delete unused variables s1 and s2.
3467 (output_ascii): Use fputs not fprintf on a variable string.
3469 2000-01-07 David Edelsohn <edelsohn@gnu.org>
3471 * rs6000.c (processor_target_table): Add power3 as alias for 630.
3472 * aix43.h: Revert Aug 2 change.
3473 (HAS_INIT_SECTION): Define, not visible yet.
3474 (LD_INIT_SWITCH): Define, not visible yet.
3475 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
3477 2000-01-04 Joel Sherrill (joel@OARcorp.com>
3479 * config/rs6000/rtems.h: Include config/rtems.h.
3481 2000-01-04 David Edelsohn <edelsohn@gnu.org>
3483 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
3484 (SLOW_UNALIGNED_ACCESS): Define.
3485 (CASE_VECTOR_MODE): Always use 32-bit offsets.
3486 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
3487 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
3488 (toc_section): Likewise and .toc pseudo-op.
3489 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
3491 (TEXT_SECTION_ASM_OP): Likewise.
3492 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
3495 1999-12-17 Jakub Jelinek <jakub@redhat.com>
3497 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
3498 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
3501 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3503 * rs6000.h: Move more stuff from here...
3505 * sysv4.h: Cleanup accordingly.
3506 * netware.h: Likewise
3508 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3510 * rs6000.h: Continue cleanup.
3513 * netware.h: Likewise.
3515 * sysv4.h: Likewise.
3516 * win-nt.h: Likewise.
3518 * rs6000.h (TARGET_SWITCHES): Add descriptions.
3519 (TARGET_OPTIONS): Likewise.
3521 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
3522 (SUBTARGET_OPTIONS): Likewise.
3524 * rs6000.md: Fix compile time warnings.
3526 2000-01-04 Geoff Keating <geoffk@cygnus.com>
3528 vxworks patches from the Cygnus tree originally by
3529 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
3530 <vmakarov@cygnus.com>.
3531 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
3532 (ENDFILE_SPEC): Likewise.
3533 (LIB_VXWORKS_SPEC): New macro.
3534 (STARTFILE_VXWORKS_SPEC): New macro.
3535 (ENDFILE_VXWORKS_SPEC): New macro.
3536 (LINK_START_VXWORKS_SPEC): New macro.
3537 (LINK_OS_VXWORKS_SPEC): New macro.
3538 (CPP_OS_VXWORKS_SPEC): New macro.
3539 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
3540 * vxppc.h: Rewrite to use proper configuration method.
3541 * vxppcle.h: New file.
3542 * ../../configure.in: Add powerpcle-wrs-vxworks*.
3543 * ../../configure: Rebuilt.
3545 2000-01-04 Geoff Keating <geoffk@cygnus.com>
3547 Lots of changes to rs6000.h, sysv4.h, aix.h,
3548 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
3549 with the aim that rs6000.h is the first header
3550 included and the others override it.
3553 * x-aix41-gld: Remove.
3555 * x-aix41: Remove target-specific switches, and don't specify
3556 -Wl,-bbigtoc as we don't need it any more.
3557 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
3558 Use t-aix43 for AIX 4.3 and above.
3559 * ../../configure: Regenerated.
3561 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
3562 options, that don't do anything yet.
3563 (MASK_SCHED_PROLOG): New macro.
3564 (MASK_SCHED_EPILOG): New macro.
3565 (TARGET_SCHED_PROLOG): New macro.
3566 (TARGET_SCHED_EPILOG): New macro.
3568 2000-01-04 Geoff Keating <geoffk@cygnus.com>
3570 * rs6000.c: Correct comment, the `minimal' TOCs are actually
3571 one per translation unit, not one per function.
3572 (output_toc): Also do duplicate constant elimination
3573 for per-translation-unit TOCs.
3575 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
3576 a comment explaining _exactly_ when this pattern gets used.
3577 (builtin_setjmp_receiver): New pattern for better clarity.
3578 (init_v4_pic): Move it into a section dealing with TOC registers.
3580 1999-12-30 Geoff Keating <geoffk@cygnus.com>
3582 * rs6000.c (toc_hash_table): New variable.
3583 (rs6000_hash_constant): New function.
3584 (toc_hash_function): New function.
3585 (toc_hash_eq): New function.
3586 (toc_hash_mark_entry): New function.
3587 (toc_hash_mark_table): New function.
3588 (output_toc): Don't output duplicate TOC entries in
3590 (rs6000_add_gc_roots): Add the hash table as a GC root.
3591 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
3592 where they clearly shouldn't be. This may need to be fixed
3593 later when there is a GNU ar for AIX.
3594 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
3595 Don't define BOOT_LDFLAGS as it is now not necessary.
3597 1999-12-29 Geoff Keating <geoffk@cygnus.com>
3599 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
3600 for va_list on AIX. Use unsigned_char_type_node rather than
3601 constructing our own version on svr4.
3603 1999-12-17 Geoff Keating <geoffk@cygnus.com>
3605 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
3606 since patently it's not.
3608 1999-12-08 Geoff Keating <geoffk@cygnus.com>
3610 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
3611 define_expand/define_insn pair, and handle restore of the
3612 SVR4 -fpic register.
3614 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
3616 * acconfig.h (HAVE_GAS_WEAK): New define.
3617 * configure.in (assembler weak support): Check for .weak support.
3618 * config.in, configure: Rebuilt.
3619 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
3620 HAVE_GAS_WEAK is defined.
3622 2000-03-15 Nick Clifton <nickc@cygnus.com>
3624 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
3627 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
3629 * cppfiles.c (open_include_file): New function.
3630 (find_include_file, cpp_read_file): Use it.
3632 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
3634 * cpphash.c (dump_hash_helper): Take the slot, not the element.
3636 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
3638 * flow.c (verify_flow_info): Check for unconditional return.
3640 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
3642 * config/ia64/ia64.md (restore_stack_nonlocal): New.
3643 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
3644 (__ia64_restore_stack_nonlocal): New.
3645 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
3647 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3649 * cpphash.c (collect_formal_parameters): Do not complain about
3650 parameter names that just start with `__VA_ARGS__'.
3652 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
3654 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
3655 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
3656 * i386.c (pentiumpro_cost): Set mul cost to 4.
3657 (x86_use_movx): Set for PPro.
3659 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
3661 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
3662 STACK_BOUNDARY for empty frames now.
3664 2000-03-14 Mark Mitchell <mark@codesourcery.com>
3666 * stor-layout.c (layout_union): Remove.
3667 (layout_union_field): New function, split out from layout_union.
3668 (finish_union_layout): Likewise.
3669 (layout_field): Handle unions by calling layout_union_field.
3670 (finish_record_layout): Handle unions.
3671 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
3672 QUAL_UNION_TYPE handling.
3674 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
3676 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
3677 end of basic block is jump_insn, not barrier; use create_basic_block
3678 instead of creating basic block by hand.
3680 2000-03-14 Jason Eckhardt <jle@cygnus.com>
3682 * flow.c (reorder_basic_blocks): Account for barriers when writing
3683 over NEXT_INSN (last_bb->end).
3684 (verify_flow_info): Add check for missing barriers.
3686 2000-03-14 Greg McGary <gkm@gnu.org>
3688 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
3689 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
3690 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
3691 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
3692 __unbounded, __unbounded__): New keywords.
3693 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
3694 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
3695 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
3697 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3699 * cselib.h: New file.
3700 * alias.c: Include "cselib.h".
3701 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
3702 MEMs as two new arguments.
3703 (get_addr): New static function.
3704 (find_base_term): Handle VALUEs.
3705 (memrefs_conflict_p): Likewise.
3706 (true_dependence): Call get_addr on the addresses.
3707 Call fixed_scalar_and_varying_struct_p with addresses that have been
3708 passed through get_addr and canon_rtx.
3709 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
3710 with true_dependence.
3711 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
3712 * loop.c: Include "cselib.h".
3713 (load_mems): Process extended basic block that enters the loop with
3714 cselib. Use that information to change initialization of the shadow
3715 register so that a constant equivalence is seen by later passes.
3716 * reload1.c: Include "cselib.h".
3717 (reload_cse_invalidate_regno): Delete function.
3718 (reload_cse_mem_conflict_p): Likewise.
3719 (reload_cse_invalidate_mem): Likewise.
3720 (reload_cse_invalidate_rtx): Likewise.
3721 (reload_cse_regno_equal_p): Likewise.
3722 (reload_cse_check_clobber): Likewise.
3723 (reload_cse_record_set): Likewise.
3724 (reg_values): Delete static variable.
3725 (invalidate_regno_rtx): Likewise.
3726 (reload_cse_delete_noop_set): New static function.
3727 (reload_cse_simplify): New static function, broken out of
3729 (reload_cse_noop_set_p): Delete unused argument INSN.
3730 Just call rtx_equal_for_cselib_p on set source and destination.
3731 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
3732 reload_cse_delete_noop_set. Delete code to keep track of values; use
3733 cselib functions instead. Delete code to push/pop obstacks.
3734 (reload_cse_simplify_set): Use cselib to find equivalent values.
3735 Delete code to push/pop obstacks.
3736 (reload_cse_simplify_operands): Likewise.
3737 * rtl.def (VALUE): New rtx code.
3738 * rtl.h (union rtunion_def): New elt rt_cselib.
3739 (X0CSELIB, CSELIB_VAL_PTR): New macros.
3740 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
3741 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
3742 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
3743 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
3744 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
3745 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
3746 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
3747 cselib_record_set, cselib_record_sets): New static functions.
3748 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
3749 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
3750 references_value_p): New functions.
3751 (MAX_USELESS_VALUES, REG_VALUES): New macros.
3752 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
3753 n_useless_values, reg_values, callmem, cselib_obstack,
3754 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
3755 New static variables.
3756 * varray.h (union varray_data_tag): New elt te.
3757 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
3758 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
3761 2000-03-14 Nick Clifton <nickc@cygnus.com>
3763 * gcc.c (do_spec_1): Catch the case where %* is used in a
3764 substitution pattern, but it has not been initialised.
3765 Issue a meaningful error message if an unrecognised operator
3766 is encountered in a spec string.
3768 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
3770 * function.c (prepare_function_start): Correctly initialize
3771 cfun->stack_alignment_needed.
3773 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
3775 * cppfiles.c (find_include_file): Don't assume nshort is a
3778 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
3780 * configure.in (hppa configurations): Add pa32-regs.h to the
3781 list of tm files as appropriate.
3782 * configure: Rebuilt.
3783 * pa.c (compute_frame_size): Remove explicit knowledge about FP
3785 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
3786 (fmpyaddoperands, fmpysuboperands): Likewise.
3787 * pa.h: Remove various definitions which depend on knowing
3788 how registers are numbered.
3789 * pa32-regs.h: New file with PA32 register numbering specific
3792 2000-03-14 Richard Henderson <rth@cygnus.com>
3794 * regmove.c (combine_stack_adjustments): New.
3795 (stack_memref_p, single_set_for_csa): New.
3796 (free_csa_memlist, record_one_stack_memref): New.
3797 (try_apply_stack_adjustment): New.
3798 (combine_stack_adjustments_for_block): New.
3799 * rtl.h (combine_stack_adjustments): Declare.
3800 * toplev.c (rest_of_compilation): Call it.
3802 * i386.md: Revert 2000-01-16 change.
3804 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3806 * gccbug.in: Add web category, gcc specific classes.
3808 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
3810 * stor-layout.c (finalize_record_size): Fix typo.
3812 2000-03-14 Stan Shebs <shebs@apple.com>
3814 * c-typeck.c (c_alignof): Error on incomplete types.
3815 * extend.texi (Alignment): Document this.
3817 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
3819 * cppfiles.c: Include mkdeps.h.
3820 (find_include_file, read_include_file): Remove _cpp_ prefix
3821 from name, make static.
3822 (_cpp_execute_include): New function, broken out of
3825 * cpplib.c: Don't include mkdeps.h.
3826 (struct directive): Remove type field. Reorder entries. The
3827 function takes only one argument.
3828 (struct if_stack): Make type field an int.
3829 (directive_table): Rename to dtable. Generate it, the
3830 prototypes of the directive handlers, and the enum for the
3831 directive numbers, from a template macro.
3832 (do_ifndef, do_include_next, do_import): New functions.
3833 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
3834 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
3835 do_ident, do_assert, do_unassert, do_sccs): Take only one
3837 (do_sccs): Define always, but alter behavior based on
3839 (_cpp_handle_directive, consider_directive_while_skipping):
3840 Restructure for new directive table layout.
3842 (pass_thru_directive): Take a directive number, not a pointer
3843 to a struct directive.
3844 (parse_include): New function, broken out of do_include.
3845 (do_include, do_import, do_include_next): Use parse_include
3846 and _cpp_execute_include.
3847 (do_elif, do_else): Test for T_ELSE specifically when checking
3848 for #elif/#else after #else.
3849 (parse_ifdef): New function, broken out of do_ifdef.
3850 (validate_else): Expect a name arg without a leading #.
3851 (if_directive_name): Delete.
3852 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
3853 directive handlers with only one argument.
3855 * cpphash.h: Update prototypes.
3856 (enum node_type): Remove entries for directives.
3857 * Makefile.in: Update dependencies.
3859 * cpphash.c (dump_hash_helper): Only dump nodes of type
3860 T_MACRO. Emit a newline after each definition.
3862 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3864 * gccbug.in: New file.
3865 * configure.in (all_outputs): Add gccbug.
3866 * Makefile.in (install-common): Install gccbug.
3867 (GCCBUG_INSTALL_NAME): New variable.
3868 * configure: Rebuilt.
3870 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
3872 * function.c (put_var_into_stack): Use type_for_mode to calculate
3873 part_type. Use MEM_SET_IN_STRUCT_P.
3874 * expr.c (store_field): Handle CONCAT.
3875 (store_constructor): Use fields_length.
3876 * tree.c (fields_length): New fn.
3877 * tree.h: Declare it.
3879 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
3881 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
3882 (cpplex.o): New target.
3883 * po/POTFILES.in: Add cpplex.c.
3885 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
3886 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
3887 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
3888 skip_block_comment, skip_line_comment, skip_comment,
3889 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
3890 _cpp_parse_name, skip_string, parse_string,
3891 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
3892 _cpp_get_directive_token, find_position,
3893 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
3894 (maybe_macroexpand, _cpp_lex_token): New functions.
3896 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
3897 parse_goto_mark): Delete.
3898 (_cpp_handle_eof): New function.
3899 (_cpp_handle_directive): Rename from handle_directive.
3900 (_cpp_output_line_command): Rename from output_line_command.
3901 (do_if, do_elif): Call _cpp_parse_expr directly.
3902 * cppfiles.c (_cpp_read_include_file): Don't call
3903 init_input_buffer here.
3904 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
3905 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
3906 here; pop the token_buffer and skip the rest of the line here.
3907 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
3910 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
3912 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
3913 CPP_GOTO_MARK): New macros.
3914 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
3915 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
3916 _cpp_read_and_prescan, _cpp_init_input_buffer,
3917 _cpp_grow_token_buffer, _cpp_get_directive_token,
3918 _cpp_handle_directive, _cpp_handle_eof,
3919 _cpp_output_line_command): Prototype them here.
3920 * cpplib.h (enum cpp_token): Add CPP_MACRO.
3921 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
3922 quote_string, output_line_command): Remove.
3924 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
3926 * stmt.c (expand_end_case): RANGE may be signed, and when checking
3927 whether it is too large we must also verify that it isn't negative.
3929 2000-03-13 Jakub Jelinek <jakub@redhat.com>
3931 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
3932 (movsi_zero_liveg0): Remove.
3933 (movsf_insn_novis_liveg0): Remove.
3935 (negsi2_not_liveg0): Rename to negsi2.
3936 (one_cmplsi2): Remove.
3937 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
3938 (one_cmplsi2_liveg0): Remove.
3939 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
3940 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
3941 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
3942 (PREDICATE_CODES): Remove zero_operand.
3943 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
3944 TARGET_BROKEN_SAVERESTORE.
3945 (zero_operand): Remove.
3946 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
3947 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
3949 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3950 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
3951 TARGET_BROKEN_SAVERESTORE): Remove.
3952 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
3954 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
3956 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
3959 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
3961 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
3963 * cpplib.c (do_pragma_implementation): Fix off-by-one error
3964 truncating a string. Don't assume tokens are nul terminated.
3965 Problem noted by Andreas Jaeger <aj@suse.de>
3967 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
3969 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
3970 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
3971 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
3973 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
3975 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
3976 STRUCTURE_SIZE_BOUNDARY.
3978 2000-03-13 Mark Mitchell <mark@codesourcery.com>
3980 * tree.h (record_layout_info_s): New structure.
3981 (record_layout_info): New type.
3982 (new_record_layout_info): New function.
3983 (layout_field): Likewise.
3984 (finish_record_layout): Likewise.
3985 * stor-layout.c (layout_record): Remove.
3986 (new_record_layout_info): New function.
3987 (layout_field): New function, broken out from layout_record.
3988 (finalize_record_size): Likewise.
3989 (compute_record_mode): Likewise.
3990 (finalize_type_size): New function, broken out from layout_type.
3991 (finish_record_layout): Likewise.
3992 (layout_type): Use them.
3994 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
3996 * cpphash.c: Don't include version.h.
3997 (special_symbol) [case T_VERSION]: Look for the string in
3998 hp->value.cpval; don't use version_string.
3999 * cppinit.c (initialize_builtins): Set hp->value.cpval for
4000 __VERSION__ to version_string.
4001 * Makefile.in (cpphash.o): Update deps.
4003 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
4005 Convert cpplib to use libiberty/hashtab.c.
4007 * cpplib.h (struct cpp_reader): Make hashtab and
4008 all_include_files of type 'struct htab *'. Delete HASHSIZE
4009 and ALL_INCLUDE_HASHSIZE macros.
4011 * cpphash.h: Update prototypes.
4012 (struct hashnode): Remove next, prev, and bucket_hdr members.
4013 Make length a size_t. Add hash member.
4014 (struct ihash): Remove next member. Add hash member. Make
4015 name a flexible array member.
4017 * cppfiles.c: Include hashtab.h.
4018 (include_hash): Delete.
4019 (IHASHSIZE): New macro.
4020 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
4021 (cpp_included): Do the hash lookup here.
4022 (_cpp_find_include_file): Rewrite.
4023 (cpp_read_file): Put the "fake" hash entry into the hash
4024 table. Honor the control_macro, if it turns out we've seen
4025 the file before. Don't push the buffer here.
4026 (_cpp_read_include_file): Push the buffer here.
4027 (OMODES): New macro. Use it whenever we call open(2).
4029 * cpphash.c: Include hashtab.h.
4030 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
4031 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
4032 _cpp_lookup_slot): New functions.
4033 (HASHSIZE): new macro.
4034 (hashf, _cpp_install, _cpp_delete_macro): Delete.
4035 (_cpp_lookup): Use hashtab.h routines.
4037 * cppinit.c: Include hashtab.h.
4038 (cpp_reader_init): Call _cpp_init_macro_hash and
4039 _cpp_init_include_hash. Don't allocate hashtab directly.
4040 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
4041 pfile->all_include_files.
4042 (initialize_builtins): Use _cpp_make_hashnode and
4043 htab_find_slot to add hash entries.
4044 (cpp_finish): Just call _cpp_dump_macro_hash.
4045 * cpplib.c: Include hashtab.h.
4046 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
4047 create hash entries.
4048 (do_pragma_poison, do_assert): Likewise.
4049 (do_include): Don't push the buffer here. Don't increment
4050 system_include_depth unless _cpp_read_include_file succeeds.
4051 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
4053 (do_pragma_implementation): Use alloca to create copy.
4055 * Makefile.in: Update dependencies.
4057 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4059 * cppinit.c (cl_directive_handler): More K&R fixing.
4061 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
4063 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
4065 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
4067 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4069 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
4070 Change from char[] to macros.
4072 2000-03-12 Neil Booth <NeilB@earthling.net>
4074 * cppinit.c (cpp_start_read): Update indirect function
4077 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
4079 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
4082 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4083 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
4085 2000-03-11 Neil Booth <NeilB@earthling.net>
4087 * cppinit.c (struct pending option): Replace undef with a
4088 pointer to a directive handling routine.
4089 (struct cpp_pending): Replace separate assert_ and define_
4090 lists with one directive_ list.
4091 (new_pending_define): Rename new_pending_directive. Extra
4092 argument is the directive's handling routine.
4093 (handle_option): Update to use new_pending_directive.
4095 2000-03-11 Neil Booth <NeilB@earthling.net>
4097 * cppfiles.c (file_cleanup, _cpp_find_include_file,
4098 remap_filename, _cpp_read_include_file, actual_directory,
4099 hack_vms_include_specification): Replace bcopy(), index() etc
4100 calls. Add casts to some allocations. Make some variables
4101 pointers to const [unsigned] char.
4102 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
4103 collect_formal_parameters): Similarly.
4104 * cppinit.c (struct pending_option, append_include_chain,
4105 cpp_options_init, cpp_reader_init, initialize_standard_includes,
4106 cpp_start_read, new_pending_define, handle_option): Similarly.
4107 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
4108 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
4109 do_pragma_implementation, detect_if_not_defined,
4110 do_ifdef, skip_if_group, cpp_get_token, parse_string,
4111 do_assert, do_unassert): Similarly.
4112 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
4113 function prototypes.
4114 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
4116 2000-03-10 Richard Henderson <rth@cygnus.com>
4118 * builtins.c (expand_builtin_strlen): Revert last change.
4119 Use emit_insn_before if we're at the beginning of a sequence.
4121 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
4123 * builtins.c (expand_builtin_strlen): Make sure that we have something
4124 at the beginning of the sequence.
4126 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
4129 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
4131 2000-03-10 Richard Henderson <rth@cygnus.com>
4133 * except.c (can_throw): Use INTVAL on a CONST_INT.
4134 (reachable_handlers): Likewise.
4135 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
4137 2000-03-10 Andreas Jaeger <aj@suse.de>
4139 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
4140 MD_STARTFILE_PREFIX since those are not needed on linux.
4141 (ASM_FILE_START): New, from mips/gnu.h.
4143 2000-03-09 Richard Henderson <rth@cygnus.com>
4144 Alex Samuel <samuel@codesourcery.com> and others
4146 * Makefile.in (ssa.o): New rule.
4148 (STAGESTUFF): Add *.ssa and *.ussa.
4149 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
4150 * rtl.def (PHI): New RTL expression.
4151 * rtl.h (clear_log_links): New declaration.
4152 (convert_to_ssa): Likewise.
4153 (convert_from_ssa): Likewise.
4154 * flow.c (split_edge): If the entry node falls through to the
4155 split edge's source block, split the entry edge.
4156 (clear_log_links): New function.
4157 * toplev.c (ssa_dump): New variable.
4158 (flag_ssa): Likewise.
4159 (f_options): Add "ssa".
4160 (compile_file): Create SSA dump files.
4161 (rest_of_compilation): Go to and from SSA if enabled.
4162 (decide_d_option): Handle -de for SSA dump files.
4165 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
4167 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
4170 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
4172 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
4174 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
4176 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
4177 (MD_STARTFILE_PREFIX_1): New macro.
4179 2000-03-09 Robert Lipe <robertl@sco.com>
4181 * config/ia64/ia64.c: Include system.h.
4183 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
4185 * except.c (nothrow_function_p): If -fno-exceptions, just return.
4186 (init_eh_nesting_info): Likewise.
4188 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
4189 (TREE_NOTHROW): Rename from TREE_RAISES.
4190 * toplev.c (rest_of_compilation): Set it.
4191 * print-tree.c (print_node): Adjust.
4192 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
4193 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
4194 * calls.c (emit_call_1): Add 'nothrow' parm. Add
4195 REG_EH_REGION note as appropriate.
4196 (libfunc_nothrow): New fn.
4197 (emit_library_call, emit_library_call_value): Use it.
4198 (expand_call): Check TREE_NOTHROW.
4200 * varasm.c (make_decl_rtl): Skip initial '*' when setting
4201 DECL_ASSEMBLER_NAME.
4203 2000-03-09 Andreas Jaeger <aj@suse.de>
4205 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
4206 (TARGET_MEM_FUNCTIONS): Define.
4208 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
4210 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
4212 * except.c (can_throw): See through a SEQUENCE.
4213 (nothrow_function_p): New fn.
4214 * except.h: Declare it.
4215 * function.c (current_function_nothrow): New var.
4216 (prepare_function_start): Initialize it.
4217 * output.h: Declare it.
4218 * toplev.c (rest_of_compilation): Set it.
4219 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
4221 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
4223 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
4224 match. (cpp_compare_defs): Count the nul separator when
4225 advancing over argument names.
4227 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
4229 * recog.c (preprocess_constraints): Matching constraints affect
4230 same alternative/different operand, not same operand/different
4233 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
4234 register and a constant specially.
4236 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4238 * libgcc2.h: New file.
4239 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
4241 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
4243 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
4244 * configure: Regenerate.
4247 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
4249 * Makefile.in (LIBCPP_DEPS): New macro.
4250 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
4252 * cpperror.c: Include cpphash.h.
4253 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
4255 (lex): Don't use CPP_WARN_UNDEF.
4256 (_cpp_parse_expr): Return an int, the truth value.
4257 * cppfiles.c: Include cpphash.h.
4258 (_cpp_merge_include_chains): Move to cppinit.c and make static.
4259 * cppinit.c (include_defaults_array): Disentangle.
4260 (cpp_cleanup): Don't free the if stack here.
4261 (cpp_finish): Pop off all buffers, not just one.
4262 * cpplib.c (eval_if_expr): Return int.
4263 (do_xifdef): Rename do_ifdef.
4264 (handle_directive): Don't use CPP_PREPROCESSED.
4265 (cpp_get_token): Don't use CPP_C89.
4266 * fix-header.c: Don't use CPP_OPTIONS.
4268 * cpplib.h: Move U_CHAR, enum node_type, struct
4269 file_name_list, struct ihash, is_idchar, is_idstart,
4270 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
4271 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
4272 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
4273 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
4274 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
4275 of _cpp_simplify_pathname, _cpp_find_include_file,
4276 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
4277 Move struct if_stack to cpplib.c. Move struct cpp_pending to
4279 Change all uses of U_CHAR to be unsigned char instead.
4280 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
4282 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
4284 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
4285 (dwarf2out_begin_prologue): Set it.
4286 (output_call_frame_info): Don't emit EH unwind info for leaves.
4288 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
4289 can occur outside of an EH region.
4290 * except.c: Correct comments about rethrow behavior.
4291 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
4293 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
4295 * flow.c (make_edges): Always call make_eh_edge for calls.
4297 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
4299 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
4300 (struct cpp_buffer): Remove fname and underflow fields.
4301 (struct cpp_reader): Remove get_token field.
4302 (struct include_hash): Rename to struct ihash. Add typedef to
4304 (struct if_stack): Remove fname field.
4305 (IF_STACK_FRAME): Rename to IF_STACK.
4307 * cpperror.c (print_containing_files): Trust that there are no
4308 macro buffers below the top file buffer.
4309 * cppfiles.c: Replace all references to 'struct include_hash'
4310 with 'IHASH'. Rename initialize_input_buffer to
4311 init_input_buffer. Don't set or reference cpp_buffer->fname,
4312 use buffer->ihash->name instead.
4313 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
4314 not CPP_NULL_BUFFER.
4315 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
4316 IF_STACK_FRAME, IHASH not struct include_hash.
4317 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
4318 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
4319 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
4320 references to cpp_buffer->fname (delete entirely, or use
4321 ->ihash->name instead) and IF_STACK->fname.
4322 (cpp_push_buffer): Don't set new->underflow.
4323 (do_include): Use cpp_file_buffer.
4325 * cpphash.c (collect_formal_parameters): Remove duplicate
4326 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
4327 used as a macro argument name. Don't append "..." to namebuf
4328 for varargs macros. After we're done scanning, go through
4329 namebuf and make it NUL separated, not comma separated.
4330 (_cpp_compare_defs): Remove register tag from variables.
4331 Expect defn->argnames to be NUL separated.
4332 (_cpp_dump_definition): Expect defn->argnames to be NUL
4333 separated and in forward order.
4334 * cpphash.h: Update documentation of argnames field.
4336 2000-03-08 Richard Henderson <rth@cygnus.com>
4338 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
4339 to fail. Don't pre-expand the source operand.
4341 * i386.md (strlensi): Initialize eoschar and align before use.
4343 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
4345 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
4346 CONSTRUCTOR element.
4348 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
4350 * mips.c (mips_expand_prologue): If the last
4351 named argument is the vararg marker "va_list", treat it as
4352 an unnamed argument.
4354 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
4356 * dbxout.c (dbxout_parms): When correcting for promoted
4357 big-endian parameters, use the mode of the DECL_RTL rather
4358 than UNITS_PER_WORD.
4360 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
4362 * c-common.h (make_fname_decl): Declare.
4363 * c-common.c (make_fname_decl): Define.
4364 (declare_hidden_char_array): Remove.
4365 (declare_function_name): Use make_fname_decl.
4366 * c-decl.c (c_make_fname_decl): New function.
4367 (init_decl_processing): Set make_fname_decl.
4369 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
4371 * cccp.c (handle_directive): Initialize backslash_newlines_p.
4373 2000-03-07 Philipp Thomas <pthomas@suse.de>
4375 * po/POTFILES.in: Remove cppalloc.c from file list.
4377 2000-03-07 Steve Chamberlain <sac@pobox.com>
4379 * pj.c (pj_expand_prologue): current_function->args_info is
4380 now current_function_args_info.
4382 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
4383 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
4384 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
4386 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4388 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
4389 output as hexadecimal rather than the default octal.
4391 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
4393 * cpphash.c (special_symbol): Fix thinko in previous commit.
4395 2000-03-07 Neil Booth <NeilB@earthling.net>
4397 * cppexp.c (struct operation, left_shift, right_shift,
4398 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
4399 "int"s to "unsigned int"s.
4400 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
4402 * cpplib.h: Update for above.
4403 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
4404 returned from allocations.
4406 * cppinit.c (opt_comp, parse_options): New functions.
4407 (handle_option): Use parse_option to parse a single command
4408 line option, that possibly takes an argument.
4409 (cpp_handle_options): Sort the array of command line options on
4410 first invocation (non-ASCII hosts only).
4411 (print_help): Update.
4413 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
4415 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
4416 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
4418 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
4420 * cppinit.c (cpp_cleanup): Free imp->nshort also.
4422 * cpperror.c (cpp_print_containing_files,
4423 cpp_print_file_and_line, v_cpp_message): Rename to
4424 print_containing_files, print_file_and_line, and v_message.
4425 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
4426 to _cpp_parse_expr, parse_escape, and lex.
4427 (parse_charconst): Remove broken multibyte support.
4428 * cppfiles.c (include_hash): Make static.
4429 (cpp_included): New function.
4430 (merge_include_chains, find_include_file, finclude,
4431 simplify_pathname): Rename to _cpp_merge_include_chains,
4432 _cpp_find_include_file, _cpp_read_include_file, and
4433 _cpp_simplify_pathname.
4434 * cpphash.c (cpp_lookup, free_definition, delete_macro,
4435 cpp_install, create_definition, macroexpand, compare_defs,
4436 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
4437 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
4438 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
4439 * cppinit.c (cpp_handle_option): Rename to handle_option, make
4441 * cpplib.c: Remove extern prototype of cpp_parse_expr.
4443 * cpphash.h: Update prototypes.
4444 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
4446 2000-03-07 Andrew Haley <aph@cygnus.com>
4448 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
4449 PTRDIFF_TYPE should be based solely on Pmode.
4452 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4454 * rtl.h (rtunion_def): Constify member `rtstr'.
4455 (emit_line_note_after, emit_line_note, emit_line_note_force,
4456 emit_note, decode_asm_operands): Constify.
4458 * cse.c (canon_hash): Likewise.
4460 * dbxout.c (dbxout_block): Likewise.
4462 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
4463 v_warning_for_asm): Likewise.
4465 * dwarfout.c (function_start_label): Likewise.
4467 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
4468 emit_line_note_force): Likewise.
4470 * final.c (last_filename, asm_insn_count, final_scan_insn,
4471 output_source_line): Likewise.
4473 * function.h (struct emit_status): Likewise.
4475 * gcse.c (hash_expr_1): Likewise.
4477 * genattr.c (gen_attr, main): Likewise.
4479 * genattrtab.c (struct function_unit, current_alternative_string,
4480 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
4481 attr_numeral, check_attr_test, check_attr_value,
4482 convert_set_attr_alternative, convert_set_attr,
4483 compute_alternative_mask, simplify_by_exploding, gen_attr,
4484 gen_unit): Likewise.
4486 * genflags.c (gen_insn): Likewise.
4488 * gengenrtl.c (type_from_format): Likewise.
4490 * genopinit.c (gen_insn): Likewise.
4492 * genoutput.c (n_occurrences, process_template, process_template):
4495 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
4498 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
4501 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
4502 ggc_set_mark, ggc_get_size): Likewise.
4504 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
4506 * optabs.c (init_one_libfunc): Likewise.
4508 * output.h (assemble_start_function): Likewise.
4510 * recog.c (decode_asm_operands): Likewise.
4512 * toplev.c (rest_of_compilation): Likewise.
4514 * tree.h (emit_line_note_after, emit_line_note,
4515 emit_line_note_force): Likewise.
4517 * varasm.c (asm_output_bss, asm_output_aligned_bss,
4518 asm_emit_uninitialised, assemble_start_function,
4519 assemble_variable, const_hash, compare_constant_1,
4520 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
4522 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
4524 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
4526 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
4528 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
4530 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
4531 arm_dllimport_name_p): Likewise.
4533 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
4536 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
4538 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4540 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
4541 arm_mark_dllexport, arm_mark_dllimport,
4542 arm_pe_encode_section_info): Likewise.
4544 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
4545 ASM_FINISH_DECLARE_OBJECT): Likewise.
4547 * arm/thumb.c (thumb_function_prologue): Likewise.
4549 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
4551 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4553 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
4555 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
4557 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
4559 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4561 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
4562 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
4564 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
4566 * i386/i386.c (asm_output_function_prefix): Likewise.
4568 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
4570 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4572 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
4574 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
4575 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
4576 ASM_OUTPUT_SECTION_NAME): Likewise.
4578 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
4580 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
4582 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
4584 * m32r/m32r.c (m32r_encode_section_info): Likewise.
4586 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4588 * mcore/mcore.c (mcore_encode_section_info): Likewise.
4590 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4592 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4594 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4596 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
4598 * mips/mips.md (movdi, movsi): Likewise.
4600 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4602 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4604 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4606 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
4607 ASM_OUTPUT_ASCII): Likewise.
4609 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
4610 output_mi_thunk, output_toc): Likewise.
4612 * rs6000/rs6000.md (movsi): Likewise.
4614 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
4616 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
4618 * v850/v850.c (print_operand, print_operand_address,
4619 v850_encode_data_area): Likewise.
4621 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
4623 * config/mips/mips.md (zero_extendsidi2): Always force operand
4624 one to memory for mips16.
4626 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4628 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
4629 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
4630 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
4631 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
4632 (min_precision): Result is unsigned.
4633 (add_double, neg_double, mul_double): Low word is unsigned.
4634 (lshift_double, rshift_double, lrotate_double): Likewise.
4635 (rrotate_double, div_and_round_double): Likewise.
4636 (tree_floor_log2, compare_tree_int): New functions.
4637 (preserve_rtl_expr_temps): New declaration.
4638 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
4639 (decl_attributes): Use tree_log2 to find alignment.
4640 Check for TREE_INT_CST_HIGH for format args.
4641 (min_precision): Now unsigned.
4642 Use tree_floor_log2.
4643 (truthvalue_conversion): Delete long-disabled code.
4644 * c-decl.c (finish_struct): Clean up tests on field width.
4645 (finish_function): Use compare_tree_int.
4646 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
4647 * c-typeck.c (comptypes): Use tree_int_cst_equal.
4648 (default_conversion, digest_init): Use compare_tree_int.
4649 (build_binary_op): Use integer_all_onesp and compare_tree_int.
4650 Fix type errors in forming masks.
4651 * calls.c (initialize_argument_information): Use compare_tree_int.
4652 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
4653 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
4654 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
4655 (store_field): Use compare_tree_int.
4656 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
4657 (expand_expr, case ARRAY_REF): Use compare_tree_int.
4658 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
4659 (do_store_flag): Use compare_tree_int.
4660 * fold-const.c (encode, decode): Low part is always unsigned.
4661 (force_fit_type, add_double, neg_double, mul_double): Likewise.
4662 (lshift_double, rshift_double, lrotate_double): Likewise.
4663 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
4664 (fold_convert): Use compare_tree_int.
4665 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
4666 (invert_truthvalue, case INTEGER_CST): Likewise.
4667 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
4668 * mkdeps.c (deps_dummy_targets): Make I unsigned.
4669 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
4670 (lshift_double, rshift_double, lrotate_double, rrotate_double):
4672 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
4673 (expand_end_case): Use compare_tree_int.
4674 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
4675 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
4676 (layout_decl): Likewise.
4677 (layout_record, layout_union): Make sizes unsigned.
4678 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
4679 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
4680 * tree.c (struct type_hash): hashcode is unsigned.
4681 (build_type_attribute_variant, type_hash_list): Likewise.
4682 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
4683 (attribute_hash_list, build_array_type, build_method_type): Likewise.
4684 (build_complex_type): Likewise.
4685 (real_value_from_int_cst): Remove unneeded casts.
4686 (integer_all_onesp): Add casts.
4687 (tree_floor_log2, compare_tree_int): New functions.
4688 (build_index_type): Use tree_int_cst_sgn.
4689 * varasm.c (assemble_variable): Use compare_tree_int.
4691 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
4693 * cpphash.c (collect_expansion): Also catch ## at start of macro.
4695 * varasm.c (make_decl_rtl): Don't add a number to members of
4697 (make_function_rtl): Likewise.
4699 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4701 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
4702 patch from 2000-01-28.
4704 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
4706 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
4707 filled with an insn from the jump target.
4709 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4711 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
4712 (c4x_external_ref): Likewise.
4713 * config/c4x/c4x.c (struct name_list): Likewise.
4715 1999-12-16 Ben Collins <bcollins@debian.org>
4717 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
4718 argument to genmultilib.
4719 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
4720 the contents into the multilib.h header.
4721 * gcc.c: Declare multilib_exclusions for the specs file.
4722 (set_multilib_dir): Use it.
4723 (print_multilib_info): Likewise.
4724 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
4725 to pass to genmultilib.
4727 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4729 * builtins.c (built_in_class_names, built_in_names): Constify a
4732 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
4734 (_mcleanup): Ensure value matches format specifier in sprintf.
4736 * cpphash.c (special_symbol): Don't needlessly cast away
4739 * cppinit.c (base_name): Delete unused prototype.
4741 * mkdeps.c (deps_init): Make definition K&R safe.
4743 * tree.h (built_in_class_names, built_in_names): Constify a
4746 2000-03-06 Jakub Jelinek <jakub@redhat.com>
4748 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
4749 floating point instructions for epilogue delay.
4751 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
4752 to gas if it supports .register pseudo.
4754 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
4755 LONG_DOUBLE_TYPE_SIZE if not defined.
4756 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
4757 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
4759 * gengenrtl.c: Likewise.
4760 * print-rtl.c: Likewise.
4762 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
4763 MASK_LONG_DOUBLE_128.
4764 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
4765 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
4766 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
4767 (SUBTARGET_SWITCHES): Define.
4768 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
4769 with -mlong-double-128.
4770 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
4771 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
4772 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
4773 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
4774 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
4775 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
4776 with -mlong-double-128.
4777 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
4778 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
4779 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
4780 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
4781 TARGET_LONG_DOUBLE_128): Define.
4782 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
4783 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
4784 long double on TARGET_ARCH64.
4786 2000-03-06 Mark Mitchell <mark@codesourcery.com>
4788 * function.c (free_temps_for_rtl_expr): Don't free slots
4789 that have been pushed into a higher level.
4792 2000-03-05 Mark Mitchell <mark@codesourcery.com>
4794 2000-03-05 Mark Mitchell <mark@codesourcery.com>
4796 * basic-block.h (ALLOCA_REG_SET): Remove.
4797 (INITIALIZE_REG_SET): New macro.
4798 * flow.c (update_life_info): Use it.
4799 (calculate_global_regs_live): Likewise.
4800 (propagate_block): Likewise.
4801 * global.c (build_insn_chain): Likewise.
4802 * haifa-sched.c (schedule_region): Likewise.
4804 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
4806 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
4807 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
4808 (DWARF_ARANGES_PAD_SIZE): New define.
4809 (output_aranges): Use it to pad the address range header.
4810 (DWARF_ROUND): Fix for non power of 2 rounding.
4812 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
4814 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
4816 2000-03-05 Mark Mitchell <mark@codesourcery.com>
4818 * tree.def (RTL_EXPR): Update documentation.
4819 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
4820 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
4821 * function.c (preserve_rtl_expr_temp): New function.
4822 (preserve_rtl_expr_temps): Likewise.
4823 (preserve_rtl_expr_result): Use it.
4826 2000-03-04 Mark Mitchell <mark@codesourcery.com>
4828 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
4830 * regmove.c (copy_src_to_dest) Do not create src->dest move
4831 for unchanging destination.
4833 2000-03-04 Mark Mitchell <mark@codesourcery.com>
4835 * function.h (struct sequence_stack): Remove rtl_expr.
4836 (struct emit_staus): Likewise.
4837 (seq_rtl_expr): Remove.
4838 * tree.h (free_temps_for_rtl_expr): Don't declare.
4839 (start_sequence_for_rtl_expr): Likewise.
4840 * rtl.h (preserve_rtl_expr_result): Likewise.
4841 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
4842 (start_sequence_for_rtl_expr): Remove.
4843 (push_topmost_sequence): Don't save sequence_rtl_expr.
4844 (pop_topmost_sequence): Remove comment about not restoring it.
4845 (end_sequence): Don't set seq_rtl_expr.
4846 (init_emit): Don't initialize it.
4847 (mark_sequence_stack): Don't mark it.
4848 (mark_emit_status): Likewise.
4849 * except.c (protect_with_terminate): Use
4850 start_sequence_for_rtl_expr, not start_sequence.
4851 * expr.c (expand_expr, case RTL_EXPR): Don't call
4852 preserve_rtl_expr_result or free_temps_for_rtl_expr.
4853 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
4854 (preserve_rtl_expr_result): Remove.
4855 (free_temps_for_rtl_expr): Likewise.
4856 (pop_temp_slots): Likewise.
4857 (mark_temp_slot): Don't mark the rtl_expr.
4858 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
4859 start_sequence_for_rtl_expr.
4861 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
4863 * mkdeps.c, mkdeps.h: New files.
4864 * po/POTFILES.in: Add them.
4865 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
4866 (cpplib.o, cppinit.o): Depend on mkdeps.h.
4867 (mkdeps.o): New target.
4869 * cppfiles.c: Delete deps_output.
4870 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
4871 OBJECT_SUFFIX, and base_name.
4872 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
4874 (initialize_dependency_output): Use deps_init,
4875 deps_add_target, deps_calc_target, and deps_add_dep. Remove
4876 all the unnecessary string bashing.
4877 (cpp_finish): Use deps_write. Remove an unnecessary nesting
4879 * cpplib.c (do_include): Use deps_add_dep.
4880 * cpplib.h (struct cpp_reader): Replace deps_buffer,
4881 deps_allocated_size, deps_size, deps_column members with
4882 single pointer to a struct deps. Delete prototype of
4885 * cppinit.c: Fix thinko in previous patch.
4887 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4889 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
4890 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
4891 (mode_for_size_tree): New function.
4892 (layout_decl, layout_type): Call it and clean up BLKmode checks.
4893 * tree.h (mode_for_size_tree): New declaration.
4895 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
4897 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
4899 * stmt.c (is_body_block): Move...
4900 * dwarfout.c, dwarf2out.c: ...from here.
4901 * tree.h: Declare it.
4902 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
4903 * final.c (final_start_function): Do call remove_unnecessary_notes
4906 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
4908 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
4910 * cpplib.h (_dollar_ok): New macro.
4911 (is_idchar, is_idstart): Use it.
4912 (IStable): Rename to _cpp_IStable. Declare it const if
4913 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
4914 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
4915 is_space): Update for renamed IStable.
4917 * cppinit.c: Delete all references to FAKE_CONST and CAT
4918 macros. Define init_IStable as empty macro if gcc >=2.7 or
4919 C99. Change TABLE() to ISTABLE and hardcode name of table.
4920 (cpp_start_read): Don't change the IStable based on
4923 * cpphash.c (unsafe_chars): Add pfile argument. All callers
4924 changed. Handle '$' for char1 correctly.
4925 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
4927 * cppexp.c (tokentab2): Make const.
4928 (cpp_lex): Make toktab const.
4929 * cppinit.c (include_defaults_array): Make const.
4930 (initialize_standard_includes): Make default_include const.
4932 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
4934 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
4935 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
4936 (gen_decl_die): Likewise.
4937 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
4938 (output_decl): Likewise.
4940 * varasm.c (make_function_rtl): If we change the name used in the
4941 rtl, update DECL_ASSEMBLER_NAME accordingly.
4942 (make_decl_rtl): Likewise.
4944 * toplev.c (rest_of_compilation): Tweak formatting.
4946 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
4947 remove_unnecessary_notes.
4948 (debug_ignore_block): New fn.
4949 * toplev.h: Declare it.
4950 * emit-rtl.c (remove_unncessary_notes): Call it.
4951 * dwarf2out.c (dwarf2out_ignore_block): New fn.
4952 * dwarf2out.h: Declare it.
4953 * final.c (final_start_function): Don't call remove_unnecessary_notes
4954 if we did insn scheduling.
4956 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
4958 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
4959 * cpplib.h: Delete SET_CPP_PEDANTIC.
4961 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4963 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
4964 result is a RECORD_TYPE.
4966 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
4968 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
4970 2000-03-03 Richard Henderson <rth@cygnus.com>
4972 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
4973 addition over compliments over shifts.
4975 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4977 * reload1.c (reload_combine_note_use): Handle return register USEs.
4978 REG case: Handle multi-hard-register hard regs.
4980 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4982 * md.texi: Document use of '*' in insn pattern name.
4984 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
4986 * calls.c (special_function_p): operator new may not be malloc-like.
4988 * gcse.c (dump_hash_table): Really fix error in last change.
4990 2000-03-02 Denis Chertykov <denisc@overta.ru>
4992 * avr.c (print_operand): Use print_operand_address instead of
4994 * avr/libgcc.S: Cleanup code.
4996 2000-03-02 Richard Henderson <rth@cygnus.com>
4998 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
5000 2000-03-02 Mark Mitchell <mark@codesourcery.com>
5002 * tree.h (TYPE_ALIGN_UNIT): New macro.
5004 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
5006 * i386.c: (constant_call_address_operand): Reject CONST_INT.
5008 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
5010 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
5012 (SET_CPP_PEDANTIC): New macro.
5013 * cpplib.c (do_include): Don't bother checking system_header_p.
5014 (do_warning, do_ident, do_assert, do_unassert): Likewise.
5015 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
5017 * function.h (struct expr_status): Add x_arg_space_so_far.
5018 (arg_space_so_far): New macro.
5019 * expr.c (init_expr): Initialize it.
5020 * calls.c (emit_call_1): Reset it.
5021 (compute_argument_block_size, expand_call): Use it.
5022 (expand_call, store_one_arg): Increment it.
5024 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5026 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
5029 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
5031 * cppfiles.c (cpp_read_file): New function.
5033 * cpphash.c (collect_expansion): Make sure to reset last_token
5034 to NORM when we hit a string. Handle trailing whitespace
5035 properly when the expansion is empty.
5036 (create_definition): Disable line commands while parsing the
5038 (dump_definition): If pfile->lineno == 0, output a line
5039 command ahead of the dump, and add a trailing newline.
5041 * cppinit.c (append_include_chain): Add fifth argument, which
5042 indicates whether or not system headers are C++ aware.
5043 (initialize_standard_includes): New function,
5044 broken out of read_and_prescan. Pass 'cxx_aware' value from
5045 the include_defaults_array on to append_include_chain.
5046 (dump_special_to_buffer): Const-ify char array.
5047 (builtin_array): Don't dump __BASE_FILE__.
5048 (cpp_start_read): Use cpp_read_file. Reorder code for
5049 clarity. Don't output line commands here for -D/-A/-U
5050 switches. Don't call deps_output for files included with
5051 -include or -imacros.
5053 * cpplib.c (do_define): Don't pay any attention to the second
5055 (cpp_expand_to_buffer): Disable line commands while scanning.
5056 (output_line_command): Work in the file buffer.
5057 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
5058 Fix formatting of comments. Prototype cpp_read_file.
5060 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5062 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
5063 reference the language-equivalent of sizetype.
5064 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
5065 * fold-const.c (size_binop, size_diffop): Put back checks.
5066 * gcse.c (dump_hash_table): Fix minor error in last change.
5067 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
5068 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
5071 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
5073 * calls.c (expand_call) Do not attempt to combine stack adjustments
5074 with inhibit_defer_pop set.
5076 2000-03-01 Mark Mitchell <mark@codesourcery.com>
5078 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
5079 the DECL_SIZE for a FIELD_DECL.
5081 2000-03-01 Bruce Korb <bkorb@gnu.org>
5083 * fixinc/inclhack.tpl: remove unused symlinks
5084 * fixinc/README: GCC Maintainer info
5085 * fixinc/inclhack.sh: regen
5086 * fixinc/fixincl.sh: regen
5088 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
5090 * cpphash.c (collect_expansion): Trim trailing white space
5091 from macro definitions, but don't go past the last insertion
5094 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
5096 * i386.md (mulqi3): New pattern.
5098 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
5100 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
5102 (struct cpp_reader): Add parsing_if_directive and
5103 parsing_define_directive flags.
5104 (struct cpp_options): Remove output_conditionals flag.
5105 (check_macro_name): Delete prototype.
5107 * cpphash.h (struct macrodef): Delete.
5108 (struct reflist): Separate from struct definition.
5109 (struct definition): Remove unused fields. Add column number.
5110 (create_definition): Returns a DEFINITION *. Takes a
5111 cpp_reader * and an int.
5113 * cpphash.c (SKIP_WHITE_SPACE): Delete.
5114 (PEEKC): Copy defn from cpplib.c.
5115 (rest_extension, REST_EXTENSION_LENGTH): Delete.
5117 (struct arglist): Simplify.
5118 (collect_expansion): Rewrite. Get tokens by calling
5119 cpp_get_token. Add more error checking.
5120 (collect_formal_parameters): New function, broken out of
5121 create_definition and reworked to use get_directive_token.
5122 (create_definition): All real work is now in collect_expansion
5123 and collect_formal_parameters. do_define handles finding the
5124 macro name. Return a DEFINITION, not a MACRODEF.
5125 (macroexpand): Replace bcopy with memcpy throughout. Replace
5126 character-at-a-time copy loop with memcpy and pointer increments.
5127 (compare-defs): d1->argnames / d2->argnames might be null.
5129 * cpplib.c (copy_rest_of_line): Delete function.
5130 (skip_rest_of_line): Do all the work ourselves.
5131 (skip_string): New function.
5132 (parse_string): Use skip_string.
5133 (get_macro_name): New function.
5134 (check_macro_name): Delete.
5135 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
5136 (cpp_skip_hspace): Use CPP_BUMP_LINE.
5137 (handle_directive): ICE if we're called on a macro buffer.
5138 (do_define): Determine macro name and type (funlike/objlike)
5139 here. Expunge all uses of MACRODEF.
5140 (cpp_push_buffer): Set line_base to NULL.
5141 (do_undef, read_line_number): Don't worry about getting a POP token.
5142 (eval_if_expression): Set/reset parsing_if_directive around
5143 cpp_parse_expr. Don't clear only_seen_white.
5144 (skip_if_group): Remove output_conditionals logic. Use
5146 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
5147 tokens under appropriate conditions.
5148 (cpp_unassert): Call do_unassert not do_assert. Oops.
5150 * cppexp.c (parse_defined): New function, break out of
5152 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
5153 ourselves, with cpp_defined.
5154 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
5156 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
5157 * gcc.dg/strpaste-2.c: New.
5159 2000-02-29 Mark Mitchell <mark@codesourcery.com>
5161 * fold-const.c (size_binop): Don't asert inputs are the same and
5162 have TYPE_IS_SIZETYPE set.
5163 (size_diffop): Likewise.
5165 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
5167 * dwarfout.c (output_block): Output abstract blocks even if they
5168 don't have TREE_ASM_WRITTEN set.
5170 * calls.c (emit_library_call): Check for null REG.
5172 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
5174 * c-decl.c (current_function_decl): Move to toplev.c.
5175 (init_decl_processing): Don't add current_function_decl as a ggc
5177 * dbxout.c (dbxout_symbol): Change return type to int.
5178 (dbxout_symbol_location, dbxout_syms): Likewise.
5179 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
5180 any locals. Use current_function_func_begin_label if set.
5181 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
5182 * dwarf2out.c (dwarf2out_begin_prologue): Set
5183 current_function_func_begin_label.
5184 * final.c (final_start_function): Reset it.
5185 * toplev.c (current_function_decl): Define it here.
5186 (current_function_func_begin_label): New variable.
5187 (main): Add both as ggc roots.
5188 * tree.h (current_function_func_begin_label): Declare.
5190 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5192 * gcse.c: Cleanups throughout: mostly white-space, but also
5193 some minor rearrangement of code.
5195 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
5197 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
5198 returns a PARALLEL. Use emit_group_load and use_group_regs
5200 (emit_library_call_value): Similarly.
5202 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
5203 * pa/quadlib.asm: Remove.
5204 * pa/quadlib.c: New file.
5206 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
5207 * configure: Rebuilt.
5209 2000-02-29 Philip Blundell <pb@futuretv.com>
5211 * config/arm/conix-elf.h: New file.
5212 * configure.in (arm*-*-conix*): New configuration.
5213 * configure: Regenerate.
5215 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
5217 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
5218 don't have TREE_ASM_WRITTEN set.
5220 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5222 * Eliminate DECL_FIELD_SIZE.
5223 * builtins.c (built_in_class_names, built_in_names): New variables.
5224 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
5225 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
5226 DECL_SIZE, not DECL_FIELD_SIZE.
5227 * print-tree.c (print_node): Remove code that prints extra blank
5228 lines in some cases.
5229 Properly handle inline and builtin function cases.
5230 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
5231 * tree.h (built_in_class_named, built_in_names): New declarations.
5232 (union tree_decl): Rename internal unions to u1 and u2 and change
5233 some of their components.
5234 Add new field built_in_class.
5235 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
5236 Reflect above changes.
5237 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
5238 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
5239 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
5240 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
5242 2000-02-28 Dmitri Makarov <dim@windriver.com>
5244 * extend.texi: Document ARM's support for long/short calls.
5246 * invoke.texi: Document ARM's -mlong-calls command line switch.
5248 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
5249 (arm_encode_call_attribute): Add prototype.
5250 (arm_set_default_type_attribute): Add prototype.
5251 (arm_strip_name_encoding): Add prototype.
5253 * config/arm/arm.c (arm_init_cumulative_args): replace
5254 initialisation og 'long_calls' field with initialisation of
5255 'call_cookie' field.
5256 (enum arm_pragma_enum): New enum.
5257 (arm_pragma_long_calls): New static variable.
5258 (arm_process_pragma): Also process "#pragma long_calls_off".
5259 (arm_valid_type_attribute_p): Accept short_call attribute.
5260 (arm_comp_type_attributes): Check long/short call attributes.
5261 (arm_encode_call_attribute): New function: Encode long_call
5262 or short_call attribute in function name.
5263 (arm_set_default_type_attributes): New function: Assign
5264 default attributes to newly defined type.
5265 (current_file_function_operand): New function: Return true if
5266 the symbol is a function which has already been compiled.
5267 (arm_is_longcall_p): New function: Return true if the
5268 indicated function should be called via a long call.
5269 (arm_get_strip_length): New function. Returns number of
5270 prefix characters to be stripped from a function's name.
5271 (arm_strip_name_encoding): New function. Strip prefix characters
5272 from a function's name.
5274 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
5276 (SHORT_CALL_FAG_CHAR): Define.
5277 (LONG_CALL_FAG_CHAR): Define.
5278 (ENCODED_SHORT_CALL_ATTR_P): Define.
5279 (ENCODED_LONG_CALL_ATTR_P): Define.
5280 (ARM_NAME_ENCODING_LENGTHS): Define.
5281 (STRIP_NAME_ENCODING): Define.
5282 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
5283 (ARM_ENCODE_CALL_TYPE): Define.
5284 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
5285 (ARM_DECLARE_FUNCTION_SIZE): Define.
5286 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
5288 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
5289 if a long call is needed.
5290 (call_value): Ditto.
5291 (call_symbol): Ditto.
5293 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
5294 ARM_DECLARE_FUNCTION_SIZE.
5296 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
5297 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
5298 (ARM_STRIP_NAME_ENCODING): Undefine.
5299 (STRIP_NAME_ENCODING): Undefine.
5300 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
5301 (ASM_DECLARE_FUNCTION_NAME): Ditto.
5302 (ASM_OUTPUT_COMMON): Ditto.
5303 (ASM_DECLARE_OBJECT_NAME): Ditto.
5305 * config/arm/pe.c (arm_dllexport_name_p): Check for
5307 (arm_dllimport_name_p): Ditto.
5308 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
5309 (arm_mark_dllimport): Ditto.
5311 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5313 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
5315 2000-02-28 Mark Mitchell <mark@codesourcery.com>
5317 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
5319 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
5321 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
5322 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
5323 NO_BUILTIN_WCHAR_TYPE is not defined.
5324 (CPP_WCHAR_TYPE): Delete.
5325 * cccp.c (main): Don't change wchar_type if cplusplus.
5326 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
5328 2000-02-28 Nick Clifton <nickc@cygnus.com>
5330 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
5332 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
5334 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
5335 (ASM_WEAKEN_LABEL): Define.
5337 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
5339 * expr.c (store_constructor): Do not emit USE.
5340 * rtl.h (stupid_life_analysis): Remove.
5342 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5344 * function.c (number_blocks): Reset next_block_index based on
5345 what debugging format is used, not what is defined.
5347 * lcm.c: Minor reformatting throughout.
5348 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
5350 * toplev.c (rest_of_compilation): Account for time in
5351 optimize_mode_switching.
5353 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
5354 if only marking labels.
5356 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
5358 * calls.c (expand_call): Attempt to combine stack adjustments with
5359 pending stack adjustments.
5361 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5363 * loop.c (reg_in_basic_block_p): Don't abort when falling through
5364 to the end of the function.
5366 2000-02-27 Mark Mitchell <mark@codesourcery.com>
5368 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
5370 * final.c (next_block_index): Remove.
5371 (max_block_depth): Likewise.
5372 (pending_blocks): Likewise.
5373 (init_final): Don't initialize them.
5374 (final_start_function): Don't set next_block_index. Set up
5376 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
5377 * function.h (number_blocks): New function.
5378 * function.c (get_block_vector): New function.
5379 (identify_blocks): Use it.
5380 (reorder_blocks): Set NOTE_BLOCK.
5381 (number_blocks): New function.
5382 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
5383 * tree.h (BLOCK_NUMBER): New macro.
5384 (tree_block): Add block_num field.
5385 * dbxout.c (next_block_number): Remove.
5386 (dbxout_init): Don't set it.
5387 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
5388 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
5390 * toplev.c (rest_of_compilation): Always call
5391 find_loop_tree_blocks. Fix indentation.
5392 * dwarf2out.c (next_block_number): Remove.
5393 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
5394 to determine block numbers.
5395 (gen_inlined_subroutine_die): Likewise.
5396 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
5397 (decls_for_scope): Don't increment next_block_number.
5398 * dwarfout.c (next_block_number): Remove.
5399 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
5400 to determine block numbers.
5401 (output_inlined_subroutine_die): Likewise.
5402 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
5403 (output_decls_for_scope): Don't increment next_block_number.
5404 * sdbout.c (next_block_number): Remove.
5405 (sdbout_block): Use BLOCK_NUMBER.
5406 (sdbout_begin_block): Simplify.
5407 * xcoffout.c (next_block_number): Remove.
5408 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
5409 (xcoffout_begin_block): Don't set next_block_number.
5410 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
5413 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5415 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
5416 (expand_builtin_strcpy): Pass correct type to size_binop.
5417 (expand_builtin_strcmp): Likewise.
5418 Clean up conditional structure.
5419 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
5420 (complete_array_type): Don't use size_binop for MAXINDEX.
5421 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
5422 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
5423 (c_alignof): Use size_one_node.
5424 (build_unary_op): Pass arg of proper type to size_binop.
5425 (really_start_incremental_init, push_init_level): Use sizetype for
5426 constructor{,_bit,_unfilled}_index.
5427 (pop_init_label, output_init_element): Likewise.
5428 (output_pending_init_elements, process_init_element): Likewise.
5429 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
5430 * expr.c (store_expr): Use size_int.
5431 (store_constructor): Use proper types for size_binop args.
5432 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
5433 (expand_expr_unaligned): Likewise.
5434 (string_contant): Return object of sizetype.
5435 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
5436 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
5437 (ARGS_SIZE_TREE): Pass proper types to size_binop.
5438 * fold-const.c (int_const_binop): Refine when size_int is called.
5439 (fold_convert): Likewise.
5440 (size_int_wide): Rework to take KIND as arg, only take low order
5441 bits, handle new sizetype_tab datatype, and chain entries in
5443 (size_int_type_wide): New function.
5444 (size_binop): Validate types of arguments.
5445 (ssize_binop): Deleted.
5446 (size_diffop): New function.
5447 (extract_muldiv): Only fold division into multiplication for sizetypes.
5448 * function.c (assign_parms): Use size_diffop and make sure
5449 VAR field is of ssizetype; also pass proper type to size_binop.
5450 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
5451 (round_down): Deleted from here.
5452 * store-layout.c (sizetype_tab): Now an array.
5453 (sizetype_set, early_root_list): New variables.
5454 (variable_size): Use size_one_node.
5455 (round_up): Pass proper type to size_binop.
5456 (round_down): Moved to here and corrected as above.
5457 (layout_record): Pass proper arg types to size_binop.
5458 (layout_type): Likewise.
5459 If sizetype_set is zero, record the type just laid out.
5460 (make_unsigned_type): Don't call set_sizetype;
5461 (make_signed_type): Likewise; also, call fixup_signed_type.
5462 (initialize_sizetypes): New function.
5463 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
5464 set name of bitsizetype to "bit_size_type".
5465 Fix up type of sizes of all types made before call.
5466 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
5467 * tree.c (fix_sizetype): Deleted.
5468 (build_common_tree_nodes): Call initialize_sizetypes.
5469 (build_common_tree_nodes_2): Don't call fix_sizetype.
5470 * tree.h (TYPE_IS_SIZETYPE): New macro.
5471 (initialize_sizetype): New declaration.
5472 (enum size_type_kind): New type.
5473 (struct sizetype_tab): Deleted.
5474 (sizetype_tab): Now array; adjust sizetype macros.
5475 (size_diffop, size_int_type_wide): New functions.
5476 (size_int_wide): Change number of args and type; access macros changed.
5477 (ssize_int, sbitsize_int): New macros.
5478 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
5479 (ROUND_TYPE_SIZE_UNIT): New macro.
5481 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
5483 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
5485 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5487 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
5488 Mark as possibly unused.
5490 * cse.c (cse_insn): Delete dead code involving tablejump.
5491 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
5493 * Makefile.in (libcpp.a): Start by deleting it.
5495 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5497 * cpplib.h (enum file_change_code): Added rename_file.
5498 * cpplib.c (do_line): If a filename is given, set file_change to
5500 (output_line_command): If file_change is rename_file, always
5501 output a # directive with the file name.
5503 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
5505 2000-02-26 Mark Mitchell <mark@codesourcery.com>
5507 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
5508 when copying a PARM_DECL or RESULT_DECL.
5510 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5512 * fix-header.c (recognized_function): Also fix prototypes for
5513 functions taking "void".
5515 2000-02-26 Geoff Keating <geoffk@cygnus.com>
5517 * reload1.c (do_output_reload): Check reg_reloaded_valid before
5518 looking at reg_reloaded_contents.
5520 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
5522 * Makefile.in (STMP_FIXINC): New toggle.
5523 (LIBGCC2_DEPS): Delete all references.
5524 (stmp-headers): Delete target. All references either deleted
5525 or changed to stmp-int-headers.
5526 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
5527 (LIBCPP_OBJS): Take out cppalloc.o.
5528 (cppalloc.o): Delete target.
5529 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
5530 (gen-protos, fix-header): Link with libiberty.a.
5531 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
5534 * configure.in: Remove refs to strerror.
5535 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
5536 * system.h: Take out strerror stanza.
5538 * cpperror.c (my_strerror): Delete function.
5539 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
5540 * cppmain.c (main): Call xmalloc_set_program_name first thing.
5541 * cppalloc.c: Delete file.
5542 * gen-protos.c: Don't provide xrealloc.
5544 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
5545 xstrerror throughout.
5547 2000-02-26 Bruce Korb <bkorb@gnu.org>
5549 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
5550 match for DOS headers, too.
5551 * fixinc/inclhack.sh,fixincl.x: Regenerate.
5553 2000-02-26 Geoff Keating <geoffk@cygnus.com>
5555 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
5556 is right for most ELF targets.
5557 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
5558 Let the default file use %U properly.
5559 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
5562 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
5565 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5567 * toplev.c (documented_lang_options): Correct spelling error.
5568 (decode_d_option, decode_f_option, main): Likewise.
5570 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
5572 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
5573 to tell assembler it is permitted to expand large constants.
5575 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
5577 * protoize.c: (AUX_INFO_SUFFIX): New macro.
5578 (aux_info_suffix): Use.
5579 (SAVE_SUFFIX): New macro.
5581 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
5582 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
5583 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
5585 * invoke.texi (Running Protoize): Update documentation.
5587 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
5589 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
5591 2000-02-25 John Wehle (john@feith.com)
5593 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
5595 2000-02-25 Anthony Green <green@cygnus.com>
5597 * toplev.c (rest_of_compilation): Rebuild jump labels if
5598 combine_instructions has created a new direct jump.
5599 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
5601 (combine_instructions): Call try_combine with new argument.
5602 Return non-null value when new direct jump instruction is created.
5603 * rtl.h: combine_instructions returns an int.
5605 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
5607 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
5608 jump when changing a computed jump into a jump to a known
5611 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
5613 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
5614 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
5616 * i386.md (define_expand "clrstrsi"): Fix typo.
5618 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
5620 * rtl.texi: Fix typo.
5622 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5624 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
5625 UNITS_PER_WORD. Change caller initial_elimination_offset.
5626 (rounded_frame_size): Take into account that argument pushed has
5627 changed. Fix TARGET_ALIGN_DOUBLE problem.
5629 2000-02-25 Geoff Keating <geoffk@cygnus.com>
5631 * haifa-sched.c (schedule_block): Explain the real reason
5632 we delete REG_SAVE_NOTEs on the first insn of a block.
5633 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
5635 2000-02-24 Mark Mitchell <mark@codesourcery.com>
5637 * input.h (push_srcloc): New function.
5638 (pop_srcloc): Likewise.
5639 * toplev.c (push_srcloc): Define it.
5640 (pop_srcloc): Likewise.
5642 2000-02-24 Richard Henderson <rth@cygnus.com>
5644 * flow.c (life_analysis): When collecting reg info, clear
5647 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5649 Fix bug exposed by reload.c no longer rounding the frame
5650 size to BIGGEST_ALIGNMENT:
5651 * sh.c (rounded_frame_size): New function.
5652 (sh_expand_prologue, sh_expand_epilogue): Use it.
5653 (initial_elimination_offset): Likewise.
5655 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5657 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
5658 * sh-protos.h (sh_need_epilogue): Declare.
5659 * sh.c (sh_need_epilogue_known): New static variable.
5660 (sh_need_epilogue): New function.
5661 (function_epilogue): Clear need_epilogue_known.
5662 * sh.md (return): Split into expander / insn pattern.
5663 Make the expander conditional on ! sh_need_epilogue ().
5665 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
5667 * machmode.h (get_mode_alignment): Declare.
5668 (GET_MODE_ALIGNMENT): Call it.
5669 * stor-layout.c (get_mode_alignment): New function. Make
5670 sure alignment is always power of 2.
5672 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
5674 * i386.h: Remove useless definition of "I386" and misleading
5677 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
5679 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
5680 under which TREE_PERMANENT will be set.
5681 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
5682 build1): Use TREE_SET_PERMANENT.
5683 * print-tree.c (print_node): Don't report value of
5684 TREE_PERMANENT if ggc_p is true.
5686 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
5687 decide whether to give a type a new alias set.
5688 * objc/objc-act.c (build_objc_string_object): Never copy the string.
5689 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
5690 of value of 'obstack'.
5693 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5695 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
5697 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5699 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
5700 * cpplib.c (cpp_get_token): Produce them.
5701 * cppexp.c (cpp_lex): Handle them.
5703 2000-02-23 Nick Clifton <nickc@cygnus.com>
5705 * config/arm/arm.c (arm_comp_type_attributes): Simply and
5706 comment tests on type attributes.
5708 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5710 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
5711 conform to documentation.
5712 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
5713 to check for special cases.
5714 * sh-protos.h (sh_loop_align): Declare.
5715 * sh.c (sh_loop_align): Define.
5717 2000-02-22 Andrew Haley <aph@cygnus.com>
5719 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
5720 (SIZE_TYPE): Is 32 bits when using -mgp32.
5721 (PTRDIFF_TYPE): Ditto.
5723 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5725 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
5727 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
5729 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
5730 BIGGEST_FIELD_ALIGNMENT a constant.
5732 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
5734 * dwarf2out.c (output_line_info): Put the marker for the end of
5735 the line number info at the actual end.
5736 (gen_struct_or_union_type_die): Use decl_function_context
5737 to check for local classes.
5738 * dwarfout.c (output_type): Likewise.
5740 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
5742 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
5743 for arguments with a mode, but no type.
5744 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
5745 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
5746 * pa/long_double.h: New file.
5747 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
5748 both have 128bit wide long doubles.
5749 * configure: Rebuilt.
5751 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5753 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
5755 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
5756 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
5757 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
5759 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
5761 * integrate.c (compare_blocks, find_block): Likewise.
5763 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
5765 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
5767 * stmt.c (stmt_status, set_file_and_line_for_stmt,
5768 expand_asm_operands): Likewise.
5770 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
5772 * predict.c (estimate_probability): Added the pointer heuristic to
5773 the collection of static branch predictors.
5775 2000-02-21 Catherine Moore <clm@cygnus.com>
5777 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
5778 * invoke.texi (-mfix7000): Document.
5780 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
5782 * diagnostic.c (init_output_buffer): Make it possible to output at
5783 least 32 characters if we're given a too long prefix.
5785 2000-02-20 Mark Mitchell <mark@codesourcery.com>
5787 * varasm.c (initializer_constant_valid_p): Call
5788 lang_expand_constant to simplify the constant.
5790 2000-02-20 Bruce Korb <bkorb@gnu.org>
5792 * fixinc/inclhack.def(stdio_va_list):
5793 typedef needs to be disabled.
5794 * fixinc/inclhack.sh: regen
5795 * fixinc/fixincl.x: regen
5797 2000-02-20 Geoff Keating <geoffk@cygnus.com>
5799 * print-rtl.c (print_rtx): Don't print addresses when
5800 flag_dump_unnumbered.
5802 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5804 * sparc.c (sparc_output_scratch_registers): Mark parameter with
5806 (sparc_va_arg, sparc_flat_output_function_prologue,
5807 sparc_flat_output_function_epilogue): Cast value to unsigned in
5809 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
5811 * sparc.md: Add default case in switch.
5813 2000-02-19 Richard Henderson <rth@cygnus.com>
5815 * c-typeck.c (add_pending_init): Don't abort for multiple
5816 fields at the same offset.
5817 (pending_init_member): Test the correct member.
5819 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5821 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
5823 (start_catch_handler) : Same.
5825 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
5827 * Makefile.in: Have flow.o depend on $(EXPR_H)
5829 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5831 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
5832 * c-decl.c (duplicate_decls, finish_enum): Likewise.
5833 (finish_decl): Remove -Wlarger-than code from here.
5834 * flags.h (id_clash_len): Now int.
5835 (larger_than_size): Now HOST_WIDE_INT.
5836 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
5837 Clean up checking to see if in table.
5838 (make_bit_field_ref): Remove extra parm to bitsize_int.
5839 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
5840 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
5841 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
5842 and for computing size of decl.
5843 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
5844 Move -Wlarger-than code to here.
5845 (layout_record): Remove extra arg to bitsize_int.
5846 Set TYPE_BINFO_SIZE_UNIT.
5847 (layout_union): Remove extra arg to bitsize_int.
5848 Use proper type for size of QUAL_UNION.
5849 (layout_type): Remove extra arg to bitsize_int.
5850 * toplev.c (id_clash_len): Now int.
5851 (larger_than_size): Now HOST_WIDE_INT.
5852 (decode_W_option): Clean up id-clash and larger-than- cases.
5853 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
5854 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
5855 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
5856 (struct tree_decl): New field size_unit.
5857 (size_int_wide): No HIGH operand; NUMBER is now signed.
5858 (size_int_2): Deleted.
5859 (size_int, bitsize_int): Don't use it and rework args.
5860 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
5862 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
5864 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
5866 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5868 * invoke.texi (Warning Options): Add an explanation of why
5869 you might want the -Wfloat-equal flag.
5871 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5873 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
5874 * cppinit.c (new_pending_define): Add cast to avoid warning.
5875 * expmed.c (extract_bit_field): Likewise.
5876 * flow.c (enum reorder_skip_type): New type.
5877 (skip_insns_between_blcok): New it.
5878 Rework to avoid warning about possibly undefined variable.
5879 * function.c (assign_parms): Make thisparm_boundary unsigned.
5880 * genrecog.c (write_switch): Cast XWINT result to int.
5881 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
5882 * mips-tfile.c (init_file): Make two versions of FDR intializer:
5883 one for MIPS and one for Alpha.
5884 (get_tag, copy_object): Add casts to avoid warnings.
5885 * optabs.c (init_one_libfunc): Cast NAME to (char *).
5886 * reload.c (find_reloads): Make TYPE enum reload_type.
5887 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
5888 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
5889 * varasm.c (compare_constant_1): Add cast to avoid warning.
5890 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
5892 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
5893 Cast switch operand of size to int.
5894 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
5895 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
5898 2000-02-18 Nick Clifton <nickc@cygnus.com>
5900 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
5901 anything for an alignment of zero.
5903 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
5904 anything for an alignment of zero.
5906 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
5908 * gcc.texi (Bug Reporting): Refer to bugs.html.
5909 (Bug Lists): Likewise.
5910 * system.h (GCCBUGURL): New preprocessor define.
5911 * rtl.c (fancy_abort): Use it.
5912 * gcc.c (main): Likewise.
5914 2000-02-18 Richard Henderson <rth@cygnus.com>
5916 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
5917 (life_analysis_1): Subsume into ...
5918 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
5919 Use update_life_info for the relaxation.
5920 (update_life_info): Update REG_BASIC_BLOCK for registers live on
5921 entry and regs_live_at_setjmp.
5922 (set_noop_p): Simplify.
5923 (notice_stack_pointer_modification_1): Renamed from s/_1//.
5924 (record_volatile_insns): Split into ...
5925 (delete_noop_moves): ... here,
5926 (notice_stack_pointer_modification): ... here,
5927 (insn_dead_p): ... and here.
5928 (propagate_block): Don't query INSN_VOLATILE.
5929 (mark_used_regs): Mind !PROP_REG_INFO.
5930 * toplev.c (rest_of_compilation): Call mark_constant_function here,
5931 not in life_analysis.
5933 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
5935 * loop.c (canonicalize_condition): New function,
5936 broken out of get_condition.
5937 (get_condition): Use it.
5938 * expr.h (canonicalize_condition): Prototype it.
5940 * tree.h (tree_int_cst_msb): Declare.
5941 * tree.c (tree_int_cst_msb): New function.
5943 2000-02-17 Mark Mitchell <mark@codesourcery.com>
5945 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
5948 * invoke.texi (-fmessage-length=n): Document.
5950 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
5952 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
5954 2000-02-17 Mark Mitchell <mark@codesourcery.com>
5956 * function.c (thread_prologue_and_epilogue_insns): Put a line note
5959 2000-02-17 Nick Clifton <nickc@cygnus.com>
5961 * config/arm/thumb.c: Replace includes of system headers with
5962 #include "system.h".
5964 2000-02-16 Richard Henderson <rth@cygnus.com>
5966 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
5967 Add crtbeginS.o and crtendS.o.
5968 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
5969 (ENDFILE_SPEC): Use crtendS.o.
5970 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
5972 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
5973 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
5975 (__dso_handle): New variable.
5976 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
5977 bias to __CTOR_END__.
5979 2000-02-16 Richard Henderson <rth@cygnus.com>
5981 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
5983 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
5985 * longlong.h (__clz_tab): Declare as static to match definition.
5987 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
5988 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
5989 (XREF_FILE_NAME): Define.
5991 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
5992 (EH_FRAME_SECTION_ASM_OP): Define.
5993 (IDENT_ASM_OP): Define.
5994 (TEXT_SECTION_ASM_OP): Define.
5996 (CTORS_SECTION_ASM_OP): Define.
5997 (CTOR_SECTION_FUNCTION): Use it.
5998 (DTORS_SECTION_ASM_OP): Define.
5999 (DTOR_SECTION_FUNCTION): Use it.
6001 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
6003 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
6006 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
6007 debug_bb_n): New functions.
6008 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
6009 * basic-block.h: Prototype new functions.
6011 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
6013 * configure.in: Add support for avr target.
6014 * configure: Rebuilt.
6016 * invoke.texi: Add AVR invocation docs.
6017 * install.texi: Add information about AVR.
6018 * md.texi: Add AVR constraint letters description.
6019 * extend.texi: Add description for AVR specific attributes.
6021 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
6023 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
6025 2000-02-16 Nick Clifton <nickc@cygnus.com>
6027 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
6028 (make_insn_raw): Move RTL check here.
6030 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6032 * version.c: Include gansidecl.h and version.h.
6034 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
6036 * configure.in (gcc_version): When setting, narrow search to
6037 lines containing `version_string'.
6039 * Makefile.in (mainversion): Likewise.
6040 (GCC_H): New variable.
6041 (gcc.h): Delete target.
6042 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
6043 (version.o): Depend on version.h.
6044 (dbxout.o): Don't depend on gcc.h.
6046 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
6047 Michael Meissner <meissner@cygnus.com>
6049 * md.texi (Simple Constraints): Add item about whitespace.
6050 * genoutput.c (strip_whitespace): New.
6051 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
6052 strip_whitespace for constraints.
6053 Test pointer using NULL, not 0.
6055 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6057 * cpplib.c (do_line): Pedwarn for #line > 32767.
6059 * c-lex.c (readescape): Warn about '\x', but do not reject it.
6061 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
6063 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
6064 to default cpp spec.
6065 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
6066 * cpp.texi: Document __GNUC_PATCHLEVEL__.
6069 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
6072 2000-02-15 Denis Chertykov <denisc@overta.ru>
6074 * configure.in: Add support for avr target.
6076 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6078 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
6079 (sh_addr_diff_vec_mode): Don't declare.
6080 * sh.c (sh_addr_diff_vec_mode): Delete.
6082 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6084 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
6086 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6088 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
6089 (smulsi3_highpart_i): Name.
6090 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
6091 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
6092 (smulsi3_highpart, umulsi3_highpart): Likewise.
6094 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
6095 correctly independent of endianness.
6096 (mulsidi3, umulsidi3): Now define_insn. Hide details that
6097 confuse the optimizers.
6098 (mulsidi3+1, umulsidi3+1): New define_split.
6100 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
6102 * config/sh/sh.md: Guard insn splits against illegal registers.
6103 * config/sh/sh.h: Correct comment about macros.
6105 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6106 Andrew MacLeod <amacleod@cygnus.com>
6108 * Makefile.in (lcm.o): Depend on insn-attr.h.
6109 * basic-block.h (optimize_mode_switching): Declare.
6110 * lcm.c (tm_p.h, insn-attr.h): #include.
6111 (seginfo, bb_info): New structs.
6112 (antic, transp, comp, delete, insert) : New file-scope static variables.
6113 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
6114 (reg_becomes_live, optimize_mode_switching): Likewise.
6115 * tm.texi: Add description of mode switching macros.
6116 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
6118 * sh-protos.h (remove_dead_before_cse): Remove prototype.
6119 (fldi_ok, fpscr_set_from_mem): New prototypes.
6120 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
6121 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
6122 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
6123 (sh_flag_remove_dead_before_cse): Remove declaration.
6124 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
6125 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
6126 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
6127 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
6128 (barrier_align): Allow for JUMP_INSNS containing a parallel.
6129 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
6130 (fldi_ok): New function.
6131 (get_fpscr_rtx): Add fpscr_rtx as GC root.
6132 (emit_sf_insn): Only generate fpu switches when optimize < 1.
6133 (emit_df_insn): Likewise.
6134 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
6135 (sh_flag_remove_dead_before_cse): Delete.
6136 (get_free_reg, fpscr_set_from_mem): New functions.
6137 * sh.md (movdf, movsf): Remove no_new_pseudos code.
6138 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
6140 2000-02-15 Loren Rittle <ljrittle@acm.org>
6142 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
6144 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6146 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
6147 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
6149 * cccp.c: Include version.h and/or don't declare `version_string'.
6150 * collect2.c: Likewise.
6151 * alpha.c: Likewise.
6152 * arm/aof.h: Likewise.
6153 * arm/coff.h: Likewise.
6154 * arm/elf.h: Likewise.
6155 * arm/pe.h: Likewise.
6156 * arm/tcoff.h: Likewise.
6157 * arm/telf.h: Likewise.
6158 * arm/tpe.h: Likewise.
6159 * arm/vxarm.h: Likewise.
6160 * convex/convex.c: Likewise.
6161 * i386/dgux.c: Likewise.
6162 * i386/sun386.h: Likewise.
6163 * m88k/m88k.c: Likewise.
6164 * mcore/mcore-pe.h: Likewise.
6165 * mips/mips.h: Likewise.
6166 * romp/romp.h: Likewise.
6167 * sh/sh.c: Likewise.
6168 * cpphash.c: Likewise.
6169 * cppinit.c: Likewise.
6170 * dwarf2out.c: Likewise.
6171 * dwarfout.c: Likewise.
6174 * mips-tfile.c: Likewise.
6175 * protoize.c: Likewise.
6176 * toplev.c: Likewise.
6179 * version.c (version_string): Constify a char*.
6181 * version.h: New file.
6183 2000-02-14 Nick Clifton <nickc@cygnus.com>
6185 * configure.in: Add mcore-elf and mcore-pe targets.
6186 * configure: Regenerate.
6188 * NEWS: Add note that MCore port has been contributed.
6190 * invoke.texi: Document command line switches for MCore port.
6191 * install.texi: Add MCore to list of supported targets.
6193 2000-02-14 Geoff Keating <geoffk@cygnus.com>
6195 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
6196 then we will need to import the frame handling functions.
6197 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
6198 to import the frames themselves.
6200 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
6201 Jason Eckhardt <jle@cygnus.com>
6203 * basic_block.h: Added prototype for reorder_basic_blocks.
6204 * toplev.c: Changes to add -freorder-blocks and graph dump after
6205 block reordering is done.
6206 * flow.c (reorder_block_def): New structure for use during block
6208 (REORDER_BLOCK_*): New macros to access members of above structure.
6209 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
6210 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
6211 functions for block reordering.
6213 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
6215 * gcc.texi (Passes): Fix typo.
6216 * md.texi (Standard Names): Ditto.
6217 * tm.texi (Storage Layout): Ditto.
6219 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
6221 * cpplib.c (do_define): Only free the old definition if it
6224 2000-02-13 Neil Booth <NeilB@earthling.net>
6226 * cppfiles.c (read_and_prescan): When emitting deferred
6227 newlines, test speccase[] again instead of checking each
6228 possible whitespace character in turn. When we encounter \r,
6229 look behind for \n first, then ahead.
6231 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
6233 * cse.c (cse_altered): New internal flag.
6234 (cse_insn): Set it if we changed an insn.
6235 (cse_main): Clear cse_altered before each basic block.
6236 Only garbage collect if cse_altered is true afterward.
6238 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6240 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
6242 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
6244 * combine.c (simplify_comparison): Fix typo.
6246 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
6248 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
6251 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6253 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
6254 previously inserted node instead of root node. Caller changed.
6256 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6258 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
6260 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6262 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
6263 __dereg_frame_dtor): Add prototype argument.
6265 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
6267 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
6269 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
6271 * gthr-vxworks.h (__gthread_once): Likewise.
6273 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
6275 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
6277 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
6278 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
6279 stack pointer in functions w/o saved registers, output LEAVE more often
6280 on TARGET_USE_LEAVE machines.
6282 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
6284 * config/arm/arm.c (arm_init_cumulative_args); New function:
6285 Initlaise the CUMULATIE_ARGS strcuture for a function
6287 (arm_function_arg): New function: Determine where to place a
6288 function's argument. Also handles deciding the function's
6290 (current_file_function_operand): New function: Return true if
6291 the symbol is a function which has already been compiled.
6292 (arm_is_long_call_p): New function: Return true if the
6293 indicated function should be called via a long call.
6294 (arm_valid_type_attribute_p): New function: Return true if the
6295 attribute is a valid, arm specific, attribute.
6296 (arm_comp_type_attribute): New function: Return true if the
6297 two types have compatable, arm specific, attributes.
6299 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
6301 (FUNCTION_ARG): Redefine to call arm_function_arg.
6302 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
6304 (INIT_CUMULATIVE_ARGS): Redefine to call
6305 arm_init_cumulative_args.
6306 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
6308 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
6310 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
6312 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
6313 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
6314 (COMP_TYPE_ATTRIBUTES): Define.
6316 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
6317 if a long call is needed.
6318 (call_value): Call arm_is_long_call_p to decide if a long call
6320 (call_symbol): Call arm_is_long_call_p to decide if a long call
6323 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
6325 2000-02-11 Denis Chertykov <denisc@overta.ru>
6327 * README.AVR: New file with information about the avr ports.
6328 * config/avr: New directory with avr port files.
6330 2000-02-11 Andreas Jaeger <aj@suse.de>
6332 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
6334 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
6336 * cpphash.c: Fix formatting, update commentary.
6337 (dump_definition): Take three separate arguments instead of a
6338 MACRODEF structure argument.
6339 * cpphash.h: Update prototype of dump_definition.
6340 * cppinit.c (cpp_finish): Update call of dump_definition.
6342 * cpplib.c (do_define): Always create new hash entry with
6343 T_MACRO type. Remove redundant check for redefinition of
6344 poisoned identifier. Update call of dump_definition.
6345 (do_undef): Don't call check_macro_name. Rename sym_length to
6347 (do_error, do_warning): Don't use copy_rest_of_line or
6349 (do_warning): Don't use pedwarn for the actual warning,
6350 only the notice about its not being in the standard. (Fixes
6351 bug with #warning in system headers.)
6352 (do_ident): Stricter argument checking - accept only a single
6353 string after #ident. Also, macro-expand the line.
6354 (do_xifdef): Use cpp_defined. De-obfuscate.
6356 (do_pragma): Split out specific pragma handling to separate
6357 functions. Use get_directive_token. Update commentary. Do
6358 not pass on #pragma once or #pragma poison to the front end.
6359 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
6360 do_pragma_default): New.
6362 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
6364 * jump.c (jump_optimize_1): The first operand in a relational
6366 * optabs.c (emit_conditional_move): Handle relationals which
6367 have a known true/false result.
6369 2000-02-11 Geoff Keating <geoffk@cygnus.com>
6371 * function.c (thread_prologue_and_epilogue_insns): Don't insert
6372 a RETURN insn into a block which already ends with a jump.
6374 2000-02-11 Geoff Keating <geoffk@cygnus.com>
6376 * haifa-sched.c (BUF_LEN): Increase a lot.
6378 2000-02-11 Nick Clifton <nickc@cygnus.com>
6380 * configure.in: Add tm_p_file specification for thumb targets.
6381 * configure: Regenerate.
6383 * config/arm/thumb-protos.h: New file: Prototypes for exported
6384 functions defined in thumb.c.
6386 2000-02-11 Robert Lipe <robertl@sco.com>
6388 * Makefile.in (bootstrap-lean): Remove additional files.
6389 (bootstrap2-lean): Likewise.
6390 (VOL_FILES): List of files for above.
6392 2000-02-11 Nathan Sidwell <nathan@acm.org>
6394 * cpphash.c (special_symbol): Remove spurious argument to
6397 2000-02-11 Joel Sherrill (joel@OARcorp.com>
6399 * configure.in: (i*86-*-rtems*): Swapped elf and coff
6401 * configure: Rebuilt.
6403 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
6405 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
6407 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
6409 * pa.c, pa.h: Remove trigraph sequences within comments.
6411 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
6413 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
6415 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
6417 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
6419 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6421 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
6423 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6425 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
6426 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
6427 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
6428 (ASM_FILE_END): Use c4x_file_end.
6429 * config/c4x/c4x.c (c4x_global_label): New function.
6430 (c4x_external_ref, c4x_file_end): Likewise.
6432 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
6433 (c4x_external_ref, c4x_end_file): Likewise.
6435 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
6437 * cppexp.c: Don't include cpphash.h.
6438 (parse_charconst, cpp_lex): Use cpp_defined.
6439 (cpp_lex): Use get_directive_token throughout. Remove
6440 unnecessary cases from switch. Move assertion-handling code
6442 (cpp_parse_expr): If we see '+' or '-', check the context to
6443 determine if they are unary or binary operators. Streamline
6444 the jumps a bit. Do not call skip_rest_of_line.
6446 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
6447 static. Export get_directive_token. Update commentary.
6448 (cpp_defined): New function.
6449 (do_define): Remove reference to T_PCSTRING. Call
6450 free_definition to release memory for old definition, when
6452 (eval_if_expression): Set only_seen_white to 0 before calling
6453 cpp_parse_expr. Call skip_rest_of_line after it returns.
6454 (cpp_read_check_assertion): Don't preserve a pointer into the
6455 token buffer across a call to cpp_get_token.
6457 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
6458 * cppfiles.c (redundant_include_p): Use cpp_defined.
6459 * cpphash.c (free_definition): New function.
6460 (delete_macro): Use it. Update commentary.
6461 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
6463 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
6464 from enum node_type. Prototype cpp_defined and get_directive_token.
6465 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
6467 * fix-header.c (check_macro_names): Use cpp_defined.
6468 (read_scan_file): Set inhibit_warnings and inhibit_errors in
6469 the options structure.
6471 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6473 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
6475 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
6477 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
6478 rather than die->die_tag.
6480 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6482 * combine.c (make_extraction, force_to_mode): Avoid warning on
6483 mixed-signedness conditionals.
6484 (make_field_assignment, nonzero_bits): Likewise.
6485 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
6486 (store_split_bit_field, extract_split_bit_field): Likewise.
6487 (extract_fixed_bit_field, store_bit_field,
6488 * expr.c: Change alignment to be unsigned everywhere.
6489 (move_by_pieces, store_constructor_field, store_constructor):
6490 Alignment parm is unsigned.
6491 (emit_block_move, emit_group_load, emit_group_store): Likewise.
6492 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
6493 (do_compare_rtx_and_jump): Likewise.
6494 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
6495 Compare align with GET_MODE_ALIGNMENT.
6496 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
6497 (get_inner_reference): Likewise.
6498 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
6499 (expand_assignment): Local vars for alignment now unsigned.
6500 (store_constructor, store_field, expand_expr, do_jump): Likewise.
6501 (do_compare_and_jump): Likewise.
6502 (store_field): Call new function expr_align.
6503 * expr.h (emit_block_move, emit_group_load, emit_group_store):
6504 Alignment arg now unsigned.
6505 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
6506 (do_compare_rtx_and_jump, store_bit_field): Likewise.
6507 (extract_bit_field): Likewise.
6508 * fold-const.c (add_double): Add cast to eliminate signedness warning.
6509 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
6510 (get_best_mode): Alignment arg is unsigned.
6511 * rtl.h (move_by_pieces): Likewise.
6512 * store-layout.c (maximum_field_alignment, set_alignment):
6514 (layout_decl): Alignment arg is now unsigned.
6515 Remove unneeded casts.
6516 (layout_record, layout_union, layout_type): Remove unneeded casts.
6517 Local alignment variables now unsigned.
6518 (get_best_mode): Alignment arg now unsigned.
6519 * tree.c (expr_align): New function.
6520 * tree.h (expr_align): Likewise.
6521 (maximum_field_alignment, set_alignment): Now unsigned.
6522 (get_inner_reference): Alignment argument is now pointer to unsigned.
6523 * varasm.c (assemble_variable): Add cast to eliminate warning.
6525 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
6527 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
6528 then store directly into op0.
6530 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
6531 the CALL_INSN, and emit the note immediately after it.
6533 2000-02-10 Nick Clifton <nickc@cygnus.com>
6535 * config/arm/thumb.md (epilogue): Include a (return) in the
6536 generated insn, and emit it using emit_jump_insn not
6539 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
6541 * function.c (assign_temp): Change zero-sized arrays to size 1.
6542 * integrate.c (expand_inline_function): Do not update
6543 stack_alignment_needed
6544 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
6545 add some sanity checking, remove optimization for function with
6548 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6550 * flow.c (mark_regs_live_at_end): Delete unused variables.
6552 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
6554 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
6555 in macro FRAME_GROWS_DOWNWARD.
6557 * stmt.c (expand_end_bindings): Delete unused variable.
6559 * unroll.c (iteration_info): Mark parameter `loop' with
6562 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6564 * fixinc/server.c (load_data): Return NULL if the marker line is
6566 (run_shell): If load_data returns NULL, retry the command once, in
6569 * configure: Rebuilt.
6571 2000-02-09 Bruce Korb <bkorb@gnu.org>
6573 * gcc/fixincludes: ** DELETED **
6574 * gcc/fixcpp: ** DELETED **
6575 * gcc/fixinc-nt.sed: ** DELETED **
6576 * gcc/just-fixinc: ** DELETED **
6577 * gcc/Makefile.in: Removed out-dated commentary
6578 * gcc/configure.in: Removed fast-fixincludes disablement.
6579 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
6581 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
6582 * function.c (thread_prologue_and_epilogue_insns): Uncomment
6585 2000-02-09 Richard Henderson <rth@cygnus.com>
6587 * jump.c (delete_insn): Don't delete user labels at -O0.
6589 2000-02-09 Robert Lipe <robertl@sco.com>
6591 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
6592 Don't link with HOST_LIBS.
6594 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
6596 * configure.in: Correct --help text for --with-dwarf2.
6597 Put tm-dwarf2.h after other tm files, if it's requested.
6598 * configure: Regenerate.
6599 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
6602 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
6604 * cpplib.h: Provide HASHNODE typedef and forward decl of
6605 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
6606 DEFINITION, struct hashnode, struct macrodef, struct
6607 definition, scan_decls prototype, default defn of
6608 INCLUDE_LEN_FUDGE moved elsewhere.
6610 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
6611 definition, and struct hashnode moved here. Remove the unused
6612 'predefined' field from struct definition. Replace the 'args'
6613 union with its sole member. All users updated (cpphash.c).
6614 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
6615 multiple include guard.
6617 * cpphash.c (hashf): Make static; use better algorithm; drop
6618 HASHSIZE parameter; return an unsigned int.
6619 (cpp_lookup): Drop HASH parameter. PFILE parameter is
6620 used. Calculate HASHSIZE modulus here.
6621 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
6623 (create_definition): Drop PREDEFINITION parameter.
6624 * cpplib.c (do_define): Don't calculate a hash value here.
6625 Don't pass (keyword == NULL) to create_definition.
6627 * scan.h: Prototype scan_decls here.
6628 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
6629 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
6630 callers of cpp_lookup and cpp_install updated.
6632 * cpphash.c (macarg): Hoist all the flag diddling out of the
6634 (macroexpand): ... and out of the loop that calls macarg.
6635 Skip over the initial paren before macro arguments with
6636 cpp_get_non_space_token; point may be some distance before
6637 that paren. Abort if it's not there.
6639 * cpplib.c (parse_clear_mark): Delete function.
6640 (parse_set_mark, parse_goto_mark): Make static.
6641 (ACTIVE_MARK_P): New macro.
6642 (skip_block_comment, skip_line_comment): Do not bump the line
6643 if ACTIVE_MARK_P is true.
6644 (cpp_pop_buffer): The buffer to be popped may not have an
6646 (cpp_get_token): When looking for the initial paren before
6647 macro arguments, only set a mark in a file buffer, Always
6648 return to that mark before proceeding to call macroexpand or
6649 return a NAME token.
6651 * cpplib.h: Remove prototypes of parse_set_mark,
6652 parse_clear_mark, parse_goto_mark.
6653 (struct cpp_options): Rename 'put_out_comments' to
6654 'discard_comments' and invert its sense.
6655 * cppinit.c, cpphash.c, cpplib.c: All users of
6656 put_out_comments changed to use discard_comments, with
6659 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
6661 * function.c (thread_prologue_and_epilogue_insns): Don't delete
6662 the edge from a block that both jumps and falls through to the
6665 2000-02-09 Scott Bambrough <scottb@netwinder.org>
6667 * config/arm/arm.md (movsi): In PIC mode, make sure that a
6668 constant source address is legitimate.
6670 2000-02-09 Philip Blundell <pb@futuretv.com>
6672 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
6675 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
6677 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
6679 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
6681 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
6682 ends with a newline and a NUL. Don't be so clever manipulating
6685 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
6687 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
6688 not to BIGGEST_ALIGNMENT.
6690 2000-02-08 Geoff Keating <geoffk@cygnus.com>
6692 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
6693 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
6694 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
6695 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
6696 * frame.c (execute_cfa_insn): Handle
6697 DW_CFA_GNU_negative_offset_extended.
6699 2000-02-08 Richard Henderson <rth@cygnus.com>
6701 * flow.c (tidy_fallthru_edges): Split out from ...
6702 (delete_unreachable_blocks): ... here.
6703 (find_basic_blocks): Use it.
6705 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6707 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
6709 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
6711 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
6712 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
6713 (fix-header.o): Don't depend on cpphash.h.
6715 * scan.c (hashstr): New function.
6716 * scan.h: Prototype it.
6717 * fix-header.c: Don't include cpphash.h. Use hashstr.
6718 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
6719 hashstr. Report hash table statistics. Add private
6720 definition of xrealloc.
6722 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6724 * i386.h (TARGET_SWITCHES): Fix typo in option name.
6726 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
6728 * function.c (thread_prologue_and_epilogue_insns): Don't replace
6729 jumps with returns unless they are jumps to the fallthru block.
6731 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
6733 * i386.md (addqi3_cc): Fix contraints.
6735 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
6737 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
6739 2000-02-07 Mark Mitchell <mark@codesourcery.com>
6741 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
6742 carriage return after a macro name.
6744 2000-02-07 Fred Fish <fnf@be.com>
6746 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
6747 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
6749 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
6751 * cppfiles.c (deps_output): Count spacers in deps_column.
6753 2000-02-07 Neil Booth <NeilB@earthling.net>
6755 * cppinit.c (initialize_dependency_output): If there is no
6756 suffix, don't try to look for known suffixes. Use strrchr.
6757 (cpp_start_read): Remove duplicate initialization.
6759 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
6761 * calls.c (compute_argument_block_size): New argument
6762 preferred_stack_boundary.
6763 (expand_call): update cfun->preferred_stack_boundary, update call of
6764 compute_argument_block_size
6765 (emit_library_call): Increate cfun->preferred_stack_boundary
6766 to PREFERRED_STACK_BOUNDARY
6767 (emit_library_call_value): Likewise.
6768 * explow.c (allocate_dynamic_stack_spave): Likewise.
6769 * function.c (prepare_function_start): Set
6770 cfun->preferred_stack_boundary
6771 * function.h (struct function): Add preferred_stack_boundary field.
6772 * integrate.c (expand_inline_function): Update
6773 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
6774 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
6775 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
6777 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
6779 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
6780 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
6781 cpp_pedwarn, cpp_pedwarn_with_line,
6782 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
6783 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
6784 v_cpp_error_with_line, v_cpp_warning_with_line,
6785 cpp_message_from_errno, cpp_perror_with_name): Delete.
6787 * cpperror.c (cpp_print_containing_files): Take starting
6789 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
6790 (v_cpp_message): Now called directly by all entry points.
6792 (cpp_pfatal_with_name, cpp_message): Delete.
6793 (cpp_notice_from_errno, cpp_ice): New functions.
6794 (cpp_notice): Is now for reporting error conditions, just
6795 without an associated file.
6796 (cpp_error, cpp_error_with_line): Don't do anything if
6797 opts->inhibit_errors is on.
6798 (cpp_pedwarn_with_file_and_line): Take column argument also.
6800 * cpplib.h: Update prototypes of exported functions.
6801 (struct cpp_options): Add inhibit_errors.
6803 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
6804 non-error messages. Include intl.h.
6806 * cppinit.c, cppmain.c: Likewise. Also, use
6807 cpp_notice_from_errno instead of cpp_perror_with_name or
6808 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
6810 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
6811 report internal errors.
6813 * cpplib.c (do_define): Switch bcopy to memcpy.
6814 Give cpp_pedwarn_with_file_and_line a dummy column argument.
6816 * cpplib.c (copy_rest_of_line): Revert previous change: don't
6817 bail out early if we hit a line comment.
6819 2000-02-06 Richard Henderson <rth@cygnus.com>
6821 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
6822 * basic-block.h: Declare them.
6823 * emit-rtl.h (active_insn_p): New.
6824 (next_active_insn, prev_active_insn): Use it.
6825 * rtl.h: Declare it.
6826 * function.c (emit_return_into_block): New.
6827 (thread_prologue_and_epilogue_insns): Insert return insns instead
6828 of epilogues when possible.
6829 * jump.c (jump_optimize_1): Remove code to insert a return insn
6830 on the fallthru to the exit block.
6832 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
6833 and for non-empty stack frames.
6834 * i386.md (return): Expand to return-pop as needed.
6836 2000-02-06 Richard Henderson <rth@cygnus.com>
6838 * simplify-rtx.c (simplify_relational_operation): Canonicalize
6839 constant to op1 for testing.
6841 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6843 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
6844 (fixuns_truncqfqi2): Use it.
6846 2000-02-06 Richard Henderson <rth@cygnus.com>
6848 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
6851 * i386.md (widening and peepholes): Mask the constant instead of
6854 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
6856 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
6857 input pointer before possibly branching off to the backslash
6859 * cpphash.c (macroexpand): Correctly delete \r escapes when
6860 stringifying parameters.
6861 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
6862 if we can; bail out early if we hit a line comment.
6863 (handle_directive): Treat '# 123' in an .S file just like
6864 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
6865 Return 1 for '# not_a_directive'.
6866 (get_directive_token): Pop macro buffers here, so that
6867 cpp_get_token can't sneakily move past a newline.
6869 (cpp_get_token): goto randomchar if handle_directive returns 0.
6871 * cppalloc.c: Update copyright.
6872 * cpplib.c: Merge all the static function prototypes into one
6874 * cpplib.h: Remove #if 0 block.
6876 * cpperror.c: Remove #ifdef EMACS block.
6877 * cppmain.c: Likewise.
6878 * cpphash.c: Remove #if 0 blocks.
6879 * cppinit.c: Remove #if 0 blocks, and the -lint option.
6880 * cpplib.c: Remove #if 0 blocks and code referencing
6881 pcp_inside_if or for_lint. Remove duplicate error message.
6882 Fix error messages for #else after #else or #elif. Reformat.
6883 Remove archaic TODO list.
6884 * cpplib.h: Remove pcp_inside_if and for_lint flags.
6886 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
6888 * i386/osf1elf.h: Add missing backslash to multiline string.
6890 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6892 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
6894 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6896 * Makefile.in (c-common.o): Depend on $(EXPR_H).
6898 * c-common.c: Include expr.h.
6900 * c-pragma.c (mark_align_stack): Add prototype.
6902 * caller-save.c (add_stored_regs): Likewise.
6904 * combine.c (record_promoted_value): Likewise.
6906 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
6909 * cppinit.c (new_pending_define): Likewise.
6911 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
6913 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
6914 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
6915 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
6916 class_scope_p): Likewise.
6918 * dwarf2out.h (dwarf2out_set_demangle_name_func,
6919 dwarf2out_add_library_unit_info): Likewise.
6921 * ggc.h (ggc_page_print_statistics): Likewise.
6923 * haifa-sched.c (propagate_deps): Likewise.
6925 * reg-stack.c (next_flags_user, record_label_references): Likewise.
6927 * rtl.h (set_stack_check_libfunc): Likewise.
6929 * toplev.h (set_fatal_function): Likewise.
6931 * toplev.c (set_fatal_function): Delete prototype.
6933 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
6935 2000-02-05 Geoff Keating <geoffk@cygnus.com>
6937 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
6938 (FUNC_END): Likewise.
6940 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6942 * caller-save.c: Include tm_p.h.
6944 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6946 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
6948 2000-02-04 Neil Booth <NeilB@earthling.net>
6950 * cccp.c (main): Check 'dir' for a NULL pointer before passing
6953 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
6955 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
6956 * genflags.c: Use the max_operand_1 logic from genemit.c to
6957 calculate how many arguments gen_insn prototypes have. Remove
6958 NO_MD_PROTOTYPES ifdefs from the generated file.
6959 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
6960 file. Cast gen_insn initializers to insn_gen_fn.
6961 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
6962 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
6964 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6966 * fixinc/Makefile.in (HDR): Add machname.h.
6969 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6971 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
6972 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
6973 (c4x_cpu_version): Ditto.
6974 * config/c4x/c4x-protos.h: ... here.
6976 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
6978 * dwarf2out.c (add_abstract_origin_attribute): Don't call
6979 gen_abstract_function on our context if we're a nested function.
6981 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6983 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
6984 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
6986 2000-02-04 Bruce Korb <bkorb@gnu.org>
6988 * fixinc/genfixes(machname.h):
6989 Move the functionality from gen-machine.h into this file.
6990 UNdef MN_NAME_PAT if there are no names to change.
6991 Also, be a little kinder when AutoGen is not present.
6993 * fixinc/Makefile.in(machname.h):
6994 Change the generation rule to use genfixes.
6996 * fixinc/fixfixes.c(machine_name):
6997 machine_name_fix's functionality now dependent upon whether
6998 MN_NAME_PAT is defined.
7000 * fixinc/fixtests.c(machine_name):
7003 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
7006 * fixinc/fixlib.h(mn_get_regexps):
7009 * fixinc/gen-machine.h: DELETED
7011 2000-02-04 Jan Hubicka <jh@suse.cz>
7012 Richard Henderson <rth@cygnus.com>
7014 * i386.c (SAVE_REGS_FIRST): Remove.
7015 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
7016 (ix86_compute_frame_size): Likewise.
7017 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
7018 (ix86_emit_restore_regs): Remove.
7019 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
7020 when a frame pointer is in use.
7021 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
7022 instead of pop to restore a register when profitable; emit leave
7024 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
7026 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
7027 * i386.md (prologue_allocate_stack): Remove.
7028 (epilogue_deallocate_stack): Remove.
7029 (pro_epilogue_adjust_stack): New.
7031 2000-02-04 Richard Henderson <rth@cygnus.com>
7033 * function.c (diddle_return_value): Rework to use a callback function.
7034 Use current_function_return_rtx if it's been set up.
7035 (do_clobber_return_reg, clobber_return_register): New.
7036 (do_use_return_reg, use_return_register): New.
7037 (expand_function_end): Use them.
7038 * stmt.c (expand_null_return): Likewise.
7039 * function.h: Declare them.
7040 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
7041 (mark_reg): Change arguments as appropriate for callback.
7042 * integrate.c (expand_inline_function): Revert 19 Jan change.
7044 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
7046 * tm.texi (Values in Registers): Fix typo: "fo" "for".
7047 (Misc): Say the scheduler, not the Haifa scheduler.
7049 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
7051 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
7052 when in_mem is set. Update all callers.
7054 2000-02-04 Richard Henderson <rth@cygnus.com>
7056 * i386/openbsd.h (INT_ASM_OP): Define.
7058 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
7060 * tm.texi: Fix various typos.
7062 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
7064 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
7065 (MD_STARTFILE_PREFIX_1): New macro.
7067 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
7069 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
7070 destination when needed.
7071 (strmovsi, strsetsi): New expander.
7072 (strmovsi_1, strsetsi_1): New pattern.
7073 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
7074 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
7075 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
7076 * invoke.texi (align-stringops, inline-all-stringops): Document.
7078 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
7080 * i386/netbsd.h (INT_ASM_OP): Define.
7082 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
7084 * cpplib.h (cpp_reader): Add new flag, no_directives.
7085 * cpphash.c (macarg): Set it.
7086 * cpplib.c (handle_directive): If no_directives is on and we
7087 find a directive, issue an error and discard the line.
7089 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
7091 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
7092 FP constants. Add ! TARGET_FPU check for FP constants.
7094 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
7096 * flow.c (find_basic_blocks): Don't kill label_value_list
7098 (cleanup_cfg): Kill it here.
7100 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7102 * expr.c (store_field): Ensure ALIGN is no stricter than the
7105 2000-02-02 Richard Henderson <rth@cygnus.com>
7107 * jump.c (delete_insn): Partially revert 19 Jan change;
7108 don't convert unused code labels to notes at -O0.
7110 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7112 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
7113 split_all_insns to recreate REG_LABEL notes for flow2 pass.
7115 2000-02-01 Richard Henderson <rth@cygnus.com>
7117 * i386.c (general_no_elim_operand): New.
7118 (nonmemory_no_elim_operand): New.
7119 (ix86_expand_move): Copy eliminable operands before a push.
7120 * i386-protos.h: Declare new functions.
7121 * i386.h (CAN_ELIMINATE): Simplify.
7122 (PREDICATE_CODES): Update.
7123 * i386.md (push insns): Don't allow eliminable register operands.
7125 2000-02-01 Richard Henderson <rth@cygnus.com>
7127 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
7128 replace BLKmode with DECL_RTL's mode.
7130 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
7132 * frame.c (find_fde): Convert for loop to do-while so compiler
7133 sees it's always executed at least once.
7134 * libgcc2.c (BBINBUFSIZE): Kill.
7135 (__bb_init_prg): Use fgets.
7136 (__bb_exit_trace_func): Don't paste strings.
7137 * unroll.c (unroll_loop): Initialize unroll_type, not
7138 unroll_number, and tweak logic to match.
7140 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
7142 (ix86_flags_dependant): Likewise. Disentangle control flow.
7143 (ix86_sched_reorder): Break guts out to
7144 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
7145 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
7148 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
7149 use string concatenation. Don't save and restore esi.
7151 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
7152 (machname.h): Remove script to separate file. Use two-step
7153 sequence so target is not created if script fails.
7154 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
7155 identifiers are defined.
7156 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
7157 an empty string, machine_name doesn't need to do anything at
7159 (is_cxx_header): Add more cases to regexp.
7160 * fixinc/fixlib.h: Update prototype.
7161 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
7163 * fixinc/fixincl.c: Define NO_BOGOSITY.
7165 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
7166 (hp_sysfile): Add missing comma.
7167 (math_exception): Put the wrapper ifdefs at the beginning and
7168 the end of the file.
7169 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
7171 2000-02-01 Richard Henderson <rth@cygnus.com>
7173 * sparc.c (fp_zero_operand): Turn into a normal predicate.
7174 Use CONST0_RTX. Update all callers.
7175 * sparc.h, sparc-protos.h: Update accordingly.
7176 * sparc.md (fp mov insns): Use fp_zero_operand directly
7179 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
7181 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
7184 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7186 * Makefile.in (specs.ready): New target.
7187 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
7189 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7191 * fixinc.irix: Use unique filenames for writing into /tmp,
7192 * fixinc.ptx: Likewise.
7193 * fixinc.sco: Likewise.
7194 * fixinc.svr4: Likewise.
7195 * fixinc.winnt: Likewise.
7197 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7199 * tsystem.h: New file.
7201 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
7202 s-crtS): Depend on tsystem.h.
7204 * crtstuff.c: Include tsystem.h.
7205 * frame.c: Likewise.
7206 * libgcc2.c: Likewise.
7208 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
7210 * builtins.c (expand_builtin_memset): Expand for variable sized
7213 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
7215 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
7218 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
7220 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
7222 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
7224 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
7226 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
7227 case 3->2 combining (combining with splitting) in which 2 is CC0
7228 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
7229 checked at the begining of the function with the aid of calling
7230 function 'can_combine_p'.
7232 2000-01-31 Dave Brolley <brolley@redhat.com>
7234 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
7236 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
7238 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
7241 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7243 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
7245 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
7248 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
7250 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
7251 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
7252 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
7253 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
7254 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
7255 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
7256 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
7257 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
7258 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
7259 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
7261 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
7262 Add %(cpp_cpu) to CPP_SPEC.
7264 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
7265 Add %(cc1_cpu) to CC1_SPEC.
7267 2000-01-28 Ulrich Drepper <drepper@redhat.com>
7269 * c-decl.c (c_decode_option): Accept optional numeric argument to
7270 -Wformat and set warn_format.
7271 * c-common.c: Don't emit warning about non-constant printf format
7272 string unless warn_format > 1.
7274 2000-01-30 Richard Henderson <rth@cygnus.com>
7276 * alpha.md (return_internal): Allow after reload only.
7278 2000-01-30 Richard Henderson <rth@cygnus.com>
7280 * i386.c (ix86_compute_frame_size): Omit padding1 if the
7281 local frame size is zero.
7283 2000-01-30 Richard Henderson <rth@cygnus.com>
7285 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
7286 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
7287 * alpha.md (return): Turn into an expander.
7288 (return_internal): Don't use $26.
7289 (epilogue): Emit the return insn.
7291 2000-01-30 Richard Henderson <rth@cygnus.com>
7293 * alpha.md (negtf2, abstf2): Fix word order thinko.
7295 (trunctfsf2): Avoid intermediate rounding errors.
7297 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
7299 * cppfiles.c (find_position): Drop 'colp' argument, return the
7301 (read_and_prescan): Adjust to match. Don't ever manipulate
7302 line or line_base except via find_position.
7304 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
7306 * c-parse.in: Apply Ulrich's changes from c-parse.y.
7307 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
7310 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
7312 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
7313 just print "<command line>". If 'filename' is null or an
7314 empty string, print "<stdin>" for the filename.
7315 * cpplib.c (do_define): Don't print the 'location of the
7316 previous definition' message if we're still parsing the
7318 (cpp_pedwarn_with_file_and_line): Always call
7319 cpp_file_line_for_message.
7321 2000-01-29 Mark Mitchell <mark@codesourcery.com>
7323 * flow.c (mark_regs_live_at_end): Fix typo.
7325 2000-01-28 Ulrich Drepper <drepper@redhat.com>
7327 * c-common.c: Adjust variable names, comments, help strings to c99.
7328 * c-lex.c: Likewise.
7329 * c-parse.y: Likewise.
7330 * c-tree.h: Likewise.
7332 * cpplib.h: Likewise.
7333 * c-decl.c: Likewise. Recognize options with names "*99" as well.
7334 * cppinit.c: Likewise.
7336 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7338 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
7339 * c4x.c: Define the optab rtx values.
7340 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
7341 (c4x_emit_libcall): Use new optab rtx values.
7342 (c4x_emit_libcall3): Likewise.
7343 (c4x_emit_libcall_mulhi): Likewise.
7344 * c4x-protos.h: Add prototypes for optab rtx values and change
7345 prototypes for above c4x_emit_libcall functions.
7347 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7349 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
7351 (c4x_function_prologue): Use regnames intead of float_reg_names when
7353 (c4x_function_epilogue): Likewise.
7354 (c4x_print_operand): Likewise.
7355 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
7356 * c4x.md (set_high): Disable for TARGET_TI.
7358 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7360 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
7361 of framepointer + constant to ADDR_REGS class.
7362 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
7363 * c4x.c (std_or_reg_operand): New function.
7364 * c4x-protos.h (std_or_reg_operand): Prototype it.
7366 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7368 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
7369 object names as libgcc2.c.
7370 * libgcc.S: Use newly defined names.
7372 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
7373 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
7375 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
7376 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
7377 (FLOW_LOOP_LAST_BLOCK): Likewise.
7379 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7381 * basic-block.h (struct loop): New fields 'first' and 'last'.
7382 * flow.c (flow_loops_find): Compute loop->first and loop->last.
7383 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
7384 and loop->last to check for NOTE_INSN_LOOP_END.
7386 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
7388 * predict.c (estimate_probability): Use the new FIRST and LAST fields
7389 of the loop descriptor rather than HEADER and LATCH. Also added
7390 missing break statements as well making some coding style modifications
7391 as suggested by Michael Hayes.
7393 2000-01-28 Richard Henderson <rth@cygnus.com>
7395 * flow.c (find_basic_blocks): Remove do_cleanup argument.
7396 Break out that code ...
7397 (cleanup_cfg): ... here.
7398 (commit_one_edge_insertion): Detect a return instruction being
7399 emitted to an edge. Emit a barrier following; clear fallthru.
7400 (commit_edge_insertions): Verify CFG consistency.
7401 * function.c (expand_function_start): Kill unused variable.
7402 (expand_function_end): Likewise.
7403 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
7404 to insert the epilogue.
7406 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
7407 (delete_null_pointer_checks): Likewise.
7408 * output.h: Likewise.
7409 * reg-stack.c (reg_to_stack): Likewise.
7410 * toplev.c (rest_of_compilation): Likewise. Run
7411 thread_prologue_and_epilogue_insns after rebuilding the CFG.
7413 2000-01-28 Richard Henderson <rth@cygnus.com>
7415 * Makefile.in (flow.o): Revert 24 Jan change.
7416 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
7417 FUNCTION_VALUE result to DECL_RESULT's mode.
7419 * haifa-sched.c (schedule_insns): Don't recompute reg info
7422 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
7424 * configure.in: Make --enable-cpplib the default.
7425 * configure: Regenerate.
7426 * gcc.dg/990119-1.c: No longer expected to fail.
7428 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
7430 * jump.c (jump_optimize_1): Delete an optimization that is also done
7431 by merge_blocks in flow.
7433 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7435 * diagnostic.c (build_message_string, output_printf,
7436 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
7437 (build_location_prefix): Fix non-literal format string.
7439 2000-01-27 Richard Henderson <rth@cygnus.com>
7441 * alpha.md (trunctfsf2): New.
7443 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
7445 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
7447 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
7449 * cppinit.c (cpp_handle_option): Recognize C++ comments under
7451 * cpplib.c (skip_block_comment, skip_line_comment): Split code
7453 (skip_comment) ... here. Permit C++ comments in system
7454 headers always. Warn about C++ comments in user code under
7455 -std=gnu89 -pedantic.
7456 (copy_comment): Use skip_comment.
7457 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
7459 (consider_directive_while_skipping, do_else, do_endif): Call
7460 validate_else unconditionally.
7461 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
7462 text after the conditional in a system header.
7463 * cpplib.h (struct cpp_buffer): Add flag
7464 warned_cplusplus_comments.
7466 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
7468 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
7469 Use unshare_all_rtl_1.
7470 (unshare_all_rtl_again): New function.
7471 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
7473 * function.c (purge_addressof_1): Use unshare_all_rtl_again
7474 rather than resetting the 'used' flags ourself.
7476 * toplev.c (rest_of_compilation): Add current_function_decl
7477 to the unshare_all_rtl call.
7478 * tree.h: Prototype unshare_all_rtl.
7479 * rtl.h: Prototype unshare_all_rtl_again here.
7481 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
7483 * genoutput.c (output_prologue): Include ggc.h in generated
7485 * Makefile.in (insn-output.o): Depends on ggc.h.
7487 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
7488 Hans-Peter Nilsson <hp@bitrange.com>
7490 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
7491 Remove redundant include of xm-ns32k.h.
7492 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
7493 Remove redundant include of xm-ns32k.h.
7494 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
7495 Remove redundant include of xm-ns32k.h.
7496 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
7498 * ns32k/ns32k.h: Update comment on multiply-add instructions.
7499 (TARGET_SWITCHES): Add documentation strings.
7500 (DWARF_FRAME_REGNUM): Override default definition.
7501 (REG_CLASS_CONTENTS): Add comments.
7502 (SUBSET_P): Format to reduce line length.
7503 (SMALL_REGISTER_CLASSES): Make a run time option.
7504 (GO_IF_NONINDEXED_ADDRESS): Reformat.
7505 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
7506 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
7507 (regclass_map): fix typo in comment.
7508 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
7509 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
7510 (trace, reg_or_mem_operand): Delete, unused function.
7511 (calc_address_cost): Small offsets are cheaper than large ones.
7512 (expand_block_move): Generate more efficient code when bytes is a
7513 known at compile time.
7514 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
7515 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
7516 instead of reg_or_mem_operand.
7518 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
7519 not general_operand. Similarly use "=rm" or stricter, not "=g".
7520 For input operands, use stricter constraints than "g" if not
7521 general_operand. Similarly use stricter predicate than
7522 "general_operand" when stricter constraints than "g" are present,
7523 except for matching constraints.
7524 (movstrsi): Use "memory_operand" for operands 0 and 1.
7525 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
7526 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
7527 not reg_or_mem_operand.
7528 (udivmoddisi4): Ditto.
7529 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
7530 Use nonimmediate_operand for operand 3, not register_operand.
7531 (udivmoddiqi4_internal): Use register_operand for operand 1, not
7534 2000-01-27 Fred Fish <fnf@be.com>
7536 * gthr-posix.h: Fix typo; compatibily -> compatibility.
7537 * gthr-single.h: Likewise.
7538 * gthr-solaris.h: Likewise.
7539 * gthr-vxworks.h: Likewise.
7540 * gthr-win32.h: Likewise.
7543 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
7545 * cppinit.c: Add " (cpplib)" to end of string printed by
7548 2000-01-27 Richard Henderson <rth@cygnus.com>
7550 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
7551 testing for a signed comparison.
7552 (alpha_emit_floatuns): New.
7553 * alpha-protos.h: Declare it.
7554 * alpha.md (floatunsdisf2, floatunsdidf2): New.
7555 (extendsfdf2): Tidy.
7557 2000-01-27 Jakub Jelinek <jakub@redhat.com>
7559 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
7560 no -g option specifying debugging format, default to -gstabs+.
7562 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
7564 * calls.c (special_function_p): New argument fork_or_exec.
7565 (expand_call): When profile_arc_flag is set and the function
7566 is in the fork_or_exec group, call __bb_fork_func first.
7567 * libgcc2.c, _bb module (__bb_fork_func): New function.
7568 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
7570 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
7571 * tree.h (special_function_p): Update prototype.
7573 2000-01-26 Richard Henderson <rth@cygnus.com>
7575 * alpha.c (alpha_split_tfmode_pair): New.
7576 * alpha-protos.h: Declare it.
7577 * alpha.md (abstf2, negtf2): New.
7578 (movtf insn): Add input G constraint.
7579 (movtf splitter): Use alpha_split_tfmode_pair.
7581 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7583 * i386/cygwin.h: PROTO -> PARAMS.
7585 2000-01-26 Jakub Jelinek <jakub@redhat.com>
7587 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
7588 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
7589 using _Qp_cmp/_Q_cmp and testing the return value.
7590 (print_operand): Call reverse_condition_maybe_unordered if
7591 we are handling CCFPmode or CCFPEmode.
7592 Handle ORDERED, UN* and LTGT comparisons.
7593 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
7594 if not TARGET_HARD_QUAD.
7595 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
7596 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
7597 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
7598 Adjust gen_b* calls so that they reflect return comparison of
7599 sparc_emit_float_lib_cmp.
7601 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7603 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
7604 incoming operands array is large enough for one more operand.
7605 (alpha_emit_xfloating_arith): Likewise.
7607 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
7609 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
7610 file with one line and no trailing newline.
7611 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
7612 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
7613 checking if the match is on the line.
7614 * fixinc/gnu-regex.c: Provide regerror not __regerror.
7616 2000-01-25 Richard Henderson <rth@cygnus.com>
7618 * sparc.c (output_cbranch): Fix accidental squashing of the
7619 fp branch pre-delay nop.
7621 2000-01-25 Richard Henderson <rth@cygnus.com>
7623 * tree.def (UNNE_EXPR): Remove.
7624 * c-typeck.c (build_binary_op): Don't handle it.
7625 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
7627 * rtl.def (UNNE): Remove.
7629 * jump.c (reverse_condition): Update accordingly.
7630 (swap_condition): Likewise.
7631 (comparison_dominates_p): Handle unordered comparisons.
7632 (reverse_condition_maybe_unordered): New.
7633 * rtl.h (reverse_condition_maybe_unordered): Declare.
7635 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
7636 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
7637 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
7638 * sparc.md (bltgt): New.
7640 2000-01-25 Nick Clifton <nickc@redhat.com>
7642 * emit-rtl.c (emit_insn): Only check machine class insns for
7643 improper emission of a RETURN.
7645 2000-01-25 Richard Henderson <rth@cygnus.com>
7647 * Makefile.in (flow.o): Depend on $(EXPR_H).
7648 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
7649 duplicate the structure of diddle_return_value for keeping regs live.
7651 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7653 * loop.c (current_loop_info): Delete.
7654 (consec_sets_invariant_p): Add loop argument, update callers.
7655 (get_condition_for_loop): Likewise.
7656 (count_nonfixed_reads, update_giv_derive): Likewise.
7657 (simplify_giv_expr, general_induction_var): Likewise.
7658 (consec_sets_giv, recombine_givs): Likewise.
7659 (move_movables): Delete loop_start and loop_end arguments,
7660 add loop argument, and update callers.
7661 (find_mem_givs, check_final_value): Likewise.
7662 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
7663 (loop_invariant_p): Rename from invariant_p, add loop argument, and
7665 (basic_induction_var): Add loop argument, delete loop_level argument,
7667 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
7668 add loop argument, and update callers.
7669 (find_splittable_regs, find_splittable_givs): Likewise.
7670 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
7671 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
7672 (biv_total_increment): Delete loop_start and loop_end arguments;
7674 (precondition_loop_p): Delete loop_start and loop_info arguments;
7676 * loop.h (get_condition_for_loop): Add loop argument.
7677 (biv_total_increment): Delete loop_start and loop_end arguments.
7678 (precondition_loop_p): Delete loop_start and loop_info arguments;
7680 (final_biv_value): Delete loop_start and loop_end arguments;
7682 (final_giv_value, back_branch_in_range_p): Likewise.
7684 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
7686 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
7688 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
7690 * Makefile.in (c-gperf.h) : Change the "See" pointer to
7691 point to the new "generated_files" doc.
7693 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
7695 * config/fp-bit.c (_unord_f2): Fix typo.
7697 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
7699 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
7700 c-typeck.c, objc/objc-act.c: Remove all references to obstack
7701 functions obsoleted by GC, such as push_obstacks_nochange,
7702 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
7703 and code which existed only to decide whether or not to call
7704 them. Remove now-unused NESTED argument from start_function;
7705 all callers changed. Do not change behavior based on ggc_p.
7706 The use of the ixp_obstack in c-iterate.c and the util_obstack
7707 in objc/objc-act.c remain; these are not obsoleted by garbage
7709 * c-tree.h: Update prototype for start_function.
7711 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
7713 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
7715 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
7718 2000-01-25 Richard Henderson <rth@cygnus.com>
7720 * sparc-protos.h (select_cc_mode): Declare.
7721 * sparc.c (select_cc_mode): New. Handle unordered compares.
7722 (output_cbranch): Always reverse via code change. Handle
7723 unordered compares. Factor tests and string updates.
7724 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
7725 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
7726 * sparc.md (bunordered, bordered): New.
7727 (bungt, bunlt, buneq, bunge, bunle): New.
7729 2000-01-25 Richard Henderson <rth@cygnus.com>
7731 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
7732 * ggc-common.c (ggc_add_rtx_varray_root): New.
7733 (ggc_mark_rtx_varray): New.
7734 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
7735 functions down below ggc_mark_foo.
7736 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
7738 2000-01-25 Richard Henderson <rth@cygnus.com>
7740 * alpha.c (secondary_reload_class): Don't allocate a secondary
7741 for integral mode memories into FLOAT_REGS. Rearrange the more
7742 complicated memory expression inward.
7744 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
7746 * inclhack.def: Fixes to play nicer with FreeBSD, and
7747 corrections to comments.
7748 (cxx_unready): Add select expression.
7749 (irix_sockaddr): Add bypass expression.
7750 (machine_ansi_h_va_list): New fix.
7751 (stdio_va_list): No need to edit _BSD_VA_LIST_.
7752 Split out addition of "#include <stdarg.h>" to...
7753 (stdio_stdarg_h): ... here.
7754 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
7755 to stdlib.h also. Do not munge _BSD_SIZE_T_.
7756 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
7758 (ultrix_ifdef): Tighten up select expression.
7760 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
7761 re_ct and max_mach to avoid use of shell. Make printed names
7762 match names in inclhack.def. Use static copyright date.
7763 Don't count c_test and test expressions as requiring regex_t
7764 slots. Add some commentary.
7765 * inclhack.tpl: Do not include the 'This script contains N
7766 fixup scripts' line if PROGRAM is defined. Use static
7769 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
7771 * dwarf2out.c: include "varray.h", not dyn-string.h.
7772 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
7773 (addr_const_to_string, addr_to_string): Lose.
7774 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
7775 (struct dw_val_struct): val_addr is now an rtx.
7776 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
7777 (used_rtx_varray): New varray.
7778 (dwarf2out_init): Initialize it.
7780 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
7782 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
7783 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
7784 * Makefile.in (dwarf2out.o): Update dependencies.
7786 2000-01-24 Richard Henderson <rth@cygnus.com>
7788 * i386.c (i386_dwarf_output_addr_const): New.
7789 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
7791 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
7793 * dwarfout.c (output_mem_loc_descriptor): Likewise.
7794 * i386.c (i386_simplify_dwarf_addr): New.
7795 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
7797 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
7799 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
7800 TYPE_STUB_DECL is NULL.
7802 2000-01-24 Richard Henderson <rth@cygnus.com>
7804 * builtins.c (expand_tree_builtin): Move ...
7805 * c-common.c (expand_tree_builtin): ... here.
7807 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7809 * loop.h (LOOP_INFO): New accessor macro.
7810 * basic-block.h (struct loop): Rename field `info' to `aux'.
7811 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
7812 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
7813 * unroll.c (loop_iterations, unroll_loop): Likewise.
7815 2000-01-24 Christopher Faylor <cgf@cygnus.com>
7817 * config/i386/t-cygwin: Accomodate new winsup directory layout
7818 when searching for include files.
7820 2000-01-24 Richard Henderson <rth@cygnus.com>
7822 * rtl.def: Add unordered fp comparisions.
7823 * tree.def: Likewise.
7824 * tree.h: Add ISO C 9x unordered fp comparision builtins.
7826 * builtins.c (expand_tree_builtin): New function.
7827 * c-typeck.c (build_function_call): Use it.
7828 (build_binary_op): Support unordered compares.
7829 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
7831 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
7832 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
7833 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
7834 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
7835 * jump.c (reverse_condition): Don't abort for UNLE etc, but
7837 (swap_condition): Handle unordered compares.
7838 (thread_jumps): Check can_reverse before reversing.
7839 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
7842 * optabs.c (can_compare_p): New argument CODE. Verify branch or
7843 setcc is present before acking for cmp_optab. Update all callers.
7844 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
7845 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
7846 * expr.c (expand_expr): Likewise. Support unordered compares.
7847 (do_jump, do_store_flag): Likewise.
7848 * expr.h (enum libfunc_index): Add unordered compares.
7850 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
7851 (DPBIT_FUNCS): Add _unord_df.
7852 * config/fp-bit.c (_unord_f2): New.
7853 * fp-test.c (main): Try unordered compare builtins.
7855 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
7856 * alpha.c (alpha_comparison_operator): Check mode properly.
7857 (alpha_swapped_comparison_operator): Likewise.
7858 (signed_comparison_operator): Likewise.
7859 (alpha_fp_comparison_operator): New.
7860 (alpha_emit_conditional_branch): Handle unordered compares.
7861 * alpha.h (PREDICATE_CODES): Update.
7862 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
7863 (bunordered, bordered): New.
7865 2000-01-24 Richard Henderson <rth@cygnus.com>
7867 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
7868 * alpha.md (movtf): New expander, insn, and splitter.
7870 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
7872 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
7875 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
7877 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
7878 (FIXED_REGISTERS, CALL_USED_REGISTERS,
7879 REG_ALLOC_ORDER): Add frame pointer
7880 (FRAME_POINTER_REGNUM): Set to 20
7881 (HARD_FRAME_POINTER_REGNUM): New macro.
7882 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
7883 to HARD_FRAME_POINTER.
7884 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
7885 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
7886 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
7887 (HI_REGISTER_NAMES): Add "frame".
7888 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
7889 (debug_reg): Handle FRAME_POINTER_REGNUM.
7890 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
7891 GENERAL_REGS and INDEX_REGS.
7892 * i386.c (SAVED_REGS_FIRST): new macro.
7893 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
7894 (ix86_decompose_address, memory_address_length): Likewise.
7895 (regclass_map): Add frame pointer.
7896 (call_insn_operand): Handle frame_pointer_rtx.
7897 (reg_no_sp_operand): Likewise.
7898 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
7899 (print_operand, legitimize_pic_address): Fix formating.
7900 (ix86_compute_frame_size): Make static, update prototype, new
7901 parameters padding1, padding2, use ix86_nsaved_regs, use
7902 stack_alignment_needed.
7903 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
7904 to HARD_FRAME_POINTER_REGNUM conversions.
7905 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
7906 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
7907 (print_reg): Abort on FRAME_POINTER_REGNUM
7909 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
7911 * i386.h (PREDICATE_CODES): Add aligned_operand.
7912 * i386.c (aligned_operand): New function.
7913 (ix86_aligned_p): Kill.
7914 * i386.md (movhi_1): Emit mov for aligned operands.
7915 (promoting peep2s): Use aligned_operand.
7917 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
7919 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
7920 expression to allow underscores in macro names.
7921 (fix_char_macro_defines): Increment scanning pointer.
7923 2000-01-23 Richard Henderson <rth@cygnus.com>
7925 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
7926 * alpha/osf5.h: New file.
7927 * configure.in (alpha-*-osf5): Add it to tm_file.
7929 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
7931 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
7932 (alpha_emit_xfloating_cvt, function_arg): Declare.
7933 * alpha.c (alpha_emit_conditional_branch): Call
7934 alpha_emit_xfloating_compare for TFmode compares.
7935 (alpha_lookup_xfloating_lib_func): New.
7936 (alpha_compute_xfloating_mode_arg): New.
7937 (alpha_emit_xfloating_libcall): New.
7938 (alpha_emit_xfloating_arith): New.
7939 (alpha_emit_xfloating_compare): New.
7940 (alpha_emit_xfloating_cvt): New.
7941 (print_operand): Add default abort case.
7942 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
7943 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
7944 (BIGGEST_ALIGNMENT): Increase to 128 bits.
7945 (RETURN_IN_MEMORY): True for TF/TCmode.
7946 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
7947 (FUNCTION_ARG): Move to function_arg.
7948 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
7949 (ASM_OUTPUT_LONG_DOUBLE): New.
7950 (ASM_OUTPUT_DOUBLE): Always output bits.
7951 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
7952 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
7953 (extenddftf2, trunctfdf2): New.
7955 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7957 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
7958 * config/sparc/sol2.h: ... here.
7960 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7962 * basic-block.h (struct loops): New field `levels'.
7963 * flow.c (flow_loops_level_compute): Traverse all outer loops.
7964 (flow_loop_level_compute): Initialise level to 1.
7965 (flow_loops_find): Set loops->levels.
7966 (flow_loops_dump): Print loops->levels.
7968 2000-01-23 Richard Henderson <rth@cygnus.com>
7970 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
7971 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
7973 2000-01-23 Richard Henderson <rth@cygnus.com>
7975 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
7976 * i386.h (DBX_REGISTER_NUMBER): Use them.
7977 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
7978 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
7979 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
7980 * i386/sequent.h: Kill incorrect comment.
7982 2000-01-23 Mark Mitchell <mark@codesourcery.com>
7984 * ggc-page.c (struct page_entry): Make `context_depth' an
7986 (struct globals): Likewise.
7988 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
7990 * loop.c (check_dbra_loop): When checking a loop for
7991 reversability, check the source of any stores to ensure
7992 they don't depend on an initial value.
7994 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7996 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
7998 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
8000 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
8001 'pz_scan' into scope of entire function. Only affects
8002 compiles with -DDEBUG.
8004 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
8006 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
8007 section naming to that prior to 2000-01-07 patch.
8008 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
8009 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
8010 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
8011 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
8012 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
8014 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
8016 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
8019 2000-01-21 Jim Wilson <wilson@cygnus.com>
8021 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
8022 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
8024 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
8026 * cpphash.c (change_newlines): Delete function.
8027 (struct argdata): Delete 'newlines' and 'use_count' fields.
8028 (macroexpand): Remove code referencing those fields.
8030 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8032 * loop.c (loops_info): New variable.
8033 (loop_optimize): Allocate loops->array and free it on exit.
8034 Allocate memory for loops_info and assign to each loop,
8036 (find_and_verify_loops): Do not allocate loops->array.
8038 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
8040 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
8042 2000-01-21 Jakub Jelinek <jakub@redhat.com>
8044 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
8045 pseudos if expanded after first flow.
8046 (movdi_pic_label_ref): Likewise.
8048 2000-01-20 Richard Henderson <rth@cygnus.com>
8050 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
8052 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
8054 * Makefile.in (fixinc.sh): Depend on specs.
8055 * fixinc/Makefile.in: Add rule to create machname.h.
8056 (fixlib.o): Depend on machname.h.
8057 * fixinc/fixtests.c (machine_name): New test.
8058 * fixinc/fixfixes.c (machine_name): New fix.
8059 * fixinc/fixlib.c (mn_get_regexps): New helper function for
8060 the machine_name test and fix.
8061 * fixinc/fixlib.h: Prototype it.
8062 * fixinc/inclhack.def (machine_name): Use the C test and fix.
8063 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
8065 * gcc.c (do_spec_1) [case P]: Take care not to create
8066 identifiers with three leading or trailing underscores.
8068 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
8069 (fixincl): Don't specify libraries twice on link line.
8070 (gnu-regex.o): Remove special rule.
8071 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
8072 defined by config.h. Do not define _REGEX_RE_COMP.
8073 (regcomp): Allocate and initialize a fastmap.
8074 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
8076 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
8078 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
8080 2000-01-19 Richard Henderson <rth@cygnus.com>
8082 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
8083 arguments with BB. Update all callers. Tidy line wrapping.
8085 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
8087 * emit-rtl.c (try_split): Return last_insn if we split the
8090 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
8092 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
8093 (ix86_initial_elimination_offset): Declare.
8094 * i386.c (ix86_nsaved_regs): Break out from ...
8095 (ix86_can_use_return_insn_p): ... here.
8096 (ix86_emit_save_regs): Break out from ...
8097 (ix86_expand_prologue): ... here.
8098 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
8100 (ix86_expand_epilogue): ... here.
8101 (ix86_compute_frame_size): Make static, add prototype.
8102 (ix86_initial_elimination_offset): Break out from ...
8103 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
8105 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8107 * recog.h (OUT_FCN): Delete.
8109 * vax.md: Call `get_insn_template' instead of OUT_FCN.
8111 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8113 * cppalloc.c: PROTO -> PARAMS.
8114 * cpperror.c: Likewise.
8115 * cppfiles.c: Likewise.
8116 * cpplib.c: Likewise.
8117 * cpplib.h: Likewise.
8119 * config/arm/arm-protos.h: PROTO -> PARAMS.
8120 * config/arm/arm.c: Likewise.
8121 * config/c4x/c4x.c: Likewise.
8122 * config/fr30/fr30-protos.h: Likewise.
8123 * config/nextstep.c: Likewise.
8124 * config/pa/pa.c: Likewise.
8125 * config/pj/pj.c: Likewise.
8126 * config/rs6000/rs6000.c: Likewise.
8127 * config/v850/v850-protos.h: Likewise.
8128 * config/v850/v850.c: Likewise.
8130 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8132 * i370-protos.h: New file.
8134 * i370.c: Include tm_p.h. Fix compile time warnings.
8136 * i370.h: Move prototypes to i370-protos.h. Fix compile time
8139 * i370.md: Likewise.
8141 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8143 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
8144 (target_isinf, target_isnan, eisnan): Mark parameter with
8146 (eiisinf): Wrap in INFINITY.
8147 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
8148 (ibmtoe): Remove unused variable `rndsav'.
8150 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8152 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
8153 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
8155 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
8157 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
8158 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
8159 (fix_char_macro_defines, fix_char_macro_uses): New functions.
8161 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
8162 Recognize Emacs mode markers also.
8163 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
8164 C++ comments in C++ headers. Call is_cxx_header only if
8167 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
8169 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
8170 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
8171 ... these, which use the new C fixes.
8172 (math_exception): Escape literal '+' in bypass expression.
8174 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
8177 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8179 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
8182 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8184 * loop.c (loop_optimize): Allocate loop_info structure for each loop
8185 prior to calling scan_loop.
8187 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8189 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
8190 (split_branches, calc_live_regs): Likewise.
8192 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8194 * sh.md (fpu_single, fp_mode): New attributes.
8196 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8198 * loop.c (current_loop_info): Renamed from loop_info_data
8199 and changed to a pointer.
8200 (loop_optimize): Allocate loop_info structure for each loop
8201 and initialise to zero.
8202 (scan_loop): Set current_loop_info.
8204 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
8207 2000-01-19 Richard Henderson <rth@cygnus.com>
8209 * stupid.c: Die die die.
8210 * Makefile.in (OBJS): Remove stupid.o.
8211 (stupid.o): Likewise.
8213 * except.c (emit_eh_context): Don't emit USEs for stupid.
8214 * explow.c (probe_stack_range): Likewise.
8215 * flags.h (obey_regdecls): Remove.
8216 * flow.c (find_basic_blocks): Don't run try_merge_blocks
8217 when not optimizing.
8218 (life_analysis): Limit data collection when not optimizing.
8219 (mark_regs_live_at_end): Always mark the return value registers.
8220 (mark_used_regs): Remove dummy RETURN case.
8221 (print_rtl_with_bb): Don't consult obey_regdecls.
8222 * function.c (use_variable, use_variable_after): Remove.
8223 (assign_parms): Consult optimize not obey_regdecls.
8224 (expand_function_start): Don't emit USEs for stupid.
8225 (expand_function_end): Likewise.
8226 * global.c (build_insn_chain): Export.
8227 * integrate.c (expand_inline_function): Kill return-value USE
8229 * jump.c (jump_optimize_1): Do simple jump optimizations and
8230 dead code elimination.
8231 (calculate_can_reach_end): Remove check_deleted argument.
8232 (delete_insn): Patch out insns even when not optimizing.
8233 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
8234 * rtl.h (use_variable, use_variable_after): Remove declarations.
8235 (build_insn_chain): Declare.
8236 * stmt.c (expand_value_return): Don't emit USEs for stupid.
8237 (expand_end_bindings): Likewise.
8238 (expand_decl): Likewise. Consult optimize not obey_regdecls.
8239 * toplev.c (obey_regdecls): Remove.
8240 (rest_of_compilation): Don't set it. Kill stupid in favour of
8241 flow1, local-alloc, and reload.
8242 (main): Don't set obey_regdecls.
8244 * config/nextstep.c (handle_pragma): Likewise.
8246 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
8248 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
8250 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8252 * alpha-protos.h: PROTO -> PARAMS.
8253 * alpha.c: Likewise.
8255 * h8300.c: Likewise.
8256 * i386-protos.h: Likewise.
8258 * m32r-protos.h: Likewise.
8261 * mips.md: Likewise.
8262 * gmon-sol2.c: Likewise.
8263 * sparc.c: Likewise.
8265 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8267 * ns32k-protos.h: New file.
8269 * ns32k.c: Fix compile time warnings.
8271 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
8274 * ns32k.md: Likewise.
8276 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8278 * vax-protos.h: New file.
8280 * vax.c: Fix compile time warnings.
8282 * vax.h: Move prototypes to vax-protos.h. Fix compile time
8287 * vaxv.md: Likewise.
8289 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8291 * romp-protos.h: New file.
8293 * romp.c: Fix compile time warnings.
8295 * romp.h: Move prototypes to romp-protos.h. Fix compile time
8298 * romp.md: Likewise.
8300 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8302 * we32k-protos.h: New file.
8304 * we32k.c: Fix compile time warnings.
8306 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
8309 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8311 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
8313 * except.c (eh_regs): Likewise.
8315 * final.c (output_operand): Likewise.
8317 * fold-const.c (target_isinf, target_isnan): Likewise.
8319 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
8321 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
8322 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
8324 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
8326 (clrstrsi): Rewrite.
8327 (strsethi, strsetqi): New expanders.
8328 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
8329 (cmpstrsi): Emit compare insn before cmpstrsi_1
8330 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
8331 (strlensi_1): Likewise.
8332 (cmpstrsi_1): Likewise; do not output compare.
8333 (strlen expander): Do not unroll when optimizing for size.
8334 (*subsi3_carry): Rename to subsi3_carry
8335 (addqi3_cc): New pattern.
8336 * i386.h (processor_costs): Add move_ratio field.
8337 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
8338 * i386.c (*_cost): Set move_ratio.
8339 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
8340 (x86_expand_strlensi_1): Rewrite the main loop.
8342 2000-01-17 Richard Henderson <rth@cygnus.com>
8344 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
8345 * cse.c (find_comparison_args, fold_rtx): Likewise.
8346 * integrate.c (subst_constants): Likewise.
8347 * loop.c (get_condition): Likewise.
8349 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
8351 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
8353 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8355 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
8356 (RESTORE_WARN_FLAGS): Unpack it.
8357 Change semantic type of extension to ttype.
8358 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
8359 * c-parse.y, c-parse.c, objc/objc-parse.y,
8360 objc/objc-parse.c: Regenerate.
8362 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
8364 * fixinc/fixlib.c: Add copyright notice.
8365 (compile_re): New function.
8366 * fixinc/fixlib.h: Prototype compile_re.
8368 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
8369 Use compile_re to compile regular expressions.
8371 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
8372 where the pattern matched.
8374 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
8376 (ultrix_ansi_compat): Likewise.
8377 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
8379 (interactv_add2, interactv_add3): Delete.
8380 (x11_sprintf): Don't use filename glob.
8381 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
8384 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8386 * print-rtl.c: PROTO -> PARAMS.
8388 * reg-stack.c: Likewise.
8389 * resource.c: Likewise.
8390 * sdbout.h: Likewise.
8391 * simplify-rtx.c: Likewise.
8392 * stor-layout.c: Likewise.
8393 * stupid.c: Likewise.
8394 * xcoffout.c: Likewise.
8395 * xcoffout.h: Likewise.
8397 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8399 * toplev.c: PROTO -> PARAMS.
8400 * toplev.h: Likewise.
8403 * unroll.c: Likewise.
8404 * varasm.c: Likewise.
8405 * varray.c: Likewise.
8406 * varray.h: Likewise.
8408 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8410 * reload.c: PROTO -> PARAMS.
8411 * reload.h: Likewise.
8412 * reload1.c: Likewise.
8413 * reorg.c: Likewise.
8414 * resource.h: Likewise.
8417 * rtlanal.c: Likewise.
8418 * sbitmap.h: Likewise.
8419 * sdbout.c: Likewise.
8420 * stack.h: Likewise.
8422 * system.h: Likewise.
8424 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8426 * machmode.h: PROTO -> PARAMS.
8427 * mbchar.h: Likewise.
8428 * mips-tdump.c: Likewise.
8429 * mips-tfile.c: Likewise.
8430 * optabs.c: Likewise.
8431 * output.h: Likewise.
8432 * prefix.c: Likewise.
8433 * profile.c: Likewise.
8434 * protoize.c: Likewise.
8436 * recog.c: Likewise.
8437 * recog.h: Likewise.
8438 * regclass.c: Likewise.
8439 * regmove.c: Likewise.
8442 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8444 * ggc-common.c: PROTO -> PARAMS.
8445 * ggc-page.c: Likewise.
8446 * ggc-simple.c: Likewise.
8448 * global.c: Likewise.
8449 * graph.c: Likewise.
8450 * gthr-win32.h: Likewise.
8451 * haifa-sched.c: Likewise.
8452 * halfpic.h: Likewise.
8453 * integrate.c: Likewise.
8454 * integrate.h: Likewise.
8457 * local-alloc.c: Likewise.
8461 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8463 * genattr.c: PROTO -> PARAMS.
8464 * genattrtab.c: Likewise.
8465 * gencheck.c: Likewise.
8466 * gencodes.c: Likewise.
8467 * genconfig.c: Likewise.
8468 * genemit.c: Likewise.
8469 * genextract.c: Likewise.
8470 * genflags.c: Likewise.
8471 * gengenrtl.c: Likewise.
8472 * genopinit.c: Likewise.
8473 * genoutput.c: Likewise.
8474 * genpeep.c: Likewise.
8475 * genrecog.c: Likewise.
8477 2000-01-16 Mark Mitchell <mark@codesourcery.com>
8479 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
8481 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8483 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
8484 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
8485 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
8486 * configure, config.in: Rebuilt.
8488 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
8490 * config/i386/i386.md: Add peephole to merge successive stack
8493 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
8495 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
8496 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
8497 when walking backwards to find all the parameter loads when
8498 the basic block ends in a call.
8500 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8502 * loop.c (this_loop_info): Delete.
8503 (uid_loop): Add in place of uid_loop_num. All uses updated.
8504 (loop_number_exit_count): Delete and replace with entry in loop
8505 structure. All uses updated.
8506 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
8507 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
8508 (loop_outer_loop): Likewise.
8509 (loop_invalid, loop_number_exit_labels): Likewise.
8510 (loop_used_count_register): Delete and replace with entry in
8511 loop_info structure.
8512 (find_and_verify_loops): Add loops argument.
8513 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
8514 loop_end, etc. arguments with loop structure pointer. All callers
8516 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
8517 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
8518 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
8519 (insert_bct): Likewise.
8520 (basic_induction_var): New argument level.
8521 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
8522 vtop, and cont. Add used_count_register.
8523 (uid_loop): Delete declaration.
8524 (loop_number_exit_count): Likewise.
8525 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
8526 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
8527 (loop_outer_loop, loop_used_count_register): Likewise.
8528 (loop_invalid, loop_number_exit_labels): Likewise.
8529 (unroll_loop): Replace loop_start and loop_end arguments
8530 with loop structure pointer.
8531 (loop_precondition_p, loop_iterations): Likewise.
8532 Include basic-block.h.
8533 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
8534 with loop structure pointer.
8535 (loop_precondition_p, loop_iterations): Likewise.
8536 * basic-block.h (struct loop): New entries vtop, cont,
8537 cont_dominator, start, end, top, scan_start, exit_labels,
8539 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
8541 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8543 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
8545 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
8547 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
8549 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8551 * pdp11-protos.h: New file.
8553 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
8556 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
8559 * pdp11.md: Likewise.
8563 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8565 * mn10300-protos.h: New file.
8567 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
8570 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
8573 * mn10300.md: Likewise.
8575 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8577 * mn10200-protos.h: New file.
8579 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
8582 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
8585 * mn10200.md: Likewise.
8587 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8589 * h8300-protos.h: New file.
8591 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
8594 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
8597 * h8300.md: Likewise.
8599 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8601 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
8602 (asm_emit_uninitialised): Likewise.
8604 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
8606 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
8607 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
8609 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
8611 * config/mips/mips.c (override_options): Don't turn on extra
8612 alignment for mips16.
8614 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
8616 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
8617 eabi, and make sure queued POSTINCREMENT rtl is emitted at
8620 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
8622 * builtins.c (PAD_VARARGS_DOWN): Define.
8623 (std_expand_builtin_va_arg): Use the above macro.
8624 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
8625 * tm.texi (Register Arguments): Document the above macro.
8627 2000-01-14 Nick Clifton <nickc@cygnus.com>
8629 * emit-rtl.c (emit_insn): If checking is enabled, make sure
8630 that this function has not been used to emit a jump
8633 * jump.c (return_jump_1): Cope with being passed a null rtx.
8635 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8637 * eh-common.h: PROTO -> PARAMS.
8638 * emit-rtl.c: Likewise.
8639 * errors.c: Likewise.
8640 * errors.h: Likewise.
8641 * except.c: Likewise.
8642 * except.h: Likewise.
8643 * explow.c: Likewise.
8644 * expmed.c: Likewise.
8647 * final.c: Likewise.
8648 * fix-header.c: Likewise.
8650 * fold-const.c: Likewise.
8651 * function.c: Likewise.
8652 * function.h: Likewise.
8654 * gcov-io.h: Likewise.
8658 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8660 * sh-protos.h: New file.
8662 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
8663 Add static prototypes. Fix compile time warnings.
8665 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
8669 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8671 * arc-protos.h: New file.
8673 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
8676 * arc.h: Move prototypes to arc-protos.h. Fix compile time
8681 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8683 * dsp16xx-protos.h: New file.
8685 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
8688 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
8691 * dsp16xx.md: Likewise.
8693 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8695 * convex-protos.h: New file.
8697 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
8700 * convex.h: Move prototypes to convex-protos.h. Fix compile time
8703 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8705 * elxsi-protos.h: New file.
8707 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
8710 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
8713 * elxsi.md: Likewise.
8715 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
8717 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
8718 case for moving from HI/LO/HI_LO_REG. This makes the behavior
8719 match the comment for MIPS16.
8721 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
8723 * flow.c (split_edge): Do not call set_block_for_insn if we
8724 do not have a basic_block_for_insn structure.
8726 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
8727 and destination functions are 32bit aligned within the trampoline.
8728 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
8729 (TRAMPOLINE_ALIGNMENT): Define.
8731 * cse.c (cse_insn): When changing (set (pc) (reg)) to
8732 (set (pc) (label_ref)), verify the change creates a valid insn.
8734 * fr30.c (call_operand): Tighten and rework to match rules for
8735 call RTL expressions.
8736 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
8737 * fr30.md (call patterns): Improve constraints.
8739 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
8741 * fr30.c (fr30_expand_epilogue): Revert last change.
8742 Use emit_jump_insn for the return insn.
8744 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
8745 Stan Cox <scox@cygnus.com>
8747 * predict.c: New file. Preliminary infrastructure work for static
8748 branch prediction and basic block reordering.
8749 * basic-block.h: Add prototype for estimate_probability.
8750 * Makefile.in: Add rules for predict.o.
8752 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
8754 * fixincludes (va_list): Use __not_va_list__ for the dummy.
8755 * fixinc/*: Likewise.
8757 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8759 * cccp.c: PROTO -> PARAMS.
8761 * collect2.c: Likewise.
8762 * combine.c: Likewise.
8763 * convert.h: Likewise.
8765 * dbxout.c: Likewise.
8766 * dbxout.h: Likewise.
8767 * diagnostic.c: Likewise.
8768 * doprint.c: Likewise.
8769 * dwarf2out.c: Likewise.
8770 * dwarf2out.h: Likewise.
8771 * dwarfout.c: Likewise.
8772 * dwarfout.h: Likewise.
8773 * dyn-string.h: Likewise.
8775 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8777 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
8778 macro conditionals guarding use.
8780 * dwarf2out.c: Include "tm_p.h".
8782 * function.c (locate_and_pad_parm): Mark parameter with
8784 (expand_function_end): Likewise for variable `context'.
8786 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
8788 2000-01-13 Nick Clifton <nickc@cygnus.com>
8790 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
8791 register to prevent compile time warnings.
8793 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
8795 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
8796 to avoid -Wtraditional warning.
8798 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8800 * 1750a-protos.h: New file.
8802 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
8805 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
8808 * 1750a.md: Likewise.
8810 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8812 * a29k-protos.h: New file.
8814 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
8817 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
8820 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8822 * clipper-protos.h: New file.
8824 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
8827 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
8830 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8832 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
8834 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
8836 * configure.in (--enable-new-gxx-abi): New option.
8837 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
8838 * Makefile.in (GXX_ABI_FLAG): New variable.
8839 * configure: Regenerate.
8841 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8843 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
8844 * tm.texi (FORCE_STRUCT_BLK): Document.
8845 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
8847 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
8849 * config/ns32k/ns32k.md: Revert Jan 9 change.
8851 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
8852 to a mode-test, if the predicate is address_operand.
8854 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
8856 * combine.c (if_then_else_cond): Be careful about what kinds
8857 of RTL expressions are passed to operand_subword.
8859 * flow.c (split_edge): If we have to insert a new jump, make
8860 sure to associate it with a basic block.
8862 * flow.c (commit_one_edge_insertion): A block with one successor
8863 can end in a JUMP_INSN that is not a simplejump.
8865 2000-01-12 Robert Lipe <robertl@sco.com>
8867 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
8868 (BUILD_VA_LIST_TYPE): Define.
8869 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
8872 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
8874 * cccp.c (do_pragma): Add cast to (char *).
8876 2000-01-12 Richard Henderson <rth@cygnus.com>
8877 Fred Fish <fnf@be.com>
8878 Jason Merrill <jason@cygnus.com>
8880 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
8881 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
8882 * i386/beos-elf.h, i386/beos-pe.h: New files.
8884 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
8885 * cross-make (SYSTEM_HEADER_DIR): Define using
8886 CROSS_SYSTEM_HEADER_DIR.
8888 * gcc.c (LIBRARY_PATH_ENV): Provide default.
8889 (process_command): Use it.
8890 (main): Likewise. Kill trailing = from env vars.
8891 (build_search_list): Put it back.
8892 * collect2.c (main): Use LIBRARY_PATH_ENV.
8894 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
8895 * toplev.c: Use NEED_DECLARATION_ENVIRON.
8897 * tm.texi (Frame Layout): Document SMALL_STACK.
8898 * c-common.c (c_common_nodes_and_builtins): Check it.
8900 * system.h: Undef alloca after including glibc's <stdlib.h>,
8901 if USE_C_ALLOCA is defined.
8903 * gcc.c (set_input): New fn.
8904 (main): After all input files are compiled, reset the input file
8907 * aclocal.m4 (rindex, index): If already defined, don't attempt
8910 * ginclude/varargs.h: (__va_list__): Define ifndef.
8911 * ginclude/stdarg.h: Likewise.
8913 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
8914 instead of unsigned char.
8916 * hash.h (true, false, boolean): Undef before enum.
8918 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
8919 proper type of "HOST_WIDE_INT *", rather than their natural type of
8920 "unsigned HOST_WIDE_INT *".
8922 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8924 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
8926 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
8928 * regclass.c (choose_hard_reg_mode): Likewise.
8930 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
8932 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
8934 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8936 * c-common.c: PROTO -> PARAMS.
8937 * c-common.h: Likewise.
8938 * c-decl.c: Likewise.
8939 * c-iterate.c: Likewise.
8940 * c-lang.c: Likewise.
8941 * c-lex.c: Likewise.
8942 * c-lex.h: Likewise.
8943 * c-parse.in: Likewise.
8944 * c-pragma.c: Likewise.
8945 * c-pragma.h: Likewise.
8946 * c-tree.h: Likewise.
8947 * c-typeck.c: Likewise.
8948 * objc/objc-act.c: Likewise.
8949 * objc/objc-act.h: Likewise.
8951 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8953 * m88k-protos.h: New file.
8955 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
8958 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
8960 * m88k.md: Likewise.
8962 * tekXD88.h: Likewise.
8964 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8966 * m68k-protos.h: New file.
8968 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
8971 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
8973 * mot3300.h: Likewise.
8975 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
8977 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
8979 (extract_bitlist): Declare bitlen.
8981 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
8983 * cccp.c: Accept and ignore -lang-fortran.
8985 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
8986 qualifiers don't match at any level of pointerness.
8988 2000-01-12 Robert Lipe <robertl@sco.com>
8990 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
8992 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
8994 * reload1.c (reload_reg_unavailable): New static variable.
8995 (reload_reg_free_p): Test it.
8996 (reload_reg_free_for_value_p): Test it instead of
8998 (choose_reload_regs_init): Compute it.
9000 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
9002 * reorg.c (fill_slots_from_thread): Check modified_in_p
9005 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
9007 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
9008 these nodes even if INTERNALS is not set.
9010 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
9012 * gcse.c (delete_null_pointer_checks_1): Cope when
9013 get_condition cannot determine the condition.
9015 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
9017 * toplev.h (set_message_length): Declare.
9019 * diagnostic.c (obstack_chunk_alloc): Define macro.
9020 (obstack_chunk_free): Likewise.
9021 (struct output_buffer): New data structure.
9023 (output_maximum_width): New variable.
9024 (doing_line_wrapping, set_message_length, init_output_buffer,
9025 get_output_prefix, output_space_left, emit_output_prefix,
9026 output_newline, output_append, output_puts, dump_output,
9027 vbuild_message_string, build_message_string, build_location_prefix,
9028 voutput_notice, output_printf, line_wrapper_printf,
9029 vline_wrapper_message_with_location): New functions. Implement
9030 automatic line wrapping.
9031 (v_message_with_decl): Make it handle automatic line wrapping.
9032 (v_error_with_file_and_line): Likewise.
9033 (v_warning_with_file_and_line): Likewise.
9034 (announce_function): Likewise.
9035 (default_print_error_function): Likewise.
9037 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
9039 * cpplib.h (struct cpp_options): Change lang_asm to char.
9041 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
9042 done in cpp_handle_option now.
9043 (initialize_builtins): Take out special case code used only by
9045 (cpp_handle_option): Turn off trigraphs and trigraph warnings
9046 if -traditional. Recognize -lang-fortran and set
9047 lang_fortran, also turn off cplusplus_comments.
9048 (print_help): Document -lang-fortran.
9049 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
9050 lang_asm. Ignore all directives other than `# 123 "file"' if
9052 (cpp_get_token): If -traditional, don't recognize directives
9053 unless the # is in column 1.
9054 (parse_string): If lang_fortran or lang_asm, silently
9055 terminate strings ('' or "") at end of line.
9056 Remove unnecessary braces.
9058 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9059 Richard Henderson <rth@cygnus.com>
9061 * resource.c (mark_referenced_resources): Mark a set strict_low_part
9063 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
9064 strict_low_part when possible.
9066 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9068 * alias.c: PROTO -> PARAMS.
9069 * basic-block.h: Likewise.
9070 * bitmap.c: Likewise.
9071 * bitmap.h: Likewise.
9072 * builtins.c: Likewise.
9073 * c-aux-info.c: Likewise.
9074 * caller-save.c: Likewise.
9075 * calls.c: Likewise.
9077 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9079 * Makefile.in (toplev.o): Depend on regs.h.
9081 * output.h (tdesc_section): Prototype.
9083 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
9085 * sdbout.c: Include "tm_p.h".
9087 * toplev.c: Include "regs.h".
9089 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
9091 * unroll.c (unroll_loop): Add EH support.
9093 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9095 * pa-protos.h: New file.
9097 * pa.c: Include recog.h and tm_p.h.
9098 (compute_zdepwi_operands, compute_movstrsi_length,
9099 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
9100 find_addr_reg, import_milli): Add static prototypes.
9101 (pa_cpu_string, pa_arch_string): Constify a char*.
9102 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
9103 (read_only_operand): Add argument `mode'.
9104 (singlemove_string, output_move_double, output_fp_move_double,
9105 output_block_move, output_and, output_ior, output_ascii,
9106 remove_useless_addtr_insns, milli_names, output_mul_insn,
9107 output_div_insn, output_mod_insn, output_arg_descriptor,
9108 output_cbranch, output_bb, output_bvb, output_dbra, ,
9109 output_millicode_call, output_call, hppa_encode_label,
9110 output_parallel_movb, output_parallel_addb): Constify a char*.
9111 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
9112 (output_parallel_addb): Remove extra arg to `constrain_operands'
9114 * pa.h: Move all prototypes to pa-protos.h.
9115 (pa_cpu_string, pa_arch_string): Constify a char*.
9116 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
9118 * pa.md: Call `function_label_operand' with mode argument.
9119 Likewise for `read_only_operand'.
9120 Fix nesting of parens in call to `symbolic_operand'.
9122 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9124 * i860-protos.h: New file.
9126 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
9129 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
9131 * i860.md: Likewise.
9133 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
9135 * i386.md (movstrsi expander): Rewrite.
9136 (movstrsi_1 insn): Deleted.
9137 (strmovhi, strmovqi expander): New expanders.
9138 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
9139 * i386.c (x86_single_stringop): New global variable.
9140 * i386.h (x86_single_stringop): Declare.
9141 (TARGET_SINGLE_STRINGOP): New macro.
9143 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
9145 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
9146 integer vararg POSTINCREMENT before the destination of the jump
9147 for the hard fp case.
9148 (function_arg_pass_by_reference): Pass a copy of CUM to
9151 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
9152 for CONSTANT_ADDRESS_P above while loop for subreg.
9154 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
9156 * flow.c (propagate_block): When a prologue/epilogue insn
9157 is marked dead, unconditionally clear libcall_is_dead and
9158 insn_is_dead, and only dump rtl if warnings aren't being
9161 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
9163 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
9164 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
9165 (FIXED_REGISTERS): Set dirflag as fixed.
9166 (CALL_USED_REGISTERS): Set dirflag as used.
9167 (REG_ALLOC_ORDER): Set dirflag as last one.
9168 (DIRFLAG_REG): New macro.
9169 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
9170 (HI_REGISTER_NAMES): Add dirflag.
9171 (DEBUF_PRINT_REG): Handle dirflag.
9172 * i386.md (type attribute): New cld and str types.
9173 (length_opcode attribute): Set cld and str to 1.
9174 (memory attribute): Set str to unknown - it is not clear from the
9176 (pent_np function unit): Prefixed string operations takes 12 cycles
9177 minimally; cld takes 2 cycles.
9178 (ppro_uops attribute): Str is "many" and cld is "few".
9179 (ppro_p0 unit): Handle cld here.
9180 (k6_alux unit): Handle cld and str types.
9181 (k6_load unit): It is ocupied by str opcodes.
9182 (k6_store unit): It is ocupied by str opcodes.
9183 (athlon_decode): Str is vector decoded.
9184 (athlon_ieu): Handle str and cld.
9186 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
9187 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
9188 cmpstrsi_nz_1 insn): Do not output cld instruction
9190 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
9192 * gcc.texi (G++ and GCC): Add Java and Chill.
9193 (Bug Critera): Don't list languages.
9195 * gcc.texi (Incompatibilities): No longer claim most C compilers
9198 * gcc.texi (G++ and GCC): Update other front-ends list.
9200 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
9202 * i386.c (ix86_expand_setcc): Fix typo.
9203 (ix86_expand_movcc): Similarly.
9205 * Band-aid until haifa's bitset implementation is nuked.
9206 * haifa-sched.c (extract_bitlst): New parameter for size of the
9207 bitset in bits. All callers changed. Avoid looking at undefined
9209 (edgeset_bitsize): New variable.
9210 (schedule_region): Initialize edgeset_bitsize.
9212 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9214 * Makefile.in (optabs.o): Depend on real.h
9215 (resource.o): Depend on insn-attr.h
9217 * builtins.c (result_vector): Wrap prototype in macro conditions
9218 governing definition and use.
9220 * c-common.c: Include tm_p.h.
9222 * c-lex.c: Likewise.
9224 * elfos.h: Constify a char*.
9226 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
9227 (get_attr_length, shorten_branches, profile_after_prologue): Mark
9228 parameter with ATTRIBUTE_UNUSED.
9230 * fold-const.c (exact_real_inverse): Wrap variable `i' in
9233 * haifa-sched.c (schedule_insns): Mark parameter with
9236 * optabs.c: Include real.h.
9238 * real.h (ereal_atof): Add prototype arguments.
9240 * resource.c: Include insn-attr.h.
9242 * sdbout.c (sdbout_queue_anonymous_type,
9243 sdbout_dequeue_anonymous_types): Wrap in macro
9244 SDB_ALLOW_FORWARD_REFERENCES.
9245 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
9248 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
9250 * stupid.c: Include tm_p.h.
9252 * tree.c (real_value_from_int_cst): Mark parameter with
9255 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9257 * i960-protos.h: New file.
9259 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
9262 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
9264 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9266 * combine.c (expand_field_assignment): Do not discard SUBREGs
9267 while computing nonzero_bits.
9269 2000-01-09 Nick Clifton <nickc@cygnus.com>
9271 * config/arm/arm.c: Fix compile time warnings about signed vs
9273 * config/arm/arm.h: Fix compile time warnings about signed vs
9276 2000-01-09 Philip Blundell <philb@gnu.org>
9278 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
9279 than `ldm' with only one register.
9280 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
9283 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
9286 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
9288 * config/ns32k/ns32k.md (load or push effective address): Operand 1
9291 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9293 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
9294 assignment used as truth value.
9296 * function.c (assign_temp): Mark parameter `dont_promote' with
9297 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
9298 PROMOTE_FOR_CALL_ONLY.
9300 * genrecog.c (write_subroutine): Mark variable `operands' with
9303 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
9306 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
9307 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
9309 * toplev.c (note_deferral_of_defined_inline_function): Likewise
9312 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9314 * config/c4x.h: Tidy up comments.
9315 * config/c4x.c: Likewise.
9317 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
9319 * fold-const.c (lshift_double, rshift_double): Handle
9320 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
9322 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9324 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
9325 in prepare_function_start().
9327 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
9329 * config/v850/v850.c (expand_epilogue): Interrupt functions no
9330 longer allocate extra stack for function calls.
9332 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9334 * config/c4x/c4x.md (*subqf3_set): Fix typo.
9336 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9338 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
9340 2000-01-07 David Edelsohn <edelsohn@gnu.org>
9342 * rs6000.c (processor_target_table): Add power3 as alias for 630.
9343 * aix43.h: Revert Aug 2 change.
9344 (HAS_INIT_SECTION): Define, not visible yet.
9345 (LD_INIT_SWITCH): Define, not visible yet.
9346 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
9348 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
9350 * collect2.c (main): Expand ld2 size further.
9351 (export_object_lst): Cast assignment to avoid warning.
9352 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
9353 (scan_prog_file, COFF): Do not collect initialization or
9354 finalization functions generated for entire shared object if
9355 init/fini support present.
9357 2000-01-07 Nick Clifton <nickc@cygnus.com>
9359 * config/elfos.h: Tidy up formatting of marcos. Make sure
9360 that .section directives are always prefixed by a tab.
9362 * config/svr4.h: Add #include "elfos.h" and remove duplicate
9365 2000-01-07 Matt Austern <austern@sgi.com>
9367 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
9370 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
9372 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
9374 (crtbegin.o, s-crtS): Likewise.
9376 2000-01-06 Richard Henderson <rth@cygnus.com>
9378 * alpha.md (adddi_2+1): Limit offset such that it will be
9379 loadable with a single ldah+lda pair.
9380 (adddi_2+2): Explicitly fail split if we can't make it work.
9382 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
9384 * protoize.c: Conditionally include unistd.h.
9385 (IS_SAME_PATH_CHAR): New macro.
9386 (IS_SAME_PATH): New macro.
9387 (CPLUS_FILE_SUFFIX): New macro.
9388 (cplus_suffix): New static variable.
9389 (is_abspath): New static function.
9390 (in_system_include_dir): Handle DOS style pathnames.
9391 (file_could_be_converted): Likewise.
9392 (file_normally_convertible): Likewise.
9393 (directory_specified_p): Likewise.
9394 (file_excluded_p): Likewise.
9395 (abspath): Likewise.
9396 (shortpath): Likewise.
9397 (referenced_file_is_newer): Likewise.
9398 (save_def_or_dec): Likewise.
9399 (do_processing): Likewise.
9401 (edit_file): Likewise. Use rename instead of link.
9402 (rename_c_file): Likewise. Don't rename syscalls file.
9403 (munge_compile_params): Define null device for DOS based systems.
9404 (process_aux_info_file): Use binary mode if appliable.
9405 (edit_file): Likewise.
9406 * invoke.texi (Running Protoize): Document C++ suffixes used.
9408 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
9409 IS_DIR_SEPARATOR macros.
9410 * collect2.c: Likewise.
9411 * cppinit.c: Likewise.
9412 * dwarf2out.c: Likewise.
9415 * prefix.c: Likewise.
9417 * toplev.c: Likewise.
9418 * system.h: And move to here.
9420 * prefix.c (update_path): Fix typo in variable name.
9422 2000-01-06 Richard Henderson <rth@cygnus.com>
9424 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
9425 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
9426 (count_reg_sets_1, count_reg_references): Likewise.
9427 (flow_loops_level_compute): Start counting actual loop depth at 1.
9428 (flow_loops_find): Likewise.
9429 * local-alloc.c (update_equiv_regs): Likewise.
9430 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
9432 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
9434 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
9435 FIRST_PSEUDO_REGISTER
9436 * dwarf2out.c: Don't include frame.h
9437 * dwarfout.c: Likewise
9438 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
9441 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
9443 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
9446 * i386.c (movsf splitter): Fix typo in my last checkin.
9448 2000-01-05 Nick Clifton <nickc@cygnus.com>
9450 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
9451 own definition of this macro.
9452 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
9453 flag_data_sections or UNIQUE_SECTION_P are true.
9455 * tm.texi (UNIQUE_SECTION): Document that it can be called for
9456 unitialised data decls.
9458 * config/i386/winnt.c (i386_pe_unique_section): Cope with
9459 being called for uninitialised data.
9461 * config/i386/interix.c (i386_pe_unique_section): Cope with
9462 being called for uninitialised data.
9464 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
9465 for uninitialised data.
9467 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
9468 for uninitialised data.
9470 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
9471 for uninitialised data.
9473 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
9474 (UNIQUE_SECTION_P): Always generate a unique section if
9475 flag_data_sections is true.
9476 (UNIQUE_SECTION): Also generate unique sections for
9478 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
9479 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
9482 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9484 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
9487 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9489 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
9490 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
9491 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
9492 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
9493 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
9495 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
9497 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
9499 * c-decl.c (finish_enum): Simplify code to determine minimum and
9500 maximum values of the enum, and calculate the type. Remove check
9501 for FUNCTION_DECLs in the values list, which cannot happen. Replace
9502 the DECL_INITIAL of each enumeration constant with a copy converted
9503 to the enumeration type. When updating variant types, don't bother
9504 updating the type itself.
9506 * c-typeck.c (build_binary_op): Simplify conditional expressions
9507 when weeding out spurious signed-unsigned warnings. Add new
9508 spurious warning category: if the unsigned quantity is an enum
9509 and its maximum value fits in signed_type(result_type). Update
9511 (build_conditional_expr): Warn here if one alternative is signed
9512 and the other is unsigned.
9514 2000-01-05 Nick Clifton <nickc@cygnus.com>
9516 * config/fr30/fr30.h: Remove extraneous comments.
9518 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
9520 * reload1.c (choose_reload_regs): When disabling a reload, also
9521 set reload_spill_index to -1.
9523 2000-01-04 Joel Sherrill (joel@OARcorp.com>
9525 * configure.in (m68*-*-rtemscoff*): New target, formal name for
9527 (m68*-*-rtemself*): New target.
9528 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
9529 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
9530 (sparc*-*-rtemself*): New target.
9531 (sparc*-*-rtems*): Now elf not a.out.
9532 * config/i386/rtems.h: Include config/rtems.h.
9533 * config/i386/rtemself.h: Include config/rtems.h.
9534 * config/i960/rtems.h: Include config/rtems.h.
9535 * config/m68k/rtems.h: Include config/rtems.h.
9536 * config/m68k/rtemself.h: Include config/rtems.h.
9537 * config/mips/rtems64.h: Include config/rtems.h.
9538 * config/pa/rtems.h: Include config/rtems.h.
9539 * config/rs6000/rtems.h: Include config/rtems.h.
9540 * config/sh/rtems.h: Include config/rtems.h.
9541 * config/sh/rtemself.h: Include config/rtems.h.
9542 * config/sparc/rtems.h: Include config/rtems.h.
9543 * config/sparc/rtemself.h: Include config/rtems.h
9545 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
9547 * final.c (shorten_branches): Correctly compute length of
9548 asms without operands.
9550 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
9552 * configure.in: Add pj target.
9553 * configure: Regenerate.
9554 * config/pj: New directory.
9555 * config/pj/lib1funcs.S: New file.
9556 * config/pj/linux.h: New file.
9557 * config/pj/pj.c: New file.
9558 * config/pj/pj.md: New file.
9559 * config/pj/pjl.h: New file.
9560 * config/pj/t-pj: New file.
9561 * config/pj/xm-pj.h: New file
9563 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
9565 * toplev.c (rest_of_compilation): Run shorten-branches before
9568 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9570 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
9571 macros so that they're consistent with their names.
9572 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
9573 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
9575 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9577 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
9578 modified inadvertently.
9580 2000-01-04 Joel Sherrill <joel@OARcorp.com>
9582 * configure.in (v850*-*-rtems*): New target.
9583 * configure: Regenerate.
9584 * config/v850/rtems.h: New file.
9586 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
9588 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
9589 (__gthread_key_create): Likewise.
9590 (__gthread_key_dtor): Likewise.
9591 (__gthread_once): Fix logic.
9592 (__gthread_key_delete): Cast away constness.
9594 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
9595 * invoke.texi: Document.
9596 * i386/mingw32.h (CPP_SPEC): Use.
9597 (LIBGCC_SPEC): Likewise.
9598 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
9600 2000-01-04 David Edelsohn <edelsohn@gnu.org>
9602 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
9603 (HANDLE_PRAGMA_PACK): Undefine.
9604 (SLOW_UNALIGNED_ACCESS): Define.
9606 2000-01-04 David Edelsohn <edelsohn@gnu.org>
9608 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
9609 to default definition.
9610 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
9611 (store_fixed_bit_field): Call macro with word_mode and alignment.
9612 (extract_bit_field): Call macro with relevant mode and alignment.
9613 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
9614 to default definition.
9615 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
9617 (move_by_pieces_ninsns): Likewise.
9618 (clear_by_pieces): Likewise.
9619 (emit_push_insn): Likewise.
9620 (store_field): Call macro with relevant mode and alignment.
9621 (expand_expr): Likewise.
9622 (expand_expr_unaligned): Likewise.
9624 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
9625 (SLOW_UNALIGNED_ACCESS): Define.
9626 (CASE_VECTOR_MODE): Always use 32-bit offsets.
9627 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
9628 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
9629 (toc_section): Likewise and .toc pseudo-op.
9630 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
9632 (TEXT_SECTION_ASM_OP): Likewise.
9633 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
9636 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
9637 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
9638 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
9639 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
9640 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
9642 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
9644 * regclass.c: Revert my Jan 4 change to loop cost computation.
9646 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
9648 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
9651 2000-01-04 Stan Cox <scox@cygnus.com>
9653 * haifa-sched.c (build_control_flow): Change unreachable simple
9654 loop test to check if current block has only one predecessor.
9655 (find_rgns): Initialize degree. Use dest as degree index, not src.
9657 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9659 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
9661 * calls.c (expand_call): Likewise for
9662 `old_stack_arg_under_construction'.
9664 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
9666 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
9669 * gcc.c (execute): Likewise for `ut' and `st'.
9671 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
9673 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
9675 * jump.c (jump_optimize_1): Likewise for `temp2'.
9677 * local-alloc.c (block_alloc): Likewise for `r1'.
9679 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
9681 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
9682 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
9684 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
9687 * reload.c (find_reloads): Likewise for `goal_alternative_number'
9688 and `goal_earlyclobber'.
9690 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
9692 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
9694 * stupid.c (stupid_life_analysis): Likewise for `chain'.
9696 * unroll.c (copy_loop_body): Likewise for `copy'.
9698 * varasm.c (output_constructor): Likewise for `byte'.
9700 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
9702 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
9703 all FP constants for constant->reg moves.
9704 (ix86_split_to_parts): Try to convert memory address into immediate
9705 when available in the constant pool.
9706 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
9708 (LEGITIMATE_CONSTANT_P): Return 1.
9709 * i386.md (pushsf): New splitter to convert constant pool memory
9710 reference to immediate.
9711 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
9714 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
9716 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
9717 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
9718 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
9719 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
9720 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
9722 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
9724 * ginclude/stdbool.h: Support compilation as C++.
9726 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9728 * fold-const.c (make_range): Don't try to reverse an unbounded range.
9730 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
9732 * regclass.c (regclass): Properly compute loop_cost. Adjust
9735 * regclass.c: Fix minor whitespace problems.
9737 2000-01-03 Anthony Green <green@cygnus.com>
9739 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
9740 Restore the pic register if required.
9742 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
9744 * c-common.c (format_char_info): Update comment.
9745 (check_format_info): Recognize 'z' modifier in the same way 'Z'
9746 was recognized. Emit warning for formats new in ISO C99 only
9747 if flag_isoc9x is not set.
9749 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
9751 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
9753 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
9755 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
9756 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
9757 (make_compound_operation): Choose cheaper alternative between
9758 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
9760 * regclass.c (op_costs): Remove global variable.
9761 (record_reg_classes): New parameter "op_costs" and "reg_pref".
9762 (record_operand_costs): Break out from ...
9763 (scan_one_insn): ... here.
9764 (dump_regclass): Make dumps nicer.
9765 (regclass): Dump preferrences choosed and changes done during passes.
9767 2000-01-03 Jakub Jelinek <jakub@redhat.com>
9769 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
9771 2000-01-03 Jakub Jelinek <jakub@redhat.com>
9773 * config/sparc/sparc.c (gen_df_reg): New function.
9774 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
9775 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
9776 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
9777 movtf_cc_reg_sp64+1): Use it.
9779 2000-01-02 Mark Mitchell <mark@codesourcery.com>
9781 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
9784 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
9786 * config/i386/i386.c (ix86_expand_unary_operator): Function
9787 definition made void.
9788 (ix86_expand_binary_operator): Update outdated preceding comment.
9789 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
9792 * config/i386/i386.c (override_options): Fix option-name typo.
9794 2000-01-02 Mark Mitchell <mark@codesourcery.com>
9796 * system.h (CEIL): Define.
9797 * builtins.c (CEIL): Remove.
9798 * expmed.c (CEIL): Likewise.
9799 * expr.c (CEIL): Likewise.
9800 * stor-layout.c (CEIL): Likewise.
9802 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9804 * expr.c (store_constructor_field): Fix typo introduced with last
9807 2000-01-01 Mark Mitchell <mark@codesourcery.com>
9809 * tree.h (BINFO_N_BASETYPES): New macro.
9811 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
9813 * expmed.c (emit_store_flag): Prevent losing a pending stack
9814 adjust the same way we prevent losing queued increments.
9816 Fri Dec 31 19:10:31 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9818 * function.c (update_temp_slot_address): Handle case where sum of
9819 temporary address plus offset in register is a valid address.
9821 1999-12-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9823 * genrecog.c (change_state) Corrected typo.
9825 1999-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9827 * system.h (bcopy, bcmp, bzero, index, rindex, atof, atol, free,
9828 getcwd, getenv, getwd, sbrk, strstr, malloc, calloc, realloc,
9829 strerror, getrlimit, setrlimit, abort): Add prototype arguments.
9831 1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
9833 * i386.c (ix86_expand_fp_compare): In non-sahf non-TARGET_IEEE
9834 case, expand GT comparisons correctly. Fix a comment before this
9837 1999-12-30 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
9839 * dwarfout.c: Include "frame.h"
9840 * dwarf2out.c: Likewise.
9841 * Makefile.in (dwarfout.o): Depend on frame.h
9842 (dwarf2out.o): Likewise.
9844 1999-12-29 "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
9846 Restore i386 binary compatibility in Dwarf EH info.
9847 * config/i386/i386.h (DWARF_FRAME_REGISTERS): Define as 17, the old
9848 value of FIRST_PSEUDO_REGISTER.
9849 * frame.h (DWARF_FRAME_REGISTERS): Default to FIRST_PSEUDO_REGISTER.
9850 (struct frame_state): Use DWARF_FRAME_REGISTERS.
9851 * dwarfout.c (output_reg_number): Ditto.
9852 * dwarf2out.c (reg_number, expand_builtin_init_dwarf_reg_sizes): Ditto.
9853 (DWARF_FRAME_RETURN_COLUMN): Default to DWARF_FRAME_REGISTERS.
9855 1999-12-29 Bruce Korb <autogen@linuxbox.com>
9857 * fixinc/fixincl.c(wait_for_pid): sometimes a WSTOPSIG of zero is OK
9858 * fixinc/fixincl.tpl(<hack>TEST_CT): Just do the existence test once
9859 (<hack>_RE_CT): not needed
9860 * fixinc/fixlib.c(is_cxx_header): moved from fixtests.c
9861 rewritten to scan the file text once only
9862 "template<..." test added
9863 * fixinc/fixlib.h(apply_fix_p_t): moved from fixtests.c
9864 (is_cxx_header): declaration added
9865 * fixinc/fixtests.c(is_cxx_header): removed
9866 (apply_fix_p_t): removed
9867 (double_slash_test): is_cxx_header is only called once now
9868 * fixinc/hackshell.tpl: indexing the fixes is now done under DEBUG
9869 * fixinc/inclhack.def(FIXINC_DEBUG): added for testing DEBUG state
9870 within the templates.
9871 The borken spelling of "broken" was fixed.
9872 * fixinc/inclhack.tpl: The $VERBOSE level is used on various messages
9873 The default level depends on FIXINC_DEBUG.
9875 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9877 * crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.
9878 Otherwise provide a declaration for atexit.
9879 (init_dummy): Make sure dummy call to atexit is nevertheless
9880 called with correct number of args.
9882 * frame.c: Update comments referring to other files.
9884 * libgcc2.c: Likewise.
9886 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9888 * cse.c (free_element, get_element): Remove unused prototypes.
9890 * fold-const.c (extract_muldiv): Initialize variables `op0' and
9893 * jump.c (invert_exp): Add explicit braces to avoid ambiguous
9896 Wed Dec 29 12:44:54 1999 Donald Lindsay <dlindsay@cygnus.com>
9898 * configure.in,configure: case arm for mn10200-*-* now sets
9899 float_format=i32 so that float.h will correctly claim "double"
9900 to be 32 bits. Ran autoconf to generate configure from .in file.
9902 Wed Dec 29 10:53:21 1999 Jeffrey A Law (law@cygnus.com)
9904 * pa.md (conditional zero): If op1 is a register, force it into
9905 the same register as op0.
9907 1999-12-28 Mark Mitchell <mark@codesourcery.com>
9909 * tree.h (BINFO_BASETYPES): Improve documentation.
9911 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9913 * configure.in (--enable-checking): Use a more portable `for'
9916 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9918 * configure.in (AC_DECL_SYS_SIGLIST, xm-siglist.h,
9919 arm/xm-netbsd.h, NO_SYS_SIGLIST): Don't use.
9921 * xm-siglist.h, arm/xm-netbsd.h, mips/xm-news.h, mips/xm-sysv4.h:
9924 * gcc.texi (NO_SYS_SIGLIST, sys_siglist, SYS_SIGLIST_DECLARED):
9925 Delete descriptions.
9927 * i386/osf1elf.h, i386/xm-cygwin.h, i386/xm-mingw32.h, m68k/3b1.h,
9928 m68k/a-ux.h, m68k/dpx2.h, m68k/plexus.h, m68k/xm-hp320.h,
9929 m88k/xm-m88k.h, mips/x-sni-svr4, pa/xm-pa.h, pa/xm-pahpux.h,
9930 pa/xm-papro.h, we32k/xm-we32k.h, winnt/xm-winnt.h, xm-interix.h,
9931 xm-svr4.h: Remove all instances of sys_siglist handling.
9933 1999-12-27 Jakub Jelinek <jakub@redhat.com>
9935 * config/sparc/sparc.md (cmp_zero_qi,
9936 cmp_zero_extendqisi2_andcc_set, cmp_zero_qi_sp64,
9937 cmp_zero_extendqidi2_andcc_set): New patterns.
9939 1999-12-28 Manfred Hollstein <mhollstein@cygnus.com>
9941 * m68k/t-mot3300-gald (CROSS_LIBGCC1): Define to libgcc1-asm.a.
9942 (LIB1ASMSRC, LIB1ASMFUNCS, LIB2FUNCS_EXTRA): Define.
9943 (fpgnulib.c, xfgnulib.c): Add rules.
9944 * m68k/t-mot3300-gas: Likewise.
9946 1999-12-27 Ian Lance Taylor <ian@zembu.com>
9948 * configure.in: Avoid [[ by using test and changequote. Add
9949 changequote required by 1999-12-14 change.
9950 * configure: Rebuild.
9952 1999-12-27 Clinton Popetz <cpopetz@cygnus.com>
9954 * config/mips/mips.h: Fix typo from 12/17/99 libgcc2 fix.
9956 1999-12-27 Christophe Jaillet <jaillet.christophe@caramail.com>
9958 * alias.c (nonlocal_reference_p): Add else for disjoint ifs.
9959 * flow.c (find_use_as_address): Likewise.
9960 * function.c (fixup_var_refs_1): Likewise.
9961 (walk_fixup_memory_subreg, fixup_stack_1): Likewise.
9962 * jump.c (invert_exp, redirect_exp): Likewise.
9963 * loop.c (replace_call_address): Likewise.
9964 (count_nonfixed_reads): Likewise.
9965 * rtlanal.c (modified_between_p): Likewise.
9966 (modified_in_p, volatile_insn_p, volatile_refs_p): Likewise.
9967 (side_effects_p, replace_regs, jmp_uses_reg_or_mem): Likewise.
9968 * unroll.c (remap_split_bivs): Likewise.
9970 1999-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9972 * diagnostic.c (v_message_with_decl): Use .* format specifier
9973 instead of building the format specifier width manually.
9975 * system.h (strsignal): Don't check HAVE_STRSIGNAL when
9976 determining whether to provide a prototype. Remove the
9977 sys_siglist clause in the conditional.
9979 1999-12-23 Martin v. Löwis <loewis@informatik.hu-berlin.de>
9981 * fold-const.c (operand_equal_p): Use memcmp to compare string
9983 Suggested by D. J. Bernstein
9985 1999-12-17 Jakub Jelinek <jakub@redhat.com>
9987 * config/h8300/h8300.h (TARGET_H8300H, TARGET_H8300S): Make sure
9988 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
9990 * config/mips/mips.h (TARGET_64BIT): Likewise.
9991 * config/rs6000/rs6000.h (TARGET_POWERPC64): Likewise.
9992 * libgcc2.c: Use {,U}{HW,W,DW}type and DWunion everywhere instead
9993 of {SI,DI}type and DIunion. Define these types to QI/HI modes on
9994 dsps. Give routines proper names if SI/DI modes are not used.
9995 * longlong.h: Use DWunion instead of DIunion.
9997 1999-12-26 Zack Weinberg <zack@wolery.cumb.org>
9999 * acconfig.h: New ENABLE flags: TREE_CHECKING, RTL_CHECKING,
10000 GC_CHECKING, GC_ALWAYS_COLLECT.
10001 * configure.in: Allow --enable-checking with an argument
10002 listing check modes to enable.
10003 * config.in, configure: Rebuilt.
10004 * ggc-page.c, ggc-simple.c: Define GGC_POISON (and
10005 GGC_ALWAYS_VERIFY for ggc-simple.c) only if
10006 ENABLE_GC_CHECKING. Define GGC_ALWAYS_COLLECT only if
10007 ENABLE_GC_ALWAYS_COLLECT.
10008 * rtl.h, rtl.c: Change ENABLE_CHECKING to ENABLE_RTL_CHECKING
10010 * tree.h, tree.c: Change ENABLE_CHECKING to
10011 ENABLE_TREE_CHECKING throughout.
10013 Sun Dec 26 07:48:20 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10015 * fold-const.c (fold_truthop): Properly check for FP RHS.
10017 1999-12-24 Mark Mitchell <mark@codesourcery.com>
10019 * toplev.h (note_deferall_of_defined_inline_function): Declare.
10020 * toplev.c (note_deferral_of_defined_inline_function): New
10021 function, split out from ...
10022 (rest_of_compilation): ... here. Use it.
10024 Fri Dec 24 12:34:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10026 * expr.c (store_constructor): Don't call clear_storage if size is
10029 1999-12-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10031 * Makefile.in (toplev.o): Depend on loop.h.
10033 * dwarfout.c: Include tm_p.h.
10035 * emit-rtl.c (restore_emit_status): Mark parameter with
10038 * final.c (final_scan_insn): Likewise.
10040 * flow.c (flow_nodes_print, flow_exits_print, flow_loops_cfg_dump,
10041 flow_loop_nested_p, flow_loop_exits_find, flow_loop_nodes_find,
10042 flow_depth_first_order_compute, flow_loop_pre_header_find,
10043 flow_loop_tree_node_add, flow_loops_tree_build,
10044 flow_loop_level_compute, flow_loops_level_compute,
10045 flow_loop_outside_edge_p): Add prototypes.
10046 (recompute_reg_usage): Mark parameters with ATTRIBUTE_UNUSED.
10048 * ggc-callbacks.c (lang_mark_tree, lang_mark_false_label_stack):
10049 Mark with ATTRIBUTE_NORETURN.
10051 * hash.c (hash_newfunc): Mark parameter with ATTRIBUTE_UNUSED.
10053 * local-alloc.c (no_conflict_p): Likewise.
10055 * loop.c (insert_bct): Hide definitions of variables with hidden
10057 (note_reg_stored): Mark parameter with ATTRIBUTE_UNUSED.
10059 * regclass.c (memory_move_secondary_cost): Mark variable `mem'
10060 with ATTRIBUTE_UNUSED.
10061 (record_reg_classes): Mark parameter with ATTRIBUTE_UNUSED.
10062 (reg_scan): Likewise.
10064 * reload.c (find_reloads): Remove unused variables `changed'.
10066 * reload1.c (reload_reg_class_lower): Don't unnecessarily cast
10068 (allocate_reload_reg): Mark parameter with ATTRIBUTE_UNUSED.
10069 Remove unused variable `insn'.
10071 * toplev.c: Include loop.h.
10072 (report_file_and_line): Remove unnecessary prototype.
10074 * tree.c (build_block): Mark parameter with ATTRIBUTE_UNUSED.
10076 * unroll.c (biv_total_increment): Likewise.
10078 Thu Dec 23 23:15:22 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
10080 * reload1.c (emit_input_reload_insns): Restore old behaviour
10081 wrt. 'special' reloads.
10083 1999-12-23 Zack Weinberg <zack@wolery.cumb.org>
10085 * Makefile.in (ggc-simple.c, ggc-page.c): Don't depend on
10086 hash.h. (cse.c): Don't depend on hashtab.h.
10088 * cse.c: Don't include hashtab.h.
10089 (hash_cse_reg_info, cse_reg_info_equal_p): Delete prototypes
10091 * ggc-simple.c: Don't include hash.h.
10093 1999-12-22 Jason Merrill <jason@casey.cygnus.com>
10095 * dwarf2out.c (add_abstract_origin_attribute): Call
10096 gen_abstract_function on our function context.
10098 Thu Dec 23 03:57:10 1999 Hans-Peter Nilsson <hp@bitrange.com>
10100 * Makefile.in (INTEGRATE_H): Fix typo: INTEGRATE_H, not INTREGRATE_H.
10102 1999-12-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10104 * config/c4x/c4x.c (c4x_address_cost): Add statement to default
10107 1999-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10109 * config/c4x/c4x.md (*addqi3_noclobber_reload): Change operand 0
10110 constraints to "a!r".
10112 1999-12-21 Mark Mitchell <mark@codesourcery.com>
10114 * Makefile.in (calls.o): Depend on function.h.
10115 (alias.o): Likewise.
10117 1999-12-21 Bernd Schmidt <bernds@cygnus.co.uk>
10119 * reload1.c (emit_reload_insns): Break out code and variables into...
10120 (input_reload_insns, other_input_address_reload_insns,
10121 other_input_reload_insns, input_address_reload_insns,
10122 inpaddr_address_reload_insns, output_reload_insns,
10123 output_address_reload_insns, outaddr_address_reload_insns,
10124 operand_reload_insns, other_operand_reload_insns,
10125 other_output_reload_insns): ... new static variables, and...
10126 (emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
10127 do_output_reload): ... new functions.
10129 Tue Dec 21 07:06:36 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10131 * pa.h (FUNCTION_ARG_BOUNDARY): Never return 0.
10133 1999-12-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10135 * md.texi: Add c4x constraints documentation.
10137 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10139 * config/i386/dgux.c (struct option): Rename to
10140 lang_independent_option.
10141 (struct m_options): Add description field.
10142 (output_options): Rename option type, add sep declaration, output
10143 ix86_cpu_string and ix86_arch_string only if set.
10144 (output_file_start): Rename option type.
10146 Mon Dec 20 23:15:36 1999 Mike Stump <mrs@wrs.com>
10148 * Makefile.in (crtbegin.o, crtend.o, s-crtS): Depend on
10150 (libgcc2.a): Similarly.
10152 Mon Dec 20 23:06:47 1999 David Edelsohn <edelsohn@gnu.org>
10154 * longlong.h (_ARCH_PPC): Only protect add_ssaaaa and sub_ddmmss
10155 with W_TYPE_SIZE == 32. Do not fall through to POWER architecture
10156 for umul_ppmm and smul_ppmm if !_ARCH_PPC and !_ARCH_POWER.
10158 Mon Dec 20 23:02:03 1999 Jeffrey A Law (law@cygnus.com)
10160 * fold-const.c (real_hex_to_f): Remove unused "isldouble" variable.
10161 Remove redundant initialization of "frexpon" and "expon".
10163 Mon Dec 20 15:00:04 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10165 * tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.
10167 * expr.c (store_constructor): New argument SIZE; pass to clear_storage.
10168 (store_constructor_field, expand_expr): Pass new arg.
10170 1999-12-20 Mark Mitchell <mark@codesourcery.com>
10172 * Makefile.in (explow.o): Depend on function.h.
10174 * stor-layout.c (set_sizetype): Fix typo.
10176 1999-12-20 Bernd Schmidt <bernds@cygnus.co.uk>
10178 * function.c (cfun): Renamed from current_function. All users
10180 * function.h (cfun): Rename declaration as well.
10182 * reload.h (struct insn_chain): Change live_throughout and dead_or_set
10183 to be of type regset_head, not regset. All users changed by adding
10185 * reload1.c (new_insn_chain): Don't allocate regsets, just clear them.
10187 1999-12-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10189 * config/c4x/rtems.h: New file.
10191 1999-12-19 Bernd Schmidt <bernds@cygnus.co.uk>
10193 * reload1.c (spill_failure): Take class of failed reload as argument
10194 and print it. Caller changed.
10196 Sun Dec 19 07:50:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10198 * rs6000.h (SUBTARGET_DEFAULT): New macro.
10199 (TARGET_SWITCHES): Allow subtargets to default switches.
10200 * rs6000/vxppc.h (SUBTARGET_DEFAULT): New macro.
10202 1999-12-18 Mark Mitchell <mark@codesourcery.com>
10204 * crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
10207 Sat Dec 18 20:42:43 1999 Richard Henderson <rth@cygnus.com>
10209 * cccp.c (main): Define __STDC_VERSION__ as necessary.
10210 * cppinit.c (cpp_handle_option): Likewise.
10212 * ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to
10213 determine when to define.
10215 Sat Dec 18 20:34:00 1999 Richard Henderson <rth@cygnus.com>
10217 * alpha.c (alpha_emit_conditional_move): If TARGET_FIX, handle
10218 cmove with mismatched test and data modes.
10220 Sat Dec 18 20:30:15 1999 Richard Henderson <rth@cygnus.com>
10222 * c-typeck.c (c_expand_start_case): Don't warn for long switch
10225 Sat Dec 18 16:28:43 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10227 * alias.c: Minor reformatting.
10228 * flow.c: Likewise.
10229 * regs.h: Likewise.
10230 * stor-layout.c: Likewise.
10231 * fold-const.c: Likewise.
10232 (OVERFLOW_SUM_SIGN): Renamed from overflow_sum_sign.
10233 (struct cb_args, const_binop_1, const_binop): Pass type of arg,
10235 (size_int_wide): Cache nodes even if garbage collecting.
10236 (twoval_comparison_p): Reenable SAVE_EXPR case if operand
10237 of SAVE_EXPR has no side effects.
10238 * cse.c: Move a comment.
10239 * tree.c: Minor reformatting.
10240 (int_size_in_bytes): Return -1 if constant overflows.
10242 Sat Dec 18 18:30:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
10244 * unroll.c (copy_loop_body): Don't treat a REG like a PLUS.
10246 1999-12-18 10:42 -0800 Zack Weinberg <zack@wolery.cumb.org>
10248 * objc/objc-parse.c: Regenerate. This file must be rebuilt
10249 after any change to c-parse.in, even if objc-parse.y didn't
10252 1999-12-18 David S. Miller <davem@redhat.com>
10254 * toplev.c (rest_of_compilation): Restore BLOCK tree
10255 reconstruction and branch shortening changes lost in
10256 December 18th change.
10258 Sat Dec 18 05:29:29 1999 Scott Bambrough <scottb@netwinder.org>
10260 * config/arm/linux-elf.h: Change all instances of
10261 ARM_FLAG_SHORT_BYTES to ARM_FLAG_MMU_TRAPS.
10262 * config/arm/uclinux-elf.h: Likewise.
10264 1999-12-18 Gabriel Dos Reis <gdr@codesourcery.com>
10266 * toplev.c (notice, vmessage, v_message_with_file_and_line,
10267 v_message_with_decl, file_and_line_for_asm,
10268 v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
10269 verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
10270 v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
10271 v_pedwarn_with_file_and_line, vsorry, vnotice, count_error,
10272 pfatal_with_name, fatal_io_error, need_error_newline,
10273 last_error_function, last_error_tick, announce_function,
10274 default_print_error_function, print_error_function,
10275 report_error_function, fnotice, error_with_file_and_line,
10276 error_with_decl, error_for_asm, error, set_fatal_function, fatal,
10277 _fatal_insn, _fatal_insn_not_found, warning_with_file_and_line,
10278 warning_with_decl, warning_for_asm, warning, pedwarn,
10279 pedwarn_with_decl, pedwarn_with_file_and_line, sorry): Move to
10281 (compile_file): Use fnotice instead of notice. Adjust call.
10283 * diagnostic.c: New file.
10285 * Makefile.in (OBJS): Include diagnostic.o
10286 (diagnostic.o): Define dependence.
10288 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10290 * config/c4x/c4x.h (ASM_OUTPUT_XXX): Wrap in do-while(0).
10293 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10295 * config/c4x/c4x.md (rpts_top, rptb_top): Add clobbers for rs and re.
10297 1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
10299 * fixtests.c (is_cxx_header): New fn, split out of
10301 (else_endif_label): Allow "#endif // comment" in C++ headers,
10302 as determined by is_cxx_header.
10303 * fixfixes.c (else_endif_label_fix): Update comment.
10304 * fixincl.c: Don't output VERB_PROGRESS lines if stdout is not
10306 * genfixes: Correct double thinko in commandline parsing.
10307 * hackshell.tpl: Generate correct sh syntax for bypass
10310 * inclhack.def (all): Whenever an inserted preprocessor
10311 conditional is split over multiple lines, use double
10312 backslashes in this file so the fixed header will be readable.
10314 (AAB_fd_zero_glibc_1_0): Rename to AAB_fd_zero_asm_posix_types_h
10315 and add bypass entry for correct version of this header.
10316 (AAB_fd_zero_glibc_1_x): Rename to AAB_fd_zero_gnu_types_h.
10317 (AAB_fd_zero_glibc_2_0): Rename to AAB_fd_zero_selectbits_h.
10319 (hpux8_bogus_inlines): New fix, split from...
10320 (ultrix_atof_param) ... here.
10321 (math_expression): Add bypass entry keyed to glibc comment
10322 indicating the problem has been dealt with; disable
10323 unnecessary sed operations; update commentary.
10324 (math_gcc_ifndefs): Rename to math_huge_val_from_dbl_max,
10325 add select and bypass entries, simplify shell operation.
10326 (math_huge_val_ifndef): Split from math_gcc_ifndefs.
10328 (ip_missing_semi, rs6000_param, tinfo_cplusplus,
10329 ultrix_atof_param): Add select entry.
10330 (stdio_va_list, sunos_mather_decl): Add bypass entry.
10331 (systypes_for_aix, sysv86_string, tinfo_cplusplus): Put the
10332 comments with the fixes they describe.
10334 * c-parse.in (string action): Do not warn about ANSI string
10335 concatenation in system headers. Affects C parser only.
10336 * c-parse.y, c-parse.c, c-parse.h: Rebuild.
10338 1999-12-16 Jakub Jelinek <jakub@redhat.com>
10340 * config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
10341 compiling libgcc2 the macro depends always on arch cpp defines.
10343 Fri Dec 17 10:34:16 1999 Richard Earnshaw <rearnsha@arm.com>
10345 * loop.c (insert_loop_mem): Don't record MEMs from inside
10348 Fri Dec 17 12:08:11 MET 1999 Jan Hubicka <hubicka@freesoftr.cz>
10350 * regclass.c (regclass): Do not use flowgraph when not optimizing.
10352 * gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV
10353 notes too, create one when replacement failed, attempt to simplify
10355 (cprop_insn): Propagate even to registers mentioned only in REG_EQUAL
10356 or REG_EQUIV notes.
10358 1999-12-16 Mark Mitchell <mark@codesourcery.com>
10360 * crtstuff.c (__dso_handle): Declare.
10361 (__cxa_finalize): Likewise.
10362 (do_global_dtors_aux): Call __cxa_finalize if __dso_handle is
10365 * invoke.texi: Document -fuse-cxa-atexit.
10367 * tree.h (ptr_type_node): Document.
10368 (const_ptr_type_node): Likewise.
10370 Fri Dec 17 01:32:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10372 * regmove.c (optimize_reg_copy_1): Ignore LOOP notes.
10373 (optimize_reg_copy_2): Likewise.
10374 (optimize_reg_copy_3): Likewise.
10375 (fixup_match_2): Likewise.
10376 (regmove_optimize): Likewise.
10377 (fixup_match_1): Liekwise.
10379 * i386.md (HI to SImode promoting splitters): Rewrite.
10380 (pushsf mem peep2): New.
10381 (testhi to andhi peep2): Remove.
10382 * i386.h (x86_promote_QImode): New.
10383 (TARGET_PROMOTE_QImode): New.
10384 (PREDICATE_CODES): Add promotable_binary_operator.
10385 * i386.c (x86_promote_QImode0: New.
10386 (promotable_binary_operator): New.
10387 * i386-protos.h (promotable_binary_operator): New.
10389 * i386.md (test?i_1): Use "nonmemory_operand" predicate, simplify
10391 (one_cmpl?i*): Pass "NOT" to unary_operator_ok.
10393 1999-12-16 Mark Mitchell <mark@codesourcery.com>
10395 * Makefile.in (INTREGRATE_H): Rename to INTEGRATE_H.
10396 * function.c (insert_block_after_note): Remove.
10397 (retrofit_block): Likewise.
10398 (identify_blocks): Fix indentation.
10399 (reorder_blocks): Don't NULL out NOTE_SOURCE_FILE for a
10400 NOTE_INSN_BLOCK_BEG or NOTE_INSN_BLOCK_END.
10401 * function.h (insert_block_after_note): Remove prototype.
10402 (retrofit_block): Likewise.
10403 * integrate.c (expand_inline_function): Don't call
10404 find_loop_tree_blocks. Use expand_start_bindings_and_block, not
10405 just expand_start_bindings. Use the block_map to remap old
10406 NOTE_BLOCKs to new ones.
10407 (integrate_decl_tree): Keep track of remapped blocks.
10408 * integrate.h (struct inline_remap): Add block_map.
10409 * stmt.c (expand_fixup): Don't try to retrofit_blocks. Just set
10410 NOTE_BLOCK on the notes.
10411 (expand_start_bindings): Rename to ...
10412 (expand_start_bindings_and_block): Add parameter. Set NOTE_BLOCK.
10413 (expand_end_bindings): Set NOTE_BLOCK.
10414 * toplev.c (rest_of_compilation): In function-at-a-time-mode,
10415 reconstruct the BLOCK tree.
10416 * tree.h (expand_start_bindings): Macroize. Call ...
10417 (expand_start_bindings_and_block): New function.
10419 1999-12-16 Jakub Jelinek <jakub@redhat.com>
10421 * config/sparc/sparc.c (print_operand): Cast fprintf arguments
10422 to match the format.
10424 1999-12-16 David S. Miller <davem@redhat.com>
10426 * expr.c (emit_move_insn_1): Only emit clobbers if one of
10427 the outputs is a SUBREG.
10428 * rtlanal.c (reg_overlap_mentioned_p): Revert December 15th
10431 * config/sparc/sparc.c (epilogue_renumber): Add default case
10434 Thu Dec 16 11:33:57 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10436 * toplev.c (rest_of_compilation): Run branch shortening after
10439 * regclass.c (loop_depth): Remove
10440 (scan_one_insn): Do not handle LOOP_NOTE insns.
10441 (regclass): Go through basic blocks and set loop_cost
10443 Thu Dec 16 02:56:25 1999 Zack Weinberg <zack@bitmover.com>
10445 * tree.h (DECL_FROM_INLINE): Check DECL_ABSTRACT_ORIGIN too.
10447 Thu Dec 16 10:43:35 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10449 * i386.md (movqi): Use "nonimmediate_operand" for output operand.
10450 (movstrictqi, movdi, movsf, movdf, movxf): Likewise.
10451 (adddi, addqi, addhi, subdi, subqi, subhi, ffs): Likewise.
10453 Thu Dec 16 02:41:26 1999 Richard Henderson (rth@cygnus.com)
10455 * loop.c (insert_loop_mem): Ignore memory clobbers.
10457 * combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0)
10460 Thu Dec 16 02:26:11 1999 Jeffrey A Law (law@cygnus.com)
10462 * profile.c: Remove redundant #include "output.h".
10464 * h8300.md (HImode preinc peephole): Fix typo.
10466 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
10468 * function.c (retrofit_block): Abort if we don't find a suitable insn.
10469 (insert_block_after_note): Abort if we don't have a previous block.
10470 Remove FN parameter.
10471 * function.h: Adjust.
10473 1999-12-15 Mark Mitchell <mark@codesourcery.com>
10475 * builtins.c (expand_builtin_mathfn): Make sure not to expand the
10476 argument more than once.
10478 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
10480 * stmt.c (expand_decl): Expand upper bound of a dynamic array.
10482 1999-12-15 Jakub Jelinek <jakub@redhat.com>
10484 * expr.c (emit_group_load): Use dst mode if src is VOIDmode.
10486 Wed Dec 15 16:11:55 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10488 * function.c (PREFERRED_STACK_BOUDNARY): Provide default value.
10489 (assign_stack_local_1): Limit alignment to PREFERRED_STACK_BOUNDARY,
10490 update stack_alignment_needed.
10491 (prepare_function_start): Initialize stack_alignment_needed
10492 * function.h (struct function): Add field stack_alignment_needed.
10494 Wed Dec 15 14:55:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
10496 * caller-save.c (insert_one_insn): Returns struct insn_chain *.
10497 Handle live_throughout / dead_or_set instead of live_before /
10499 (save_call_clobbered_regs): Get register livenessinformation from
10500 chain->live_throughout.
10501 (add_stored_regs): New function.
10502 (insert_restore, insert_save): Add restored / saved registers to
10504 * global.c (reg_dies): New parameter chain.
10505 (reg_becomes_live): Third parameter is regs_set now.
10506 Changed all callers.
10507 (reg_dies): New parameter chain. Changed all callers.
10508 (build_insn_chain): Set live_throughout instead of
10509 live_before / live_after.
10510 * reload.h (struct insn_chain): Replace members live_before /
10511 live_after with live_throughout / dead_or_set.
10512 * reload1.c (new_insn_chain): Handle live_throughout / dead_or_set
10513 instead of live_before / live_after.
10514 (maybe_fix_stack_asms, find_reload_regs, finish_spills): Likewise.
10515 (order_regs_for_reload, find_reg, finish_spills): Likewise.
10516 (choose_reload_regs_init): Likewise.
10517 * stupid.c (current_chain, find_clobbered_regs): Delete.
10518 (stupid_life_analysis): Set chain->live_throughout chain->dead_or_set
10519 instead of chain->live_before / chain->live_after.
10520 (mark_hard_ref): New function.
10521 (stupid_mark_refs): Call mark_hard_ref. Clear chain->live_throughout.
10523 1999-12-15 David S. Miller <davem@redhat.com>
10525 * rtlanal.c (reg_overlap_mentioned_p): Handle CONCAT.
10527 Wed Dec 15 15:05:30 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10529 * flow.c (calculate_loop_depth): Make global, remove prototype,
10530 rewrite to use new loop infrastructure.
10531 (find_basic_block): Remove calculate_loop_depth call.
10532 * toplev.c (rest_of_compilation): Call find_basic_block.
10533 * output.h (calculate_loop_depth): Declare.
10535 * flow.c (dump_flow_info): Dump loop_depth.
10536 (flow_loops_nodes_find): Increase loop_depth for basic block in the
10538 (flow_loops_find): Initialize the loop_depth for each basic block.
10540 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
10542 * tree.c (decl_function_context): Handle virtual functions.
10544 * tlink.c (scan_linker_output): Don't look in demangled name when
10545 looking for linker output keywords.
10547 * dwarfout.c (output_type): We can defer namespace-scope classes.
10549 Wed Dec 15 01:23:29 1999 Jeffrey A Law (law@cygnus.com)
10551 * regclass.c (record_reg_classes): Update comment for merging
10552 register class preferences in reg->reg copies. Tighten conditions
10553 for merging register class preferences in reg->reg copies.
10555 Wed Dec 15 02:19:32 1999 David Edelsohn <edelsohn@gnu.org>
10557 * rs6000.md (tablejumpdi): Generate DImode LABEL_REF.
10559 1999-12-14 Geoff Keating <geoffk@cygnus.com>
10561 * config/m68k/m68020-elf.h (ENDFILE_SPEC): Delete.
10562 (INIT_SECTION_ASM_OP): Delete.
10563 (FINI_SECTION_ASM_OP): Delete.
10564 (STARTFILE_SPEC): Define to hold just crtbegin.o.
10566 1999-12-14 Jason Merrill <jason@casey.cygnus.com>
10568 * dwarf2out.c (add_abstract_origin_attribute): Do call abort if
10569 the abstract origin wasn't emitted.
10571 * dwarf2out.c (class_scope_p): New fn.
10572 (gen_subprogram_die): Use it.
10573 (gen_variable_die): Use it. Tweak logic.
10574 (gen_struct_or_union_type_die): Check context_die to determine
10575 if we're function-local.
10576 (dwarf2out_decl): Check DECL_BUILT_IN, not DECL_FUNCTION_CODE.
10578 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
10580 * loop.c (check_dbra_loop): Can't reverse a biv that has
10581 maybe_multiple set.
10583 1999-12-14 Nick Clifton <nickc@cygnus.com>
10585 * config/arm/arm.c: Add support for -mcpu=arm720 command line
10588 Tue Dec 14 18:13:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
10590 * loop.c (strength_reduce): Fix sign of giv lifetime calculation
10591 for givs made from biv increments.
10593 Tue Dec 14 08:11:27 1999 Richard Henderson <rth@cygnus.com>
10595 * configure.in (alpha-osf, alpha-linux): Handle ev6[78].
10596 * alpha.c (override_options): Recognize -mcpu=ev67.
10597 * alpha.h (CPP_CPU_EV67_SPEC): New.
10598 (CPP_CPU_DEFAULT_SPEC): Examine TARGET_CPU_DEFAULT to use it.
10599 (EXTRA_SPECS): Update.
10601 Tue Dec 14 08:04:28 1999 Richard Henderson <rth@cygnus.com>
10603 * cppp.c (main): Set trigraphs and __STRICT_ANSI__ as
10604 appropriate for -lang-c89 and -std=*.
10605 * cppinit.c (cpp_handle_option): Likewise.
10606 (new_pending_define): New, split out from cpp_handle_option.
10607 * gcc.c (default_compilers): Don't define __STRICT_ANSI__
10608 or enable trigraphs for -ansi/-std=*.
10610 * ginclude/stdarg.h (__va_copy): New.
10611 (va_copy): Don't define for C89.
10613 Tue Dec 14 08:37:27 CST 1999 Clinton Popetz <cpopetz@cygnus.com>
10615 * config/arm/arm.md (mulsidi3adddi, umulsidi3adddi): New patterns
10616 for long long multiply-accumulate.
10618 Tue Dec 14 13:51:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10620 * regclass.c (scan_one_insn): Set loop_cost to 1 when
10621 optimizing for size.
10623 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
10625 * reload1.c (reload): Can't avoid select_reload_regs/finish_spills
10626 if something changed. Back out that part of yesterday's changes.
10628 * loop.c (loop_max_reg): New static variable.
10629 (loop_optimize): Initialize it. Eliminate one unnecessary call to
10631 (scan_loop): Call reg_scan_update whenever we may have added new
10632 registers, and update loop_max_reg.
10634 Tue Dec 14 12:07:29 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10636 * regclass.c (record_reg_classes): Do not do the copying preferrencing
10637 when source does not die.
10639 * regclass.c (record_reg_classes): Handle INOUT operands propertly.
10641 1999-12-14 Jakub Jelinek <jakub@redhat.com>
10643 * config/sparc/linux64.h (TARGET_LIVE_G0,
10644 TARGET_BROKEN_SAVERESTORE): Don't support weird SPARC
10646 * config/sparc/linux.h (TARGET_LIVE_G0,
10647 TARGET_BROKEN_SAVERESTORE): Likewise.
10648 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
10649 TARGET_BROKEN_SAVERESTORE): Likewise.
10651 * config/sparc/sparc.h (SPARC_DEFAULT_CMODEL): Default to CM_32.
10652 (CONDITIONAL_REGISTER_USAGE): For block profiling fix %g4 on sparc64,
10654 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Use %g4 instead of %g2
10655 as sparc64 block profiling register.
10656 * config/sparc/sparc.c (sparc_override_options): Allow block
10657 profiling with -m32.
10658 (sparc_block_profiler): Use %g4 instead of %g2 as sparc64 block
10659 profiling register.
10660 * config/sparc/linux64.h (MACHINE_STATE_*): Only provide these
10661 macros on TARGET_ARCH32. sparc.h has macros good enough for sparc64.
10662 * config/sparc/sol2.h (MACHINE_STATE_*): Likewise.
10664 * config/sparc/xm-sp64.h: Avoid using __sparc_v9__ when testing
10666 * config/sparc/sparc.h: Likewise.
10667 * config/sparc/xm-sysv4-64.h: Likewise.
10668 * config/float-sparc.h: Likewise.
10669 * glimits.h: Likewise.
10670 * longlong.h: Likewise.
10672 * config/sparc/linux64.h (DEFAULT_VTABLE_THUNKS): Define to 1.
10673 (ASM_IDENTIFY_GCC): Remove.
10675 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
10677 * combine.c (combine_simplify_rtx): Don't make shared rtl.
10678 (simplify_logical): Likewise.
10680 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
10682 * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin.
10683 * cppfiles.c (INO_T_EQ): Likewise.
10685 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
10687 * i386/crtdll.h (STARTFILE_SPEC): Add -pg profiling support.
10688 * i386/mingw32.h (LIB_SPEC): Likewise.
10689 (STARTFILE_SPEC): Likewise.
10690 * i386/uwin.h (LIB_SPEC): Likewise.
10691 (STARTFILE_SPEC): Likewise.
10693 * i386/mingw32.h (SUBTARGET_PROLOGUE): Override Cygwin definition.
10694 * i386/uwin.h (SUBTARGET_PROLOGUE): Likewise.
10696 Mon Dec 13 20:25:29 1999 Jeffrey A Law (law@cygnus.com)
10698 * combine.c (combine_simplify_rtx): Fix order of checks for
10699 (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
10701 1999-12-13 Clinton Popetz <cpopetz@cygnus.com>
10703 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi) Backed out
10704 12/10/99 change, reapplied to merged-arm-thumb-backend-branch.
10706 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
10708 * hard-reg-set.h (inv_reg_alloc_order): Declare if REG_ALLOC_ORDER is
10710 * regclass.c (inv_reg_alloc_order): New array.
10711 (regclass_init): If REG_ALLOC_ORDER is defined, initialize it.
10713 * reload.h (struct insn_chain): Delete fields group_size, group_mode,
10714 counted_for_groups, counted_for_nongroups. Add fields rld and
10716 * reload.c (push_secondary_reload): Don't set nongroup field of
10718 (push_reload): Likewise.
10719 (find_reloads): Delete code to compute nongroup fields.
10720 * reload1.c (reload_insn_firstobj): New static variable.
10721 (pseudos_counted, spilled_pseudos): Now of type regset_head. All
10723 (calculate_needs, find_tworeg_group, find_group, possible_group_p,
10724 count_possible_groups, modes_equiv_for_class_p, new_spill_reg,
10725 dump_needs, maybe_mark_pseudo_spilled, hard_reg_use_compare): Delete
10727 (count_pseudo, select_reload_regs, copy_reloads, find_reg): New
10729 (struct hard_reg_n_uses): Deleted.
10730 (potential_reload_regs): Deleted.
10731 (init_reload): Initialize spilled_pseudos and pseudos_counted.
10732 (reload): Don't try to allocate reload registers if we already know
10733 we have to make another pass. Call select_reload_regs. Free memory
10734 starting with reload_firstobj when starting another pass.
10735 Don't allocate spilled_pseudos.
10736 (calculate_needs_all_insns): Call copy_reloads for an insn that
10737 needs reloads; don't call calculate_needs.
10738 (spill_cost): New static array.
10739 (used_spill_regs_local): New static variable.
10740 (order_regs_for_reload): Rewrite to lose hard_reg_n_uses and the code
10741 to compute potential_reload_regs.
10742 (find_reload_regs): Completely rewritten to use find_reg.
10743 (allocate_reload_reg): Don't test counted_for_groups or
10744 counted_for_nongroups. Lose NOERROR arg and code to give an error;
10745 all cllers changed.
10746 (choose_reload_regs): Add fallback code that uses the existing
10747 register allocation from find_reload_regs.
10749 Mon Dec 13 00:54:14 1999 Philippe De Muyter <phdm@macqel.be>
10751 * flow.c (create_edge_list): Cast xmalloc return value.
10753 Mon Dec 13 00:47:58 1999 Jeffrey A Law (law@cygnus.com)
10755 * doprnt.c: Remove incorrect comment closure.
10757 * cse.c: Fix a few minor whitespace goofs.
10759 1999-12-13 Don Bowman <don@pixstream.com>
10761 * mips/vxworks.h: Fix problem with comment termination.
10762 (EXTRA_SECTIONS): Add in_sbss.
10763 (EXTRA_SECTION_FUNCTIONS): Corresponding changes.
10765 1999-12-12 David S. Miller <davem@redhat.com>
10767 * cse.c (struct cse_reg_info): Add hash_next member,
10768 reorder rest of struct for better packing on 64-bit
10770 (cse_reg_info_tree): Kill.
10771 (REGHASH_SHIFT, REGHASH_SIZE, REGHASH_MASK, reg_hash,
10772 REGHASH_FN): New custom pow2 hash mechanism.
10774 (HASH_SHIFT, HASH_SIZE, HASH_MASK, HASH, table): Rework to
10775 use a pow2 hash table.
10776 (get_cse_reg_info): Rework to use new REGHASH.
10777 (new_basic_block): Likewise, use HASH_SIZE, and inline
10779 (remove_from_table): Rework to use HASH_SIZE/HASH_MASK,
10780 and inline free_element call.
10781 (lookup_as_function, insert, flush_hash_table, invalidate,
10782 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
10783 invalidate_for_call, use_related_value, find_comparison_args,
10784 fold_rtx, equiv_constant, cse_insn, invalidate_memory): Likewise.
10785 (hash_cse_reg_info, cse_reg_info_equal_p, free_element,
10786 get_element): Kill.
10788 Sun Dec 12 21:31:44 1999 Jeffrey A Law (law@cygnus.com)
10790 * cse.c (cse_basic_block): Free qty_table consistently.
10792 1999-12-12 David S. Miller <davem@redhat.com>
10793 Jakub Jelinek <jakub@redhat.com>
10795 * config/sparc/sparc.md (movtf reg/reg split): Don't generate
10796 SUBREGs by hand, gen the appropriate hard reg directly.
10797 (movtf reg/mem split): Likewise and alter_subreg on destination
10799 (movtf mem/reg split): Similarly.
10800 (movdf_cc_sp64): Rename from hidden pattern.
10801 (movtf_cc_hq_sp64): Renamed from movtf_cc_sp64.
10802 (movtf_cc_sp64, following split): New pattern and splitter.
10803 (movdf_cc_reg_sp64): Rename from hidden pattern.
10804 (movtf_cc_reg_hq_sp64): Renamed from movtf_cc_reg_sp64, require
10806 (movtf_cc_reg_sp64, following split): New pattern and splitter.
10808 1999-12-12 Stephen L Moshier <moshier@mediaone.net>
10810 * loop.c (load_mems): Don't hoist written floating point mem
10813 1999-12-12 Mark Mitchell <mark@codesourcery.com>
10815 * except.h (struct eh_queue): Add `next' pointer.
10816 (struct eh_status): Make x_ehqueue a pointer.
10817 (push_ehqueue): Declare.
10818 (pop_ehqueue): Likewise.
10819 * except.c (expand_eh_region_end): Adjust now that ehqueue is a
10821 (expand_fixup_region_end): Likewise.
10822 (expand_leftover_cleanups): Likewise.
10823 (push_ehqueue): Define.
10824 (pop_ehqueue): Likewise.
10825 (emit_cleanup_handler): Use push_ehqueue and pop_ehqueue rather
10826 than doing it inline.
10827 (expand_start_all_catch): Adjust now that ehqueue is a
10829 (mark_eh_queue): Mark all level of the queue.
10830 (mark_eh_status): Adjust now that ehqueue is a
10832 (init_eh_for_function): Allocate ehqueue.
10833 (free_eh_status): Free it.
10834 * stmt.c (expand_cleanups): Save the ehqueue around the cleanup
10835 expansion for a fixup.
10837 1999-12-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10839 * gthr-single.h (__gthread_active_p): Add prototype arguments.
10841 * libgcc2.c (__udivmoddi4): Remove unnecessary decls.
10842 (__dummy, __builtin_saveregs, __bb_exit_trace_func, __bb_init_prg,
10843 __bb_trace_func, __bb_trace_func_ret, __bb_trace_ret,
10844 function_ptr, getpagesize, __enable_execute_stack,
10845 __enable_execute_stack, __clear_insn_cache,
10846 __enable_execute_stack, __do_global_dtors, __do_global_ctors,
10847 _cleanup, _exit, __default_terminate, __terminate_func,
10848 __terminate, __empty, __throw, new_eh_context,
10849 eh_context_initialize, eh_context_static, eh_context_specific,
10850 get_eh_context, __get_eh_context, __get_eh_info,
10851 init_reg_size_table, eh_threads_initialize,
10852 __get_dynamic_handler_chain, __sjthrow, __sjpopnthrow,
10853 __unwinding_cleanup, throw_helper, __throw, __rethrow,
10854 __pure_virtual): Add prototype arguments.
10855 (__bb_exit_func): Cast a sizeof to long when comparing against one.
10856 Cast a signed value to unsigned long when comparing against one.
10857 (new_eh_context): Wrap in _GTHREADS macro.
10858 (__sjthrow, __sjpopnthrow): Initialize variable `cleanup' at
10860 (in_reg_window): Mark parameters with __attribute__ ((__unused__)).
10861 (throw_helper): Initialize variables `handler_p' and `pc_p'.
10863 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10865 * combine.c (record_promoted_value): Remove unused variable
10868 * emit-rtl.c (renumber_insns): Likewise for `old_max_uid'.
10870 * global.c (record_conflicts): Likewise for `j'.
10872 * genoutput.c (output_insn_data): Don't unnecessarily cast away
10875 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10877 * i386-protos.h (output_387_binary_op, output_fix_trunc,
10878 output_fp_compare): Constify a char*.
10880 * i386.c (ix86_split_to_parts, ix86_safe_length_prefix): Add
10882 (override_options, ix86_comp_type_attributes, print_operand,
10883 output_387_binary_op, output_fix_trunc, output_fp_compare):
10885 (ix86_sched_reorder): Mark parameter `clock_var' with
10888 * i386.h (DEBUG_PRINT_REG): Constify a char*.
10890 Fri Dec 10 16:12:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
10892 * tree.def (EXPR_WITH_FILE_LOCATION): Temporarily add a third
10893 operand, for use in the Java front-end.
10895 1999-12-10 Ben Collins <bcollins@debian.org>
10897 * configure.in: Fix typo for "-64" in 64bit as check.
10898 * configure: Rebuilt.
10900 1999-12-10 Jakub Jelinek <jakub@redhat.com>
10902 * longlong.h (__sparc_v9__): Use %rDIGIT instead of %DIGIT where
10905 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10907 * c-parse.in (string): With -Wtraditional, warn if ANSI string
10908 concatenation is utilized.
10910 * invoke.texi (-Wtraditional): Document it.
10912 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10914 * flow.c (flow_loops_dump): Avoid ANSI string concatenation.
10915 Cast a ptrdiff_t to long and pass it to printf with %ld.
10917 1999-12-10 Geoff Keating <geoffk@cygnus.com>
10919 * config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no
10920 68881, we have no 68881 registers at all.
10921 (HARD_REGNO_MODE_OK): It is always OK to put a MODE_FLOAT
10922 value in a 68881 register if it is available.
10924 1999-12-10 Clinton Popetz <cpopetz@cygnus.com>
10926 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi): New patterns
10927 for long long multiply-accumulate.
10929 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
10931 * loop.c (insert_loop_mem): Undo last change.
10933 1999-12-10 David S. Miller <davem@redhat.com>
10935 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p, fp_high_losum_p):
10937 * config/sparc/sparc-protos.h: Add them.
10938 * config/sparc/sparc.h: Add them to PREDICATE_CODES.
10939 (EXTRA_CONSTRAINT_BASE): New macro, handling Q, R, and S
10940 constraints which use those helpers.
10941 (EXTRA_CONSTRAINT): Use this new macro.
10942 * md.texi: Update sparc target constraints documentation.
10943 * config/sparc/sparc.md (clear_sf, clear_sfp, movsf_const_intreg,
10944 movsf_const_high, movsf_const_lo, movsf_insn): Delete.
10945 (movsf_insn_novis_liveg0, movsf_insn_novis_noliveg0,
10946 movsf_insn_vis, movsf_lo_sum, movsf_high): New patterns.
10947 (movsf high/lo_sum split): Rework for new patterns.
10948 (movsf expander): Allow storing fp_zero to memory if ! live_g0.
10950 1999-12-09 Gavin Romig-Koch <gavin@cetus.cygnus.com>
10952 * c-common.c (c_common_nodes_and_builtins):
10953 Create __builtin_ptrdiff_t and __builtin_size_t.
10955 Thu Dec 9 18:05:48 1999 Jeffrey A Law (law@cygnus.com)
10957 * pa/elf.h (MAX_OFILE_ALIGNMENT): Define.
10959 Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
10961 * regclass.c (globalize_reg): Re-instate test that allows
10962 fixed registers to be declared as a variable even after functions
10965 Fri Dec 10 00:52:13 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10967 * i386.md (cpu attribute): Add "athlon".
10968 (athlon_decode): New attribute.
10969 (Athlon scheduling units definitions): New.
10970 (fcmp and shld patterns): Set athlon_decode to "vector".
10971 * i386.c (athlon_cost): New.
10973 (x86_use_leave, x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
10974 x86_use_sahf): Set for Athlon.
10975 (x86_use_fiop): Unset for Athlon.
10976 (override_options): Define Athlon alignments and "athlon" name.
10977 (x86_adjust_cost): Penalize AGI and delayed latencies for Athlon.
10978 * i386.h (TARGET_ATHLON): New.
10979 (enum processor_type): Add PROCESSOR_ATHLON.
10980 (TARGET_CPU_DEFAULT_SPEC): Set to "-D__tune_athlon__"
10982 (TARGET_CPP_CPU_SPECS): Set -D__tune_athlon__ for Athlon.
10984 1999-12-09 Andreas Jaeger <aj@suse.de>
10986 * loop.c (record_biv): Declare parameter as int.
10988 * config/i386/i386-protos.h: Declare long_memory_operand.
10990 1999-12-09 Mark Mitchell <mark@codesourcery.com>
10992 * tree.c (copy_node): Do zero the TREE_CHAIN, even for an
10993 EXPR_WITH_FILE_LOCATION.
10995 Thu Dec 9 11:36:24 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10997 * i386.md (neg??, abs?f, one_cmpl?i): Use nonimmediate_operand
11000 * flow.c (recompute_reg_usage): Use basic block info to get loop_depth.
11002 * combine.c (try_combine, distribute_notes): Remove REG_N_REFS
11005 1999-12-09 Jakub Jelinek <jakub@redhat.com>
11007 * config/sparc/linux64.h (TARGET_DEFAULT): Make -mapp-regs
11008 default on linux64 again.
11009 * config/sparc/t-linux64: Add mno-app-regs and non-medlow code
11010 models for multilibing.
11011 * genmultilib: Accept | as alternative separator within a set in
11014 * config/sparc/sparc.h (PROMOTE_FOR_CALL_ONLY): Define.
11016 * calls.c (precompute_arguments): Make sure initial_value contains
11017 value pseudo which CSE expects.
11018 * cse.c (struct set): New entry orig_src.
11019 (cse_insn): Set it early on entry, use it for libcall EQUIV note
11022 Wed Dec 8 22:24:15 1999 Richard Henderson <rth@cygnus.com>
11024 * flow.c (count_basic_blocks): Don't add (use (const_int 0)) insns.
11026 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
11028 * loop.c (insert_loop_mem): Don't hoist volatile mems out of loops.
11030 1999-12-08 Jakub Jelinek <jakub@redhat.com>
11032 * config/sparc/sparc.c (ultra_cmove_results_ready_p,
11033 ultra_fpmode_conflict_exists, ultra_flush_pipeline): Typo fix.
11035 * config/sparc/sparc.h (SPARC_SETHI_P): Don't look at topmost 32 bits
11038 * longlong.h: Merge in changes from glibc.
11039 Also don't clobber %g2 register in 32bit SPARC assembly, so that
11040 -mno-app-regs libgcc can be compiled.
11041 * libgcc2.c: Add defines so that the updated longlong.h
11042 can be used in libgcc2.a. Also, make sure on most architectures
11043 (at least on all which have optimized code in longlong.h defined
11044 for) {SI,W}_TYPE_SIZE is suitable for preprocessor tests.
11046 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11048 * config/sparc/sol2-64.h: Same as sol2-sld-64.h, except that
11049 `-m EMULATION' is added to non-default LINK_ARCH_SPECs.
11050 * configure.in: Use sol2-64.h instead of sol2-sld-64.h if linker
11052 * configure: Rebuilt.
11054 Wed Dec 8 03:45:40 1999 Richard Henderson <rth@cygnus.com>
11056 * alpha.c (secondary_reload_class): For !BWX, sub-simode
11057 outputs require a register.
11059 1999-12-08 Brendan Kehoe <brendan@cygnus.com>
11061 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS): Add _sf_to_usi
11062 _df_to_usi. Required by some targets, so US_SOFTWARE_GOFAST calls to
11063 functions like dptoul will be resolved.
11064 (libgcc2.a): Make sure that the object files from DPBIT are named
11065 differently (prefix `_dp') from those that would be coming from
11068 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Jakub Jelinek <jakub@redhat.com>
11070 * configure.in: When target is sparc* and tm_file contains 64,
11071 test for 64bit support in assembler. If not supported, remove
11072 sparc/t-sol2-64 from target-dependent Makefile fragments.
11073 (AS_SPARC64_FLAG): Define to the assembler flag for 64bit.
11074 (HAVE_AS_OFFSETABLE_LO10): Rework test to use these flags.
11075 (HAVE_AS_REGISTER_PSEUDO_OP): Use config.cache.
11076 * acconfig.h (AS_SPARC64_FLAG): Added.
11077 * configure, config.in: Rebuilt.
11078 * config/sparc/sol2-sld-64.h: Same as sol2.h, if without 64bit
11079 support. Use AS_SPARC64_FLAG.
11081 1999-12-07 Jakub Jelinek <jakub@redhat.com>
11083 * config/sparc/sparc.c (hard_32bit_mode_classes): Mark registers
11084 suitable for holding OFmode values so that gcc works with complex
11086 (hard_64bit_mode_classes): Likewise.
11088 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): Fix pattern
11089 so that it is actually matched.
11090 (sethi_di_medlow): Likewise.
11092 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Consider TFmode 0.0L
11093 as legitimate constant if -mvis.
11094 * config/sparc/sparc.md (movtf): Likewise.
11095 (clear_sf): Use const_double_operand.
11096 (clear_sfp, clear_dfp, clear_tf, clear_tfp): New patterns.
11098 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): New function.
11099 * config/sparc/sparc-protos.h (sparc_emit_float_lib_cmp): Prototype.
11100 * config/sparc/sparc.h (*_LIBCALL): Only use for _Q_*
11101 routines, _Qp_* cannot be handled like that now.
11102 (INIT_TARGET_OPTABS): Likewise.
11103 * config/sparc/sparc.md (cmptf): Accept soft float ARCH64.
11104 (seq, sne, sgt, sge, slt, sle, beq, bne, bgt, bge, blt, ble): Call
11105 sparc_emit_float_lib_cmp if ARCH64 and soft float.
11106 (extendsftf2, extenddftf2, trunctfsf2, trunctfdf2, floatsitf2,
11107 floatditf2, fix_trunctfsi2, fix_trunctfdi2, addtf3, subtf3, multf3,
11108 divtf3, sqrttf3): New expanders.
11109 (extendsftf2_hq, extenddftf2_hq, trunctfsf2_hq, trunctfdf2_hq,
11110 floatsitf2_hq, floatditf2_hq, fix_trunctfsi2_hq, fix_trunctfdi2_hq,
11111 addtf3_hq, subtf3_hq, multf3_hq, divtf3_hq, sqrttf3_hq): Rename from
11114 * configure.in (sparc64-*-linux*): Use posix threads if enabled.
11115 * configure: Rebuilt.
11116 * config/sparc/linux64.h: Default to -mcpu=ultrasparc if no
11117 -mcpu is given and we're doing 64bit compiles.
11119 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
11121 * loop.h (struct induction): Add multi_insn_incr.
11122 * loop.c (basic_induction_var): New multi_insn_incr argument.
11123 Set it if we search back through previous insns for the biv.
11124 (record_biv): New multi_insn_incr argument; fill in struct induction.
11125 (strength_reduce): Discard an iv with multiple bivs, any of
11126 which require multiple insns to increment.
11128 1999-12-07 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11130 * invoke.texi (C Dialect Options): Remove -flang-c9x, add -std
11133 1999-12-06 David S. Miller <davem@redhat.com>
11135 * combine.c (check_promoted_subreg): Do not conditionalize this upon
11136 PROMOTE_FUNCTION_RETURN.
11138 Mon Dec 6 15:12:14 1999 Jim Wilson <wilson@cygnus.com>
11140 * regmove.c (optimize_reg_copy_1): If no REG_DEAD note, check for
11141 and handle REG_UNUSED note on insn.
11143 * combine.c (force_to_mode, case LSHIFTRT): New local inner_mask. Set
11144 inner_mask instead of mask.
11146 1999-12-06 Brendan Kehoe <brendan@cygnus.com>
11148 * dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be
11149 zero if there was an error.
11151 1999-12-06 Jakub Jelinek <jakub@redhat.com>
11153 * config/sparc/sparc.md (return_losum_di): Fix typo in asm
11156 * longlong.h: Fix clobbers in SPARC asm statements.
11158 * config/sparc/sparc.c (input_operand): Allow HImode and QImode
11159 valid sethi operations when TARGET_ARCH64.
11161 * calls.c (save_fixed_argument_area): If save_mode is BLKmode,
11162 always use move_by_pieces to avoid infinite recursion.
11163 (restore_fixed_argument_area): Likewise.
11165 * combine.c (check_promoted_subreg, record_promoted_value): New
11167 (combine_instructions): Use them to retain nonzero and sign bit
11168 information after SUBREGs are eliminated by optimizations in
11169 this pass if PROMOTE_FUNCTION_RETURN.
11171 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Document
11172 .register declaration. Don't use variables with __ prefixes.
11174 Mon Dec 6 12:24:52 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11176 * fold-const.c (optimize_bit_field_compare): Only use one mode
11177 for both RHS and LHS in non-constant case.
11179 1999-12-06 Nathan Sidwell <nathan@acm.org>
11181 * frame.c (start_fde_sort): Only allocate erratic array, if
11182 linear one was allocated. Return allocated flag.
11183 (fde_insert): Only insert, if there's a valid array.
11184 (fde_end_sort): Split, sort and merge if linear and erratic
11185 arrays exist, else just sort linear one.
11186 (search_fdes): New function. Linear search through original fde
11188 (frame_init): Permit multiple initializations. Cope with
11190 (find_fde): Fallback on linear search, if failed to sort array.
11191 (__deregister_frame_info): Only free sorted array, if we
11194 1999-12-06 Jakub Jelinek <jakub@redhat.com>
11196 * config/sparc/sparc.h (MUST_PASS_IN_STACK): New macro.
11198 1999-12-05 Jakub Jelinek <jakub@redhat.com>
11200 * config/sparc/sparc.c (sparc64_initialize_trampoline): Use gen_flushdi.
11202 1999-12-05 Mark Mitchell <mark@codesourcery.com>
11204 * tree.h (special_function_p): Declare.
11205 * calls.c (special_function_p): Make it global. Don't take `name'
11206 as a parameter. Fix typo in 1999-11-28 change.
11207 (expand_cal): Adjust.
11209 1999-12-04 Mark Mitchell <mark@codesourcery.com>
11211 * tree.def (EXPR_WITH_FILE_LOCATION): Fix comment formatting.
11212 * tree.h (EXPR_WFL_FILENAME): Define in terms of
11213 EXPR_WFL_FILENAME_NODE.
11214 (EXPR_WFL_FILENAME_NODE): Use the second operand slot rather than
11216 * print-tree.c (print_note): Print TREE_PRIVATE and
11219 * dwarf2out.c (add_abstract_origin_attribute): Don't abort when
11220 the original die cannot be found.
11222 * varray.h (varray_head_tag): Add elements_used.
11223 (VARRAY_PUSH): New macro.
11224 (VARRAY_POP): Likewise.
11225 (VARRAY_TOP): Likewise.
11226 Add variants of VARRAY_PUSH and VARRAY_POP for all varray element
11228 * varray.c (varray_init): Initialize elements_used.
11229 * Makefile.in (BASIC_BLOCK_H): Add varray.h.
11230 (INTEGRATE_H): New variable.
11231 (integrate.o): Depend on INTEGRATE_H.
11232 (unroll.o): Likewise.
11234 * function.h (insert_block_after_note): Declare.
11235 * function.c (insert_block_after_note): Split out from ...
11236 (retrofit_block): ... here.
11238 * stmt.c (expand_fixup): Fix typo in comment.
11240 Sat Dec 4 14:13:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11242 * regmove.c (copy_src_to_dest): Remove loop_depth parameter.
11243 (optimize_reg_copy_1): Remove REG_N_REFS updating code.
11244 (optimize_reg_copy_2, copy_src_to_dest, fixup_match_2): Likewise.
11245 (regmove_optimize, fixup_match_1): Likewise.
11247 1999-12-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11249 * flow.c (flow_loops_dump): Add missing argument when calling
11250 flow_loop_nested_p.
11252 1999-12-04 Geoffrey Keating <geoffk@cygnus.com>
11253 Greg McGary <gkm@gnu.org>
11255 * c-common.c (enum attrs): Add A_NO_LIMIT_STACK.
11256 (init_attributes): Add A_NO_LIMIT_STACK.
11257 (decl_attributes): Handle A_NO_LIMIT_STACK.
11258 * c-decl.c (duplicate_decls): Handle DECL_NO_LIMIT_STACK.
11259 * explow.c (allocate_dynamic_stack_space) [!HAVE_allocate_stack]:
11260 Handle stack bounds checking.
11261 * flags.h (flag_stack_check): Use the word 'probe' rather than
11262 'check', because the flag doesn't actually cause any checking to
11264 * function.c (expand_function_start): Set
11265 current_function_limit_stack.
11266 * function.h (struct function): Add limit_stack.
11267 (current_function_limit_stack): Define.
11268 * invoke.texi (Code Gen Options): Document new options.
11269 * rtl.h: Declare stack_limit_rtx.
11270 * toplev.c (stack_limit_rtx): New variable.
11271 (decode_f_option): Handle new options -fstack-limit-register=REG,
11272 -fstack-limit-symbol=IDENT, -fno-stack-limit.
11273 (main): Add stack_limit_rtx as GC root.
11274 * tree.h (DECL_NO_LIMIT_STACK): New macro.
11275 (struct tree_decl): New member no_limit_stack.
11277 * config/rs6000/rs6000.c (rs6000_allocate_stack_space): Handle
11279 * config/rs6000/rs6000.md (allocate_stack): Handle stack_limit_rtx.
11280 (conditional_trap+1): Get new mnemonic correct.
11281 (conditional_trap+2): New pattern for DImode traps.
11283 * config/m68k/m68k.c (output_function_prologue): Handle
11285 * config/m68k/m68k.md (trap): New insn.
11286 (conditional_trap): New insn.
11287 * md.texi (Standard Names): Document `trap' and
11288 `conditional_trap'.
11289 * optabs.c (gen_cond_trap): Use start_sequence()/end_sequence()
11290 so a cc0 setter doesn't get emitted at some random place in the
11293 * config/i960/i960.md (trap): New insn.
11294 (conditional_trap): New expander.
11295 (conditional_trap+1, conditional_trap+2): New insns for signed
11296 and unsigned cases.
11297 * config/i960/i960.c (i960_function_prologue): Use
11298 STARTING_FRAME_OFFSET. Handle stack_limit_rtx.
11300 Thu Dec 2 21:22:45 1999 Greg McGary <gkm@gnu.org>
11301 Geoffrey Keating <geoffk@cygnus.com>
11303 * flags.h (warn_padded, warn_packed): Add global var decls.
11304 * toplev.c (warn_padded, warn_packed): Add global var defns.
11305 (W_options): Add warnings `-Wpacked' and `-Wpadded'.
11306 * stor-layout.c (layout_record): Add local variable `type'
11307 to hold often-used TREE_TYPE (field). Add local variable
11308 `unpacked_align' to hold alignment that would be in force
11309 if no `packed' attribute were present. Warn if `packed' attribute
11310 is unnecessary, or even harmful. Warn when gcc inserts padding
11311 to satisfy alignment requirements of members. Use NULL_TREE
11312 when checking whether var_size is set.
11313 * invoke.texi: Document new flags.
11315 1999-12-03 Nathan Sidwell <nathan@acm.org>
11317 * frame.c (fde_split): Reimplement to avoid variable sized array.
11319 Thu Dec 2 18:59:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11321 * combine.c (try_combine): Before fixing up LOG_LINKS for the
11322 i3_subst_into_i2 case, check that GET_CODE (PATTERN (i2)) == PARALLEL.
11324 1999-12-02 Gavin Romig-Koch <gavin@cygnus.com>
11326 * invoke.texi: Document the mips option -mno-crt0
11328 1999-12-02 Mike Karr <mkarr@mathworks.com>
11330 * cccp.c (argdata): Added free_ptr member.
11331 (macroexpand): Initialize free_ptr of each argument. When an
11332 argument's buffers are freed, if the argument's free_ptr corresponds
11333 to a buffer on the input stack, then return the free_ptr to that stack
11334 frame, otherwise, free it.
11335 (macarg): If an argument begins and ends on the same input stack level,
11336 then transfer the free_ptr of that buffer to the argument in case
11337 the stack is popped during the processing of a subsequent argument.
11339 1999-12-02 Bernd Schmidt <bernds@cygnus.co.uk>
11341 * loop.c (note_reg_stored): New function.
11342 (struct note_reg_stored_arg): New structure.
11343 (try_copy_prop): Change to be more conservative; only replace within
11344 one extended basic block and stop replacing if a store to the
11345 replacement reg is seen.
11347 1999-12-02 Nick Clifton <nickc@cygnus.com>
11349 * config/fp-bit.c: Initialise all fields of the NAN
11352 * c-lex.c (check_newline): Pass pragma_getc and pragma_ungetc
11355 Wed Dec 1 18:16:38 1999 Jan Hubicka <hubicka@freesoft.cz>
11357 * i386.md (extend?f?f2): Force the input into a register, not
11360 1999-12-01 Jakub Jelinek <jakub@redhat.com>
11362 * config/sparc/sparc.md (movsf_const_intreg): Add constraints for
11364 (movdf_const_intreg_sp32): Likewise. Prefer the memory load
11365 alternative because setting up 64bit constant is usually costly,
11366 especially when reload is in progress or completed.
11367 (movdf_const_intreg_sp64): Likewise.
11368 (movdf_const_intreg split): Fix building up constants when
11369 HOST_BITS_PER_WIDE_INT is 64 yet long is 32bit.
11371 Wed Dec 1 16:51:22 1999 Jeffrey A Law (law@cygnus.com)
11373 * combine.c (if_then_else_cond): Use const_true_rtx instead of
11374 const1_rtx for return values in EQ/NE comparison against (const_int 0)
11377 * mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers.
11378 (asm_file_start): Emit .am33 into assembly file when compiling for
11380 (print_operand_address): Handle POST_INC addresses.
11381 (can_use_return_insn, initial_offset): Check AM33 registers too.
11382 (expand_prologue): Check & save AM33 registers too.
11383 (expand_epilogue): Similarly.
11384 (secondary_reload_class): Handle AM33 specific secondary reloads.
11385 (output_tst): Emit efficient code for the AM33 too.
11386 * mn10300.h (CPP_SPEC, TARGET_AM33): Define.
11387 (TARGET_SWITCHES): Add -mam33 switch.
11388 (FIRST_PSEUDO_REGISTER): Handle new AM33 registers.
11389 (FIXED_REGISTERS, CALL_USED_REGISTERS): Likewise.
11390 (REG_ALLOC_ORDER, CONDITIONAL_REGISTER_USAGE): Likewise.
11391 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P): Likewise.
11392 (enum reg_class, REG_CLASS_NAMES): Likewise.
11393 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Likewise.
11394 (INDEX_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
11395 (REGNO_OK_FOR_INDEX_P, PREFERRED_RELOAD_CLASS): Likewise.
11396 (PREFERRED_OUTPUT_RELOAD_CLASS, LIMIT_RELOAD_CLASS): Likewise.
11397 (REGISTER_MOVE_COST, REGISTER_NAMES): Likewise.
11398 (HAVE_POST_INCREMENT): Define.
11399 (GO_IF_LEGITIMATE_ADDRESS): Allow POST_INC addresses for the AM33.
11400 (GO_IF_MODE_DEPENDENT_ADDRESS): POST_INC is a mode dependent address.
11401 * mn10300.md (movqi, movhi, addsi, subsi): Add AM33 variants.
11402 (mulsi, andsi, iorsi, xorsi, notsi): Likewise.
11403 (ashiftsi, lshiftrtsi, ashiftrtsi): Likewise.
11404 (zero_extend to SI from QI/HI): Likewise.
11405 (sign_extend to SI from QI/HI): Likewise.
11406 (mulsidi3, umulsidi3): New patterns for the AM33.
11407 (tstsi with zero extension from QI/HI): Add AM33 variants.
11408 (movsi, movsf, movdi, movdf): Generate efficient code for the AM33 too.
11409 (return_internal_regs, store_movm): Handle new AM33 registers.
11410 * t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Define.
11411 (LIBGCC, INSTALL_LIBGCC): Likewise.
11412 * invoke.texi: Document new flags.
11414 Fri Nov 26 10:59:12 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
11416 * i386.md (addsi3_cc): Add "binary_operator_ok" to the condition.
11417 (addsi3_carry): Likewise.
11418 (sbbsi3_cc): Add "binary_operator_ok" to the condition.
11419 (sbbsi3_carry): Likewise.
11420 (mulsi3): Rewrite to expander, ensure that only one operand is memory.
11421 (mulhi3): Likewise.
11422 (test?i_1): Ensure that only one operand is memory.
11423 (conditional move patterns): likewise.
11424 (shift and rotate patterns): Rewrite to expander, add
11425 "binary_operator_ok" to the condition.
11427 * i386.md (QImode patterns): Remove '*' before the 'r' constraints.
11428 * i386.h (procesor_costs): Add movzbl_load field.
11429 (HARD_REGNO_MODE_OK): Accept QImode on non PARTIAL_REGISTER_STALL in
11430 non-Q registers, accept DImode registers anywhere.
11432 (MEMORY_MOVE_COST): Calculate QImode moves correctly.
11433 * i386.c (*_cost): Set value for movxbl_load field.
11435 * (addsi): New add to lea splitter.
11436 (ashlsi): Likewise.
11437 (lea to add/shift peep2): New.
11439 1999-12-01 Mark Salter <msalter@cygnus.com>
11441 * config/mips/elf.h (STARTFILE_SPEC): Add no-crt0.
11442 * config/mips/elf64.h (STARTFILE_SPEC): Add no-crt0.
11443 * config/mips/mips.h (TARGET_SWITCHES): Add no-crt0.
11445 Tue Nov 30 15:20:52 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11447 * i386.c (ix86_expand_move): Never add clobbers to move patterns.
11448 * i386.md (movsi_xor): New.
11450 (movsi_1, movhi_1, movqi_1): Remove.
11451 (movsi_2): Rename to movsi_1.
11452 (movhi_2): Rename to movhi_1.
11453 (movqi_2): Rename to movqi_1.
11454 (movdi_1): Remove; remove splitter.
11455 (movdi_2): Rename to movdi_1.
11456 (divmodsi4 splitter): Do not emit clobbers for move patterns.
11457 (long move peep2): Do not create QI or HI mode mov0s
11458 (mov -1,reg -> or peep2s): Enable again, rewrite to single peephole.
11460 * i386.md (zero_extend?i?i2): Rewrite to expanders; new patterns,
11463 * i386.md (neg?f2_if): Split "r" and "f" to separate alternatives.
11464 (abs?f2_if): Likewise.
11466 1999-11-30 Alex Samuel <samuel@codesourcery.com>
11468 * ggc.h (ggc_test_and_set_mark): New macro.
11469 (ggc_mark_rtx): Use ggc_test_and_set_mark.
11470 (ggc_mark_tree): Likewise.
11471 (ggc_mark_rtvec): Likewise.
11472 * ggc-common.c (ggc_mark_rtx_children): Reduce recursion.
11474 1999-11-30 Jason Merrill <jason@casey.cygnus.com>
11476 * dwarf2out.c (scope_die_for): Only handle types. Only search for
11478 (decl_scope_table): Just an array of trees now.
11479 (push_decl_scope): Simplify.
11480 (dwarf2out_init): Adjust.
11481 (local_scope_p): New fn.
11482 (gen_inlined_enumeration_type_die): Don't call scope_die_for.
11483 (gen_inlined_union_type_die, gen_inlined_structure_type_die): Likewise.
11484 (gen_typedef_die): Likewise.
11485 (gen_lexical_block_die): Don't call push/pop_decl_scope.
11486 (gen_inlined_subroutine_die): Likewise.
11487 (gen_abstract_function): Set current_function_decl temporarily.
11488 (gen_subprogram_die): Don't check DECL_ABSTRACT to set declaration.
11489 Handle block extern declarations. Don't call push/pop_decl_scope.
11490 (gen_decl_die): Fix logic for block externs.
11492 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11494 * calls.c (special_function_p): Remove `realloc' and add `strdup'
11495 to the list of functions which have attribute malloc by default.
11497 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11499 * c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
11500 integer constant does not match the traditional type, limit the
11501 warnings to cases where the base of the type is ten.
11503 * invoke.texi (-Wtraditional): Document it.
11505 Tue Nov 30 15:18:35 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11507 * combine.c (try_combine): Only pass SET or CLOBBER to SET_DEST
11508 * rs6000.md: Only access a CONST_INT with INTVAL
11510 Tue Nov 30 14:21:00 1999 Richard Henderson <rth@cygnus.com>
11512 * lcm.c (compute_laterin): Cast bb->aux to size_t not int.
11513 (compute_nearerout): Likewise.
11514 * ggc-page.c (ggc_page_print_statistics): Explicitly cast
11515 size_t to unsigned long for formatting.
11517 1999-11-30 Jakub Jelinek <jakub@redhat.com>
11519 * config/sparc/sparc.h (FIXED_REGISTERS, CONDITIONAL_REGISTER_USAGE):
11520 Allow the user to override call-used/fixed state of %g2-5
11521 registers from the command line (with the exception of %g4 for
11523 (REG_LEAF_ALLOC_ORDER): Move %g1 and %g4-7 registers to front, so that
11524 there is a higher chance of having a leaf function.
11525 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Provide separate macros
11526 for ARCH64 which has %ccr register.
11527 * config/sparc/sparc.md (return_losum_si, return_losum_di): New
11529 * config/sparc/sparc.c (eligible_for_epilogue_delay): For the return
11530 insn accept into delay slot any insn which does not use %[ol]
11531 registers. Accept some LO_SUM and shift left by 1 for the normal
11533 (output_function_epilogue): Likewise.
11534 (epilogue_renumber): Added argument which inhibits any renumbering
11535 and just tests if the rtx does not use any %[ol] registers.
11536 (output_return): Reflect above change.
11538 1999-11-30 Jakub Jelinek <jakub@redhat.com>
11540 * config/sparc/sparc.c (sparc_va_arg): Fix sparc64 va_arg
11541 aggregate passing for sizes <= 16 bytes.
11543 1999-11-30 Bernd Schmidt <bernds@cygnus.co.uk>
11545 * cse.c (FIXED_REGNO_P): Delete tests for OVERLAPPING_REGNO_P.
11546 * global.c (global_alloc): Delete [OVERLAPPING_REGNO_P] code.
11547 * reload.c (find_dummy_reload): Likewise.
11548 (find_equiv_reg): Likewise; also for INSN_CLOBBERS_REGNO_P.
11549 * reload1.c (reload_as_needed): Likewise.
11550 * stupid.c (stupid_find_reg): Likewise.
11551 * tm.texi (Obsolete Register Macros): Delete section.
11552 * gmicro.h: Remove all traces of the two macros.
11553 * i386.h: Likewise.
11554 * m88k.h: Likewise.
11555 * mips.h: Likewise.
11557 1999-11-30 Brendan Kehoe <brendan@cygnus.com>
11559 * sparc.h (MASK_FASTER_STRUCTS, TARGET_FASTER_STRUCTS): Define.
11560 (TARGET_SWITCHES): Add -mfaster-structs/-mno-faster-structs flags.
11561 (ROUND_TYPE_ALIGN): Use better value if -mfaster-structs.
11562 * sparc.md (sparclite86x_branch, sparclite86x_shift): New function
11563 units for the sparclite86x chip.
11564 (flush): Revert October 14th change; add SImode specifically.
11565 (flushdi): Copy of flush, but DImode, to avoid genrecog warnings.
11566 * invoke.texi: Document it.
11568 Tue Nov 30 14:58:14 1999 Nick Clifton <nickc@cygnus.com>
11570 * config/mn10200/mn10200.h (PREDICATE_CODES): Add
11571 psimode_truncation_operand.
11573 * config/mn10200/mn10200.c (psimode_truncation_operand): New
11574 function. Return true if the operand is either a MEM valid
11575 for a PSImode address or not a MEM at all.
11577 * config/mn10200/mn10200.md (truncsipsi2): Use
11578 psimode_truncation_operand.
11580 1999-11-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11582 * flow.c (flow_nodes_print, flow_loops_cfg_dump): New functions.
11583 (flow_loop_nested_p, flow_loops_dump, flow_loops_free): Likewise.
11584 (flow_loop_exits_find, flow_loop_nodes_find): Likewise.
11585 (flow_depth_first_order_compute, flow_loop_pre_header_find): Likewise.
11586 (flow_loop_tree_node_add, flow_loops_tree_build): Likewise.
11587 (flow_loop_level_compute, low_loops_level_compute): Likewise.
11588 (flow_loops_find, flow_loop_outside_edge_p): Likewise.
11589 * basic-block.h: Protect from multiple inclusion.
11590 (flow_loops_find, flow_loops_free, flow_loop_dump): Add protoypes.
11591 (struct loops, struct loop): Define structures.
11592 * sbitmap.c (sbitmap_a_subset_b_p): New function.
11593 * sbitmap.h: Protect from multiple inclusion.
11594 (sbitmap_a_subset_b_p): Add prototype.
11595 * Makefile.in (LOOP_H): New macro.
11596 (stmt.o, integrate.o, loop.o, unroll.o): Replace loop.h with LOOP_H.
11598 Tue Nov 30 01:34:47 1999 Philippe De Muyter <phdm@macqel.be>
11600 * cppinit.c (CAT): The argument list of this macro may not contain
11603 1999-11-29 David S. Miller <davem@redhat.com>
11605 Move quantity tables and register equivalence chains into
11606 per-qty and per-register structure arrays respectively.
11607 * cse.c (qty_first_reg, qty_last_reg, qty_mode, qty_const,
11608 qty_const_insn, qty_comparison_code, qty_comparison_const,
11609 qty_comparison_qty): Delete, replace with...
11610 (qty_table): this structure table.
11611 (reg_next_eqv, reg_prev_eqv): Delete, replace with...
11612 (reg_eqv_table): this structure table.
11613 (make_new_qty): Add argument MODE. Caller updated.
11614 Update to use qty_table and reg_eqv_table.
11615 (make_regs_eqv, delete_reg_equiv, insert_regs,
11616 insert, exp_equiv_p, cse_rtx_varies_p, canon_reg,
11617 fold_rtx, equiv_constant, record_jump_cond, cse_insn,
11618 cse_process_notes, cse_main, cse_basic_block): Likewise.
11620 Mon Nov 29 16:56:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11622 * fold-const.c (extract_muldiv, case {MIN,MAX}_EXPR): Reverse
11623 operation if C is negative.
11624 (extract_muldiv, case SAVE_EXPR): Supresss if arg has side effects.
11625 (extract_muldiv, case {PLUS,MINUS}_EXPR): Don't apply distributive
11626 law for some divisions if constant is negative and change other
11627 divisions to the opposite rounding.
11629 * expr.c (store_constructor_field): If bit position is not multiple
11630 of alignment of TARGET's mode, use BLKmode.
11632 * expr.c (expand_expr_unaligned): Add more code from full case
11633 that is needed when OP0 is in a register.
11635 Mon Nov 29 18:09:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11637 * dwarfout.c (field_byte_offset): Size can be zero if there was
11640 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
11642 * fold-const.c (split_tree): Delete unused vars ORIG_IN and TYPE.
11643 (associate_trees): Delete unused var TEM.
11644 (extract_muldiv): Delete unused var CANCEL_P.
11646 * fold-const.c [TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT]
11647 (target_isinf, target_isnan, target_negative): Add return types to
11648 function definitions.
11650 1999-11-29 Bruce Korb <autogen@linuxbox.com>
11652 * fixinc/fixincl.c(process): don't skip GLIBC files any more.
11653 * fixinc/hackshell.tpl: ditto
11654 * fixinc/fixtests.c(double_slash_test): more C++ header testing
11655 * fixinc/inclhack.def(AAB_fd_zero_glibc*): corrected spelling of mach
11657 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
11659 * reload.c (push_reload): When looking for a register to put into
11660 reg_rtx, make sure all hard regs in a multi-reg register are in the
11661 right class and nonfixed.
11663 * haifa-sched.c (reg_last_uses, reg_last_sets, reg_last_clobbers,
11664 pending_read_insns, pending_write_insns, pending_read_mems,
11665 pending_write_mems, pending_list_length, last_pending_memory_flush,
11666 last_function_call, sched_before_next_call): Move static variables
11668 (bb_ prefixed versions): Replace with single array bb_deps.
11669 (struct deps): New structure.
11670 (add_insn_mem_dependence, flush_pending_lists, sched_analyze_1,
11671 sched_analyze_2, sched_analyze_insn, sched_analyze): Accept new
11672 argument of type "struct deps *"; use that instead of global
11673 variables. All callers changed.
11674 (init_rgn_data_dependencies): Delete function.
11675 (init_rtx_vector): Delete function.
11676 (init_deps): New function.
11678 (free_pending_lists): Simplify, we always use the bb_deps array even
11679 if only one basic block.
11680 (compute_block_backward_dependences): Likewise.
11681 (schedule_region): Likewise.
11683 (propagate_deps): New function, broken out of
11684 compute_block_backward_dependences.
11685 (compute_block_backward_dependences): Use it.
11687 * alpha.md: Delete useless patterns that tried to work around
11688 register elimination problems.
11690 * unroll.c (loop_iterations): Don't abort if iteration variable
11693 From Joern Rennecke:
11694 * reload1.c (reloads_conflict): Reverse test comparing operand
11695 numbers when testing for conflict between output/outaddr reloads.
11697 1999-11-29 David S. Miller <davem@redhat.com>
11699 * config/sparc/sparc.c (init_cumulative_args): Fix type of third
11701 * config/sparc/sparc-protos.h: Update proto, move into RTX_CODE.
11703 1999-11-28 Robert Lipe <robertl@cygnus.com>
11705 * i386/sco5.h (FINI_SECTION_ASM_OP_COFF): Move destructor fn
11706 table from .fini into .dtor.
11708 1999-11-28 Anthony Green <green@cygnus.com>
11710 * tree.h (struct tree_decl): Add malloc_flag.
11711 (DECL_IS_MALLOC): Define.
11712 * c-common.c (attrs): Add A_MALLOC attribute.
11713 (init_attributes): Add this attribute to the table.
11714 (decl_attributes): Handle malloc attribute.
11715 * calls.c (special_function_p): Check for the malloc attribute.
11716 * extend.texi (Function Attributes): Document malloc attribute.
11718 Sun Nov 28 13:21:00 1999 Jeffrey A Law (law@cygnus.com)
11720 * pa.md (reload shift-add patterns): Remove.
11722 1999-11-28 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11724 * reorg.c (dbr_schedule) Print more statistics. Corrected
11725 problem when printing info when 3 delay slots are filled.
11727 1999-11-28 Jakub Jelinek <jakub@redhat.com>
11729 * combine.c (setup_incoming_promotions): Pass an outgoing
11730 regno to FUNCTION_ARG_REGNO_P which it expects.
11732 1999-11-28 Andreas Jaeger <aj@suse.de>
11734 * mips/linux.h (CPP_PREDEFINES): Undefine before redefining.
11736 Sun Nov 28 00:48:15 1999 Philippe De Muyter <phdm@macqel.be>
11738 * cccp.c (do_include): Avoid initialization of automatic variable.
11740 * integrate.c (mark_stores): Function definition made void, to match
11741 previous declaration.
11742 * regclass.c (dump_regclass): Ditto.
11743 * Makefile.in (WARN_CFLAGS): Macro augmented by `-Wtraditional'.
11745 Sat Nov 27 08:38:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11747 * expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is
11748 known to be multiple of divisor.
11750 * expr.c (store_constructor): Don't clobber TARGET if CLEARED.
11752 * combine.c (try_combine): Add code to try to merge a set of a
11753 two-word pseudo to a constant with a setting of one of those words
11756 * fold-const.c (negate_expr, associate_trees, extract_muldiv): New.
11757 (split_tree): Completely rework to make more general.
11758 (make_range, fold): Call negate_expr.
11759 (fold, case NEGATE_EXPR): Simplify -(a-b) is -ffast-math.
11760 (fold, associate): Call new split_tree and associate_trees.
11761 (fold, case MULT_EXPR, case *_{DIV,MOD}_EXPR): Call extract_muldiv.
11763 1999-11-26 Bernd Schmidt <bernds@cygnus.co.uk>
11765 * loop.c (try_copy_prop): Avoid GNU C extension.
11767 1999-11-25 Mark Mitchell <mark@codesourcery.com>
11769 * except.c (init_eh_for_function): Still zero eh_return_context,
11770 eh_return_stack_adjust, and eh_return_handler.
11772 * except.h (eh_status): Adjust documentation for x_protect_list.
11773 (begin_protect_partials): New function.
11774 * except.c (enqueue_eh_entry): Fix formatting.
11775 (get_first_handler): Add consistency check.
11776 (add_partial_entry): Adjust usage of protect_list.
11777 (emit_cleanup_handler): Save and restore ehqueue.
11778 (expand_start_all_catch): Add comment.
11779 (begin_protect_partials): New function.
11780 (end_protect_partials): Adjust usage of protect_list.
11781 (init_eh_for_function): Use xcalloc.
11783 1999-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11785 * c-common.c (check_format_info): Don't call a variadic function
11786 with a non-literal format string.
11788 * c-decl.c (grokdeclarator, start_struct, finish_struct): Likewise.
11790 * c-typeck.c (build_component_ref, build_unary_op, lvalue_or_else,
11791 pedantic_lvalue_warning, error_init, pedwarn_init, warning_init):
11794 * cccp.c (check_macro_name, do_xifdef, vwarning_with_line):
11797 * collect2.c (collect_wait): Likewise.
11799 * dbxout.c (dbxout_type): Likewise.
11801 * gcc.c (do_spec_1): Likewise.
11803 * genemit.c (gen_insn, gen_expand): Likewise.
11805 * genrecog.c (write_switch, write_subroutine): Likewise.
11807 * mips-tfile.c (catch_signal, botch): Likewise.
11809 * print-rtl.c (print_rtx): Likewise.
11811 * toplev.c (default_print_error_function, report_error_function,
11812 _fatal_insn): Likewise.
11814 1999-11-25 Mark Mitchell <mark@codesourcery.com>
11816 * tree.c (unsave_expr_now): Handle NULL_TREE as input.
11818 Wed Nov 24 17:08:09 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11820 * reg-stack.c (subst_stack_regs_pat): Swap operands in commutative
11821 operations when needed.
11822 * i386.md (fop_?f_comm): New.
11823 (fop_?f_1): Do not accept commutative operands.
11825 1999-11-25 Andreas Jaeger <aj@suse.de>
11827 * config/mips/mips.md (casesi_internal): Add missing brace.
11829 1999-11-25 Jason Merrill <jason@casey.cygnus.com>
11831 * dwarf2out.c (pend_type, output_pending_types_for_scope): Lose.
11832 (splice_child_die): Handle moving a child DIE from the declaration
11833 DIE of a class to its specification.
11834 (gen_struct_or_union_type_die): Use 'complete' consistently.
11835 (gen_decl_die): Generate the virtual context DIE first.
11836 Use decl_ultimate_origin instead of DECL_ABSTRACT_ORIGIN.
11838 1999-11-24 Gavin Romig-Koch <gavin@cygnus.com>
11840 * config/mips/mips.md (call_value_multiple_interanal1): New.
11842 1999-11-24 Jason Merrill <jason@casey.cygnus.com>
11844 * dwarf2out.c (free_AT, free_die): New fns.
11845 (remove_children): Call them.
11846 (output_line_info): Disable removal of duplicate notes.
11848 Generate minimal debug info for types with TYPE_DECL_SUPPRESS_INFO set.
11849 * dwarf2out.c (gen_struct_or_union_type_die): TYPE_DECL_SUPPRESS_INFO
11850 means pretend the type isn't defined.
11851 Don't defer emitting types.
11852 (gen_type_die_for_member): New fn.
11853 (gen_decl_die): Call it.
11854 (splice_child_die): New fn.
11855 (gen_member_die): Call it rather than generate duplicate dies.
11857 Defer emitting information for the abstract instance of an inline
11858 until we either inline it or emit an out-of-line copy.
11859 * dwarf2out.c (decl_ultimate_origin): Ignore DECL_ABSTRACT_ORIGIN
11860 from output_inline_function if DECL_ABSTRACT is also set.
11861 (block_ultimate_origin): Likewise.
11862 (gen_abstract_function): New fn.
11863 (gen_decl_die, gen_inlined_subroutine_die): Call it.
11864 (gen_subprogram_die): An abstract instance is not a declaration
11865 just because it doesn't match current_function_decl. Don't abort
11866 because DECL_DEFER_OUTPUT isn't set. Do abort if a declaration
11867 has an abstract origin.
11868 * toplev.c (rest_of_compilation): Don't emit dwarf2 info for the
11869 abstract instance here.
11871 Wed Nov 24 18:39:18 1999 Andrew Haley <aph@cygnus.com>
11873 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case
11874 where we need to reload fpul from a system register.
11876 1999-11-24 Andreas Jaeger <aj@suse.de>
11878 * config/mips/linux.h (CPP_PREDEFINES): Added.
11879 (LINK_SPEC): Remove -Y since this is only needed on sparc.
11881 1999-11-24 Andreas Jaeger <aj@suse.de>
11883 * config/mips/linux.h (TARGET_VERSION): Added.
11884 (HANDLE_SYSV_PRAGMA): Added.
11885 (DEFAULT_VTABLE_THUNKS): Added.
11887 Wed Nov 24 14:12:15 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11889 * local-alloc.c (qty): New structure and static variable.
11890 (qty_phys_reg): Remove, all references changed to qty.
11891 (qty_n_refs): Likewise.
11892 (qty_min_class): Likewise.
11893 (qty_birth): Likewise.
11894 (qty_death): Likewise.
11895 (qty_size): Likewise.
11896 (qty_mode): Likewise.
11897 (qty_n_calls_crossed): Likewise.
11898 (qty_alternate_class): Likewise.
11899 (qty_changes_size): Likewise.
11900 (qty_first_reg): Likewise.
11901 (alloc_qty): Rename variable QTY to QTYNO.
11902 (finf_free_reg): Likewise.
11903 (local_alloc): Allocate qty, do not allocate the removed variables.
11905 Wed Nov 24 17:26:05 1999 Geoffrey Keating <geoffk@cygnus.com>
11907 * config/mips/mips.h (ASM_SPEC): Don't pass -G to the assembler
11908 when -membedded-pic is passed.
11910 * config/mips/mips.md (casesi): Handle 64-bit case too.
11911 (casesi_internal_di): New insn.
11913 * config/mips/mips.c (embedded_pic_offset): Always make the
11914 embedded-pic subtractions relative to the name of the current
11915 function by use of the magic string "..CURRENT_FUNCTION".
11916 * config/mips/mips.h (ASM_OUTPUT_LABELREF): Make the magic happen.
11918 1999-11-24 Geoffrey Keating <geoffk@cygnus.com>
11920 * config/mips/mips.md (div_trap_normal): Don't ask for the REGNO
11921 of (const_int 0), when what we really care about is
11922 whether it's a zero constant anyway.
11923 (div_trap_mips16): Likewise.
11925 1999-11-23 Mark Mitchell <mark@codesourcery.com>
11927 * loop.c (loop_optimize): Always find_loop_tree_blocks and
11928 unroll_block_trees when generating debuggable code.
11930 * tree.h (unsave_expr_1): New function.
11931 (lang_unsave): New variable.
11932 (get_callee_fndecl): New function.
11933 * tree.c (unsave_expr_now_r): New function.
11934 (lang_unsave): Define.
11935 (unsave_expr_1): Likewise.
11936 (unsave_expr_now_r): Split out from unsave_expr_now.
11937 (unsave_expr_now): Call lang_unsave if it is non-NULL. Otherwise,
11938 call unsave_expr_now_r.
11939 (get_callee_fndecl): Define.
11941 * Makefile.in (gencheck): Don't depend on lang_tree_files.
11942 (gencheck.o): Do depend on lang_tree_files.
11944 * integrate.h (copy_decl_for_inlining): New declaration.
11945 * integrate.c (copy_and_set_decl_abstract_origin): Remove.
11946 (copy_decl_for_inlining): New function.
11947 (integrate_parm_decls): Use it.
11948 (integrate_decl_tree): Likewise.
11950 1999-11-23 Gavin Romig-Koch <gavin@cygnus.com>
11952 * config/mips/mips.h (ISA_HAS_FP4,ISA_HAS_CONDMOVE,ISA_HAS_8CC): Split
11953 the second two from the first.
11954 (CONDITIONAL_REGISTER_USAGE): Use ISA_HAS_8CC rather than ISA_HAS_FP4.
11955 * config/mips/mips.md (movcc,reload_incc,reload_outcc,
11956 conditional move): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
11958 * config/mips/mips.c (mips_move_1word,gen_conditional_branch,
11959 override_options): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
11962 Tue Nov 23 11:15:04 1999 Jeffrey A Law (law@cygnus.com)
11964 * pa.md (call_internal_symref, call_value_internal_symref): No mode
11965 needed on the address operand.
11966 * pa.c (call_operand_address): Check for the correct mode.
11968 1999-11-23 Bernd Schmidt <bernds@cygnus.co.uk>
11970 * loop.c: Include "basic-block.h".
11971 (try_copy_prop, replace_loop_reg): New functions.
11972 (load_mems): Detect registers that just hold copies of the hoisted
11973 mem, and call try_copy_prop to eliminate them.
11974 * Makefile.in (loop.o): Update dependencies.
11976 Tue Nov 23 01:03:29 1999 Hans-Peter Nilsson <hp@axis.com>
11978 * Makefile.in (gencheck.o): Depend on gencheck.h.
11979 (insn-emit.o): Depend on flags.h, hard-reg-set.h and resource.h.
11980 (insn-peep.o): Depend on except.h and function.h.
11981 (insn-attrtab.o): Depend on RECOG_H.
11982 (insn-output.o): Depend on toplev.h and flags.h.
11983 (gengenrtl.o): Depend on real.h.
11984 (gen-protos.o): Depend on cpplib.h and cpphash.h.
11985 Unify all dependencies to be on RECOG_H rather than recog.h.
11987 Tue Nov 23 00:57:10 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11989 From Casper H.S. Dik on comp.unix.solaris, 23 Oct 1998:
11990 * configure.in: Try building a bi-arch 32/64-bit compiler on
11991 sparc-*-solaris2.7 and higher.
11992 * configure: Rebuild.
11994 Mon Nov 22 23:09:44 1999 David O'Brien <obrien@FreeBSD.org>
11996 * config/freebsd.h: New, FreeBSD architecture independent file.
11997 * config/i386/freebsd-elf.h: removed FreeBSD architecturally
11998 independent pieces.
11999 * config/i386/freebsd.h: include i386/perform.h via tm.h rather than
12000 directly by i386/freebsd.h.
12001 * configure.in (*-*-freebsdelf): Include new FreeBSD architecturally
12002 independent configuration file.
12003 (*-*-freebsdelf): Include i386/perform.h via tm.h rather than
12004 directly by i386/freebsd.h.
12005 * configure: Rebuilt.
12007 * xm-i386.h: Define `__i386__' if not defined, rather than `i386'
12008 which is in the user's namespace.
12009 * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
12010 `i386' which is not in our namespace.
12012 Mon Nov 22 22:58:01 1999 "R. Kelley Cook" <KelleyCook@attglobal.net>
12014 * invoke.texi (ARM Options): Add in -mno-alignment-traps
12016 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
12018 * dwarf2out.c (die_struct): Remove die_attr_last and die_child_last.
12019 (add_dwarf_attr, add_child_die): Just push onto the front.
12020 (reverse_die_lists): New fn.
12021 (add_sibling_attributes): Use it.
12022 (push_decl_scope): Reorganize.
12023 (add_name_and_src_coords_attributes): Don't set file and line for
12024 an artificial decl.
12025 (gen_subprogram_die): An artificial function doesn't need to match
12027 (gen_compile_unit_die): Return the generated die. Only add
12028 AT_comp_dir if the filename is relative.
12029 (remove_AT): Simplify loop. Also free string values.
12030 (output_die): A DIE ref can't be null.
12031 (output_value_format, value_format): Take a dw_attr_ref.
12032 (dwarf_last_decl, is_extern_subr_die, sibling_offset): Remove.
12033 (AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
12034 AT_addr, AT_lbl): New fns.
12035 (various): Use them.
12036 (various): Constify.
12038 Mon Nov 22 23:53:50 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12040 * combine.c (combine_simplify_rtx): When handling a SUBREG,
12041 take SUBREG_WORD into account.
12042 (if_then_else_cond): Likewise.
12044 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
12046 * gmon.c, i386/gmon-sol2.c, sparc/gmon-sol2.c: Remove advertising
12047 clause from BSD license, pursuant with
12049 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
12051 1999-11-22 Bernd Schmidt <bernds@cygnus.co.uk>
12053 * loop.c (load_mems): Reformat slightly.
12054 * basic-block.h (regset_head): New typedef.
12055 (INIT_REG_SET): New macro.
12057 1999-11-22 Bruce Korb <autogen@linuxbox.com
12059 * fixinc/mkfisinc.sh(i?86-*-linux): disable script, run fixincl exe
12060 (mips-dec-bsd*): non-functional code
12061 (alpha*-*-linux-gnu*): redundant, duplicated by "*-*-linux-gnu*"
12063 * fixinc/inclhack.def(AAB_fd_zero_glibc_*):
12064 added three replacement fixes
12065 (no_double_slash): removed comments that are not (any longer) pertinent
12066 (bad_lval): this fix currently runs against many files.
12067 The comment seems to indicate that we should select for files
12068 containing 'pragma extern_prefix'.
12070 * fixinc/fixinc.x86-linux-gnu: deleted
12071 * fixinc/inclhack.sh: regen
12072 * fixinc/fixincl.x: regen
12073 * fixinc/fixincl.sh: regen
12075 Fri Nov 12 14:08:40 1999 Andrew Haley <aph@cygnus.com>
12077 * emit-rtl.c (gen_sequence): Only return the pattern of an insn if
12078 its code is INSN and it has no notes.
12080 1999-11-22 Andrew Haley <aph@cygnus.com>
12082 * varasm.c (function_defined): Remove.
12083 (make_function_rtl): Don't set function_defined.
12084 (make_decl_rtl): Remove global register warning.
12085 * regclass.c (no_global_reg_vars): New variable.
12086 (globalize_reg): Warn if function has already been defined.
12087 (regclass_init): Set no_global_reg_vars.
12089 Mon Nov 22 14:42:22 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12091 * regclass.c (reg_pref): New structure and static variable
12092 (prefclass): Delete.
12093 (altclass): Delete.
12094 (all uses of prefclass and altclass): Use reg_pref instead.
12096 1999-11-21 Nick Clifton <nickc@cygnus.com>
12098 * invoke.texi (ARM Options): Replace -mshort-load-bytes with
12100 (arm.h): Replace -mshort-load-bytes with -malignment-traps.
12101 (arm.c): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
12102 (arm.md): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
12104 Sun Nov 21 17:11:13 1999 Geoffrey Keating <geoffk@cygnus.com>
12106 * varasm.c (output_constructor): Solve problem with long long
12107 bitfields, even on BYTES_BIG_ENDIAN machines (testcase 991118-1).
12109 Fri Nov 19 05:48:45 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
12111 * global.c (allocno): New structure and static variable.
12112 (allocno_reg): Remove, all references replaced by allocno.
12113 (allocno_size): Likewise.
12114 (hard_reg_conflicts): Likewise.
12115 (hard_reg_preferences): Likewise.
12116 (hard_reg_copy_preferences): Likewise.
12117 (hard_reg_full_preferences): Likewise.
12118 (regs_someone_prefers): Likewise.
12119 (allocno_calls_crossed): Likewise.
12120 (allocno_n_refs): Likewise.
12121 (allocno_live_length): Likewise.
12122 (find_reg): Rename ALLOCNO to NUM.
12124 * regclass.c (may_move_in_cost): Rename from may_move_cost, all
12125 references updated.
12126 (may_move_out_cost): New variable.
12127 (init_reg_sets_1): Initialize may_move_out_cost.
12128 (record_reg_classes): Use may_move_out_cost.
12130 * regclass.c (dump_regclass): New function.
12131 (regclass): New parameter DUMP, call DUMP_REGCLASS.
12132 * toplev.c (rest_of_compilation): Open lreg dump file before regclass,
12133 pass rtl_dump_file to regclass.
12134 * rtl.h (regclass): Update prototype.
12136 Fri Nov 19 06:32:19 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
12138 * i386.md (neg, not and abs patterns): Revmap to use
12139 ix86_expand_unary_operator and ix86_unary_operator_ok.
12140 (add?f and sub?f expanders): Force operand 1 to register.
12141 * i386.c (ix86_expand_unary_operator): Rewrite.
12142 (ix86_unary_operator_ok): Ensure that memory operands
12144 (ix86_binary_operator_ok): Do not allow operand 1 to
12145 come into memory and operand 0 not.
12146 (ix86_expand_binary_operator): Ensure that
12147 src1 is not non-matching memory.
12149 * i386.md (negs?2): Rewrite to expanders, new patterns and splitters
12150 to support integer registers and memory.
12151 (abss?2_integer): Likewise.
12153 * i386.h (enum reg_class): Add FLOAT_INT_REGS.
12154 (REG_CLASS_NAMES): Likewise.
12155 (REG_CLASS_CONTENTS): Define FLOAT_INT_REGS as union of FLOAT_REGS
12157 * i386.md (pushsf): Do not preferre FLOAT_REGS over GENERAL_REGS.
12158 (movsf): Likewise; unify 4th and 5th alternative.
12159 (pushdf): Likewise.
12160 (movdf_1): Likewise; rename to movdf_integer.
12161 (pushxf): Likewise; rename to pushxf_integer; fix output template;
12162 remove redundant splitter.
12163 (movxf_1): Likewise; rename to movxf_integer; fix splitter's condition.
12164 (movdf_nointeger): New.
12165 (movxf_nointeger): New.
12166 (pushxf_nointeger): New.
12168 * i386.md (extend?f?f): Split to expander and pattern, refuse two
12169 memory operands in patterns.
12170 (fop*): Refuse two memory operands.
12172 * i386.md (ashrsi3_31): Allow cltd when optimizing for size even
12173 on !TARGET_USE_CLTD CPUs.
12175 Fri Nov 19 10:41:15 GMT 1999 Nathan Sidwell <nathan@acm.org>
12177 * extend.texi: Document C++ restricted pointers and references.
12179 1999-11-19 Bernd Schmidt <bernds@cygnus.co.uk>
12181 * cse.c (addr_affects_sp): No longer conditional on AUTO_INC_DEC.
12182 (invalidate_skipped_set): Call it unconditionally.
12183 (cse_set_around_loop): Likewise.
12185 Thu Nov 18 17:29:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
12187 * rtl.texi (mem): Add documentation for alias-set argument
12190 Fri Nov 18 13:39:22 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
12192 * i386.h (struct_processor_costs): New fields int_load, int_store,
12193 fp_move, fp_load and fp_store
12194 (REGISTER_MOVE_COST): Fix comment, calculate exactly the cost of
12196 (MEMORY_MOVE_COST): New macro.
12197 * i386.c (386_cost): Define new fields.
12198 (i486_cost): Likewise.
12199 (pentium_cost): Likewise.
12200 (pentiumpro_cost): Likewise.
12201 (k6_cost): Likewise.
12203 Fri Nov 19 11:11:55 1999 Greg McGary <gkm@gnu.org>
12204 Geoffrey Keating <geoffk@cygnus.com>
12206 * config/m68k/m68kelf.h: Suppress '/* within comment' warning.
12208 * config/m68k/m68k.h (MASK_PCREL): Don't use same value as
12211 * config/m68k/m68k.h (MASK_NO_STRICT_ALIGNMENT): New macro.
12212 (TARGET_STRICT_ALIGNMENT): New macro.
12213 (TARGET_SWITCHES): Add "strict-align" and "no-strict-align".
12214 (STRICT_ALIGNMENT): Depend on TARGET_STRICT_ALIGNMENT.
12215 * invoke.texi (M680x0 Options): Document -mstrict-align.
12217 Thu Nov 18 11:10:03 1999 Jan Hubicka <hubicka@freesoft.cz>
12218 Richard Henderson <rth@cygnus.com>
12220 * i386-protos.h (split_xf, ix86_split_movdi): Remove.
12221 (ix86_split_long_move): Declare.
12222 * i386.c (split_xf, ix86_split_movdi): Remove.
12223 (ix86_split_to_parts, ix86_split_long_move): New.
12224 * i386.md (dimode move splitters): Use ix86_split_long_move.
12225 (dfmode move splitters): Likewise.
12226 (xfmode move splitters): Likewise.
12227 (movsf_1): Allow F->r.
12228 (movdf_1, movxf_1): Allow F->ro.
12230 1999-11-17 Mark Mitchell <mark@codesourcery.com>
12232 * except.h (struct eh_entry): Add goto_entry_p.
12233 (eh_region_from_symbol): Remove prototype.
12234 * except.c (find_func_region_from_symbol): New function.
12235 (emit_cleanup_handler): Likewise.
12236 (eh_region_from_symbol): Make it static.
12237 (add_new_handler): Verify the argument.
12238 (find_func_region): Update comment.
12239 (expand_eh_region_end): Expand handlers here, rater than waiting
12240 until expand_leftover_cleanups or start_all_catch.
12241 (expand_leftover_cleanups): Don't expand here.
12242 (expand_start_all_catch): Or here.
12243 (expand_rethrow): Check the return value from find_func_region.
12244 * function.c (expand_function_end): Emit the catch_clauses.
12246 1999-11-18 Gavin Romig-Koch <gavin@cygnus.com>
12248 * integrate.c (expand_inline_function): Add necessary check for NULL.
12250 1999-11-18 Nick Clifton <nickc@cygnus.com>
12252 * toplev.c (main): Correctly detect an unrecognised option.
12254 * cppinit.c (cpp_handle_option): Do not claim to have consumed
12255 a -f option if it has not been recognised.
12257 Thu Nov 18 00:59:11 1999 Michael Gschwind <mikeg@alagoas.watson.ibm.com>
12259 * basic-block.h (update_life_extent): Remove trailing comma on
12260 enumeration type list.
12262 1999-11-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12264 * varasm.c (output_constructor) Solved problem with long long
12265 bitfields. Corrected calculating this_time and shift. Also
12266 corrected calculating mask when BITS_PER_UNIT == 32 (c4x).
12268 Wed Nov 17 23:46:14 1999 Jeffrey A Law (law@cygnus.com)
12270 * flow.c (split_edge): Take looping structure into account when
12271 determining where to put the new block note.
12273 Wed Nov 17 20:42:43 1999 Jeff Holcomb <jeffh@cygnus.com>
12275 * Makefile.in (ggc-none.o): Provide host specific version if
12278 Wed Nov 17 16:51:23 1999 Richard Henderson <rth@cygnus.com>
12280 * cse.c (delete_trivially_dead_insns): Identify no-op insns
12281 containing subregs too.
12283 Wed Nov 17 17:39:48 MST 1999 Diego Novillo <dnovillo@cygnus.com>
12285 * invoke.texi: Add documentation for -muninit-const-in-rodata.
12286 * config/mips/mips.h (MASK_UNINIT_CONST_IN_RODATA): Define.
12287 (TARGET_UNINIT_CONST_IN_RODATA): Define.
12288 (text_section): Add switches -munint-const-in-rodata and
12289 -mno-uninit-const-in-rodata.
12290 (ASM_OUTPUT_COMMON): Remove.
12291 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define. Check if uninitialized
12292 const objects should be placed in read-only data. Otherwise declare
12295 Wed Nov 17 16:38:32 1999 Richard Henderson <rth@cygnus.com>
12297 * jump.c (jump_optimize_1): Revert last change.
12299 Wed Nov 17 15:18:30 1999 Richard Henderson <rth@cygnus.com>
12301 * jump.c (jump_optimize_1): Don't try to duplicate the loop exit
12302 test if optimizing for size.
12304 1999-11-17 Mark Mitchell <mark@codesourcery.com>
12306 * Makefile.in (toplev.o): Depend on except.h.
12307 (dwarf2out.o,loop.o,flow.o,haifa-sched.o): Likewise.
12309 Mon Nov 15 22:45:39 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
12311 * i386.md (divmodsi4): Rewrite to expander.
12312 (*divmodsi4_nocltd): New.
12313 (*divmodsi4_cltd): New.
12314 (divmodsi4 splitter): Handle the case when input comes in edx.
12315 (udivmodhi4): Do not use constraints in exander.
12316 (ashrsi3_31): Conditionize by TARGET_USE_CLTD.
12318 1999-11-17 Jason Merrill <jason@yorick.cygnus.com>
12320 * dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1
12321 for the common case.
12323 1999-11-16 Jakub Jelinek <jakub@redhat.com>
12325 * explow.c (hard_function_value): Add outgoing argument.
12326 * expr.h (hard_function_value): Declare it.
12327 * calls.c (expand_call, emit_library_call_value): Update callers.
12328 * function.c (aggregate_value_p): Ditto.
12329 (diddle_return_value): Must look at the outgoing registers
12330 on archs with register windows.
12332 Mon Nov 15 20:46:45 1999 Richard Henderson <rth@cygnus.com>
12334 * alpha.c (alpha_build_va_list): Use make_lang_type and
12335 initialize TYPE_NAME for the va_list record.
12337 * flow.c (calculate_global_regs_live): Zero bb->aux to begin.
12339 * ggc-common.c (ggc_print_statistics): Cast size_t to unsigned long
12341 * ggc.h (struct ggc_statistics): Rearrange elements for better
12342 packing on 64-bit hosts.
12343 * lcm.c (compute_laterin): Store a size_t not an int in bb->aux.
12344 (compute_nearerout): Likewise.
12346 Tue Nov 16 14:37:52 1999 Geoffrey Keating <geoffk@cygnus.com>
12348 * config/rs6000/rs6000.c (first_reg_to_save): Save
12349 PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.
12351 1999-11-15 Jason Merrill <jason@casey.cygnus.com>
12353 * dwarf2out.c (scope_die_for): Don't rely on the decl_scope_table
12354 notion of nesting to find the DIE for a type or function.
12355 DIEs can go in limbo even if we got a context_die.
12356 (push_decl_scope): Our context doesn't need to be in decl_scope_table.
12357 (gen_struct_or_union_type_die): Don't use TREE_PERMANENT to test
12359 (gen_decl_die): Ignore NAMESPACE_DECLs for now.
12360 (gen_type_die): Writing out the context doesn't cause member class
12361 template instantiations to be written out as well.
12363 Mon Nov 15 15:33:18 1999 Richard Henderson <rth@cygnus.com>
12365 * rs6000.h (ASM_OUTPUT_DEF): New.
12366 Based on proposed addition from David Edelsohn.
12368 1999-11-15 Robert Lipe <RobertLipe@usa.net>
12369 Bruce Korb <autogen@linuxbox.com>
12371 * fixinc/inclhack.def
12372 (AAB_svr4_replace_byteorder): added. Takes advantage of GCC features
12373 (unixware7_byteorder_fix): added. Removes conflicts for new defs
12375 (svr5_mach_defines): added. Like svr4_mach_defines, with new syntax
12376 (svr4_endian): enabled with SVR5
12377 (svr4_mkdev): simplified syntax and enabled with SVR5
12379 Sun Nov 14 18:49:37 1999 David O'Brien <obrien@FreeBSD.org>
12381 * configure.in: Handle libgcc2 threads support on FreeBSD platforms.
12382 * configure: Rebuilt.
12383 * config/t-freebsd-thread: New file.
12385 Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com)
12387 * i386.c (ix86_decompose_address): Verify the base is a REG
12388 before trying to examine its register number.
12390 * basic-block.h: Remove all #defines and prototypes related to
12392 (free_bb_mem, compute_preds_succs): Remove prototype.
12393 * rtl.h (free_bb_mem): Remove prototype.
12394 * flow.c (alloc_int_list_node); Remove function.
12395 (add_inst_list_node, free_int_list, add_pred_succ): Likewise.
12396 (compute_preds_succs, free_bb_mem): Likewise.
12397 * gcse.c (gcse_main): Do not call free_bb_mem anymore.
12398 * toplev.c (rest_of_compilation): Likewise.
12399 * haifa-sched.c (build_control_flow): Use flow generated edge
12400 list to build the haifa specific edge list.
12401 (find_rgns): Use new CFG data structures instead of pred/succ lists.
12402 (schedule_insns): Do not build pred/succ lists anymore. Instead
12403 build the edge table.
12405 * basic-block.h (dump_bb_data): Remove declaration.
12406 * flow.c (dump_bb_data): Remove function.
12407 * sbitmap.c (sbitmap_intersect_of_predsucc): Delete function.
12408 (sbitmap_union_of_predsucc): Likewise.
12410 * gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
12411 argument. All callers changed.
12412 (delete_null_pointer_checks_1): No longer need to compute the
12415 * gcse.c (pre_expr_reaches_here_p): Kill CHECK_PRE_COM argument.
12416 All callers changed.
12417 (pre_expr_reaches_here_p_work): Likewise.
12418 (pre_edge_insert): No longer call pre_expr_reaches_here_p.
12419 * lcm.c (compute_laterin): Fix initialization of LATER.
12420 (compute_nearerout): Similarly for NEARER.
12422 Sun Nov 14 12:41:57 1999 Bernd Schmidt <bernds@cygnus.co.uk>
12424 * cse.c (set_nonvarying_address_components): Delete unused function.
12425 (refers_to_p): Likewise.
12427 Fri Nov 12 20:53:22 1999 Jeffrey A Law (law@cygnus.com)
12429 * function.c (diddle_return_value): Set REG_FUNCTION_VALUE_P as
12432 Sat Nov 13 16:20:09 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12434 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Wrap macro
12435 definition in do while (0).
12437 Fri Nov 12 16:26:25 1999 Jim Wilson <wilson@cygnus.com>
12439 * stmt.c (pushcase, pushcase_range): Partially revert Oct 28 change.
12441 Fri Nov 12 12:43:49 1999 Richard Henderson <rth@cygnus.com>
12443 * unroll.c (unroll_loop): Make temp an unsigned HOST_WIDE_INT.
12445 Fri Nov 12 15:14:19 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
12447 * i960.h (CAN_DEBUG_WITHOUT_FP): Don't define it.
12448 (FRAME_POINTER_REQUIRED): Don't worry about nonlocal goto.
12449 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
12450 (INITIAL_FRAME_POINTER_OFFSET): Remove it.
12452 * i960.c (i960_function_prologue): Don't allocate space for g8-g11
12453 saved on the stack. Output more accurate stack frame statistics
12454 into assembler file.
12456 1999-11-12 11:47 -0800 Zack Weinberg <zack@bitmover.com>
12458 * genextract.c (record_insn_name): New function.
12459 (get_insn_name): No longer a stub.
12460 (main): Call record_insn_name for each insn. After each label
12461 written, print the insn name in a comment.
12463 Fri Nov 12 13:45:02 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12465 * output.h (const_section, init_section, fini_section): Add
12468 * alpha/elf.h (const_section): Delete declaration.
12470 * svr4.h (const_section): Likewise.
12472 Fri Nov 12 08:54:22 1999 Mark Mitchell <mark@codesourcery.com>
12474 * tree.h (SAVE_EXPR_PERSISTENT_P): New macro.
12475 * tree.c (array_type_nelts): Don't handle SAVE_EXPRs specially.
12476 (unsave_expr_now): Don't unsave SAVE_EXPR_PERSISTENT_P
12478 * stor-layout.c (variable_size): Set SAVE_EXPR_PERSISTENT_P on
12479 variable-sized array bounds.
12481 Fri Nov 12 08:04:45 1999 Catherine Moore <clm@cygnus.com>
12483 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Use
12486 Fri Nov 12 13:31:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
12488 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Treat QImode
12489 addresses the same way GO_IF_LEGITIMATE_INDEX does.
12491 Fri Nov 12 12:36:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
12493 * cse.c (hash_arg_in_struct): Delete.
12494 (struct table_elt): Delete elt in_struct.
12495 (struct set): Delete elt src_in_struct.
12496 (merge_equiv_classes): Don't set either hash_arg_in_struct or
12497 the corresponding in_struct elts.
12498 (canon_hash): Likewise.
12499 (safe_hash): Likewise.
12500 (find_best_addr): Likewise.
12501 (record_jump_cond): Likewise.
12502 (cse_insn): Likewise.
12504 Thu Nov 11 19:45:24 1999 Jim Wilson <wilson@cygnus.com>
12506 * loop.c (invariant_p, case MEM): Put MEM_VOLATILE_P check back.
12508 * dbxout.c (dbxout_type, case INTEGER_TYPE): Handle too large
12511 Thu Nov 11 18:54:24 1999 Jeffrey A Law (law@cygnus.com)
12513 * function.c (diddle_return_value): Put back check that the DECL_RTL
12514 for the function is a register.
12516 * function.c (diddle_return_value): Use hard_function_value to
12517 get an rtx suitable for use in the USE/CLOBBER insn.
12519 * global.c (global_conflicts): Update comments.
12520 (record_conflicts): No need to record conflicts between pseudos here.
12522 1999-11-11 Bruce Korb <autogen@linuxbox.com>
12524 * fixinc/fixincl.c: Added verbose levels for status messages
12526 Thu Nov 11 13:23:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
12528 * jump.c (jump_optimize_1): Avoid passing an rtx that is not an
12529 operand as argument to expand_and or expand_binop.
12531 Thu Nov 11 02:21:16 1999 Rodney Brown <RodneyBrown@pmsc.com>
12533 * xcoffout.c (xcoffout_source_file): Change ggc_add_root to
12534 gcc_add_string_root.
12536 Wed Nov 10 21:24:19 1999 Jason Eckhardt <jle@cygnus.com>
12538 * config/pa/pa.h (MASK_RETURN_ADDR): Change 0xfffffffc to -4.
12540 Wed Nov 10 15:56:16 1999 Jeffrey A Law (law@cygnus.com)
12542 * flow.c (compute_flow_dominators): Initially put all blocks on
12544 * lcm.c (compute_antinout_edge, compute_available): Similarly.
12545 * gcse.c (compute_cprop_avinout): Remove.
12546 (compute_cprop_data): Use compute_available.
12547 (delete_null_pointer_checks_1): Use compute_available.
12549 * basic-block.h (compute_available): Returns a void now.
12550 * gcse.c (one_classic_gcse_pass): Do not expect compute_available
12551 to return a value anymore.
12552 * lcm.c (compute_available, compute_antinout_edge): Revamp to use
12553 worklists. Fix boundary cases. Compute maximal solutions.
12554 (compute_laterin, compute_nearerout): Similarly.
12556 * dwarf2out.c (add_AT_location_description): Allow
12557 (mem (plus (pseudo) (...)) too.
12559 Wed Nov 10 10:52:42 1999 Tom Tromey <tromey@cygnus.com>
12561 * gcc.c (do_spec_1): Support text between `%u' and `%O'.
12563 Wed Nov 10 12:43:21 1999 Philippe De Muyter <phdm@macqel.be>
12564 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12566 * cppinit.c: Test `GCC_VERSION', not `HAVE_GCC_VERSION'.
12568 * gansidecl.h: Likewise.
12574 * toplev.h: Likewise.
12576 * tree.c: Likewise.
12578 * tree.h: Likewise.
12580 * varray.c: Likewise.
12582 * varray.h: Likewise.
12584 Wed Nov 10 10:57:22 1999 Clinton Popetz <cpopetz@cygnus.com>
12586 * gcov.c (struct arcdata): Add hits and total, remove prob.
12587 (output_branch_counts): New.
12588 (process_args): Set output_branch_counts if -c.
12589 (calculate_branch_probs): Store hits and total instead of
12591 (output_data): Emit counts if output_branch_counts is true.
12592 * gcov.texi (Invoking Gcov): Document -c switch..
12594 Wed Nov 10 01:10:41 1999 Philippe De Muyter <phdm@macqel.be>
12596 * genoutput.c (output_insn_data): Cast `INSN_OUTPUT_FORMAT_MULTI' and
12597 `INSN_OUTPUT_FORMAT_FUNCTION' to `PTR'-type.
12599 Wed Nov 10 00:51:41 1999 Hans-Peter Nilsson <hp@axis.se>
12601 * invoke.texi (C Dialect Options): Add missing builtins from
12602 c-common.c to list.
12603 * extend.texi (Other Builtins): Copy to this list.
12605 Wed Nov 10 04:58:09 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12607 * Makefile.in (recog.o): Use BASIC_BLOCK_H macro.
12608 (print-rtl.o, $(HOST_PREFIX_1)print-rtl.o): Likewise. Remove
12609 redundant bitmap.h.
12611 Wed Nov 10 00:02:53 1999 Jeffrey A Law (law@cygnus.com)
12613 * flow.c (compute_flow_dominators): No longer treat basic block 0
12614 or (n_basic_blocks - 1) specially. Clear the AUX field before
12615 starting computation of doms/pdoms. Fix initial state for pdoms.
12617 Wed Nov 10 03:58:08 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12619 * Makefile.in ($(HOST_PREFIX_1)rtl.o): Update dependencies to
12620 match rtl.o's: added ggc.h and toplev.h
12621 ($(HOST_PREFIX_1)print-rtl.o): Likewise: added system.h.
12622 ($(HOST_PREFIX_1)rtlanal.o): Likewise: added system.h.
12623 ($(HOST_PREFIX_1)obstack.o): Likewise: added $(CONFIG_H).
12625 Tue Nov 9 10:30:08 1999 Tom Tromey <tromey@cygnus.com>
12627 * config/i386/xm-djgpp.h (HAVE_DOS_BASED_FILE_SYSTEM): Renamed
12628 from HAVE_DOS_BASED_FILESYSTEM.
12629 * gcc.c (find_a_file): Use HAVE_DOS_BASED_FILE_SYSTEM, not
12630 HAVE_DOS_BASED_FILESYSTEM.
12632 (split_directories): Only special-case DOS file names if
12633 HAVE_DOS_BASED_FILE_SYSTEM is defined. Use IS_DIR_SEPARATOR
12634 instead of explicit tests. Conditionalize on !VMS.
12635 (make_relative_prefix): Use IS_DIR_SEPARATOR instead of explicit
12636 tests. Conditionalize on !VMS.
12637 (process_command): Only use make_relative_prefix if !VMS.
12638 (free_split_directories): Conditionalize on !VMS.
12639 (DIR_UP): Conditionalize on !VMS.
12641 Wed Jun 9 16:57:11 1999 Mumit Khan <khan@xraylith.wisc.edu>
12643 * gcc.c (STANDARD_BINDIR_PREFIX): Provide default.
12645 Fri Feb 5 14:22:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
12647 * gcc.c (make_relative_prefix): Handle the HAVE_EXECUTABLE_SUFFIX
12650 Mon Nov 8 14:16:57 1999 Michael Meissner <meissner@cygnus.com>
12652 * invoke.texi (Environment Variables): Document relative path
12654 * gcc.c (DIR_UP): If not defined, define as "..".
12655 (standard_bindir_prefix): New static, holds target location to
12657 (split_directories): New function to split a filename into
12658 component directories.
12659 (free_split_directories): New function, release memory allocated
12660 by split_directories.
12661 (make_relative_prefix): New function, make a relative pathname if
12662 the compiler is not in the expected location.
12663 (process_command): If GCC_EXEC_PREFIX was not specified, see if we
12664 can figure out an appropriate prefix from argv[0].
12665 * Makefile.in (DRIVER_DEFINES): Use unlibsubdir in definition of
12666 STANDARD_STARTFILE_PREFIX and TOOLDIR_BASE_PREFIX. Define
12667 STANDARD_BINDIR_PREFIX.
12669 Wed Nov 10 11:47:54 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12671 * config/c4x/c4x-protos.h: New file. Prototypes for functions defined
12673 * config/c4x/c4x.h: Moved prototypes to c4x.h.
12674 * config/c4x/c4x.c (c4x_preferred_reload_class, c4x_limit_reload_class,
12675 c4x_secondary_memory_needed) Delete.
12676 (fp_zero_operand): Add mode argument.
12678 Thu Nov 4 15:52:35 1999 Andrew Haley <aph@cygnus.com>
12680 * reload1.c (reload_reg_free_for_value_p): Don't use a register
12681 that is in reload_reg_used.
12683 Tue Nov 9 16:43:00 1999 Nick Clifton <nickc@cygnus.com>
12685 * config/arm/arm-protos.h: New file: Prototypes for functions
12686 defined in arm.c and pe.c.
12687 * config/arm/arm.h: Fix compile time warnings.
12688 * config/arm/arm.c: Fix compile time warnings.
12689 * config/arm/pe.h: Fix compile time warnings.
12690 * config/arm/aout.h: Fix compile time warnings.
12692 Tue Nov 9 14:55:44 1999 Nick Clifton <nickc@cygnus.com>
12694 * config/m32r/m32r-protos.h: New file: Prototypes for functions
12697 * config/m32r/m32r.h: Move prototypes to m32r-protos.h
12698 Add support for subtargets.
12699 Add prototypes for new predicates.
12700 Add scheduling macros.
12702 * config/m32r/m32r.c: Fix compile time warnings.
12703 (int8_operand): New predicate function.
12704 (reg_or_cmp_int16_operand): New predicate function.
12705 (extend_operand): New predicate function.
12706 (m32r_adjust_code): New scheduling function.
12707 (m32r_adjust_priorty): New scheduling function.
12708 (m32r_sched_init): New scheduling function.
12709 (m32r_sched_reorder): New scheduling function.
12710 (m32r_sched_variable_issue): New scheduling function.
12711 (direct_return): New codegen function.
12712 (m32r_not_same_reg): New rtl testsing function.
12714 * config/m32r/m32r.md: Fix compile time warnings.
12715 Add support for pre decrement and post increment memory
12717 Add S<cc> patterns.
12720 Mon Nov 8 22:20:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12722 * global.c (EXECUTE_IF_CONFLICT): Don't define.
12723 (prune_preferences): Use EXECUTE_IF_SET_IN_ALLOCNO_SET instead.
12724 (find_reg): Likewise.
12726 Mon Nov 8 13:16:46 1999 Jason Eckhardt <jle@cygnus.com>
12728 * config/pa/pa.md (fmpynfadd,{sgl,dbl} insns): Use %fr0 rather than 0
12729 to avoid assembler errors.
12731 Mon Nov 8 15:38:41 1999 Nick Clifton <nickc@cygnus.com>
12733 * config/v850/v850-protos.h: New file: Prototypes for functions
12735 * config/v850/v850.h: Move prototypes to v850-protos.h
12736 * config/v850/v850.c: Move prototypes to v850-protos.h
12737 * config/v850/v850.md: Fix compile time warnings.
12739 * config/fr30/fr30-protos.h: New file: Prototypes for functions
12741 * config/fr30/fr30.h: Move prototypes to fr30-protos.h
12742 * config/fr30/fr30.c: Fix compile time warnings.
12743 * config/fr30/fr30.md: Fix compile time warnings.
12745 Mon Nov 8 07:25:37 1999 Mark Mitchell <mark@codesourcery.com>
12747 * tree.h (get_containing_scope): Declare it.
12748 * tree.c (get_containing_scope): New fucntion.
12749 (decl_function_context): Use it.
12750 * toplev.c (rest_of_compilation): Use get_containing_scope.
12752 aMon Nov 8 03:03:07 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12754 * Makefile.in (rtl.o): Depend on toplev.h.
12756 Sun Nov 7 20:55:14 1999 Mark Mitchell <mark@codesourcery.com>
12758 * cse.c (delete_trivially_dead_insns): Replace alloca with
12760 * except.c (update_rethrow_references): Likewise.
12761 (init_eh_nesting_info): Likewise.
12762 * function.c (identify_blocks): Likewise.
12763 * gcse.c (dump_hash_table): Likewise.
12764 * graph.c (print_rtl_graph_with_bb): Likewise.
12765 * loop.c (combine_movables): Likewise.
12766 (move_movables): Likewise.
12767 (count_loop_regs_set): Likewise.
12768 (strength_reduce): Likewise.
12769 * profile.c (compute_branch_probabilities): New function, split
12771 (branch_prob): Here. Replace alloca with xmalloc/xcalloc.
12772 * regclass.c (regclass): Likewise.
12773 * regmove.c (regmove_optimize): Likewise.
12774 * toplev.c (compile_file): Likewise.
12775 (main): Don't mess with the stack rlimit.
12777 Sun Nov 7 19:41:17 1999 Catherine Moore <clm@cygnus.com>
12779 * config/elfos.h (ASM_DECLARE_FUNCTION_NAME): Conditionally define.
12780 (ASM_DECLARE_FUNCTION_SIZE): Conditionally define.
12782 Sun Nov 7 10:23:28 1999 Mark P. Mitchell <mark@codesourcery.com>
12784 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns.
12786 Sun Nov 7 02:58:48 1999 Jeffrey A Law (law@cygnus.com)
12788 * global.c (EXECUTE_IF_CONFLICT): Undo Robert's change.
12789 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Put curleys around CODE in
12792 Sat Nov 6 23:48:30 1999 Robert Lipe (robertlipe@usa.net)
12794 * global.c (EXECUTE_IF_CONFLICT): Correct quoting typo.
12796 Sat Nov 6 17:34:39 1999 Jeffrey A Law (law@cygnus.com)
12798 * gcse.c (post_dominators): Kill.
12799 (alloc_code_hoist_mem, free_code_hoist_mem); Kill post_dominators.
12800 (compute_code_hoist_data): Use compute_flow_dominators. Do not
12801 pass in a pdom array since we do not need pdoms.
12802 * haifa-sched.c (schedule_insns): Similarly.
12803 * flow.c (compute_dominators): Remove dead function.
12804 (compute_flow_dominators): Do not compute doms or pdoms if the
12805 caller does not request them. Split up loop to build doms and
12806 pdoms. Use a worklist to compute doms and pdoms.
12807 * basic-block.h (compute_dominators): Remove prototype.
12809 Sat Nov 6 11:38:39 1999 Richard Henderson <rth@cygnus.com>
12811 * haifa-sched.c (struct haifa_insn_data, h_i_d): New.
12812 (insn_luid, insn_priority, insn_costs, insn_units): Remove.
12813 (insn_reg_weight, insn_depend, insn_dep_count): Remove.
12814 (insn_blockage, insn_ref_count, line_note, insn_tick): Remove.
12815 (cant_move, fed_by_spec_load, is_load_insn): Remove.
12816 (schedule_region): Remove unused variable.
12817 (schedule_insns): Allocate h_i_d, and not all the separate arrays.
12819 Sat Nov 6 10:00:34 1999 Mark Mitchell <mark@codesourcery.com>
12821 * local-alloc.c (local_alloc): Use xmalloc/xcalloc, not alloca.
12822 (update_equiv_regs): Likewise.
12823 (block_alloc): Likewise.
12824 * reg-stack.c (reg_to_stack): Likewise.
12825 (convert_regs_2): Likewise.
12826 * reload1.c (reload_as_needed): Likewise.
12828 Sat Nov 6 09:57:59 1999 Mark Mitchell <mark@codesourcery.com>
12830 * Makefile.in (dbxout.o): Depend on ggc.h.
12831 (dwarf2out.o): Likewise.
12832 (xcoffout.o): Likewise.
12833 * dbxout.c: Include ggc.h.
12834 (dbxout_init): Register lastfile as a root.
12835 * dwarf2out.c: Include ggc.h.
12836 (dwarf2out_line): Register lastfile as a root.
12837 * xcoffout.c: Include ggc.h.
12838 (xcoffout_source_line): Register xcoff_lastfile as a root.
12840 Sat Nov 6 09:52:09 1999 Richard Henderson <rth@cygnus.com>
12842 * i386.md (movdf_1, movxf_1): Earlyclobber general regs destination.
12844 Sat Nov 6 07:48:59 1999 Catherine Moore <clm@cygnus.com>
12846 * config/svr4.h (ASM_DECLARE_FUNCTION): Check if already
12848 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
12850 Fri Nov 5 18:33:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12852 * global.c (EXECUTE_IF_SET_IN_ALLOCNO_SET): New macro.
12853 (EXECUTE_IF_CONFLICT): Likewise.
12854 (ALLOCNO_LIVE_P): Avoid signed division.
12855 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Likewise.
12856 (prune_preferences, find_reg): Use EXECUTE_IF_CONFLICT.
12857 (record_one_conflict): Use EXECUTE_IF_SET_IN_ALLOCNO_SET.
12859 Fri Nov 5 12:04:02 1999 Richard Henderson <rth@cygnus.com>
12861 * haifa-sched.c (schedule_block): Don't crash if there's no
12862 next insn for an interblock movement.
12863 (add_branch_dependences): Don't allow clobber insns to move either.
12865 Fri Nov 5 10:18:11 1999 Richard Henderson <rth@cygnus.com>
12867 * i386.c (split_xf): New.
12868 * i386-protos.h: Declare it.
12869 * i386.md (movxf_1): Add general regs alternatives.
12870 (movxf_1+1): New splitter for same.
12872 Fri Nov 5 12:05:52 1999 Nick Clifton <nickc@cygnus.com>
12874 * function.c (purge_addressof_1): Add missing return values.
12876 Fri Nov 5 10:07:25 1999 Nick Clifton <nickc@cygnus.com>
12878 * function.c (is_addressof): New function. Returns true if
12879 the given piece of RTL is an ADDRESSOF.
12880 (purge_addressof_1): Make boolean. Return false if the
12881 ADDRESSOFs could not be purged.
12882 (purge_addressof): If ADDRESSOFs could not be purged from the
12883 notes attached to an insn, remove the offending note(s),
12884 unless they are attached to a libcall.
12886 1999-11-05 Andreas Jaeger <aj@suse.de>
12888 * genoutput.c (null_operand =): Initialize all fields.
12890 * errors.h: Add extern to prototypes.
12892 Fri Nov 5 01:44:09 1999 Jeffrey A Law (law@cygnus.com)
12894 * configure.in (m68k-next-nextstep4): Handle Openstep 4.2.
12895 * configure: Rebuilt.
12897 Fri Nov 5 01:24:37 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12899 * global.c (CONFLICTP, SET_CONFLICT): Avoid signed division.
12900 (mirror_conflicts): New function.
12901 (global_alloc): Call it.
12902 (expand_preferences): Remove redundant CONFLICTP test.
12903 (find_reg, dump_conflicts): Likewise.
12904 (prune_preferences): Process conflicts one word at a time.
12906 Fri Nov 5 01:05:21 1999 Richard Henderson <rth@cygnus.com>
12908 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_BITMAP
12909 instead of an explicit loop.
12911 Thu Nov 4 23:07:14 1999 Jim Wilson <wilson@cygnus.com>
12913 * cse.c (cse_insn): Revert Oct 31 change. When computing src_elt,
12914 if REG_RETVAL check succeeds, then put classp in src_elt.
12916 Thu Nov 4 23:48:14 1999 Jeffrey A Law (law@cygnus.com)
12918 * function.c (pad_to_arg_alignment): Only update argument_pad
12919 if the argument's alignment is greater than STACK_BOUNDARY.
12921 Thu Nov 4 16:44:53 1999 Richard Henderson <rth@cygnus.com>
12923 * bitmap.h (BITMAP_XFREE): New.
12924 * flow.c (life_analysis): Use it.
12925 (life_analysis_1): Free blocks.
12927 * combine.c (undo_commit): New.
12928 (try_combine): Use it. Don't zap undobuf.undos.
12929 (combine_instructions): Don't zap undobuf.undos; free the
12930 undobuf.frees list.
12932 * local-alloc.c (local_alloc): Free qty_phys_num_sugg.
12934 * stmt.c (cost_table_): New.
12935 (estimate_case_costs): Use it instead of xmalloc.
12937 * toplev.c (compile_file): Reuse dumpname memory instead
12940 Thu Nov 4 16:36:44 1999 Richard Henderson <rth@cygnus.com>
12942 * reg-stack.c (convert_regs_1): Initialize target_stack->top
12943 after verifying an EH edge.
12945 * haifa-sched.c (init_rgn_data_dependences): Correctly
12946 size bb_pending_lists_length when zeroing.
12948 Thu Nov 4 16:36:36 1999 Richard Henderson <rth@cygnus.com>
12950 * function.c (diddle_return_value): New.
12951 (expand_function_end): Use it.
12952 * stmt.c (expand_null_return): Likewise.
12953 (expand_value_return): Likewise.
12955 * reg-stack.c (subst_stack_regs_pat): Handle clobbers at top-level.
12957 * reload1.c (reload): Don't remove return value clobbers.
12959 Thu Nov 4 13:33:46 1999 Richard Henderson <rth@cygnus.com>
12961 * rtl.c (read_rtx): Use fatal_with_file_and_line not fatal.
12963 Thu Nov 4 12:49:52 1999 Richard Henderson <rth@cygnus.com>
12965 * cse.c (cse_main): Use xmalloc, not alloca.
12966 (cse_basic_block): Likewise.
12967 * local-alloc.c (local_alloc): Likewise.
12969 Thu Nov 4 14:22:12 1999 David Billinghurst <David.Billinghurst@riotinto.com.au>
12970 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12972 * rtl.c: Include toplev.h.
12973 (fatal): Remove declaration.
12975 Thu Nov 4 06:39:47 1999 Jeffrey A Law (law@cygnus.com)
12977 * haifa-sched.c (schedule_block): Fix thinko.
12979 1999-11-03 James McKelvey <mckelvey@fafnir.com>
12981 * fixinc/fixincl.c(create_file): Allow for systems that do not have
12982 S_IR* defined values
12984 1999-11-03 Philippe De Muyter <phdm@macqel.be>
12986 * fixlib.c (load_file_data): Do not call `realloc' with a NULL pointer;
12987 call `malloc' instead.
12989 Wed Nov 3 23:05:14 1999 Mark Mitchell <mark@codesourcery.com>
12991 * flags.h (flag_renumber_insns): Declare.
12992 * emit-rtl.c (renumber_insns): Check flag_renumber_insns. Print
12994 * rtl.h (renumber_insns): Change prototype.
12995 * toplev.c (flag_renumber_insns): Define.
12996 (rest_of_compilation): Pass rtl_dump_file to flag_renumber_insns.
12998 Wed Nov 3 15:11:27 1999 David S. Miller <davem@redhat.com>
13000 * config/sparc/sparc.md: Remove insn type fpsqrt, add fpsqrts
13001 and fpsqrtd. Use them and create fdiv function unit to more
13002 accurately represent fpu sqrt pipeline semantics on UltraSparc.
13003 * config/sparc/sparc.c: Account for fpsqrt{s,d} changes.
13005 Wed Nov 3 15:11:27 1999 Matteo Frigo <athena@fftw.org>
13007 * config/sparc/sparc.md: Adjust FADD/FMUL result latencies to
13009 * config/sparc/sparc.c (ultra_schedule_insn): Insert launched
13010 insn into ready list, do not use just a raw swap.
13012 Wed Nov 3 14:51:59 1999 Mark P. Mitchell <mark@codesourcery.com>
13014 * rtl.h (renumber_insns): New function.
13015 (remove_unnecessary_notes): Likewise.
13016 * emit-rtl.c (renumber_insns): Define.
13017 (remove_unncessary_notes): Likewise.
13018 * toplev.c (rest_of_compilation): Remove dead code.
13019 Use renumber_insns and remove_unncessary_notes.
13021 * gcse.c (struct null_pointer_info): New type.
13022 (get_bitmap_width): New function.
13023 (current_block): Remove.
13024 (nonnull_local): Likewise.
13025 (nonnull_killed): Likewise.
13026 (invalidate_nonnull_info): Take a null_pointer_info as input.
13027 (delete_null_pointer_checks_1): New function.
13028 (delete_null_pointer_checks): Use it.
13030 * haifa-sched.c (find_rgns): Replace uses of alloca with xmalloc.
13031 (split_edges): Likewise.
13032 (schedule_block): Likewise.
13033 (compute_block_backward_dependencies): Likewise.
13034 (schedule_region): Likewise.
13035 (schedule_insns): Likewise.
13037 Wed Nov 3 15:40:23 1999 Catherine Moore <clm@cygnus.com>
13039 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Provide default.
13040 * emit-rtl.c (gen_label_rtx): Support LABEL_ALTERNATE_NAME.
13041 * final.c (final_scan_insn): Emit LABEL_ALTERNATE_NAME.
13042 * ggc-common.c (ggc_mark_rtx_children): Mark LABEL_ALTERNATE_NAME.
13043 * jump.c (delete_unreferenced_labels): Don't delete if
13044 LABEL_ALTERNATE_NAME is set.
13045 * print-rtl.c (print_rtx): Dump alternate name.
13046 * rtl.def (CODE_LABEL): Change format to "iuuis00s".
13047 * rtl.h (LABEL_ALTERNATE_NAME): Define.
13048 * rtl.texi (LABEL_ALTERNATE_NAME): Document.
13049 * tm.texi (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Document.
13051 Wed Nov 3 15:39:19 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13053 * fix-header.c (recognized_extern, recognized_function): Constify
13056 * lcm.c (compute_laterin): Remove unused variable `temp_bitmap'.
13057 (pre_edge_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
13058 (compute_available): Remove unused variable `last'.
13059 (compute_nearerout): Remove unused variable `temp_bitmap'.
13060 (pre_edge_rev_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
13061 Remove unused variable `x'.
13063 * scan.h (recognized_function, recognized_extern): Constify a
13066 * simplify-rtx.c (simplify_rtx): Remove unused variable `new'.
13068 Wed Nov 3 10:40:53 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13070 * varasm.c (decode_rtx_const): Use XSTR to access the string
13073 Wed Nov 3 10:10:58 1999 Richard Henderson <rth@cygnus.com>
13075 * c-decl.c (duplicate_decls): Copy DECL_MODE too.
13077 Wed Nov 3 12:12:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13079 * reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.
13081 Wed Nov 3 03:26:28 1999 Jeffrey A Law (law@cygnus.com)
13083 * pa.c (ireg_operand): New function.
13084 * pa.h (PREDICATE_CODES): Handle ireg_operand.
13085 * pa.md (parallel_addb, parallel_movb): Use ireg_operand.
13086 Fix out of date comment.
13088 * pa.md (negdi2): Turn into expander + anonymous pattern.
13090 * reload.c (find_reloads): Fix typos in recent change.
13092 * dwarf2out.c: Do not include ctype.h.
13094 Tue Nov 2 21:53:44 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13096 * regclass.c (record_reg_classes): Always use may_move_cost when
13097 seeing how operand fits with various register classes.
13099 Tue Nov 2 15:38:17 1999 Richard Henderson <rth@cygnus.com>
13101 * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes.
13102 * toplev.c: Revert Nov 1 13:22 change.
13104 Tue Nov 2 14:21:37 1999 Jason Eckhardt <jle@cygnus.com>
13106 * config/pa/pa.md (height reduction patterns): Add checks for
13107 overlapping operands to avoid semantic-destroying splits for
13108 height reduction patterns.
13110 Tue Nov 2 15:27:31 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13112 * configure.in (m68k-hp-hpux*, xm_alloca.h): The underscore should
13113 have been an hyphen, fixed.
13114 * configure: Rebuilt.
13116 Tue Nov 2 17:04:36 1999 Nick Clifton <nickc@cygnus.com>
13118 * config/arm/tpe.h: Add prototypes for exported functions.
13119 * config/arm/pe.c: Fix compile time warnings.
13120 * config/arm/semi.h: Fix compile time warnings.
13121 * config/arm/arm.c: Fix compile time warnings.
13122 * config/arm/arm.h: Fix compile time warnings.
13123 * config/arm/arm.md: Fix compile time warnings.
13124 * config/arm/thumb.c: Fix compile time warnings.
13125 * config/arm/thumb.h: Fix compile time warnings.
13126 * config/arm/thumb.md: Fix compile time warnings.
13128 Tue Nov 2 04:10:24 1999 Jan Hubicka <hubicka@freesoft.cz>
13130 * jump.c (jump_optimize_1): Swap the incscc and the conditional mode
13133 * unroll.c (unroll_loop): Remove LOOP notes when loop is
13134 completely unrolled.
13136 Tue Nov 2 16:57:22 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13138 * cse.c (simplify_plus_minus, check_fold_const): Delete declarations.
13140 Tue Nov 2 09:43:00 1999 Catherine Moore <clm@cygnus.com>
13142 * Makefile.in (genattrtab): Don't use (HOST_RTLANAL).
13143 * rtl.h (rtx_equal_p): Move prototype.
13144 * rtl.c (rtx_equal_function_value_matters): Move from
13146 (rtx_equal_p): Likewise.
13147 * rtlanal.c (rtx_equal_function_value_matters): Delete.
13148 (rtx_equal_p): Likewise.
13150 Mon Nov 1 23:21:17 1999 Jason Merrill <jason@yorick.cygnus.com>
13152 * libgcc2.c (__do_global_dtors): Only do EH frame stuff if
13153 ! HAS_INIT_SECTION.
13155 Mon Nov 1 23:37:38 1999 Jeffrey A Law (law@cygnus.com)
13157 * gcc.1 (PA options): Remove obsolete -mshared-libs options.
13159 * pa.h (ADDR_VEC_ALIGN): Define.
13161 * jump.c (jump_optimize_1): Also move LOOP_VTOP and LOOP_CONT
13162 notes when presented with "if (foo) break; end_of_loop" and
13163 the break sequence gets moved out of the loop.
13165 * unroll.c (unroll_loop): Allocate memory for MAP using xcalloc.
13166 Remove explicit zero initializations of entries within MAP.
13168 Mon Nov 1 18:09:14 1999 Richard Henderson <rth@cygnus.com>
13170 * reg-stack.c (convert_regs_1): Handle EH edges specially.
13172 Mon Nov 1 15:41:01 1999 Mark P. Mitchell <mark@codesourcery.com>
13174 * bitmap.h (BITMAP_XMALLOC): New macro.
13175 * flow.c (CLEAN_ALLOCA): Remove.
13176 (delete_unreachable_blocks): Use xmalloc/xcalloc instead of alloca.
13177 (life_analysis): Likewise.
13178 (update_life_info): Don't use CLEAN_ALLOCA.
13179 (life_analysis_1): Use xmalloc/xcalloc instead of alloca.
13180 (calculate_global_regs_live): Likewise.
13181 (print_rtl_with_bb): Likewise.
13182 (verify_flow_info): Likewise.
13183 * global.c (global_alloc): Likewise.
13184 (global_conflicts): Likewise.
13185 * integrate.c (save_for_inline_nocopy): Likewise.
13186 (expand_inline_function): Likewise.
13187 * jump.c (jump_optimize_1): Likewise.
13188 (duplicate_loop_exit_test): Likewise.
13189 (thread_jumps): Likewise.
13190 * loop.c (loop_optimize): Likewise.
13191 (combine_givs): Likewise.
13192 (recombine_givs): Likewise.
13193 * reorg.c (dbr_schedule): Likewise.
13194 * unroll.c (unroll_loop): Likewise.
13196 * combine.c (combine_instructions): Use xmalloc instead of alloca.
13198 Mon Nov 1 13:22:30 1999 Richard Henderson <rth@cygnus.com>
13200 * toplev.c (rest_of_compilation): Don't optimize the CFG
13201 when rebuilding, just before dbr.
13203 Mon Nov 1 14:35:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13205 * output.h (assemble_end_function, assemble_destructor,
13206 assemble_constructor, assemble_gc_entry, assemble_global,
13207 assemble_label, output_constant_pool) Constify a char*.
13209 * varasm.c (assemble_destructor, assemble_constructor,
13210 assemble_gc_entry, assemble_end_function, assemble_global,
13211 assemble_label, output_constant_pool): Likewise.
13213 Mon Nov 1 14:22:51 1999 Nick Clifton <nickc@cygnus.com>
13215 * config/arm/thumb.c (thumb_expand_prologue): Add comments
13216 explaining what is goin on in this function.
13218 Mon Nov 1 08:03:15 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13220 * regclass.c (record_reg_classes): In matching case, recompute
13221 costs since the direction of movement is different.
13223 Sun Oct 31 21:59:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
13225 * resource.c (mark_target_live_regs): For unconditional branches,
13226 the resources found at the branch target should be added to the
13227 resources found so far, not intersected.
13229 Sun Oct 31 15:48:49 1999 Philippe De Muyter <phdm@macqel.be>
13231 * fixinc/fixtests.c, fixinc/fixfixes.c : Keep `#' in first column for
13233 * fixinc/fixincl.c (fcntl.h) : Do not include this file twice.
13234 (sys/mman.h): Include this file only if #HAVE_MMAP.
13235 (run_compiles): Initialize `esac_fmt' with one old KR string, not
13236 with automatically concatenated ANSI strings.
13238 Sun Oct 31 23:57:07 1999 Mark Mitchell <mark@codesourcery.com>
13240 * ggc-page.c (struct page_entry): Remove save_num_free_objects.
13241 (DIV_ROUND_UP): Robustify.
13242 (ggc_recalculate_in_use_p): New function.
13243 (release_pages): Don't inline it.
13244 (ggc_alloc_obj): Don't refuse to allocate objects on pages for
13246 (ggc_pop_context): Use ggc_recalculate_in_use_p.
13247 (clear_marks): Always save in_use_p.
13248 (sweep_pages): Use ggc_recalculate_in_use_p.
13249 (ggc_page_print_statistics): Avoid signed/unsigned comparisons.
13250 Release pages before counting statistics.
13252 Sun Oct 31 23:42:37 1999 Mark Mitchell <mark@codesourcery.com>
13254 * toplev.c (rest_of_compilation): Fix thinko in this change:
13256 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
13258 (rest_of_compilation): If inside an inlined external function,
13259 pretend we are just being declared.
13261 Sun Oct 31 23:03:25 1999 Jeffrey A Law (law@cygnus.com)
13263 * flow.c (calculate_global_regs_live): Fix thinko.
13265 * integrate.c (expand_inline_function): Fix bugs in previous
13266 change from Oct 28, 1999.
13268 Sun Oct 31 20:27:45 1999 Mark Mitchell <mark@codesourcery.com>
13270 * stmt.c (expand_value_return): Fix typo in this change:
13272 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13273 (expand_value_return): Correctly convert VAL when promoting function
13274 return; support RETURN_REG being a PARALLEL.
13276 Sun Oct 31 20:25:42 1999 Mark P. Mitchell <mark@codesourcery.com>
13278 * expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.
13280 Sun Oct 31 20:42:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13282 * hard-reg-set.h (reg_names): Constify a char*.
13284 * regclass.c (reg_names): Likewise.
13286 * regs.h (reg_names): Likewise
13288 * a29k/a29k.c (reg_names): Delete declaration.
13290 * a29k/a29k.h (CONDITIONAL_REGISTER_USAGE): Constify a char*.
13292 * arc/arc.c (arc_save_restore, arc_output_function_prologue,
13293 arc_output_function_epilogue): Likewise.
13295 * elxsi/elxsi.c (reg_names): Likewise.
13297 * gmicro/gmicro.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Likewise.
13299 * m32r/m32r.c (m32r_output_function_epilogue, emit_cond_move):
13302 * m88k/m88k.c (output_function_profiler): Likewise.
13304 * sparc/sparc.c (sparc_flat_output_function_prologue,
13305 sparc_flat_output_function_epilogue): Likewise.
13307 Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com>
13309 * toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber
13310 warning from -Wuninitialized and put it under -W.
13311 * function.c (uninitialized_vars_warning): Warn only when the
13312 corresponding flag is set.
13314 Sun Oct 31 01:53:30 1999 Jeffrey A Law (law@cygnus.com)
13316 * cse.c (cse_insn): If an insn has only a single set, SRC_EQV
13317 is nonzero and the single set does not have an elt, then assign
13320 * simplify-rtx.c: New file.
13321 * Makefile.in (OBJS): Add simplify-rtx.o
13322 (simplify-rtx.o): Add dependencies.
13323 * rtl.h (simplify_gen_binary, simplify_rtx): Add prototypes.
13324 * cse.c: Use simplify_gen_binary intead of cse_gen_binary.
13325 (cse_gen_binary, simplify_unary_operation): Delete.
13326 (simplify_binary_operation, simplify_plus_minus): Likewise.
13327 (check_fold_consts, simplify_relation_operation): Likewise.
13328 (simplify_ternary_operation): Likewise.
13329 (delete_trivially_dead_insns): Simplify the contents of the
13330 REG_EQUAL note before trying to substitute it into the source
13331 of the reg-reg copy at the end of a libcall sequence.
13333 * combine.c (combine_simplify_rtx): Renamed from simplify_rtx. All
13334 references/callers changed.
13336 * mn10200.c (mn10200_va_arg): Force the return value into a
13339 * fr30.h (EXTRA_CC_NAMES): Remove obsolete macro.
13341 * cccp.c (macroexpand): Avoid out of range accesses for omitted
13344 Sat Oct 30 22:42:50 1999 Stephen L Moshier <moshier@mediaone.net>
13346 * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
13348 Sat Oct 30 22:19:26 1999 Jeffrey A Law (law@cygnus.com)
13350 * fold-const.c (fold): Fix thinko when optimizing comparisons
13353 Sat Oct 30 21:32:17 1999 David Starner <dstarner98@aasaa.ofe.org>
13355 * gcc.texi (Passes): Update front-end files to their current
13358 Sat Oct 30 14:41:40 1999 Richard Henderson <rth@cygnus.com>
13360 * alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Call secondary_reload_class.
13361 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13362 (PREDICATE_CODES): Add addition_operation.
13363 * alpha-protos.h (addition_operation): Declare.
13364 (secondary_reload_class): Likewise.
13365 * alpha.c (addition_operation): New.
13366 (secondary_reload_class): New, from old SECONDARY_INPUT_RELOAD_CLASS.
13367 * alpha.md (adddi3): Turn into expander.
13368 (*lda, *adddi_2): New.
13369 (movsf, movdf patterns): Don't preference integer regs.
13370 (movsi, movdi patterns): Don't preference fp regs.
13372 Sat Oct 30 14:38:22 1999 Richard Henderson <rth@cygnus.com>
13374 * genrecog.c (write_switch): Check for duplicate CODE cases.
13376 Sat Oct 30 14:31:48 1999 Richard Henderson <rth@cygnus.com>
13378 * ggc-common.c: Update pre-function commentary.
13379 * ggc-page.c: Likewise.
13381 (poison_pages): Use memset directly.
13382 (ggc_alloc_obj): Likewise. Use a different pattern than poison_pages.
13383 (ggc_collect): Poison before sweeping.
13384 * ggc-simple.c: Update pre-function commentary.
13385 (ggc_alloc_obj): Poison non-zeroed memory.
13387 Sat Oct 30 14:28:52 1999 Mark Mitchell <mark@codesourcery.com>
13389 * ggc-common.c (ggc_print_statistics): Make arguments to fprintf
13390 match format string, even on 64-bit hosts.
13391 * gcc-page.c (ggc_page_print_statistics): Likewise.
13393 Sat Oct 30 14:38:04 1999 Catherine Moore <clm@cygnus.com>
13395 * config/i386/i386.c (ix86_cpu): Revert last patch.
13396 * config/i386/i386.h (ix86_cpu): Ditto.
13398 Fri Oct 29 17:00:42 1999 Jim Wilson <wilson@cygnus.com>
13400 * stor-layout.c (layout_type): When compute TYPE_SIZE_UNIT from
13401 TYPE_SIZE, convert type of result to sizetype.
13403 Fri Oct 29 14:34:17 1999 Richard Henderson <rth@cygnus.com>
13405 * flow.c (count_or_remove_death_notes): Equate NULL with the
13408 * jump.c, reg-stack.c, toplev.c: Revert Oct 27 change.
13409 * toplev.c (rest_of_compilation): Rebuild CFG immediately before
13412 * i386.c (pic_label_no): Delete.
13413 (ix86_attr_length_default): Don't use single_set to peek
13416 * recog.c (peephole2_optimize): Allow recog_next_insn to index
13417 the first insn after bb->end.
13418 * i386.md (push mem peeps): Scratch is live after evaluation
13420 (cmp mem peep): Similarly.
13422 Fri Oct 29 11:50:11 1999 Catherine Moore <clm@cygnus.com>
13424 * calls.c (emit_library_call_value): Fix declaration of alignment_pad.
13425 * function.c (pad_to_arg_alignment): Add missing braces.
13427 Fri Oct 29 13:53:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13429 * alpha/alpha-protos.h (literal_section): Add prototype.
13430 (alpha_need_linkage, alpha_start_function,alpha_end_function):
13433 * alpha/alpha.c (alpha_ra_ever_killed, set_frame_related_p): Add
13435 (alpha_start_function, alpha_end_function, float_strings,
13436 alpha_need_linkage): Constify a char*
13438 * alpha/alpha.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_MI_THUNK): Likewise.
13440 * alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
13442 * alpha/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13444 * alpha/vms.h (ASM_OUTPUT_SECTION_NAME): Likewise.
13446 Fri Oct 29 13:49:39 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13448 * flow.c (debug_flow_info): Add prototype.
13450 * gcc.c (main): Likewise.
13452 * gcse.c (expr_reaches_here_p_work, pre_expr_reaches_here_p_work):
13455 * reload1.c (failed_reload, set_reload_reg): Likewise.
13457 * mips-tfile.c (main): Likewise.
13458 (pfatal_with_name, fancy_abort, botch, fatal, catch_signal): Mark
13459 with ATTRIBUTE_NORETURN.
13461 Fri Oct 29 18:16:03 1999 Andrew Haley <aph@cygnus.com>
13463 * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
13464 DECL is not a memory ref.
13466 Fri Oct 29 09:05:34 1999 Catherine Moore <clm@cygnus.com>
13468 * config/i386/i386.h (ix86_cpu): Remove extern attribute.
13469 * config/i386/i386.c (ix86_cpu): Add extern attribute.
13471 Fri Oct 29 16:30:04 1999 Andrew Haley <aph@cygnus.com>
13473 * config/mips/elf.h: remove NAME__MAIN and SYMBOL__MAIN.
13474 * config/mips/elf64.h: ditto.
13476 Fri Oct 29 08:03:57 1999 Catherine Moore <clm@cygnus.com>
13478 * expr.c (emit_push_insn): New argument alignment_pad.
13479 Update all callers. Adjust stack pointer based on alignment pad.
13480 * function.c (pad_to_arg_alignment): New argument alignment_pad.
13481 Update all callers. Track alignment_pad if boundary > PARM_BOUNDARY.
13482 (locate_and_pad_parm): New argument alignment_pad. Update all
13484 * expr.h (emit_push_insn): Update prototype.
13485 (locate_and_pad_parm): Update prototype.
13486 * calls.c (arg_data): Add new field alignment_pad.
13487 (initialize_argument_information): Initialize alignment_pad.
13489 Fri Oct 29 02:51:35 1999 Mark Mitchell <mark@codesourcery.com>
13491 * except.c (free_eh_nesting_info): Free the info itself.
13492 * function.c (free_after_compilation): Don't free NULL.
13493 * gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
13494 (pre_edge_insert): Free inserted.
13495 * stmt.c (free_stmt_status): Don't free NULL.
13497 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
13499 * gcov.c (DIR_SEPARATOR): Provide default.
13500 (output_data): Add test for MS-DOS format absolute filename.
13501 (fancy_abort): Correct program name.
13502 (open_files): Open all files in binary mode.
13503 * libgcc2.c (__bb_exit_func): Likewise.
13505 * profile.c (init_branch_prob): Specify binary when opening files.
13507 * flags.h (flag_unwind_tables): New decl.
13508 * toplev.c (flag_unwind_table): New definition.
13509 (f_options): Add -funwind-tables.
13510 (decode_g_option): Clarify warning when unknown -g option is given.
13511 (rest_of_compilation): If inside an inlined external function,
13512 pretend we are just being declared.
13514 * dwarf2out.c (dwarf2out_do_frame): Check -funwind_tables.
13515 (dwarf2out_frame_finish): Likewise.
13517 Fri Oct 29 07:44:26 1999 Vasco Pedro <vp@di.fct.unl.pt>
13519 * fold-const.c (merge_ranges): If not in0, but in1, handle
13520 upper bounds equal like subset case.
13522 Thu Oct 28 19:22:24 1999 Douglas Rupp <rupp@gnat.com>
13524 * dbxout.c (dbxout_parms): Generate a second stabs line for parameters
13525 passed in a register but moved to the stack.
13527 Thu Oct 28 19:12:57 1999 Sam Tardieu <tardieu@act-europe.fr>
13529 * gcc.c (pass_exit_codes, greatest_status): New variables.
13530 (struct option_map): Add entry for "--pass-exit-codes".
13531 (execute): Update greatest_status if error.
13532 (display_help): Add documentation for -pass-exit-codes.
13533 (process_command): Handle -pass-exit-codes.
13534 (main): Look at pass_exit_codes and greatest_status on call to exit.
13536 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13538 * reload.c (find_reloads): Refine test for no input reload
13539 case to not includes reloads emitted after insn.
13541 * function.c (find_temp_slots_from_address): Handle sum involving
13542 a register that points to a temp slot.
13543 (update_temp_slot_address): Make recursive call if both old and
13544 new are PLUS with a common operand.
13545 * calls.c (expand_call): Mark temp slot for result as having
13548 * rtlanal.c (reg_referenced_p, case IF_THEN_ELSE): New case.
13550 * gcc.c (process_command): Add standard_exec_prefix with "GCC"
13551 component as well as "BINUTILS".
13553 * integrate.h (copy_rtx_and_substitute): New arg, FOR_LHS.
13554 * integrate.c (copy_rtx_and_substitute): Likewise.
13555 (expand_inline_function, integrate_parm_decls, integrate_decl_tree):
13556 All callers changed.
13557 * unroll.c (inital_reg_note_copy, copy_loop_body): Likewise.
13559 * dbxout.c (dbxout_type, case INTEGER_TYPE_NODE): If can use
13560 gdb extensions, write size of type; also be more consistent
13561 in using references when this is a subtype.
13563 * pa.md (extv, extzv, insv): Use define_expand to reject constant
13564 that is out of range.
13566 * loop.c (unknown_constant_address_altered): New variable.
13567 (prescan_loop): Initialize it.
13568 (note_addr_stored): Set it for RTX_UNCHANGING_P MEM.
13569 (invariant_p, case MEM): Remove handling for volatile and readonly;
13570 check new variable if readonly.
13571 (check_dbra_loop): Chdeck unknown_constant_address_altered.
13573 * cse.c (canon_hash, case MEM): Do not record if BLKmode.
13574 (addr_affects_sp_p): Removed from note_mem_written and only
13575 define #ifdef AUTO_INC_DEC.
13577 * alpha.c (input_operand, case ADDRESSOF): Treat as REG.
13579 * regclass.c (record_reg_classes): Properly handle register move
13582 * varasm.c (initializer_constant_valid_p, case MINUS_EXPR):
13583 Don't think valid if both operands are invalid.
13584 (struct constant_descriptor): New field RTL.
13585 (mark_const_hash_entry): Mark it.
13586 (record_constant{,_rtx}): Initialize it.
13587 (output_constant_def): Allocate RTL in permanent obstack and
13589 ({record,compare}_constant_1): Modes must match for
13590 CONSTRUCTOR of ARRAY_TYPE.
13592 * c-common.h (initializer_constant_valid_p): Delete decl from here.
13593 * output.h (initializer_constant_valid_p): Move decl to here.
13594 * c-common.c (initializer_constant_valid_p): Delete function from here.
13595 * varasm.c (initializer_constant_valid_p): Move function to here.
13597 * tree.h (STRIP_SIGN_NOPS): New macro.
13598 * fold-const.c (optimize_minmax_comparison): New function.
13599 (invert_truthvalue, case WITH_RECORD_EXPR): New case.
13600 (fold): Use STRIP_SIGN_NOPS instead of STRIP_TYPE_NOPS.
13601 (fold, case EQ_EXPR): Call optimize_minmax_comparison and add
13602 cases with ABS_EXPR, NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR, and
13603 widening conversions.
13604 (fold, case LE_EXPR): Rework changing unsigned to signed comparisons
13605 to look at size of mode, not precision of type; also add missing cases.
13606 (optimize_bit_field_compare, decode_field_reference): Don't try to
13607 optimize COMPONENT_REF of a PLACEHOLDER_EXPR.
13609 * dwarf2out.c (ctype.h): Include.
13610 (dwarf2out_set_demangle_name_func): New function.
13611 (size_of_line_info): Deleted.
13612 (output_line_info): Compute size of line info table from difference
13614 (base_type_die, add_name_attribute): Call demangle function, if any.
13615 (field_byte_offset): Use bits per word for variable length fields.
13616 (gen_array_type_die): Add array name.
13617 (gen_subprogram_die): Ignore DECL_INLINE if -fno-inline.
13618 (dwarf2out_add_library_unit_info): New function.
13620 * explow.c (set_stack_check_libfunc): New function.
13621 (stack_check_libfunc): New static variable.
13622 (probe_stack_range): Allow front-end to set up a libfunc to call.
13624 * combine.c (simplify_comparison): When making comparison in wider
13625 mode, check for having commuted an AND and a SUBREG.
13626 (contains_muldiv): New function.
13627 (try_combine): Call it when dividing a PARALLEL.
13628 (simplify_rtx, case TRUNCATE): Don't remove for umulsi3_highpart.
13629 (simplify_comparison, case ASHIFTRT): Recognize sign-extension of
13631 (record_value_for_reg): If TEM is a binary operation with two CLOBBERs,
13632 use one of the CLOBBERs instead.
13633 (if_then_else_cond): If comparing against zero, just return thing
13636 * optabs.c (expand_abs): If machine has MAX, ABS (x) is MAX (x, -x).
13637 Don't generate shifts and subtract if have conditional arithmetic.
13639 * rtl.h (delete_barrier): New declaration.
13640 * jump.c (jump_optimize): Set up to handle conditional call.
13641 In conditional arithmetic case, handle CALL_INSN followed by a BARRIER.
13642 (delete_barrier): New function.
13644 * rtl.c (read_rtx): Call fatal if bad RTL code; check for bad mode.
13646 * recog.c (nonmemory_operand): Accept ADDRESSOF.
13648 * tree.c (build_type_attribute_variant): Push to obstack of
13649 ttype around type_hash_canon call.
13651 * expr.c (placeholder_list): Move decl to file scope.
13652 (expand_expr): Don't force access to volatile just because its
13654 If ignoring reference operations, just expand the operands.
13655 (expand_expr, case COMPONENT_REF): Propagate
13656 EXPAND_CONST_ADDRESS to recursive call when expanding inner.
13657 Refine test for using bitfield operations vs pointer punning.
13658 (expand_expr, case CONVERT_EXPR): If converting to
13659 BLKmode UNION_TYPE from BLKmode, just return inner object.
13660 Use proper mode in store_field call.
13661 Properly set sizes of object to store and total size in store_field
13662 call for convert to union.
13663 (expand_expr, case ARRAY_REF): If OP0 is in a register, put it in
13664 memory (like for ADDR_EXPR). Also, don't put constant in register if
13665 we'll want it in memory.
13666 (readonly_fields_p): New function.
13667 (expand_expr, case INDIRECT_REF): Call it if LHS.
13668 (expand_assignment): Handle a RESULT_DECL where
13669 DECL_RTL is a PARALLEL.
13670 (do_jump, case WITH_RECORD_EXPR): New case.
13671 (get_inner_reference): Always go inside a CONVERT_EXPR
13672 and NOP_EXPR if both modes are the same.
13673 (store_field): Use bitfield operations if size of bitsize is not same
13674 as size of RHS's type.
13675 Check for bitpos not a multiple of alignment in BLKmode case.
13676 Do block move in largest possible alignment.
13677 (store_constructor): Set BITSIZE to -1 for variable size and properly
13678 in case of array of BLKmode.
13679 (expand_expr_unaligned): New function.
13680 (do_compare_and_jump): Call it.
13682 * mips/iris5.h (SWITCHES_NEED_SPACES): New macro.
13683 * collect2.c (main): Only allow -ofoo if SWITCHES_NEED_SPACES
13684 does not include 'o'.
13686 * function.c (instantiate_virtual_regs_1, case SET): Handle case where
13687 both SET_DEST and SET_SRC reference a virtual register.
13688 (gen_mem_addressof): Copy RTX_UNCHANGING_P from new REG to old REG.
13690 * integrate.c (expand_inline_function): Handle case of setting
13691 virtual stack vars register (from built in setjmp); when parameter
13692 lives in memory, expand virtual_{stack_vars,incoming_args}_rtx early.
13693 (subst_constant): Add new parm, MEMONLY.
13694 (expand_inline_function, integrate_parm_decls): Pass new parm.
13695 (integrate_decl_tree): Likewise.
13696 (copy_rtx_and_substitute, case MEM): Do copy RTX_UNCHANGING_P.
13697 (try_constants): Call subst_constants twice, with MEMONLY 0 and 1.
13698 (copy_rtx_and_substitute, case SET): Add explicit calls to
13699 copy_rtx_and_substitute for both sides.
13701 * stmt.c (expand_asm_operands): Don't use TREE_STRING_LENGTH for
13703 (pushcase{,_range}): Convert to NOMINAL_TYPE after checking for
13704 within INDEX_TYPE, instead of before.
13705 (fixup_gotos): Use f->target_rtl, not the next insn,
13706 since latter may be from a later fixup.
13707 (expand_value_return): Correctly convert VAL when promoting function
13708 return; support RETURN_REG being a PARALLEL.
13709 (expand_return): When checking for result in regs and having
13710 cleanup, consider PARALLEL in DECL_RTL as being in regs.
13712 1999-10-28 21:27 -0700 Zack Weinberg <zack@bitmover.com>
13714 * cpplib.h (struct cpp_buffer: fname, nominal_fname,
13715 last_nominal_fname): Mark const.
13716 (struct include_hash: name, nshort, control_macro): Mark
13718 (struct macrodef: symnam): Mark const.
13719 (struct if_stack: fname): Mark const.
13720 (is_idchar, is_idstart, is_hor_space, trigraph_table): Delete.
13721 (IStable): New character-syntax array which encompasses all
13722 the old is_foo arrays.
13723 (is_idchar, is_numchar, is_idstart, is_numstart, is_hspace,
13724 is_space): New macros for interrogating IStable.
13725 (check_macro_name): Kill last argument. All callers changed.
13727 * cppinit.c (initialize_char_syntax): Delete.
13728 (is_idchar, is_idstart, is_hor_space, is_space,
13729 trigraph_table): Delete.
13730 (IStable): New. Initialize with clever macros to avoid
13731 information duplication.
13732 (builtin_array): Table of builtins to get rid of explicit list
13733 in initialize_builtins.
13734 (initialize_builtins): Use builtins_array.
13735 (cpp_start_read): Call init_IStable, and set IStable['$'] if
13736 opts->dollars_in_ident.
13738 * cppexp.c: Change all refs to is_xyz[] arrays to use new
13740 (cpp_parse_expr): Avoid 'format string is not constant'
13741 warning. Use ISGRAPH to identify printable chars.
13742 * cppfiles.c: Change all refs to is_xyz[] arrays to use new
13744 (read_and_prescan): Map trigraphs to chars with open-coded
13745 if-else-if-... sequence, not a lookup table.
13746 * cpphash.c: Change all refs to is_xyz[] arrays to use new
13748 * cpplib.c: Change all refs to is_xyz[] arrays to use new
13749 is_xyz() macros. Kill SKIP_ALL_WHITE_SPACE (unused).
13750 (check_macro_name): Remove ability to report an invalid
13751 assertion name, which is never used.
13752 (do_line): Constify a couple of char *'s.
13753 * cppmain.c (main): Call cpp_cleanup before returning.
13755 Thu Oct 28 21:16:35 1999 Mark Mitchell <mark@codesourcery.com>
13757 * ggc.h (struct ggc_statistics): New type.
13758 (ggc_get_size): New function.
13759 (ggc_print_statistics): Likewise.
13760 * ggc-common.c (ggc_stats): New variable.
13761 (ggc_mark_rtx_children): Keep statistics.
13762 (ggc_mark_tree_children): Likewise.
13763 (ggc_print_statistics): New function.
13764 * ggc-page.c (struct globals): Add bytes_mapped field.
13765 (alloc_anon): Update it.
13766 (release_pages): Likewise.
13767 (ggc_get_size): New function.
13768 (ggc_page_print_statistics): New function.
13769 * ggc-simple.c (ggc_get_size): New function.
13771 Fri Oct 29 06:32:44 1999 Geoffrey Keating <geoffk@cygnus.com>
13773 * flow.c (propagate_block): When the last reference to a label
13774 before an ADDR_VEC is deleted because the reference is a dead
13775 store, delete the ADDR_VEC.
13777 Thu Oct 28 12:28:50 1999 Richard Henderson <rth@cygnus.com>
13779 * resource.c (find_free_register): Don't use the frame pointer
13780 if frame_pointer_needed.
13782 Thu Oct 28 10:02:00 1999 Jim Wilson <wilson@cygnus.com>
13784 * config/mips/mips.c (mips_va_arg): Delete gen_jump as emit_jump arg.
13785 (function_arg_pass_by_reference): Check for a NULL pointer in cum.
13787 * config/i960/i960.c (i960_va_start): New locals base, num.
13788 Use INDIRECT_REF instead of ARRAY_REF on valist.
13789 (i960_va_arg): Use INDIRECT_REF instead of ARRAY_REF on valist.
13791 Thu Oct 28 09:45:48 1999 Mark Mitchell <mark@codesourcery.com>
13793 * gcse.c (delete_null_pointer_checks): Fix typo in previous change.
13795 Thu Oct 28 03:37:50 1999 Peter Gerwinski <peter@gerwinski.de>
13797 * tree.def (PLACEHOLDER_EXPR): Update comments.
13799 Thu Oct 28 06:47:32 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13801 * c-common.c (check_format_info): Avoid non-literal format string
13802 warnings when `first_arg_num' is zero.
13804 Thu Oct 28 12:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13806 * rtl.texi: Delete explicit Prev, Up and Next entries in "@node"s.
13808 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
13810 * arm.md (casesi_insn): Add a clobber of the condition code
13813 Mon Oct 18 21:16:06 1999 Fred Fish <fnf@be.com>
13815 * tm.texi (CC1PLUS_SPEC): Make it clear in the docs that CC1_SPEC is
13816 used by both cc1 and cc1plus.
13818 Thu Oct 28 10:00:48 1999 Nick Clifton <nickc@cygnus.com>
13820 * config/arm/arm.c: Initialise arm_structure_size_boundary to
13821 DEFAULT_STRUCTURE_SIZE_BOUNDARY.
13822 * config/arm/arm.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define
13823 to the value 32 if it has not already been defined.
13824 * config/arm/netbsd.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY):
13825 Override definition in arm.h with a value of 8.
13827 Thu Oct 28 03:12:02 1999 David Starner <dstarner98@aasaa.ofe.org>
13829 * c-pragma.c (push_alignment): Don't check the return value
13832 Thu Oct 28 03:08:38 1999 Matteo Frigo <athena@fftw.org>
13834 * sparc.h (ADJUST_COST): Fix thinko.
13836 Thu Oct 28 02:44:03 1999 Glen Nakamura <glen.nakamura@usa.net>
13838 * cccp.c (rescan): Fixed obp pointer handling around call to
13839 check_expand subroutine.
13841 Thu Oct 28 02:15:22 1999 Jeffrey A Law (law@cygnus.com)
13843 * gcse.c (delete_null_pointer_checks): Only record non-null info
13844 for pseudos when examining stores.
13846 * arm.md (adddi3, adddi_sesidi_di, adddi_sesidi_di): Add
13847 splitters for these patterns. Use "#" for output templates.
13848 (addsi3_carryin_shift): New pattern.
13850 Thu Oct 28 10:20:02 1999 Geoffrey Keating <geoffk@cygnus.com>
13852 * config/rs6000/rs6000.md (movsf): Don't convert a SUBREG
13853 of the function return register into a plain REG until
13854 after function inlining is done.
13856 Wed Oct 27 15:21:46 1999 Richard Henderson <rth@cygnus.com>
13858 * jump.c (jump_optimize_1): If we did cross-jumping, and
13859 the data will matter, rebuild the CFG.
13860 * reg-stack.c (reg_to_stack): Only (re)build the CFG if
13861 not optimizing. Don't run shorten_branches.
13862 * toplev.c (rest_of_compilation): Run shorten_branches after
13865 Wed Oct 27 12:33:40 1999 Mark Mitchell <mark@codesourcery.com>
13867 * rtl.h (note_stores): Add additional paramter.
13868 * rtlanal.c (reg_set_p_1): Take additional paramter.
13869 (reg_set_last_1): Likewise.
13870 (reg_set_p): Adjust call to note_stores.
13871 (reg_set_last): Likewise.
13872 (note_stores): Pass data parameter to worker function.
13873 * alias.c (record_set): Take additional parameter.
13874 (init_alias_analysis): Pass it.
13875 * caller-save.c (mark_set_regs): Take additional parameter.
13876 (save_call_clobbered_regs): Pass NULL to note_stores.
13877 * combine.c (set_nonzero_bits_and_sign_copies): Take additional
13879 (record_dead_and_set_regs_1): Likewise.
13880 (reg_dead_at_p_1): Likewise.
13881 (combine_instructions): Adjust calls to note_stores.
13882 (try_combine): Likewise.
13883 (record_dead_insn): Remove.
13884 (record_dead_and_set_regs): Adjust calls to note_stores.
13885 (reg_dead_at_p): Likewise.
13886 * cse.c (invalidate_skipped_set): Take additional parameter.
13887 (cse_check_loop_start): Likewise.
13888 (cse_check_loop_start_value): Remove.
13889 (cse_set_around_loop): Adjust calls to note_stores.
13890 * flow.c (notice_stack_pointer_modification): Take additional
13891 parameter. Remove duplicate declaration.
13892 (record_volatile_insns): Adjust calls to note_stores.
13893 * gcse.c (record_set_info): Take additional parameter.
13894 (record_last_set_info): Likewise.
13895 (invalidate_nonnull_info): Likewise.
13896 (record_set_insn): Remove.
13897 (compute_sets): Adjust calls to note_stores.
13898 (last_set_insn): Remove.
13899 (compute_hash_table): Adjust calls to note_stores.
13900 (insert_insn_end_bb): Likewise.
13901 (delete_null_pointer_checks): Likewise.
13902 * global.c (mark_reg_store): Take additional parameter.
13903 (mark_reg_clobber): Likewise.
13904 (reg_becomes_live): Likewise.
13905 (global_conflicts): Adjust calls to note_stores.
13906 (build_insn_chain): Likewise.
13907 * integrate.c (note_modified_parmregs): Take additional parameter.
13908 (mark_stores): Likewise. Make it static.
13909 (save_for_inline_nocopy): Adjust calls to note_stores.
13910 (try_constants): Likewise.
13911 * integrate.h (mark_stores): Remove declaration.
13912 * jump.c (mark_modified_reg): Take additional parameter.
13913 (thread_jumps): Adjust calls to note_stores.
13914 * local-alloc.c (validate_equiv_mem_from_store): Take additional
13916 (no_equiv): Likewise.
13917 (reg_is_set): Likewise.
13918 (validate_equiv_mem): Adjust calls to note_stores.
13919 (update_equiv_regs): Likewise.
13920 (block_alloc): Likewise.
13921 * loop.c (note_set_pseudo_multiple_uses_retval): Remove.
13922 (note_addr_stored): Take additional parameter.
13923 (note_set_pseudo_multiple_uses): Likewise.
13924 (record_initial): Likewise.
13925 (prescan_loop): Adjust calls to note_stores.
13926 (strength_reduce): Likewise.
13927 (check_dbra_loop): Likewise.
13928 * regmove.c (flags_set_1): Take additional paramter.
13929 (mark_flags_life_zones): Adjust calls to note_stores.
13930 * reload1.c (mark_not_eliminable): Take additional parameter.
13931 (forget_old_reloads_1): Likewise.
13932 (reload_cse_invalidate_rtx): Likewise.
13933 (reload_cse_check_clobber): Likewise.
13934 (reload_combine_note_store): Likewise.
13935 (move2add_note_store): Likewise.
13936 (reload): Adjust calls to note_stores.
13937 (reload_as_needed): Likewise.
13938 (emit_reload_insns): Likewise.
13939 (reload_cse_regs_1): Likewise.
13940 (reload_cse_record_set): Adjust calls to reload_cse_invalidate_rtx.
13941 (reload_combine): Adjust calls to note_stores.
13942 * resource.c (update_live_status): Take additional paramter.
13943 (mark_target_live_regs): Adjust calls to note_stores.
13944 * stupid.c (find_clobbered_regs): Take additional parameter.
13945 (stupid_life_analysis): Adjust calls to note_stores.
13947 Wed Oct 27 19:26:12 1999 Nick Clifton <nickc@cygnus.com>
13949 * config/arm/coff.h (STRUCTURE_SIZE_BOUNDARY): Delete
13952 * config/arm/elf.h (STRUCTURE_SIZE_BOUNDARY): Delete
13955 * config/arm/arm.h (STRUCTURE_SIZE_BOUNDARY): Define in terms
13956 of the variable arm_structure_size_boundary.
13958 Wed Oct 27 02:05:58 1999 Mark P. Mitchell <mark@codesourcery.com>
13960 * alias.c (init_alias_analysis): Allocate reg_known_value and
13961 reg_known_equiv_p on the heap. Likewise for new_reg_base_value
13963 (end_alias_analysis): Free reg_known_value and reg_known_equiv_p.
13964 * cse.c (cse_main): Call end_alias_analysis.
13965 * haifa-sched.c (schedule_insns): Likewise.
13966 * local-alloc. (update_equiv_regs): Likewise.
13967 * reload1.c (reload_cse_regs): Likewise.
13969 Wed Oct 27 01:49:17 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13971 * sparc/sparc.c (sparc_override_options): Clear MASK_FPU_SET.
13972 * sparc/sparc.h (TARGET_SWITCHES): Add "fpu" entry for reverse
13973 mapping from MASK_FPU.
13975 Wed Oct 27 01:42:26 1999 Scott Christley <scottc@net-community.com>
13977 * sparc.md (call): Don't bound structure return size to 0xfff.
13979 Wed Oct 27 00:56:59 1999 Richard Henderson <rth@cygnus.com>
13981 * resource.c (mark_target_live_regs): Check that the target
13982 insn wasn't created after compute_bb_for_insn.
13984 Tue Oct 26 23:15:03 1999 Mark Mitchell <mark@codesourcery.com>
13986 * ggc-page.c (poison_pages): Don't be overzealous.
13988 Tue Oct 26 23:29:18 1999 Jeffrey A Law (law@cygnus.com)
13990 * alias.c: Update comments for ADDRESS.
13991 (nonlocal_reference_p): Look inside the ADDRESS to determine if
13992 it is a local memory reference.
13994 * c-typeck.c (build_function_call): Check that the built-in
13995 function is of class BUILT_IN_NORMAL before trying to recongize
13996 it as BUILT_IN_ABS.
13997 * calls.c (calls_function_1): Similarly for BUILT_IN_ALLOCA.
13998 * stmt.c (expand_end_cae): Similarly for BUILT_IN_CLASSIFY_TYPE.
14000 Wed Oct 27 00:14:13 1999 Robert Lipe <robertlipe@usa.net>
14002 * gcse.c (expr_reaches_here_p): Use xcalloc and explit free instead
14004 (pre_gcse): Likewise.
14005 (hoist_expr_reaches_here_p): Likewise.
14006 (hoist_code): Likewise.
14007 (pre_expr_reaches_here_p): Replace alloca with xcalloc. Move core
14009 (pre_expr_reaches_here_p_work): ... here.
14010 (expr_reaches_here_p): Replace alloca with xcalloc. Move core
14012 (expr_reaches_here_p_work): ... here.
14014 Tue Oct 26 20:42:45 1999 Richard Henderson <rth@cygnus.com>
14016 * resource.c (find_basic_block): Delete.
14017 (mark_target_live_regs, incr_ticks_for_insn): Use BLOCK_NUM instead.
14018 (init_resource_info): Call compute_bb_for_insn.
14020 Tue Oct 26 20:21:02 1999 Richard Henderson <rth@cygnus.com>
14022 * flow.c (merge_blocks_move_predecessor_nojumps): Cope
14023 with already adjacent blocks, but no fallthru.
14024 (merge_blocks_move_successor_nojumps): Simplify.
14025 (debug_flow_info): New.
14027 * toplev.c (rest_of_compilation): Open jump1 dump file before
14028 jump and close after, as opposed to just using dump_rtl.
14030 Wed Oct 27 03:09:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14032 * reload.h (earlyclobber_operand_p): Declare.
14033 * reload.c (earlyclobber_operand_p): Don't declare. No longer static.
14034 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
14035 an earlyclobbered output conflict with RELOAD_INPUT reloads - handle
14036 case where the RELOAD_OTHER reload is new. Use earlyclobber_operand_p.
14038 Tue Oct 26 18:23:38 1999 Jan Hubicka <hubicka@freesoft.cz>
14039 Richard Henderson <rth@cygnus.com>
14041 * emit-rtl.c (emit_block_insn_before): New.
14042 (emit_block_insn_after): New.
14043 * basic-block.h: Declare them.
14045 * bitmap.h: Protect from multiple inclusion.
14047 * recog.c (scratch_operand): Handle VOIDmode correctly.
14049 * rtl.h (JUMP_CROSS_JUMP_DEATH_MATTERS): New.
14051 * builtins.c (expand_builtin_apply_args_1): Remove STACK_REGS hack.
14052 * function.c (assign_parms): Likewise.
14053 * global.c (global_conflicts): Clarify STACK_REGS commentary.
14055 * reg-stack.c (max_uid): Remove.
14056 (blocks, block_begin, block_end, block_drops_in): Remove.
14057 (block_stack_in, block_out_reg_set, block_number): Remove.
14058 (struct block_info_def, BLOCK_INFO): New.
14059 (enum emit_where): New.
14060 (current_block): New.
14061 (BLOCK_NUM): Remove.
14062 (mark_regs_pat, record_label_references): Remove.
14063 (record_reg_life_pat, record_reg_life, find_blocks): Remove.
14065 (goto_block_pat, print_blocks, dump_stack_info): Remove.
14066 (reg_to_stack): Simplified test for existance of fp code. Use
14067 flow.c code. Call shorten_branches after cross-jump opt.
14068 (check_asm_stack_operands): Renamed from record_asm_reg_life.
14069 Return false if the asm doesn't use stack regs. Don't do life
14070 analysis on the asm.
14071 (emit_pop_insn): Replace function pointer arg `when' with
14072 enum `where'. Update all callers.
14073 (change_stack): Likewise. Update basic block end.
14074 (emit_swap_insn): Use current_block->head to limit reverse search
14075 for start of block. Use emit_block_insn_after.
14076 (subst_stack_regs_pat): Handle USE and CLOBBER patterns.
14077 (subst_asm_stack_regs): Use check_asm_stack_operands. Use direct
14078 structure assignment instead of bcopy.
14079 (print_stack): New.
14080 (convert_regs_entry, convert_regs_exit): New.
14081 (convert_regs_1, convert_regs_2): Split out from convert_regs.
14082 Work on basic blocks and the CFG.
14083 (convert_regs): Use them.
14085 * i386.c (output_fix_trunc): Remove code for DImode input operand
14086 not at top-of-stack.
14087 * i386.c (fix_truncdfdi2, fix_truncsfdi2): Use scratch with
14089 (fix_truncdi_1): Allow any mode scratch.
14091 Tue Oct 26 13:30:35 1999 Richard Henderson <rth@cygnus.com>
14093 * alpha.h (TARGET_MEM_FUNCTIONS): Define here.
14094 * linux.h, netbsd.h, vms.h: Not here.
14096 1999-10-26 Gavin Romig-Koch <gavin@cygnus.com>
14098 * config/mips/mips.h (ISA_HAS_64BIT_REGS,ISA_HAS_BRANCHLIKELY,
14099 ISA_HAS_FP4,ISA_HAS_CONDMOVE): New.
14100 (GENERATE_BRANCHLIKELY,HAVE_SQRT_P,
14101 CONDITIONAL_REGISTER_USEAGE): Use them.
14102 * config/mips/mips.c (mips_move_1word,mips_move_2words,
14103 gen_conditional_branch,override_options) : Use them.
14104 * config/mips/mips.md : Use them.
14106 Tue Oct 26 13:09:23 1999 Richard Henderson <rth@cygnus.com>
14108 * i386.md (zero_extendqihi2): Use SImode register name with andl.
14110 Tue Oct 26 12:35:38 1999 Richard Henderson <rth@cygnus.com>
14112 * integrate.c (function_cannot_inline_p): Don't allow inlining
14115 Tue Oct 26 14:10:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14117 * c-parse.in (cast_expr): Constify.
14119 * cccp.c (special_symbol): Likewise.
14121 * cse.c (hash_cse_reg_info, cse_reg_info_equal_p): Likewise.
14123 * dwarf2out.c (base_type_die): Likewise.
14125 * global.c (allocno_compare): Likewise.
14127 * local-alloc.c (qty_compare_1, qty_sugg_compare_1): Likewise.
14129 * regclass.c (fix_register): Likewise.
14131 * rtl.h (fix_register): Likewise.
14133 * stupid.c (stupid_reg_compare): Likewise.
14135 * toplev.c (decode_f_option): Likewise.
14137 * tree.c (build_complex_type): Likewise.
14139 Tue Oct 26 18:35:25 1999 Richard Earnshaw <rearnsha@arm.com>
14141 * output.h: Don't unnecessarily conditionalize prototypes on TREE_CODE.
14143 Tue Oct 26 15:42:56 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14145 * reload.c (find_reloads): Compute mode and nregs fields of all
14147 * reload1.c (calculate_needs_all_insns): Simplify a bit.
14148 (calculate_needs): Use precomputed mode/nregs values.
14149 (allocate_reload_reg): Likewise.
14151 (failed_reload, set_reload_reg): ... new functions.
14152 (choose_reload_regs_init): New function, mostly broken out from...
14153 (choose_reload_regs): ... here. Lose all the save_xxx nonsense.
14154 Also lose one #if 0 block.
14156 Tue Oct 26 02:48:32 1999 Marc Espie <espie@cvs.openbsd.org>
14158 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET): Fix target name
14161 Tue Oct 26 01:27:32 1999 Mark Mitchell <mark@codesourcery.com>
14163 * tree.h (BLOCK_TYPE_TAGS): Remove.
14164 (BLOCK_END_NOTE): Likewise.
14165 (BLOCK_LIVE_RANGE_FLAG): Likewise.
14166 (BLOCK_LIVE_RANGE_START): Likewise.
14167 (BLOCK_LIVE_RANGE_END): Likewise.
14168 (tree_block): Remove live_range_flag, live_range_var_flag, and
14169 type_tags. Remove end_note, live_range_start, and live_range_end.
14170 (remember_end_note): Remove prototype.
14171 * tree.c (build_block): Don't set BLOCK_TYPE_TAGS.
14172 * c-decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call
14174 * ggc-common.c (ggc_mark_tree_children): Don't mark
14175 BLOCK_TYPE_TAGS or BLOCK_END_NOTE.
14176 * integrate.c (adjust_copied_decl_tree): Remove.
14177 * print-tree.c (print_node): Don't print BLOCK_TYPE_TAGS.
14178 * stmt.c (last_block_end_note): Remove.
14179 (init_stmt): Don't add a GC root for it.
14180 (expand_fixup): Don't set it.
14181 (remember_end_note): Remove.
14182 (expand_end_bindings): Don't set last_block_end_note.
14184 Tue Oct 26 00:41:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14186 * reload1.c (reload_reg_free_for_value_p): Show
14187 RELOAD_FOR_OTHER_ADDRESS reloads can conflict with RELOAD_OTHER
14190 Mon Oct 25 23:54:45 1999 Geoff Keating <geoffk@cygnus.com>
14192 * expmed.c (extract_bit_field): Allow for the case of non-integer
14193 objects that are smaller than a word (like SFmode on a 64-bit
14196 * loop.c (basic_induction_var): A non-integer variable which is
14197 being set by a paradoxical subreg is probably not a biv.
14199 1999-10-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14201 * prefix.c (translate_name) Check for empty prefix string.
14203 Mon Oct 25 23:10:45 1999 Andreas Schwab <schwab@suse.de>
14205 * Makefile.in (CPP_CROSS_NAME): New variable.
14206 (install-cpp): Use it instead of CPP_INSTALL_NAME for the cross
14208 (uninstall-cpp): Use CPP_INSTALL_NAME and CPP_CROSS_NAME for the
14209 names of the files to be uninstalled.
14211 Mon Oct 25 23:03:09 1999 Jeffrey A Law (law@cygnus.com)
14213 * collect2.c (IS_DIR_SEPARATOR): Define.
14214 (prefix_from_string): Use IS_DIR_SEPARATOR and DIR_SEPARATOR.
14216 * som.h (ASM_DECLARE_FUNCTION_NAME): Set PRIV_LEV for static
14219 * haifa-sched.c (add_dependence): Update the true dependency
14220 cache the first time we add a true dependence to the LOG_LINKS chain.
14222 Mon Oct 25 22:27:40 1999 Jim Kingdon <http://developer.redhat.com/>
14224 * fold-const.c (fold): Fix comment.
14226 Mon Oct 25 22:49:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14228 * dbxout.c (lastfile, cwd, dbxout_type_method_1,
14229 dbxout_symbol_location, dbxout_symbol_name, dbxout_init,
14230 dbxout_start_new_source_file, dbxout_source_file,
14231 dbxout_source_line, dbxout_finish, dbxout_type_fields,
14232 dbxout_type_methods, dbxout_symbol, dbxout_prepare_symbol):
14234 (dbxout_types, dbxout_args, dbxout_symbol): Delete prototypes.
14235 (dbxout_symbol): Mark parameter `local' with ATTRIBUTE_UNUSED.
14236 (dbxout_block): Initialize variable `blocknum'.
14238 * dbxout.h (dbxout_init, dbxout_finish,
14239 dbxout_start_new_source_file, dbxout_source_file, dbxout_types,
14240 dbxout_args, dbxout_source_line): Constify a char*.
14242 * dwarfout.c (dwarf_tag_name, dwarf_attr_name,
14243 dwarf_stack_op_name, dwarf_typemod_name, dwarf_fmt_byte_name,
14244 dwarf_fund_type_name, name_attribute, stmt_list_attribute,
14245 low_pc_attribute, high_pc_attribute, body_begin_attribute,
14246 body_end_attribute, comp_dir_attribute, sf_names_attribute,
14247 src_info_attribute, mac_info_attribute, producer_attribute,
14248 lookup_filename, generate_macinfo_entry, fundamental_type_code,
14249 dwarfout_line, dwarfout_start_new_source_file, dwarfout_define,
14250 dwarfout_undef): Constify a char*.
14251 (add_incomplete_type, retry_incomplete_types): Add prototypes.
14253 * dwarfout.h (dwarfout_define, dwarfout_undef,
14254 dwarfout_start_new_source_file, dwarfout_line): Constify a char*.
14256 1999-10-25 Gavin Romig-Koch <gavin@cygnus.com>
14258 * config/mips/mips.h (MIPS_ISA_DEFAULT): Insure it's defined.
14259 (MULTILIB_ISA_DEFAULT): New.
14260 (MULTILIB_DEFAULTS): Use it.
14261 * config/mips/mips.c (): Remove the now unnecessary definition
14262 of MIPS_ISA_DEFAULT.
14263 * config/mips/elf64.h (MULTILIB_DEFAULTS): Remove the now
14264 unnecessary definition.
14266 Mon Oct 25 22:08:35 1999 Richard Earnshaw (rearnsha@arm.com)
14268 * arm.md (pic_load_addr): Add constraints to operand 1.
14270 1999-10-25 Bruce Korb <autogen@linuxbox.com>
14272 * fixinc/genfixes: Provide a means for specifying -D options to
14275 Mon Oct 25 00:42:35 1999 Jeffrey A Law (law@cygnus.com)
14277 * arm.c (arm_override_options): Correct initialization of
14278 arm_fast_multiply, arm_arch4, arm_arch5, arm_ld_sched,
14279 arm_is_strong, and arm_is_6_or_7.
14281 * loop.c (note_set_pseudo_multiple_uses_retval): New variable.
14282 (note_set_pseudo_multiple_uses): New function.
14283 (check_dbra_loop): Use not_set_pseudo_multiple_uses to determine
14284 if a pseudo set in the loop exit is used elsewhere.
14286 Sun Oct 24 20:52:40 1999 Mark Mitchell <mark@codesourcery.com>
14288 * i386.md (mulsi3): Tweak to work with SCO OSR5 COFF assembler.
14290 Sun Oct 24 21:02:46 1999 Richard Henderson <rth@cygnus.com>
14292 * i386.md (*lea_0): Collapse addsi_0, addsi_lea_[123] into
14293 a single load-address pattern.
14295 Sun Oct 24 19:33:24 1999 Mark P. Mitchell <mark@codesourcery.com>
14297 * haifa-sched.c (schedule_insns): Don't assign LUIDs differently
14298 depending on whether or not line-number notes are present.
14300 Sun Oct 24 20:29:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14302 * cccp.c (progname, file_buf, default_include, include_file,
14303 macrodef, definition, hashval, wchar_type, user_label_prefix,
14304 directive, out_fname, if_stack, safe_write, index0, get_lintcmd,
14305 expand_to_temp_buffer, is_system_include, base_name,
14306 absolute_filename, read_name_map, open_include_file,
14307 record_control_macro, check_precompiled, check_preconditions,
14308 pcfinclude, pass_thru_directive, create_definition,
14309 check_macro_name, comp_def_part, collect_expansion,
14310 check_assertion, read_token_list, assertion_install,
14311 assertion_lookup, eval_if_expression, conditional_skip,
14312 validate_else, skip_quoted_string, quote_string, macarg1,
14313 error_from_errno, install, lookup, hashf, dump_defn_1,
14314 perror_with_name, pfatal_with_name, main, trigraph_pcp,
14315 check_white_space, rescan, handle_directive, monthnames,
14316 special_symbol, do_include, remap_include_file, write_output,
14317 arglist, do_assert, do_unassert, do_line, do_error, do_once,
14318 do_ident, do_sccs, do_xifdef, skip_if_group,
14319 output_line_directive, macroexpand, macarg, change_newlines,
14320 initialize_builtins, make_definition): Constify a char*.
14322 * pcp.h (stringdef): Likewise.
14324 Sun Oct 24 13:29:28 1999 Richard Henderson <rth@cygnus.com>
14326 * unroll.c (copy_loop_body): Examine SET_DEST of single_set
14329 Sun Oct 24 13:14:20 1999 Graham <grahams@rcp.co.uk>
14330 Richard Henderson <rth@cygnus.com>
14332 * alias.c: Include ggc.h.
14333 (reg_base_value, new_reg_base_value, reg_base_value_size): Make static.
14334 (record_set): Verify enough room in reg_base_value.
14335 (init_alias_analysis): Allocate reg_base_value with xcalloc.
14336 Register it as a GC root.
14337 (end_alias_analysis): Free reg_base_value. Remove it as a GC root.
14338 * Makefile.in (alias.o): Depend on ggc.h.
14340 * unroll.c (unroll_loop): Verify the insn before a barrier
14341 is a JUMP_INSN before checking JUMP_LABEL.
14343 Sun Oct 24 15:46:44 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14345 * mips/bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
14346 * mips/iris4.h (ASM_OUTPUT_ASCII): Likewise.
14347 * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
14348 * mips/mips.h (ASM_OUTPUT_ASCII): Likewise.
14349 * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
14350 * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
14352 Sun Oct 24 15:35:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14354 * output.h (ctors_section, dtors_section, bss_section): Prototype.
14356 * alpha/alpha-interix.h (text_section): Delete prototype.
14357 * alpha/elf.h (text_section): Likewise.
14358 * arm/linux-elf.h (text_section): Likewise.
14359 * arm/linux-telf.h (text_section): Likewise.
14360 * c4x/c4x.h (text_section): Likewise.
14361 * dsp16xx/dsp16xx.h (bss_section): Likewise.
14362 * elfos.h (text_section): Likewise.
14363 * i386/aix386ng.h (text_section): Likewise.
14364 * i386/i386-interix.h (text_section): Likewise.
14365 * i386/sco5.h (text_section): Likewise.
14366 * i386/svr3gas.h (text_section): Likewise.
14367 * nextstep.h (text_section): Likewise.
14368 * psos.h (text_section): Likewise.
14369 * ptx4.h (text_section): Likewise.
14370 * svr3.h (text_section): Likewise.
14371 * svr4.h (text_section, ctors_section, dtors_section): Likewise.
14373 Sun Oct 24 15:20:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14375 * final.c (peephole): Delete prototype.
14377 * gcse.c (process_insert_insn, pre_edge_insert): Add prototypes.
14378 (pre_insert_copies): Remove unused variable `bb'.
14380 * genrecog.c (debug_decision_0, debug_decision_list, main): Add
14383 * output.h (peephole): Add prototype.
14385 Sun Oct 24 11:35:30 1999 Mark P. Mitchell <mark@codesourcery.com>
14387 * config/mips/iris6.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Define to
14390 Sat Oct 23 21:13:00 1999 Mark Mitchell <mark@codesourcery.com>
14392 * integrate.c (integrate_decl_tree): Tweak setting of DECL_CONTEXT
14393 for inlined declarations.
14395 Fri Oct 22 18:05:43 1999 Jeffrey A Law (law@cygnus.com)
14397 * arm.c (logical_binary_operator): New fucntion.
14398 * arm.h (logical_binary_operator): Declare it.
14399 (PREDICATE_CODES): Handle logical_binary_operator.
14400 * arm.md (anddi3, anddi_zesidi_di, anddi_sesdi_di): Use "#" for
14401 output constraints. Add appropriate splitters.
14402 (anddi_notdi_di, anddi_notzesidi_di, anddi_notsesidi_di): Likewise.
14403 (iordi3, iordi_zesidi_di, iordi_sesidi_di): Likewise.
14404 (xordi3, xordi_zesidi_di, xordi_sesidi_di): Likewise.
14406 Fri Oct 22 23:46:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14408 * genoutput.c (struct operand_data): New elt eliminable.
14409 (output_operand_data): Write it.
14410 (scan_operands): Set it for MATCH_OPERAND, clear for other matchers.
14411 (compare_operands): Take it into account.
14412 * recog.h (struct insn_operand_data): New elt eliminable.
14413 * reload1.c (check_eliminable_occurrences, elimination_effects): New
14415 (old_asm_operands_vec, new_asm_operands_vec): Delete.
14416 (eliminate_regs): Move code that detects changes to elimination
14417 target regs into new function elimination_effects.
14418 Delete one #if 0 block.
14419 Abort for USE, CLOBBER, ASM_OPERANDS and SET.
14420 (eliminate_regs_in_insn): Return immediately for USEs, CLOBBERs,
14421 ADDR_VECs, ADDR_DIFF_VECs and ASM_INPUTs.
14422 Only call eliminate_regs for real operands of the insn, not for parts
14423 of its structure or parts matched by things like match_operator.
14424 Use elimination_effects and check_eliminable_occurrences. Use
14425 copy_insn to duplicate the pattern when not in the final pass.
14427 Fri Oct 22 09:03:44 1999 Mark Mitchell <mark@codesourcery.com>
14429 * i386.md: Add missing `y' modifiers to uses of fst, fstp, fld,
14432 1999-10-22 Bruce Korb <autogen@linuxbox.com>
14434 * fixinc/README: document the "mach" machine matching test
14435 * fixinc/fixfixes.c: Implement the #else/#endif label fix
14436 * fixinc/fixtests.c: Implement the #else/#endif label test
14437 * fixinc/inclhack.def: utilize these tests and fixes
14438 * fixinc/inclhack.sh: regen
14439 * fixinc/fixincl.x: regen
14440 * fixinc/fixincl.sh: regen
14442 Thu Oct 21 20:37:19 1999 Jeffrey A Law (law@cygnus.com)
14444 * Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h. Also
14447 Thu Oct 21 20:30:19 1999 Matthias Klose <doko@debian.org>
14449 * gcc.1: Document exit codes.
14451 Thu Oct 21 12:49:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14453 * calls.c: Include tm_p.h later, so everything we need is defined.
14454 * expr.c: Likewise.
14455 * function.c: Likewise.
14457 * except.c: Include tm_p.h.
14459 * sparc.c: Likewise.
14460 (dwarf2out_cfi_label): Don't prototype.
14461 (check_return_regs, epilogue_renumber,
14462 ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
14463 ultra_find_type, ultra_build_types_avail, ultra_flush_pipeline,
14464 ultra_rescan_pipeline_state, set_extends, ultra_code_from_mask,
14465 ultra_schedule_insn): Add static prototype.
14466 (data_segment_operand, text_segment_operand): Call itself with the
14467 proper number of arguments.
14468 (sparc_flat_save_restore, sparc_v8plus_shift): Constify a char*.
14470 * sparc.h: Move all declarations to sparc-protos.h.
14471 (SELECT_RTX_SECTION): Pass a missing MODE argument to
14474 * sparc/sysv4.h (SELECT_RTX_SECTION): Likewise.
14476 * config/svr4.h (text_section, ctors_section, dtors_section): Add
14478 (ASM_OUTPUT_SECTION_NAME, UNIQUE_SECTION,
14479 ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
14480 ASM_OUTPUT_ASCII): Constify a char*.
14482 * sparc-protos.h: New file for sparc prototypes.
14484 Thu Oct 21 12:23:40 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14486 * function.c (record_insns, contains): Always declare and define.
14487 (record_insns): Mark with ATTRIBUTE_UNUSED.
14489 Thu Oct 21 13:03:49 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
14491 * config/arm/telf.h (ASM_OUTPUT_SECTION_NAME): Add %nobits option
14492 to .section when outputting a .bss section to deal with multiple
14493 .bss input sections (as happens with -fdata-sections)
14494 Also output %progbits, not @progbits so the assembler doesn't treat as
14496 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Likewise
14498 * config/arm/lib1funcs.asm (_call_via_rX): Allow compilation of
14499 thumb parts even when building with non-thumb CPUs, by forcing
14502 Wed Oct 20 22:57:58 1999 Jeffrey A Law (law@cygnus.com)
14504 * sparc.md (movsf_const_intreg): If splitting, length must be > 1.
14505 (movdf_const_intreg_sp64): Similarly.
14507 * local-alloc.c (update_equiv_regs): Check the correct insn
14508 for pre-existing REG_EQUIV notes.
14510 Wed Oct 20 20:41:46 1999 Mark Mitchell <mark@codesourcery.com>
14512 * cse.c (cse_end_of_basic_block): Don't return the end of a basic
14513 block reached by a branch if we're not going to actually process
14516 Wed Oct 20 15:18:42 1999 Jim Wilson <wilson@cygnus.com>
14518 * integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
14519 a local extern function declaration.
14521 Wed Oct 20 13:56:01 1999 Richard Henderson <rth@cygnus.com>
14523 * i386.c (ix86_expand_prologue): Properly wrap USE around
14524 reg for CALL_INSN_FUNCTION_USAGE.
14526 Thu Oct 14 18:51:37 1999 Andrew Haley <aph@cygnus.com>
14528 * config/mips/mips.md (movdf_internal1a): Allow floating-point
14529 move between GP_REGs.
14531 Wed Oct 20 15:36:11 1999 Andrew Haley <aph@cygnus.com>
14533 * config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
14534 the mode size when finding out if an offset is legal.
14536 Wed Oct 20 06:26:58 1999 Richard Henderson <rth@cygnus.com>
14538 * basic-block.h (PROP_*): Move constants from ...
14539 * flow.c: ... here.
14540 (compute_bb_for_insn): Free the array before reallocating.
14541 (update_life_info): New arg PROP_FLAGS; pass on to propagate_block.
14542 (allocate_reg_life_data): Reset all reg variables collected by
14544 (get_block_head_tail): Don't convert from bb to block.
14545 (get_bb_head_tail): New. Update all callers of get_block_head_tail.
14546 (find_insn_reg_weight): Take block not bb.
14547 (schedule_block): Don't set block num for moved insns.
14548 (schedule_region): Don't update_life_info or find_insn_reg_weight.
14549 (schedule_insns): Do it here instead.
14550 * combine.c (combine_instructions): Invoke compute_bb_for_insn
14551 before update_life_info.
14552 * recog.c (split_all_insns, peephole2_optimize): Update for
14553 new arg to update_life_info.
14554 * rtlanal.c (remove_note): Cope with NULL note.
14555 * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage
14558 Wed Oct 20 10:46:41 1999 Richard Earnshaw (rearnsha@arm.com)
14560 * jump.c (jump_optimize_1): More accurately detect casesi insns.
14562 * flow.c (merge_blocks_move_predecessor_nojumps): Re-order the basic
14563 block records so that merge_blocks_nomove will clean up correctly.
14564 (split_edge): Handle casesi insns.
14566 * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
14568 Tue Oct 19 23:43:50 1999 Jeffrey A Law (law@cygnus.com)
14570 * pa.md (call, call_value): Do not emit a blockage after restoring
14573 Tue Oct 19 17:22:39 1999 Mark Mitchell <mark@codesourcery.com>
14575 * c-typeck.c (c_expand_asm_operands): Fix typo.
14577 Tue Oct 19 18:42:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14579 * arm.c (fpu_rhs_operand): Verify modes.
14580 (fpu_add_operand): Likewise.
14581 (di_operand): Likewise.
14582 (soft_df_operand): Likewise.
14584 Tue Oct 19 15:26:11 1999 Richard Earnshaw (rearnsha@arm.com)
14586 * arm.c (arm_return_in_memory): APCS rules state that the elements
14587 of a structure returned in a register must be 'integer-like'.
14589 1999-10-19 Bruce Korb <autogen@linuxbox.com>
14591 * fixinc/Makefile.in: Change the generation rules to run `genfixes'
14592 in the source tree when the generated targets are out of date
14593 * fixinc/genfixes: Alter it to run individual fixes for make.
14594 * fixinc/README: rewrite
14595 * fixinc/inclhack.def: moved initial comments to README
14597 Tue Oct 19 14:01:34 1999 Nick Clifton <nickc@cygnus.com>
14599 * toplev.c (main): Do not generate an error message if an
14600 unrecognised command line switch is recognisable by another
14601 language. If extra_warnings are enabled, then generate a
14602 warning message instead.
14604 Tue Oct 19 11:41:12 1999 Mumit Khan <khan@xraylith.wisc.edu>
14606 * c-pragma.h (PRAGMA_INSERT_ATTRIBUTES): Delete macro.
14607 (insert_pack_attributes): Delete prototype.
14609 * c-pragma.c (default_alignment): New static variable.
14610 (push_alignment): Initialize to current effective alignment.
14611 (pop_alignment): Use to set new alignment.
14612 (insert_pack_attributes): Delete function.
14613 (handle_pragma_token): Set default_alignment as well each time
14614 a #pragma pack(<n>) is encountered.
14616 Tue Oct 19 02:03:00 1999 Jeffrey A Law (law@cygnus.com)
14618 * reg-stack.c (stack_result): Aggregates are not returned in
14621 Tue Oct 19 01:26:48 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
14623 * fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
14625 Mon Oct 18 15:19:41 1999 Richard Henderson <rth@cygnus.com>
14627 * basic-block.h (set_block_num): Declare.
14628 * flow.c (update_life_info): Don't call compute_bb_for_insn
14629 or free_basic_block_vars.
14630 * haifa-sched.c (remove_dependence): Conditionalize on HAVE_cc0.
14631 (insn_orig_block): Remove.
14632 (INSN_BLOCK): Remove. Update all callers to use BLOCK_NUM.
14633 (schedule_block): Keep BLOCK_NUM up-to-date.
14634 (schedule_insns): Use compute_bb_for_insn.
14635 * recog.c (split_all_insns): Likewise.
14636 (peephole2_optimize): Likewise.
14638 Mon Oct 18 18:50:51 1999 Andreas Schwab <schwab@suse.de>
14640 * config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
14641 if the pic register is used.
14643 Mon Oct 18 02:38:46 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14645 * c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
14646 (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of
14647 if that tests TREE_PERMANENT.
14649 Mon Oct 18 01:41:35 1999 Jeffrey A Law (law@cygnus.com)
14651 * cse.c (invalidate_for_call): Do not remove memory references from
14652 the table here. It's handled elsewhere.
14654 * haifa-sched.c (add_dependence): Protect references to the
14655 true dependency cache with #ifdef INSN_SCHEDULING.
14656 (remove_dependence): Similarly.
14658 * mn10200.md (outline_epilogue_jump): Embed a (return) to indicate
14659 to the cfg code that this is a return instruction.
14660 * mn10300.md (return_internal): Similarly.
14662 * combine.c (get_last_value): If the last set of a register
14663 is after subst_low_cuid, then we can not use it to determine
14664 the register's last value.
14666 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
14668 * Makefile.in: Back out previous change.
14670 Sun Oct 17 15:22:50 1999 Jeffrey A Law (law@cygnus.com)
14672 * pa.c (move_operand): Reject (lo_sum (reg) (unspec ...)).
14674 * haifa-sched.c (add_dependence): Only check/update the cache
14676 (remove_dependence): Likewise.
14677 (schedule_insns): Only create the true_dependency_cache if the
14678 average number of instructions in a basic block is very large.
14680 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
14682 * Makefile.in (ggc-common.o): Depend on genrtl.h.
14683 (ggc-simple.o): Likewise.
14684 (ggc-page.o): Likewise.
14686 Sun Oct 17 02:09:50 1999 Andrew MacLeod <amacleod@cygnus.com>
14688 * basic-block.h (pre_edge_lcm, pre_edge_rev_lcm, compute_available):
14689 Prototype for exported functions.
14690 (pre_lcm, pre_rev_lcm): Remove prototypes.
14691 * gcse.c (compute_ae_kill): Add ae_gen and ae_kill as parameters.
14692 (compute_available): Move to lcm.c, and change parameter order.
14693 (one_classic_gcse_pass): Call compute_ae_kill with parameters.
14694 (pre_insert, s_preds, s_succs, num_preds, num_succs): Delete.
14695 (gcse_main): No longer call compute_preds_succs. Rebuild the
14696 set table after reach pre pass.
14697 (pre_insert_map, pre_delete_map, edge_list): New.
14698 (alloc_pre_mem): Allocate edge vectors.
14699 (free_pre_mem): Delete edge vectors.
14700 (compute_pre_data): Call new edge based lcm routines.
14701 (process_insert_insn): New function.
14702 (insert_insn_end_bb): Use it.
14703 (pre_edge_insert): New function.
14704 (pre_insert_copy_insn): Formatting fixes. Update BLOCK_END as
14706 (pre_insert_copies): Revamp using new edge based lcm outputs.
14707 (pre_delete): Likewise.
14708 (one_pre_gcse_pass): Insert & remove fake edges to the exit
14710 (compute_code_hoist_vbeinout): New new edge based routines.
14711 * lcm.c: Remove all the old LCM functions. Replace with new ones
14712 that work with the new cfg datastructures and work with edges
14715 Sun Oct 17 00:44:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14717 * reload.h (struct reload): Add new fields "mode" and "nregs".
14718 * reload1.c: Change all occurrences of reload_mode and reload_nregs
14719 to reference the "mode" and "nregs" field within struct reload.
14721 Sat Oct 16 21:50:28 1999 Jeffrey A Law (law@cygnus.com)
14723 * haifa-sched.c (true_dependency_cache): New.
14724 (add_dependence): Use the true dependency cache to avoid expensive
14725 walks down the LOG_LINKS dependency list. Add entries to the
14726 cache as necessary.
14727 (remove_dependence): Remove entries from the true dependency cache
14729 (schedule_insns): Allocate and initialize and free the true
14732 * haifa-sched.c (schedule_insns): Do not remove inter-block
14733 dependencies anymore.
14735 Sat Oct 16 11:19:52 1999 Richard Henderson <rth@cygnus.com>
14737 * i386/t-cygwin (winnt.o): Depend on RTL_H and TREE_H.
14738 * i386/t-winnt: Likewise.
14740 Sat Oct 16 11:11:54 1999 Richard Henderson <rth@cygnus.com>
14742 * ggc-page.c (init_ggc): Work around SunOS unaligned mmap bug.
14744 1999-10-16 Manfred Hollstein <mhollstein@cygnus.com>
14746 * Makefile.in (LANGUAGES): Omit "proto".
14747 (clean): Remove stale comment about removing unprotoize.c.
14749 Sat Oct 16 11:29:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14751 * protoize.c (safe_read, safe_write): Avoid the gcc extension of
14752 using arithmetic on void pointers.
14754 Sat Oct 16 02:48:22 1999 Jeffrey A Law (law@cygnus.com)
14756 * haifa-sched.c (compute_block_forward_dependencies): Only check
14757 for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
14759 Sat Oct 16 00:07:01 1999 Richard Henderson <rth@cygnus.com>
14761 * gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
14762 (expr_equiv_p): Reject memories with different alias sets.
14764 Fri Oct 15 15:17:29 1999 Greg McGary <gkm@gnu.org>
14766 * flags.h (flag_bounds_check, flag_bounded_pointers): New extern decls.
14767 * toplev.c (flag_bounds_check, flag_bounded_pointers): New flags.
14768 (f_options): Add "bounded-pointers" and "bounds-check" entries.
14769 * c-lang.c (lang_init_options): Set flag_bounds_check as "unspecified".
14770 (lang_init): Set default for flag_bounds_check if still "unspecified".
14772 Sat Oct 16 13:42:29 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14774 * config/c4x/c4x.md (HF mode patterns): Add missing modes.
14776 Sat Oct 16 13:37:46 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14778 * config/c4x/c4x.md (movstrqi_small): Utilise parallel move
14781 Sat Oct 16 13:26:47 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14783 * config/c4x/c4x.md (*db_noclobber,
14784 *decrement_and_branch_until_zero_noclobber): New patterns and
14785 associated splitters.
14787 Sat Oct 16 13:13:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14789 * config/c4x/c4x.md (parallel instruction patterns): Rework
14790 constraints to keep reload happy.
14792 Sat Oct 16 13:03:16 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14794 * config/c4x/c4x.md (*absqi2_noclobber, *negqi2_noclobber,
14795 *one_cmplqi2_noclobber, *subqi3_noclobber, *andqi3_255_noclobber,
14796 *andqi3_65535_noclobber, *andnqi3_noclobber, *xorqi3_noclobber):
14797 Add new patterns and associated post-reload splitters.
14799 Sat Oct 16 12:42:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14801 * config/c4x/c4x.c (c4x_emit_libcall): Use ggc_alloc_string.
14803 Sat Oct 16 12:34:44 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14805 * config/c4x/c4x.c (c4x_rptb_insert): Emit rpts_top pattern
14807 * config/c4x/c4x.md (rpts_top): New pattern and splitter.
14809 Sat Oct 16 12:26:30 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14811 * config/c4x/c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF
14814 Fri Oct 15 17:02:09 1999 Jeffrey A Law (law@cygnus.com)
14816 * pa.c (move_operand): Rely on memory_address_p to determine the
14817 validity of non-indexed memory addresses.
14818 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow LO_SUM with a symbolic
14819 operand in DFmode and SFmode when generating PA2.0 code.
14821 Fri Oct 15 14:25:19 1999 Richard Henderson <rth@cygnus.com>
14823 * print-rtl.c (print_rtx): Limit last 'u' change to LABEL_REF.
14825 Fri Oct 15 13:48:45 1999 Richard Henderson <rth@cygnus.com>
14827 * mips.c (function_prologue): Fix argument types.
14828 * mips.md (casesi): Use emit_jump_insn for casesi_internal.
14829 (casesi_internal): Write to the scratch register.
14831 1999-10-15 11:16 -0700 Zack Weinberg <zack@bitmover.com>
14833 * cppexp.c (cpp_parse_escape): Make static. Change second arg
14835 (parse_charconst): Delete unnecessary cast when calling
14837 (cpplib.h): Kill prototype of cpp_parse_escape.
14839 Fri Oct 15 11:02:46 1999 Richard Henderson <rth@cygnus.com>
14841 Based on patch from Michael Gschwind <mikeg@watson.ibm.com>:
14842 * unroll.c (unroll_loop): Cast return value of alloca.
14843 * i370/i370.c: Include function.h and toplev.h.
14844 (i370_label_scan): Remove c++ commented abort.
14845 * i370/i370.h (HANDLE_PRAGMA): Takes three arguments.
14846 (ASM_OUTPUT_LABELREF): Fix TOUPPER/else broken 16 Sept.
14847 * i370/xm-i370.h (HOST_BITS_PER_LONGLONG): Define.
14848 * i370/xm-mvs.h, i370/xm-oe.h: Likewise.
14850 Fri Oct 15 03:01:01 1999 Loren Rittle <ljrittle@acm.org>
14852 * config/t-freebsd: Do not override USER_H.
14853 * ginclude/stddef.h: Generalize check for _MACHINE_ANSI_H_.
14855 Fri Oct 15 02:37:28 1999 Alastair J. Houghton <ajh8@doc.ic.ac.uk>
14856 Mumit Khan <khan@xraylith.wisc.edu>
14858 * c-parse.in (component_decl): Support anonymous struct/union.
14860 * c-parse.y: Regenerate.
14861 * c-parse.c: Likewise.
14862 * objc/objc-parse.y: Likewise.
14863 * objc/objc-parse.c: Likewise.
14864 * c-decl.c (finish_struct): Don't sort the fields.
14865 (field_decl_cmp): Delete unused function.
14867 Fri Oct 15 01:20:52 1999 Richard Henderson <rth@cygnus.com>
14869 * sparc.md (movsf_const_intreg): Revert last constraint change.
14870 (movdf_const_intreg_sp32): Likewise.
14872 Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
14874 * cse.c: Include hashtab.h instead of splay-tree.h
14875 (struct cse_reg_info): No longer use variant union. Add new
14876 field "regno". All references changed to avoid union.
14877 (cse_reg_info_used_list, cse_reg_info_used_list_end): New variables.
14878 (free_cse_reg_info): Remove.
14879 (hash_cse_reg_info, cse_reg_info_equal_p): New functions.
14880 (get_cse_reg_info): Revamp to use expandable hash tables instead
14881 of splay trees. Initialize new fields in cse_reg_info structure.
14882 (new_basic_block): Similarly.
14884 Thu Oct 14 23:51:56 1999 Richard Henderson <rth@cygnus.com>
14886 * genrecog.c (message_with_line): Prototype.
14887 (validate_pattern): Pass along the set for the dest, not a flag.
14888 Fix non-lvalue message. Don't warn for VOIDmode SET_DEST of CALL.
14889 Check for PC/CC0 as sources.
14890 (nodes_identical): Check for children position match before
14891 allowing the combination.
14893 * rtl.c (read_rtx): Track line number across \\\n.
14895 Thu Oct 14 23:50:25 1999 Richard Henderson <rth@cygnus.com>
14897 * mips.h (SPECIAL_MODE_PREDICATES): New.
14898 * mips.md (*) Use nonimmediate_operand not general_operand for outputs.
14899 (movdi+1, movsi+1): Add output reload constraint.
14900 (casesi_internal): Likewise. Fix commentary.
14901 (return_internal): Use pmode_register_operand.
14903 Thu Oct 14 23:19:34 1999 Richard Henderson <rth@cygnus.com>
14905 * 1750a.md (movstrqi): Add missing output reload constraint.
14906 (call_value): Likewise.
14907 * a29k.md (cpxxx patterns): Add missing match_operator mode.
14908 (jmpfdec): Add missing inout reload constraint.
14909 * elxsi.md (addsi patterns): Add missing output reload constraint.
14910 (move from sp): Use @ alternates.
14911 (call_value): No constraint on output.
14912 * fr30.md (movsi_pop): Add missing output reload constraint.
14913 (movsf_constant_store): Likewise.
14914 (splits): Remove constraints.
14915 (subsi3): Add missing mode.
14916 * i370.md (cmpstrsi+1): Add missing output reload constraint.
14917 (call_value): Likewise.
14918 * i960.md (cmpinc/cmpdec patterns): Add inout reload constraints.
14919 * m32r.h (PREDICATE_CODES): Add seth_add3_operand.
14920 * m32r.md (movsicc_internal): Add output reload constraint.
14921 (movstrsi_internal): Add inout reload constraints.
14922 * m88k.h (reg_names): Don't declare.
14923 (SPECIAL_MODE_PREDICATES): New.
14924 * m88k.md (*): Use register_operand not reg_or_0_operand
14926 * mn10200.h (PREDICATE_CODES): New.
14927 * ns32k.md (ffs pattern): Add output reload constraint.
14928 * pdp11.md (sob pattern): Add inout reload constraint.
14929 * sh.md (splits): Remove constraints.
14930 (indirect_jump_scratch, fpu_switch): Add output reload constraint.
14931 * v850.md (pattern_is_ok_for_epilogue): Likewise.
14932 * vax.md (jgequ pattern): Add inout reload constraint.
14934 Fri Oct 15 00:05:00 1999 Jeffrey A Law (law@cygnus.com)
14936 * configure.in (djgpp): Revert previous patch.
14937 * configure: Rebuit.
14938 * config/i386/djgpp.h: Revert previous patch.
14940 Fri Oct 15 00:00:24 1999 Loren J. Rittle <ljrittle@acm.org>
14942 * fixinc/inclhack.def: Restore patch lost during last merge of
14943 "no_bogosity" branch.
14944 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
14946 Thu Oct 14 23:57:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
14948 * fixincludes: Add a HPUX 11 fix for inttypes.h.
14949 * fixinc/inclhack.def: Same.
14950 * fixinc/inclhack.sh, fixinc/fixincl.sh, fixinc/fixincl.x: Regenerate.
14952 Thu Oct 14 22:51:55 1999 Richard Henderson <rth@cygnus.com>
14954 * alpha.h (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Accept ADDRESSOF
14955 as the base of a PLUS.
14957 Fri Oct 15 18:36:07 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14959 * config/c4x/c4x.md: Define mode for remaining unspec operators.
14960 * config/c4x/c4x.c (dst_operand): Use nonimmediate_operand.
14962 Thu Oct 14 22:14:23 1999 Richard Henderson <rth@cygnus.com>
14964 * pa.md (post_stw+1): Use pmode_register_operand.
14965 (dcacheflush, icacheflush): Likewise.
14967 * i386.md (movstricthi_1): Allow r/r.
14969 Thu Oct 14 19:44:08 1999 Jan Hubicka <hubicka@freesoft.cz>
14971 * fold-const.c (fold): Convert (or (not arg0) (not arg1))
14972 to (not (and (arg0) (arg1))). Similary for and.
14974 * fold-const.c (fold): Move bit_rotate code to the EXPR_PLUS case,
14975 fallthrough to associate code.
14976 Convert XOR to OR in code like (a&c1)^(a&c2) where c1 and c2 don't have
14979 * combine.c (simplify_logical): Convert XOR to IOR if operands have
14980 no bits in common; remove XOR to ROTATE conversion.
14982 Fri Oct 15 17:40:11 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14984 * config/c4x/c4x.h (c4x_va_start, c4x_va_arg): Declare.
14986 Fri Oct 15 17:27:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14988 * config/c4x/c4x.c (dst_operand): New.
14989 (PREDICATE_CODES): Update.
14990 * config/c4x/c4x.h (dst_operand): Declare it.
14991 * config/c4x/c4x.md: Define mode for each unspec usage.
14992 (move patterns): Use dst_operand predicate instead of src_operand.
14993 (movqi_update, movqf_update): Delete.
14995 Thu Oct 14 18:48:54 1999 Richard Henderson <rth@cygnus.com>
14997 * recog.c (pmode_register_operand): New.
14998 * recog.h: Declare it.
14999 * genrecog.c (pred_codes): Likewise.
15000 (special_mode_pred_table): Likewise.
15001 (validate_pattern): Don't warn no mode for address_operand.
15003 * print-rtl.c (print_rtx) [LABEL_REF]: Only do full subexpression
15004 if the operand is not insn-like.
15006 Thu Oct 14 19:38:42 1999 Jeffrey A Law (law@cygnus.com)
15007 Sylvian Pion <Sylvain.Pion@sophia.inria.fr>
15009 * fold-const.c (fold): Handle more simplifications allowed by IEEE.
15011 Thu Oct 14 17:30:14 1999 Richard Henderson <rth@cygnus.com>
15013 * sparc.md (*): Use {nonimmediate,register}_operand as appropriate
15014 instead of general_operand in a SET_DEST. Use const_double_operand
15015 instead of an explicit test against CONST_DOUBLE.
15016 (movsf_const_lo): Add missing register mode.
15017 (goto_handler_and_restore): Add auxiliary test for Pmode.
15018 (flush): Adjust to use address_operand.
15019 (return_sf_no_fpu): Add missing output constraint.
15021 Thu Oct 14 17:21:26 1999 Richard Henderson <rth@cygnus.com>
15023 * rs6000.md (call_value_indirect_aix32): Use wildcard match_operand
15024 for call return value.
15025 (call_value_indirect_aix64, call_value_indirect_nt): Likewise.
15027 Thu Oct 14 13:54:25 1999 Jason Merrill <jason@yorick.cygnus.com>
15029 * toplev.c (main): Only warn about options for other languages.
15030 * collect2.c (main): Pass -w to sub-gcc.
15032 Thu Oct 14 16:27:50 1999 Richard Henderson <rth@cygnus.com>
15034 * flow.c (propagate_block): Add call-clobbered registers to
15037 * flow.c (propagate_block): Use free_EXPR_LIST_list instead of
15038 zapping mem_set_list.
15039 (invalidate_mems_from_autoinc): Use free_EXPR_LIST_node.
15040 (mark_set_1, mark_used_regs): Likewise.
15042 Thu Oct 14 10:51:49 1999 Richard Henderson <rth@cygnus.com>
15044 * m68k.md (zero_extendsidi2): Add missing output reload constraint.
15046 Wed Oct 13 00:09:18 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15048 * invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
15049 -Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
15050 options. Also add a new item "C-only Warning Options" to the
15053 1999-10-14 Gavin Romig-Koch <gavin@cygnus.com>
15055 * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
15056 from multiple calls.
15058 Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com>
15060 * i386.md (call value patterns): Move to the end of the file.
15061 (prologue_set_got, prologue_get_pc): Use register_operand for op 0.
15063 1999-10-14 Mark Elbrecht <snowball3@bigfoot.com>
15065 * configure.in (djgpp configuration): Define extra_objects..
15066 * configure: Rebuilt.
15067 * config/i386/djgpp.h (CTORS_SECTION_ASM_OP): Define.
15068 (DTORS_SECTION_ASM_OP): Define.
15069 (INIT_SECTION_ASM_OP): Define.
15070 (FINI_SECTION_ASM_OP): Define.
15071 (DATA_SECTION_ASM_OP): Define.
15072 (TEXT_SECTION_ASM_OP): Define.
15073 (EH_FRAME_SECTION_ASM_OP): Define.
15074 (LINK_COMMAND_SPEC): Remove -Tdjgpp.djl.
15075 (STARTFILE_SPEC): Add crtbegin.o.
15076 (ENDFILE_SPEC): Define and add crtend.o. Move argument -Tdjgpp.djl
15077 to here from LINK_COMMAND_SPEC.
15078 (DO_GLOBAL_CTORS_BODY): Define.
15079 (CRTSTUFF_USE_FINI_SECTION): Define
15080 (HAS_INIT_SECTION): Delete.
15082 Thu Oct 14 05:08:14 1999 Andreas Schwab <schwab@suse.de>
15084 * Makefile.in (all.cross): Depend on xcpp$(exeext).
15086 Thu Oct 14 04:00:40 1999 Richard Henderson <rth@cygnus.com>
15088 * pa.h (PREDICATE_CODES): New.
15090 * genrecog.c (validate_pattern): Condense the destination
15091 non-lvalue message.
15093 Thu Oct 14 03:23:08 1999 Richard Henderson <rth@cygnus.com>
15095 * alpha.md (call-1): Supply missing mode for operator.
15096 (*): Add missing output reload constraints. Remove constraints
15097 from define_splits.
15099 * i386.h (SPECIAL_MODE_PREDICATES): New.
15100 * i386.md (movstricthi_1): Use nonimmediate_operand for op 0.
15101 (movqi_1, movdi_1, movdi_2, some splits): Likewise.
15102 (addsi_lea_3): Add missing mode for op 3.
15103 (prologue_set_got, prologue_get_pc): Add missing modes.
15104 (*) Add missing output reload constraints.
15106 Thu Oct 14 03:59:57 1999 Stephane Carrez <stcarrez@worldnet.fr>
15108 * stor-layout.c (layout_union): Use HOST_WIDE_INT for const_size;
15109 check for member bit-size overflow and use var_size if it occurs.
15110 (layout_record): Use bitsize_int() to define the type size in bits.
15111 Likewise for computation and assignment to DECL_FIELD_BITPOS.
15112 (layout_decl): Likewise when assigning to DECL_SIZE.
15114 Thu Oct 14 02:57:05 1999 Richard Henderson <rth@cygnus.com>
15116 * genrecog.c (validate_pattern): Typo last change. Verify
15117 that output operands have output reloads.
15119 Thu Oct 14 01:49:54 1999 Richard Henderson <rth@cygnus.com>
15121 * genrecog.c (special_mode_pred_table): New.
15122 (NUM_SPECIAL_MODE_PREDS): New.
15123 (find_operand): New.
15124 (validate_pattern): New argument `insn'. Warn for assignment to
15125 any predicate accepting non-lvalues. Conditionaly warn for
15126 match_operand without a mode. Try much harder to match source
15127 and destination modes on a set.
15128 * tm.texi (SPECIAL_MODE_PREDICATES): Document.
15130 Thu Oct 14 02:54:13 1999 Jeffrey A Law (law@cygnus.com)
15132 * fold-const.c (fold): Detect rotates built from BIT_XOR_EXPRs.
15134 Thu Oct 14 02:18:19 1999 Marc Espie <espie@cvs.openbsd.org>
15136 * combine.c (simplify_logical): Recognize xor pattern that encodes
15139 Wed Oct 13 23:23:45 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15141 * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
15144 Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com>
15146 * ggc-page.c (MAP_FAILED): Provide default.
15148 Wed Oct 13 21:41:59 1999 Richard Henderson <rth@cygnus.com>
15150 * sparc.c (symbolic_operand): Verify mode; don't accept CONST_DOUBLE.
15151 * sparc.h (PREDICATE_CODES): Update.
15153 Wed Oct 13 21:18:17 1999 Richard Henderson <rth@cygnus.com>
15155 * alpha.c (some_ni_operand): New.
15156 * alpha-protos.h: Declare it.
15157 * alpha.h (PREDICATE_CODES): Update.
15158 * alpha.md (sXaddq reload insns): Use some_ni_operand
15159 for SET_DEST instead of some_operand.
15161 Wed Oct 13 21:04:45 1999 Richard Henderson <rth@cygnus.com>
15162 Jim Wilson <wilson@cygnus.com>
15164 * genrecog.c (maybe_both_true_2): Don't compare modes of
15166 (process_tree): Elide peephole2_insns. Invoke simplify_tests
15167 after find_afterward.
15168 (debug_decision_1): Dump next and afterward codes.
15170 Wed Oct 13 20:35:16 1999 Richard Henderson <rth@cygnus.com>
15172 * rtl.c (dump_and_abort): Remove.
15173 (fatal_with_file_and_line): New.
15174 (fatal_expected_char): New.
15175 (read_rtx_lineno, read_rtx_filename): New.
15176 (read_skip_spaces): Track line number.
15177 (read_name): Use fatal_with_file_and_line.
15178 (read_rtx): Use fatal_expected_char. Track line number.
15179 * rtl.h (read_rtx_filename, read_rtx_lineno): Declare.
15181 * print-rtl.c (print_rtx): Don't special case LABEL_REF argument
15182 if it isn't a CODE_LABEL.
15184 * genattr.c (main): Set read_rtx_filename.
15185 * genattrtab.c (main): Likewise.
15186 * gencodes.c (main): Likewise.
15187 * genconfig.c (main): Likewise.
15188 * genemit.c (main): Likewise.
15189 * genextract.c (main): Likewise.
15190 * genflags.c (main): Likewise.
15191 * genopinit.c (main): Likewise.
15192 * genoutput.c (main): Likewise.
15193 * genpeep.c (main): Likewise.
15195 * genrecog.c (decision_test.u.insn): Add `lineno'.
15196 (pattern_lineno, error_count): New variables.
15197 (message_with_line): New.
15198 (add_to_sequence): Break out checking code to ...
15199 (validate_pattern): ... here. Detect SET_DEST matching CONST_INT.
15200 (merge_insn): Use message_with_line.
15201 (make_insn_sequence): Use validate_pattern. Record insn lineno.
15202 (main): Set read_rtx_filename, pattern_lineno. Exit early on error.
15204 Wed Oct 13 22:01:35 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15206 * expr.c (store_constructor): Clear union if constructor is empty.
15208 Wed Oct 13 15:19:04 1999 Jim Wilson <wilson@cygnus.com>
15210 * config/rs6000/sysv4.h (CC1_SPEC): Fix errors from Jan 19 change.
15211 Add !endian checks. Change %{...} to %(...).
15213 Wed Oct 13 13:30:34 1999 Richard Henderson <rth@cygnus.com>
15215 * i386.md (*addsi3_cc): Renamed from addcsi3.
15216 (*addsi3_carry): Renamed from addxsi3.
15217 (*subsi3_cc): Renamed from subcsi3.
15218 (*subsi3_carry): Renamed from subxsi3.
15219 (*xorqi_cc_1): Renamed from xorcqi_1.
15220 (xorqi_cc_ext_1): Renamed from xorcqi_ext_1.
15221 * i386.c (ix86_expand_fp_compare): Update for xorqi_cc_ext_1.
15223 Wed Oct 13 13:10:46 1999 Richard Henderson <rth@cygnus.com>
15225 * Makefile.in (ggc-common.o): Depend on RTL_H not RTL_BASE_H.
15226 (ggc-simple.o, ggc-page.o, ggc-none.o, ggc-callbacks.o): Likewise.
15228 1999-10-13 Brendan Kehoe <brendan@cygnus.com>
15230 * regmove.c (optimize_reg_copy_3): Make sure P is non-nil as we
15231 climb up the chain of insns.
15233 Wed Oct 13 10:20:58 1999 Richard Henderson <rth@cygnus.com>
15235 * genrecog.c (write_subroutine): Careful for null trees.
15236 (process_tree): Don't elide empty functions.
15238 Wed Oct 13 10:07:54 1999 Richard Henderson <rth@cygnus.com>
15240 * Makefile.in (genrtl.o): Depend on ggc.h.
15241 * configure.in (valloc): Probe for it.
15242 (with-gc): Use ggc-page if valloc present.
15243 * ggc-common.c (ggc_mark_rtx_children): Use ggc_mark_if_gcable.
15244 (ggc_mark_rtvec_children): New from corpse of ggc_mark_rtvec.
15245 (ggc_alloc_string): Moved from ggc-page.c.
15246 * ggc-none.c (ggc_alloc_obj): New.
15247 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove.
15248 * ggc-page.c (sys/mman.h): Only include if HAVE_MMAP.
15249 (struct globals): Likewise for dev_zero_fd.
15250 (init_ggc): Likewise for it's initialization.
15251 (ggc_allocated_p): Move careful dereference from ...
15252 (ggc_lookup_page_table): ... here. Delete.
15253 (lookup_page_table_entry): Don't use ggc_lookup_page_table.
15254 (alloc_anon): Use valloc if no mmap.
15255 (release_pages): Use free if using valloc.
15256 (ggc_alloc_obj): Renamed from alloc_obj.
15257 (ggc_set_mark): Renamed from mark_obj.
15258 (ggc_mark_if_gcable): Renamed from ggc_mark_string_if_gcable.
15259 (ggc_alloc_rtx, ggc_alloc_rtvec): Delete.
15260 (ggc_alloc_tree, ggc_alloc_string, ggc_alloc): Delete.
15261 (ggc_set_mark_rtx, ggc_set_mark_rtvec): Delete.
15262 (ggc_set_mark_tree, ggc_mark_string, ggc_mark): Delete.
15263 (ggc_collect): Use fp printing instead of our own rounding.
15264 * ggc-simple.c (IS_MARKED, IGNORE_MARK): Delete.
15265 (GGC_STRING_MAGIC, GGC_STRING_MAGIC_MARK): Delete.
15266 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): Delete.
15267 (struct ggc_rtx, struct ggc_rtvec, struct ggc_tree): Delete.
15268 (struct ggc_string, struct ggc_any): Delete.
15269 (offsetof): Provide default definition.
15270 (GGC_BALANCE, GGC_ALWAYS_COLLECT, GGC_ALWAYS_VERIFY): New.
15272 (struct ggc_mem): New, from corpse of ggc_any.
15273 (struct ggc_status): Delete.
15274 (ggc_chain, ggc_allocated_strings, ggc_strings_used): Delete.
15275 (n_rtxs_collected, n_vecs_collected, n_trees_collected): Delete.
15276 (n_strings_collected, n_anys_collected): Delete.
15277 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Delete.
15278 (ggc_alloc_string, ggc_alloc): Delete.
15279 (ggc_free_rtx, ggc_free_rtvec, ggc_free_tree): Delete.
15280 (ggc_free_string, ggc_free_any): Delete.
15281 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Delete.
15282 (ggc_compare_addresses, ggc_mark_string): Delete.
15283 (ggc_mark_string_if_gcable, ggc_mark): Delete.
15284 (search_data): Delete.
15285 (struct globals): New.
15286 (GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED): New.
15287 (tree_insert, tree_lookup): New.
15288 (ggc_alloc_obj, ggc_set_mark, ggc_mark_if_gcable): New.
15289 (clear_marks, sweep_objs): New.
15290 (ggc_collect): Gut. Use clear_marks, sweep_objs.
15291 (init_ggc): Set allocated_last_gc.
15292 (ggc_push_context): Gut. Use G.context.
15293 (ggc_pop_context): Likewise.
15294 (ggc_pop_context_1): New.
15295 (debug_ggc_tree): New.
15296 (debug_ggc_balance, tally_leaves): New.
15297 * ggc.h (ggc_mark_rtvec, ggc_mark_string, ggc_mark): Remove decl.
15298 (ggc_mark_string_if_gcable): Remove decl.
15299 (ggc_mark_rtx, ggc_mark_tree): Use ggc_set_mark.
15300 (ggc_mark_rtvec_children): New.
15301 (ggc_mark_rtvec, ggc_mark_string, ggc_mark): New.
15302 (ggc_mark_if_gcable): New decl.
15303 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove decl.
15304 (ggc_alloc_tree, ggc_alloc): Likewise.
15305 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Likewise.
15306 (ggc_alloc_obj): New decl.
15307 (ggc_alloc_rtx, ggc_alloc_rtvec): New macros.
15308 (ggc_alloc_tree, ggc_alloc): Likewise.
15309 (ggc_set_mark): New decl.
15310 * rtl.h (struct rtx_def): Remove gc_mark.
15311 (struct rtvec_def): Likewise.
15312 * tree.h (struct tree_common): Likewise.
15314 Wed Oct 13 01:44:29 1999 Carol LePage <carolo@hal.com>
15316 * configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines,
15317 float_format and thread_file definitions.
15318 * configure: Rebuilt.
15320 Wed Oct 13 09:25:03 1999 Niels Möller <nisse@lysator.liu.se>
15322 * extend.texi (Function Names): Document types of function names.
15324 Wed Oct 13 00:45:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15326 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
15327 an earlyclobbered output conflict with RELOAD_INPUT reloads.
15329 Tue Oct 12 23:28:28 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15331 * sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
15333 Tue Oct 12 23:19:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15335 * sh.h (REGISTER_MOVE_COST): Change PR_REG to PR_REGS.
15337 Tue Oct 12 17:09:38 1999 David Edelsohn <edelsohn@gnu.org>
15339 * collect2.c (main): Do prelimnary link on AIX if rflag.
15341 Tue Oct 12 09:45:19 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
15343 * config/rs6000/eabi-ctors.c (__do_global_ctors): Run through
15344 __CTOR_LIST__ in opposite order, which is the correct order for sorted
15346 (__do_global_dtors): similarly for __DTOR_LIST__.
15348 Fri Oct 8 19:46:03 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15349 Diego Novillo <dnovillo@cygnus.com>
15351 * config/sh/sh.h (REGISTER_MOVE_COST): Handle moves from T_REGS to
15354 Tue Oct 12 07:38:41 1999 Bruce Korb <autogen@linuxbox.com>
15356 * fixincl/*: Merged "no_bogosity" branch
15357 * fixincl/fixlib.h: protect against doubly defining t_bool
15358 * fixincl/server.h: protect against doubly defining t_bool
15360 Mon Oct 11 20:18:41 1999 Jim Wilson <wilson@cygnus.com>
15362 * genoutput.c: Include toplev.h.
15364 Mon Oct 11 18:56:14 1999 Jim Wilson <wilson@cygnus.com>
15366 * config/sparc/liteelf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
15368 * configure.in (sparclite-*-elf, sparc86x-*-elf): Don't use libgloss.h.
15369 * configure: Regenerate.
15371 Mon Oct 11 16:07:49 1999 Richard Henderson <rth@cygnus.com>
15373 * gcse.c (delete_null_pointer_checks): Returns void.
15375 Mon Oct 11 20:31:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15377 * rtl.c (copy_rtx): Don't use accessor macros to copy fields.
15378 * emit-rtl.c (copy_insn_1): Likewise.
15380 Mon Oct 11 13:29:06 1999 Geoffrey Keating <geoffk@cygnus.com>
15382 * config/mips/mips.c (mips_build_va_list): Correct
15383 TREE_CHAIN setting when hard-float.
15384 (mips_va_start): Use corrected setting.
15385 (mips_va_arg): Likewise. Also pass a tree to build of
15386 POSTINCREMENT_EXPR rather than a naked 'int'.
15388 Sun Oct 10 18:27:27 1999 Mark Mitchell <mark@codesourcery.com>
15390 * ggc.h (ggc_push_context): Fix comment.
15391 (ggc_pop_context): Likewise.
15392 (mark_string_if_gcable): Likewise.
15393 * ggc-common.c (ggc_mark_rtx_children): Use
15394 ggc_mark_string_if_gcable.
15395 * ggc-page.c (ggc_lookup_page_table): New function.
15396 (ggc_allocated_p): Likewise.
15397 (mark_obj): Fix formatting.
15398 (ggc_mark_string_if_gcable): New function.
15399 * ggc-simple.c (ggc_allocated_strings): New variable.
15400 (ggc_strings_used): Likewise.
15401 (ggc_compare_addresses): New function.
15402 (ggc_pop_context): Pop the `any' memory too.
15403 (ggc_mark_string_if_gcable): New function.
15404 (ggc_collect): Initialize and tear down ggc_allocated_strings.
15406 Sun Oct 10 20:05:21 1999 David Edelsohn <edelsohn@gnu.org>
15408 * rs6000.md (movstrsi_?reg): Use preferred rD/rS = r5 form.
15409 (scc patterns): Disable most SImode variants if TARGET_POWERPC64.
15410 * rs6000.c (expand_block_move): Match movstrsi_?reg register
15413 Sun Oct 10 16:37:01 1999 Richard Henderson <rth@cygnus.com>
15415 * haifa-sched.c (sched_reg_n_calls_crossed): Delete.
15416 (sched_reg_live_length, sched_reg_basic_block): Delete.
15417 (current_block_num, bb_live_regs, old_live_regs): Delete.
15418 (dead_notes, struct sometimes): Delete.
15419 (sched_note_set, birthing_insn_p): Delete.
15420 (adjust_priority): Gut useless reg lifetime code.
15421 (create_reg_dead_note, attach_deaths): Delete.
15422 (attach_deaths_insn, new_sometimes_live): Delete.
15423 (finish_sometimes_live): Delete.
15424 (find_pre_sched_live, find_post_sched_live): Delete.
15425 (update_reg_usage): Delete.
15426 (find_insn_reg_weight): New, from corpse of find_pre_sched_live.
15427 (schedule_insns): Delete reg lifetime code.
15428 (sched_analyze): Use REG_SAVE_NOTE to stuff NOTE_INSN notes away.
15429 (unlink_other_notes): Adjust REG_NOTE commentary.
15430 (reemit_notes): Use REG_SAVE_NOTE.
15431 (schedule_block): Likewise.
15432 (schedule_region): Allocate bitmap of blocks in region. Use
15433 count_or_remove_death_notes. Use update_life_info.
15435 * rtl.h (REG_SAVE_NOTE): New.
15436 * rtl.c (reg_note_name): Update.
15438 Sun Oct 10 16:14:16 1999 Richard Henderson <rth@cygnus.com>
15440 * combine.c (refresh_blocks, need_refresh): New.
15441 (combine_instructions): Allocate refresh_blocks. Invoke
15442 update_life_info if needed.
15443 (distribute_notes): Mark refresh_blocks instead of installing
15445 * flow.c (update_life_info): Remove notes if GLOBAL_RM_NOTES.
15446 * basic_block.h (enum update_life_extent): Add GLOBAL_RM_NOTES.
15448 * Makefile.in (recog.o): Depend on basic-block.h.
15450 Sun Oct 10 12:03:21 1999 Richard Henderson <rth@cygnus.com>
15452 * genrecog.c (add_to_sequence): Thinko last change: delete
15453 shadowing allow_const_int variable.
15455 Sun Oct 10 08:40:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15457 * cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing
15458 __GNUC__ and __GNUC_MINOR__.
15460 * gansidecl.h: Likewise.
15466 * toplev.h: Likewise.
15468 * tree.c: Likewise.
15470 * tree.h: Likewise.
15472 * varray.c: Likewise.
15474 * varray.h: Likewise.
15476 Sun Oct 10 13:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15478 * loop.c (find_and_verify_loops): When looking for a BARRIER, don't
15479 use one before a jump table.
15481 * rtl.def (ADDRESS): Change documentation to match reality.
15482 * md.texi: Don't document it.
15483 * gmicro.md (load address pattern): Use 'p' constraint, delete use
15486 * emit-rtl.c (copy_insn_1): Make format_ptr a const char *.
15488 Sun Oct 10 02:41:41 1999 Richard Henderson <rth@cygnus.com>
15490 * genrecog.c (add_to_sequence): Move allow_const_int test outside
15491 known predicate block; default allow_const_int true.
15492 (debug_decision_list): New.
15494 Sun Oct 10 00:43:08 1999 Richard Henderson <rth@cygnus.com>
15496 * i386.h (CC1_SPEC): Typo -- use cc1_cpu.
15498 Sat Oct 9 23:26:55 1999 Jeffrey A Law (law@cygnus.com)
15500 * gcse.c (gcse_main): Avoid global optimizations if we have a
15501 large number of basic blocks and the ratio of edges to blocks
15503 (delete_null_pointer_checks): Likewise.
15505 Sat Oct 9 23:16:01 1999 Ken Raeburn <raeburn@mit.edu>
15507 * c-common.c (check_format_info): Warn if format string isn't a
15510 Sat Oct 9 23:04:02 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
15512 * configure.in (arm*-*-*): Don't let autoconf remove brackets
15513 * configure: regenerate
15515 Sat Oct 9 13:15:53 1999 Richard Henderson <rth@cygnus.com>
15517 * alpha.md (extendsidi2): Turn into a splitter. Allow f/f.
15518 If TARGET_FIX, allow r/f. Remove cvtlq unspec pattern.
15519 (peepholes): Re-enable.
15521 Sat Oct 9 12:18:16 1999 Richard Henderson <rth@cygnus.com>
15523 * Makefile.in (flow.o): Depend on TREE_H.
15524 * basic-block.h (REG_SET_EQUAL_P): New.
15525 (XOR_REG_SET): New.
15526 (n_edges): Declare.
15527 (free_regset_vector): Remove declaration.
15528 (flow_delete_insn_chain): Declare.
15529 (enum update_life_extent): New.
15530 (update_life_info, count_or_remove_death_notes): Declare.
15531 * combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
15532 Verify register live at bb->global_live_at_start before adding USE.
15533 * flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
15534 (CLEAN_ALLOCA): New.
15536 (PROP_*): New flags.
15537 (find_basic_blocks_1): Use alloc_EXPR_LIST.
15538 (clear_edges): Zero n_edges.
15539 (make_edge): Increment n_edges.
15540 (split_edge): Don't allocate bb->local_set. Increment n_edges.
15541 (flow_delete_insn_chain): Export.
15542 (delete_block): Decrement n_edges.
15543 (merge_blocks_nomove): Likewise.
15544 (life_analysis): Give life_analysis_1 PROP flags.
15545 (verify_wide_reg_1, verify_wide_reg): New.
15546 (verify_local_live_at_start): New.
15547 (update_life_info): Rewrite to call into propogate_block.
15549 (mark_regs_live_at_end): After reload, if epilogue as rtl,
15550 always mark stack pointer. Conditionally mark PIC register.
15551 After reload, mark call-saved registers, return regsiters.
15552 (life_analysis_1): Accept PROP flags not remove_dead_code.
15553 Call mark_regs_live_at_end before zeroing regs_ever_live.
15554 Use calculate_global_regs_live. Copy global_live_at_end before
15555 calling final propagate_block. Zero reg_next_use on exit.
15556 (calculate_global_regs_live): New.
15557 (allocate_bb_life_data): Don't allocate bb->local_set.
15558 (init_regset_vector, free_regset_vector): Remove.
15559 (propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
15560 Test flags before every operation. Warn if prologue/epilogue insn
15561 would have been deleted.
15562 (mark_set_regs, mark_set_1): Accept and use FLAGS.
15563 Use alloc_EXPR_LIST.
15564 (mark_used_regs): Accept and use FLAGS, not FINAL.
15565 Remove special handling for RETURN.
15566 (try_pre_increment): Use alloc_EXPR_LIST.
15567 (dump_flow_info): Dump n_edges.
15568 (unlink_insn_chain, split_hard_reg_notes): Remove.
15569 (maybe_add_dead_note, maybe_add_dead_note_use): Remove.
15570 (find_insn_with_note, new_insn_dead_notes): Remove.
15571 (update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
15572 (maybe_remove_dead_notes, prepend_reg_notes): Remove.
15573 (replace_insns): Remove.
15574 (count_or_remove_death_notes): New.
15575 (verify_flow_info): Abort on error after all checks.
15576 (remove_edge): Decrement n_edges.
15577 (remove_fake_edges): Tweek format.
15578 * haifa-sched.c (schedule_insns): Use split_all_insns.
15579 * output.h (update_life_info): Remove declaration.
15580 * recog.c (split_all_insns): From the corpse of split_block_insns,
15581 do the whole function block by block. Use update_life_info.
15582 (recog_last_allowed_insn): New.
15583 (recog_next_insn): Mind it.
15584 (peephole2_optimize): Set it. Walk backwards through blocks.
15585 Use update_life_info.
15586 * rtl.h (update_flow_info, replace_insns): Remove declarations.
15587 (split_all_insns): Declare.
15588 * toplev.c (rest_of_compilation): Thread prologue before flow2.
15589 Use split_all_insns.
15591 * i386.md (or -1 peep2s): Disable.
15593 Fri Oct 8 17:49:08 1999 Richard Henderson <rth@cygnus.com>
15595 * config/mips/mips.md (movstrsi+[123]) : Combine these into
15596 a single pattern. Scrap the 'd' versions as unnecessary.
15598 * config/mips/mips.md (tablejump_internal3,tablejump_mips161,
15599 tablejump_mips162,tablejump_internal4): The operands to a
15600 label_ref must be VOIDmode.
15602 Fri Oct 8 16:12:42 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15604 * configure.in (c-mbchar): Append, don't overwrite, `extra_c_flags'.
15606 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
15608 * mips.c (mips_va_arg) [EABI]: Return addr_rtx.
15610 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
15612 * lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
15613 cache every function if ggc_p.
15615 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15617 * jump.c (duplicate_loop_exit_test): Use copy_insn/copy_insn_1
15618 instead of copy_rtx. Accept sequences that contain asm statements.
15619 * emit-rtl.c (copy_insn_1, copy_insn): New functions.
15620 (copy_insn_scratch_in, copy_insn_scratch_out, copy_insn_n_scratches,
15621 orig_asm_operands_vector, copy_asm_operands_vector,
15622 orig_asm_constraints_vecotr, copy_asm_constraints_vector): New static
15624 * rtl.h (copy_insn, copy_insn_1): Declare.
15626 Fri Oct 8 13:08:12 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15628 * Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.
15630 * alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of
15631 arguments to `current_file_function_operand'.
15633 * genrecog.c: Include hard-reg-set.h and resource.h in the
15634 generated output file.
15636 * real.c: Include tm_p.h.
15638 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15640 * i386.md (prologue_allocate_stack): Add '=' constraint letter on
15643 Thu Oct 7 23:06:50 1999 Richard Henderson <rth@cygnus.com>
15645 * rs6000.md (fix_truncdfsi2_internal+1): Emit a clobber
15646 before the fctiwz insn.
15648 Thu Oct 7 22:53:00 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15649 Mark Mitchell <mark@codesourcery.com>
15651 * tree.c (make_lang_type_fn): New funtion pointer.
15652 (make_lang_type): Call it.
15653 * tree.h (make_lang_type): Declare.
15654 (make_lang_type_fn): Likewise.
15655 * rs6000.c (rs6000_build_va_list): Use make_lang_type.
15657 Thu Oct 7 00:36:17 1999 Diego Novillo <dnovillo@cygnus.com>
15659 * config/rs6000/rs6000.c (secondary_reload_class): For TARGET_ELF
15660 make sure that HIGH instructions are copied into BASE_REGS.
15662 Thu Oct 7 17:02:34 1999 Jason Merrill <jason@yorick.cygnus.com>
15664 * expr.c (expand_expr, TARGET_EXPR): Set TREE_USED sooner.
15666 Thu Oct 7 17:01:58 1999 Greg McGary <gkm@gnu.org>
15668 * c-decl.c (finish_struct): Use simpler method of
15669 removing elements of a singly-linked list.
15671 Thu Oct 7 15:23:28 1999 Michael Meissner <meissner@cygnus.com>
15673 * alpha.md (peephole2's): Comment out peephole2's that generate
15676 Thu Oct 7 12:00:53 1999 Richard Henderson <rth@cygnus.com>
15678 * genrecog.c (add_to_sequence): Disable mode check for
15681 Thu Oct 7 20:14:16 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15683 * ggc-simple.c (init_ggc): Set empty_string.
15685 Thu Oct 7 01:13:15 1999 Richard Henderson <rth@cygnus.com>
15687 * configure.in: Detect mmap. Add --with-gc=foo to select
15688 garbage collector; default to page if mmap available.
15689 * Makefile.in (GGC): Substitute.
15691 Wed Oct 6 23:56:30 1999 Richard Henderson <rth@cygnus.com>
15693 * c-decl.c (ggc_p): Enable.
15695 Wed Oct 6 17:17:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15697 * flow.c (verify_flow_info): Make it extern & unconditionally define.
15699 1999-10-06 Brendan Kehoe <brendan@cygnus.com>
15701 * sparc/sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc
15702 string for little-endian-data.
15704 Wed Oct 6 16:10:35 1999 Michael Meissner <meissner@cygnus.com>
15706 * varray.h (VARRAY_CHECK): Fix up appropriate revision check, in
15707 case somebody tries to compile --enable-checking code with gcc
15710 Wed Oct 6 12:22:50 1999 Richard Henderson <rth@cygnus.com>
15712 * genrecog.c (add_to_sequence): Verify operand to label_ref is
15715 Wed Oct 6 10:21:15 1999 Richard Henderson <rth@cygnus.com>
15717 * genconfig.c (main): Disable HAVE_conditional_arithmetic.
15718 * jump.c (jump_optimize_1): Document why.
15720 Wed Oct 6 10:41:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15722 * collect2.c (scan_prog_file, scan_libraries): Prototype function
15723 pointers and casts for `int_handler' and `quit_handler'.
15725 * flow.c (verify_flow_info, split_hard_reg_notes,
15726 find_insn_with_note, sets_reg_or_subreg_1, prepend_reg_notes,
15727 remove_edge, remove_fake_successors): Add static prototypes.
15728 (verify_flow_info): Wrap with macro ENABLE_CHECKING.
15729 (mark_set_1): Initialize variable `regno'.
15730 (unlink_insn_chain): Likewise for variable `curr'.
15731 (remove_fake_edges): Remove unused variables `e', `tmp' and `last'.
15733 * loop.c (strength_reduce): Initialize variable
15734 `unrolled_insn_copies'.
15735 (cmp_combine_givs_stats, cmp_recombine_givs_stats): Add static
15736 prototypes. Change these functions to take const PTR parameters
15737 to avoid prototype conflict when used as the comparson argument
15739 (check_dbra_loop): Initialize variable `comparison_val'.
15741 * reload.c (debug_reload_to_stream, debug_reload): Add prototypes.
15742 (get_secondary_mem): Mark parameter `x' with ATTRIBUTE_UNUSED.
15743 (find_valid_class): Initialize variable `best_class'.
15744 (find_reloads): Call memcpy, not bcopy.
15746 * reload1.c (gen_mode_int, dump_needs): Add prototypes.
15747 (hard_reg_use_compare): Don't needlessly cast away const.
15748 (reload_reg_class_lower): Likewise.
15749 (choose_reload_regs): Initialize variable `regno'.
15751 Tue Oct 5 16:34:12 1999 Paul Burchard <burchard@pobox.com>
15753 * ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
15755 Tue Oct 5 16:14:40 1999 Michael Meissner <meissner@cygnus.com>
15757 * libgcc1-test.c (toplevel): Include stddef.h to get size_t.
15758 ({,d}discard): Add forward declarations. Declare parameter as
15760 (main_without_main): Explicitly declare return type to be int.
15761 (memcpy): Properly declare.
15763 * libgcc2.c (toplevel): If inhibit_libc is defined and not
15764 building the trampoline support, declare malloc, free, and
15766 (__clear_cache): Mark arguments as potentially unused.
15768 * frame.c (toplevel): If inhibit_libc is defined, declare
15771 Tue Oct 5 12:00:32 1999 Richard Henderson <rth@cygnus.com>
15773 * flow.c (make_edge): Accept an optional 2D bitmap in which
15774 to cache edge existence. Update all callers.
15775 (make_label_edge, make_eh_edge): Pass through the edge cache.
15776 (make_edges): Provide the cache.
15778 Tue Oct 5 12:16:49 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15780 * mbchar.c (literal_codeset, local_mbtowc, local_mblen): Constify
15782 (local_mbtowc): Change the type of variable `i' from int to size_t.
15784 * mbchar.h (ISSJIS1, ISSJIS2): Use parens around && within ||.
15785 (local_mbtowc, local_mblen, literal_codeset): Constify a char*.
15787 Tue Oct 5 11:34:52 1999 Michael Meissner <meissner@cygnus.com>
15789 * ggc-common.c (toplevel): Reorder includes, so that ggc.h comes
15790 after other includes that define the appropriate types. Include
15791 tm_p.h for getting user prototypes.
15792 * ggc-callbacks.c (toplevel): Ditto.
15793 * ggc-none.c (toplevel): Ditto.
15794 * gcc-page.c (toplevel): Ditto.
15795 * ggc-simple.c (toplevel): Ditto.
15797 Mon Oct 4 16:48:16 1999 Diego Novillo <dnovillo@cygnus.com>
15798 Jonathan Larmour <jlarmour@cygnus.co.uk>
15800 * config/mips/mips.c (mips_move_2words): Split doubles if
15801 ISA >= 3, !TARGET_64BIT, and destination is not an FP register.
15803 Mon Oct 4 21:47:31 1999 Richard Henderson <rth@cygnus.com>
15805 * genrecog.c (struct decision_test): New.
15806 (struct decision): Remove test-related members, sort the rest by size.
15807 (IS_SPLIT): Simplify.
15808 (new_decision, new_decision_test): New.
15809 (add_to_sequence): Use them. No special handling for args of
15811 (maybe_both_true): Renamed from not_both_true; return sense changed.
15812 (maybe_both_true_1, maybe_both_true_2): New. Broken out
15813 of maybe_both_true and adjusted for decision_test.
15814 (position_merit): Remove.
15815 (nodes_identical, nodes_identical_1): New, broken out of merge_trees.
15816 (merge_accept_insn): New, broken out of merge_trees.
15817 (merge_trees): Use them. No special case for c_test; no node
15818 splitting; use test type instead of position_merit.
15819 (factor_tests): New.
15820 (simplify_tests): New.
15821 (break_out_subroutines): Don't write code now.
15822 (find_afterward): New.
15823 (write_afterward, write_switch, write_cond): New.
15824 (write_action, is_unconditional): New.
15825 (write_node): New. Use them.
15826 (write_tree_1): Rewrite. Use the new functions above.
15827 (write_tree): Remove afterward processing.
15828 (write_subroutine): Simplify function variant emission.
15829 (write_subroutines): New.
15830 (same_codes, clear_codes): Remove.
15831 (same_modes, clear_modes): Remove.
15832 (write_header): New, broken out of main.
15833 (make_insn_sequence): Use new_decision and new_decision_test.
15834 (process_tree): New, broken out of main.
15835 (main): Adjust for merge_trees interface change.
15836 Don't #define operands in the output file.
15837 (record_insn_name): New, broken out of make_insn_sequence.
15838 (debug_decision_2, debug_decision_1, debug_decision_0): New.
15839 (debug_decision): New.
15841 1999-10-04 21:58 -0700 Zack Weinberg <zack@bitmover.com>
15843 * resource.c (find_free_register): Mark class_str argument const.
15844 * resource.h: Update prototype to match.
15846 * i386.h (PREDICATE_CODES): Add entry for long_memory_operand.
15847 * i386.md: Give all anonymous insns names.
15849 Mon Oct 4 21:12:02 1999 Jeffrey A Law (law@cygnus.com)
15851 * flow.c (merge_blocks): Avoid assing BASIC_BLOCK for non-existent
15854 Mon Oct 4 21:01:39 1999 Richard Henderson <rth@cygnus.com>
15856 * toplev.c (dbr_sched_time): Unconditional.
15857 (peephole2_time): New.
15858 (compile_file): Add pass numbers to all of the dump file suffixes.
15859 Dump peephole2_time. Don't dump times for non-applicable passes.
15860 (rest_of_compilation): Add pass numbers to dump file suffixes.
15861 Conditionalize calls to the scheduler.
15862 * invoke.texi: Update.
15864 Mon Oct 4 20:25:13 1999 Anthony Green <green@cygnus.com>
15866 * flow.c (make_edges): Fix insn iteration.
15867 (find_basic_blocks): Assign NULL_RTX, not 0, to rtx.
15868 (find_basic_blocks_1): Fix spelling mistake.
15870 Mon Oct 4 16:56:11 1999 Richard Henderson <rth@cygnus.com>
15872 * tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that
15873 always have side-effects. Use memset not bzero.
15874 (make_node): Likewise.
15876 Mon Oct 4 16:22:20 1999 Mark Mitchell <mark@codesourcery.com>
15878 * stmt.c (expand_anon_union_decl): When any of the elements of the
15879 union is addressable, so is the entire union.
15881 Mon Oct 4 11:38:33 1999 Richard Henderson <rth@cygnus.com>
15883 * sbitmap.c (sbitmap_ones): Don't set too many bits.
15885 * bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
15886 * bitmap.c (bitmap_operation): Return true iff TO changed.
15887 (bitmap_equal_p): New.
15888 (bitmap_bit_p): Tidy arithmetic.
15889 (debug_bitmap_file): Likewise.
15891 Mon Oct 4 11:28:37 1999 Richard Henderson <rth@cygnus.com>
15893 * toplev.c (rest_of_compilation): Turn on cse_not_expected
15894 before cse2 instead of after.
15896 Mon Oct 4 09:55:17 1999 Stan Cox <scox@cygnus.com>
15898 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
15901 Mon Oct 4 08:54:12 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15903 * cppinit.c (is_idchar initializer): Loosen tests to accept
15906 Mon Oct 4 02:31:20 1999 Mark Mitchell <mark@codesourcery.com>
15908 * mips.md: Define conditional move patterns for floating point
15909 operands and DI mode conditions.
15911 Mon Oct 4 02:12:41 1999 Mark Mitchell <mark@codesourcery.com>
15913 * tree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that
15914 always have side-effects.
15916 Sun Oct 3 14:14:16 1999 Jeffrey A Law (law@cygnus.com)
15918 * mn10200.c (asm_file_start): Fix typo.
15920 * cppinit.c (is_idchar initializer): Tighten tests for when
15921 to put the table into initialized memory.
15923 * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
15924 not an array of rtunion.
15925 * gcc-page.c (ggc_alloc_rtvec): Similarly.
15926 * gcc-simple (ggc_free_rtvec): Similarly.
15928 * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
15931 * mbchar.h: Add missing #endif.
15933 * t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
15934 (FPBIT, DPBIT): Define.
15936 Sun Oct 3 12:44:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15938 * print-tree.c (print_node, indent_to): Remove redundant prototypes.
15940 * profile.c (instrument_arcs, output_gcov_string,
15941 tablejump_entry_p): Add static prototypes.
15942 (output_gcov_string): Constify a char*.
15944 * regmove.c (replacement_quality, fixup_match_2): Add static
15947 * resource.h (reg_dead_p): Add extern prototype.
15949 * rtl.c (trim_filename): Add static prototype.
15951 * scan-decls.c (skip_to_closing_brace): Likewise.
15953 * stmt.c (expand_decl_cleanup_no_eh): Hide definition.
15954 (expand_end_case): Initialize variable `range'.
15955 (emit_case_nodes): Remove unused prototype `rtx_fn'.
15957 * varasm.c (asm_emit_uninitialised): Add static prototype.
15958 (asm_emit_uninitialised, assemble_variable): Mark parameter with
15961 Sun Oct 3 12:24:52 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15963 * cpplib.c (if_directive_nameo): Add static prototype.
15965 * cse.c (cse_insn): Remove unused variable `p'.
15967 * except.c (create_rethrow_ref, push_entry,
15968 receive_exception_label, new_eh_region_entry, find_func_region,
15969 clear_function_eh_region, process_nestinfo): Add static prototypes.
15970 (get_reg_for_handler): Hide definition.
15971 (process_nestinfo): Initialize variable `extra_handlers'.
15973 * expr.h (expand_builtin_longjmp): Add extern prototype.
15975 * final.c (final_addr_vec_align, align_fuzz): Add static prototypes.
15977 * function.c (prepare_function_start): Likewise.
15978 (pop_function_context_from): Mark parameter `context' with
15980 (push_temp_slots_for_block, flush_addressof): Hide definition.
15982 * gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
15983 solve_program_flow_graph, calculate_branch_probs,
15984 function_summary, main, fancy_abort): Add prototypes.
15986 * gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
15987 (add_hash): Constify a char*.
15989 * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
15990 ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
15991 ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.
15993 * integrate.c (expand_inline_function_eh_labelmap): Likewise.
15995 * lists.c (free_list, zap_lists): Likewise.
15997 Sun Oct 3 12:05:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15999 * alias.c (nonlocal_reference_p): Add static prototype.
16001 * bitmap.c (bitmap_element_allocate): Prototype args in function
16004 * builtins.c (stabilize_va_list): Add static prototype.
16005 (expand_builtin_va_arg): Constify a char*.
16007 * c-lex.c (getch, put_back, extend_token_buffer_to,
16008 read_line_number, token_getch, token_put_back): Add static
16011 * c-parse.gperf (hash, is_reserved_word): Likewise.
16013 * cccp.c (is_dir_separator): Likewise.
16015 Sat Oct 2 16:07:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16017 * graph.h: New file to prototype functions exported by graph.c.
16019 * Makefile.in (graph.o, toplev.o): Depend on graph.h.
16021 * graph.c: Include graph.h.
16023 * toplev.c: Likewise. Remove redundant prototypes.
16025 Sat Oct 2 11:28:33 1999 Krister Walfridsson <cato@df.lth.se>
16027 * invoke.texi: Removed duplicated description for -Q.
16029 Sat Oct 2 11:16:00 1999 Jim Kingdon <http://developer.redhat.com>
16031 * extend.texi: Grammar fix in __extension__ text.
16033 Sat Oct 2 11:06:31 1999 Richard Henderson <rth@cygnus.com>
16035 * md.texi (define_peephole2): New section.
16037 Sat Oct 2 10:57:56 1999 Jan Hubicka <hubicka@freesoft.cz>
16039 * i386.md (mov?i patterns): Fix handling of TARGET_USE_MOV0
16040 (mov $-1 to or peepholer): Enable for pentium when optimizing for
16043 Sat Oct 2 10:55:25 1999 Jan Hubicka <hubicka@freesoft.cz>
16045 * builtins.c (expand_builtin_strlen): Fix best mode searching loop.
16047 Sat Oct 2 10:53:22 1999 Jan Hubicka <hubicka@freesoft.cz>
16049 * i386.md (ffs expander): Emit Pentium friendly code for
16052 Sat Oct 2 02:48:21 1999 Mark P. Mitchell <mark@codesourcery.com>
16054 * tree.c (build): Don't look at TREE_SIDE_EFFECTS or TREE_RAISES
16056 (build1): Likewise.
16058 Fri Oct 1 18:01:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16060 * i386elf.h (TARGET_DEFAULT): Use symbolic constants.
16062 Fri Oct 1 12:42:53 1999 Andreas Schwab <schwab@suse.de>
16064 * config/m68k/m68k.c (use_return_insn): Return false if the pic
16065 register is in use.
16067 Fri Oct 1 10:56:06 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16069 * md.texi (No Constraints): Delete section.
16070 * Makefile.in (genattrtab.o): Don't depend on "insn-config.h".
16071 * final.c (final_scan_insn): We always have register constraints.
16072 * genattrtab.c: Don't include "insn-config.h".
16073 (write_attr_case): We always have register constraints.
16074 * genconfig.c (register_constraint_flag): Delete.
16075 (walk_insn_part): Don't check whether we have register constraints.
16076 (main): Don't write out "#define REGISTER_CONSTRAINTS".
16077 * genoutput.c (have_constraints): Delete.
16078 (main): Don't set it.
16079 (output_operand_data): We always have constraints.
16080 (scan_operands): Likewise.
16081 (compare_operands): Likewise.
16082 * local-alloc.c (block_alloc): We always have constraints.
16083 (requires_inout): Always compile this function.
16084 * recog.c (extract_insn): We always have constraints.
16085 (constrain_operands, reg_fits_class_p): Always compile these
16087 * recog.h (struct recog_data): Delete non-REGISTER_CONSTRAINTS
16089 (struct insn_operand_data): Likewise.
16090 * regclass.c (regclass): We always have constraints.
16091 (record_reg_classes, copy_cost, record_address_regs,
16092 auto_inc_dec_reg_p): Always compile these functions.
16093 * regmove.c (regmove_optimize): We always have constraints.
16094 * reload.c (find_reloads): Likewise.
16095 * reload1.c (reload): Likewise.
16096 (reload_cse_simplify_operands): Likewise.
16097 * i860.c (output_delay_insn): Likewise.
16099 Thu Sep 30 23:04:41 1999 Mark P. Mitchell <mark@codesourcery.com>
16101 * iris6.h (BUILD_VA_LIST_TYPE): Define.
16103 Thu Sep 30 18:44:50 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16105 * rs6000.c (rs6000_build_va_list): Create a TYPE_DECL node
16106 for the va_list record.
16108 Thu Sep 30 18:34:54 1999 Jan Hubicka <hubicka@freesoft.cz>
16110 * i386.c (ix86_adjust_cost): Ignore false ebp dependencies in
16113 Thu Sep 30 18:31:36 1999 Jan Hubicka <hubicka@freesoft.cz>
16115 * alias.c: Include insn-flags.h.
16116 * Makefile.in (alias.o): Update.
16118 Thu Sep 30 18:21:30 1999 Jan Hubicka <hubicka@freesoft.cz>
16120 * i386.c (ix86_expand_int_movcc): Convert LEU and GTU comparisons
16121 to LTU and GEU. Handle more cases using sbb.
16123 Thu Sep 30 18:18:39 1999 Jan Hubicka <hubicka@freesoft.cz>
16125 * i386.md (truncatexfdf splitters): Do not use subreg.
16126 (fop XFmode patterns): Fix mode in operand testing.
16128 Thu Sep 30 18:04:13 1999 Richard Henderson <rth@cygnus.com>
16130 * jump.c (jump_optimize_1): Amend last change to test only the
16131 form of the operand, not the insn.
16133 * jump.c (jump_optimize_1) [conditional_move]: Use general_operand
16134 not register_operand to determine when B may need preloading.
16136 Thu Sep 30 17:39:16 1999 Richard Henderson <rth@cygnus.com>
16138 * alpha.md (*): Use nonimmediate not general_operand for SET_DEST.
16139 (ffsdi2, extxl, insxh, mskxh): Add missing DImode to SET_SRC.
16140 (call-value patterns): Move to end of file.
16141 (*): Remove mode from label_ref in (pc) context.
16142 (movstrqi): Use memory not general_operand for BLKmode operands.
16143 (prologue_stack_probe_loop, builtin_longjmp): Add missing mode
16144 to register_operand operands.
16145 (peep2 patterns): Convert from commented-out peephole patterns.
16147 Thu Sep 30 14:39:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16149 * tree.h (enum built_in_function): Rename BUILT_IN_DWARF_REG_SIZE
16150 to BUILT_IN_INIT_DWARF_REG_SIZES.
16151 * builtins.c (expand_builtins, case BUILT_IN_INIT_DWARF_REG_SIZES):
16152 Renamed from BUILT_IN_DWARF_REG_SIZE; call
16153 expand_builtin_init_dwarf_reg_sizes.
16154 * c-decl.c (init_decl_processing): Replace __builtin_dwarf_reg_size
16155 with __builtin_init_dwarf_reg_size_table.
16156 * dwarf2out.c (struct reg_size_range): Delete.
16157 (expand_builtin_init_dwarf_reg_sizes): New function.
16158 (expand_builtin_dwarf_reg_size): Delete.
16159 * except.h (expand_builtin_init_dwarf_reg_sizes): Declare.
16160 (expand_builtin_dwarf_reg_size): Don't declare.
16161 * libgcc2.c (dwarf_reg_size_table_initialized): New.
16162 (dwarf_reg_size_table): New.
16163 (init_reg_size_table): New function.
16164 (copy_reg): Use dwarf_reg_size_table.
16165 (eh_context_initialize): Make sure dwarf_reg_size_table is initialized
16168 Thu Sep 30 05:40:34 1999 Richard Earnshaw <rearnsha@arm.com>
16170 * c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
16171 Correctly build argument list to constructor and destructor functions.
16173 Thu Sep 30 00:13:27 1999 Dirk Zoller <duz@rtsffm.com>
16175 * c-tree.h (warn_float_equal): Declare.
16176 * c-decl.c (warn_float_equal): Define.
16177 (c_decode_option): Recognize -W[no-]float-equal.
16178 * c-typeck.c (build_binary_op): Conditionally warn
16179 about equality tests of floating point types.
16180 * toplev.c (documented_lan_options): Add -W[no-]float-equal.
16181 * invoke.texi: Add docs for -Wfloat-equal warning.
16183 Wed Sep 29 23:43:39 1999 Jeffrey A Law (law@cygnus.com)
16185 * h8300.h (INIT_TARGET_OPTABS): Use init_one_optab instead of
16186 generating RTL directly.
16187 * mips.h (INIT_TARGET_OPTABS): Likewise.
16188 * mn10200.h (INIT_TARGET_OPTABS): Likewise.
16190 * expr.h (init_mov_optab): Delete declaration
16192 * h8300.c (WORD_REG_USED): Update to avoid useless register
16193 saves in interrupt functions and functions which never return.
16195 * cse.c (struct set): Delete inner_dest_loc field.
16196 (cse_insn): Remove assignments to inner_dest_loc field.
16198 Wed Sep 29 16:06:20 1999 Richard Henderson <rth@cygnus.com>
16200 * ggc-page.c: Don't include <unistd.h> etc taken care of
16201 by "system.h". Include <sys/mman.h> afterward.
16203 Wed Sep 29 16:05:18 1999 Richard Henderson <rth@cygnus.com>
16205 * rs6000.c (rs6000_encode_section_info): If ggc_p, use
16208 Tue Sep 28 16:45:40 1999 David Edelsohn <edelsohn@gnu.org>
16210 * xcoffout.c (xcoffout_declare_function): Add documentation.
16211 * rs6000.c (num_insns_constant_wide): Use TARGET_POWERPC64 not
16212 TARGET_64BIT. Compare constant to -1, not bit pattern.
16213 (easy_fp_constant): Use TARGET_POWERPC64 not TARGET_64BIT.
16214 (expand_block_move): Allow 8 DImode loads for PowerPC64. Fix
16217 Tue Sep 28 16:43:14 1999 Nick Clifton <nickc@cygnus.com>
16219 * dwarf2out.c (add_abstract_origin_attribute): Abort if
16220 origin_die is NULL.
16221 (gen_inlined_enumeration_type_die): Do not abort if the type has
16222 not been writeen out.
16223 (gen_inlined_structure_type_die): Do not abort if the type has
16224 not been writeen out.
16225 (gen_inlined_union_type_die): Do not abort if the type has
16226 not been writeen out.
16227 (gen_tagged_type_instantiation_die): Do not abort if the type
16228 has not been written out.
16230 Tue Sep 28 14:33:47 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16232 * c-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined,
16234 * reg-stack.c (straighten_stack): Copy hard reg set with
16237 Tue Sep 28 01:11:05 1999 Richard Henderson <rth@cygnus.com>
16239 * builtins.c (stabilize_va_list): Stabilize array type va_list
16240 to a pointer type, not the base record type.
16241 (expand_builtin_va_copy): Dereference the pointers explicitly;
16242 use the correct size for the copy.
16244 * rs6000.c (rs6000_va_start): Dereference valist to get to the record.
16245 (rs6000_va_arg): Likewise.
16247 Mon Sep 27 23:27:21 1999 Richard Henderson <rth@cygnus.com>
16249 * rtl.h (struct rtx_def): Move gc_mark to align mode field.
16251 Mon Sep 27 23:20:29 1999 Mark Mitchell <mark@codesourcery.com>
16253 * tree.h (struct tree_decl): Use `bclass', not `class', in name of
16255 (DECL_BUILT_IN_CLASS): Adjust accordingly.
16257 Mon Sep 27 23:03:16 1999 Richard Henderson <rth@cygnus.com>
16259 * ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
16260 (init_ggc): Use it instead of a constant.
16261 (ggc_collect): Bound allocated_last_gc by it.
16263 Mon Sep 27 19:06:04 1999 Jeffrey A Law (law@cygnus.com)
16265 * fixinc/fixinc.irix (stdio.h): Hack stdio.h to avoid problems
16268 Mon Sep 27 19:40:17 CEST 1999 Marc Espie <espie@cvs.openbsd.org>
16270 * configure.in (mips*el-*-openbsd*): Don't duplicate default settings.
16271 (mips*-*-openbsd*): Let big endian configuration be a fragment.
16272 * configure: Regen.
16273 * config/mips/openbsd.h: New, OpenBSD little endian target.
16274 * config/mips/openbsd-be.h: New, OpenBSD big endian target fragment.
16275 * config/mips/xm-openbsd.h: New, OpenBSD host.
16277 Mon Sep 27 10:28:48 1999 Andreas Schwab <schwab@suse.de>
16279 * config/m68k/m68k.c (output_function_prologue,
16280 output_function_epilogue): Use
16281 current_function_uses_pic_offset_table instead of regs_ever_live
16282 to decide whether to save/restore pic register.
16283 (legitimize_pic_address): Don't modify regs_ever_live any more.
16285 Sun Sep 26 10:55:36 1999 Mark Mitchell <mark@codesourcery.com>
16287 * function.h (struct function): Add x_dont_save_pending_sizes_p.
16288 * stor-layout.c (variable_size): Don't add sizes to the pending
16289 sizes list if x_dont_save_pending_sizes_p is set.
16291 Sun Sep 26 16:36:52 1999 Robert Lipe (robertlipe@usa.net)
16293 * config/i386/dgux.h (SELECT_RTX_SECTION): Provide dummy argument
16294 for symbolic_operand().
16295 * config/i386/sco5.h (SELECT_RTX_SECTION): Likewise.
16297 Sun Sep 26 07:37:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16299 * combine.c (gen_rtx_combine): Add missing call to va_end().
16301 * final.c (asm_fprintf): Likewise.
16303 * genattrtab.c (attr_rtx): Likewise.
16305 Sat Sep 25 13:11:07 1999 Jeffrey A Law (law@cygnus.com)
16307 * cse.c: Update comments.
16308 (cse_insn): When converting a conditional/computed jump into
16309 an unconditional jump, always make sure a BARRIER immediately
16310 follows the converted jump. Do not delete unreachable code.
16311 (cse_basic_block): Do not delete unreachable code.
16312 * toplev.c (rest_of_compilation): Move call to
16313 delete_trivially_dead_insns after the conditional call to
16316 Sat Sep 25 09:03:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16318 * collect2.c (make_temp_file): Don't prototype.
16320 * gcc.c (make_temp_file): Likewise.
16322 * mips.c (mips_make_temp_file): Renamed from `make_temp_file'.
16324 Sat Sep 25 13:42:15 1999 Nick Clifton <nickc@cygnus.com>
16326 * varasm.c (asm_emit_uninitialised): New function: Generate
16327 the assembler statements necessary to declare an uninitialised
16329 (ASM_EMIT_LOCAL): New macro: Emit a local, uninitialised
16331 (ASM_EMIT_BSS): New macro: Emit an entry in the bss section.
16332 (ASM_EMIT_COMMON): New macro: Emit an entry in the common
16334 (assemble_variable): Use asm_emit_uninitialised to emit an
16335 uninitialised variable.
16337 Fri Sep 24 17:10:56 1999 Nick Clifton <nickc@cygnus.com>
16339 * combine.c (simplify_comparison): Cope with downshifting a 32 bit
16340 constant on a 64 bit host. Patch supplied by Geoffrey Keating
16341 <geoffk@cygnus.com>.
16343 Fri Sep 24 10:48:10 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16345 * builtins.c (expand_builtin): Use MD_EXPAND_BUILTIN if defined.
16346 * c-common.h (builtin_function): Don't declare.
16348 * c-decl.c (duplicate_decls): Use DECL_BUILT_IN_CLASS rather than
16350 (pushdecl): Likewise.
16351 (finish_decl): Likewise.
16352 (builtin_function): New arg CLASS. Arg FUNCTION_CODE now of type
16353 int. All callers changed.
16354 Set the builtin's DECL_BUILT_IN_CLASS.
16355 * tree.h (enum built_in_class): New.
16356 (enum built_in_function): Delete NOT_BUILT_IN.
16357 (DECL_FUNCTION_CODE): The corresponding field in tree_decl is now
16359 (DECL_SET_FUNCTION_CODE): Likewise.
16360 (DECL_BUILT_IN_CLASS): New macro.
16361 (DECL_BUILT_IN): Use DECL_BUILT_IN_CLASS.
16362 (struct tree_decl): Split builtin function code field into a
16364 (builtin_function): Declare.
16366 Fri Sep 24 01:45:05 1999 Mark Mitchell <mark@codesourcery.com>
16368 * optabs.c (init_traps): Fix typo in last change.
16370 Fri Sep 24 01:10:11 1999 Mark Mitchell <mark@codesourcery.com>
16372 * toplev.c (rest_of_decl_compilation): Update comment.
16374 Fri Sep 24 11:57:06 1999 Geoffrey Keating <geoffk@cygnus.com>
16376 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol
16377 in .sbss if appropriate.
16378 (EXTRA_SECTION_FUNCTIONS): Add sbss.
16379 (SBSS_SECTION_ASM_OP): New macro.
16380 * config/mips/linux.h (EXTRA_SECTION_FUNCTIONS): Add sbss.
16381 (EXTRA_SECTIONS): Add in_sbss.
16382 * config/mips/mips.h: Prototype sbss_section.
16384 Thu Sep 23 18:18:55 1999 Mark Mitchell <mark@codesourcery.com>
16386 * stmt.c (expand_start_bindings): Don't allow cleanup instructions
16389 Thu Sep 23 18:07:01 1999 Mark Mitchell <mark@codesourcery.com>
16391 * optabs.c (init_traps): Register trap_rtx as a GC root.
16393 Thu Sep 23 17:41:47 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16395 * config/mips/mips.c (function_arg_pass_by_reference): Define
16396 unconditionally, since it's called unconditionally.
16398 Thu Sep 23 13:40:02 1999 Jason Merrill <jason@yorick.cygnus.com>
16400 * toplev.c (documented_lang_options): Add -fshort-wchar.
16401 * c-decl.c (c_decode_option): Likewise.
16402 (init_decl_processing): If -fshort-wchar, use 'short unsigned int'
16404 * c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
16405 * gcc.c (default_compilers): If -fshort-wchar,
16406 override __WCHAR_TYPE__.
16407 * tm.texi (C Dialect Options): Add -fshort-wchar.
16409 * dwarf2out.c (output_aranges): Use DW_AT_location to find the
16410 symbol for a variable.
16412 * cpplib.h (CPP_PREPROCESSED): New macro.
16413 * cpplib.c (handle_directive): Don't complain about `# NUMBER' if
16414 we're seeing this input for a second time.
16416 Thu Sep 23 12:54:49 1999 Alex Samuel <samuel@codesourcery.com>
16418 * emit-rtl.c (init_emit_once): Initialize modes first.
16420 Sun Sep 19 01:23:23 1999 Alex Samuel <samuel@codesourcery.com>
16422 * config/i386/i386.c (pic_label_name): Change to char pointer.
16423 (global_offset_table): New variable.
16424 (load_pic_register): Fill global_offset_table if it hasn't
16425 already been done. Allocate pic_label_name dynamically.
16426 * ggc.h (empty_string): New variable.
16427 * ggc-simple.c (empty_string): Likewise.
16428 (init_ggc): Allocate empty_string and add as root.
16429 * stmt.c (digit_strings): New variable.
16430 (init_stmt): Add last_block_end_note as root. Allocate and
16431 initialize digit_strings.
16432 (expand_asm_operands): Use empty_string instead of string
16433 constant. Use digit_strings instead of string constants.
16434 * profile.c (init_arc_profiler): Allocate string with
16435 ggc_alloc_string instead of xmalloc.
16436 (output_func_start_profiler): Likewise.
16437 * c-typeck.c (digest_init): Check if init is error_mark_node.
16439 Thu Sep 23 12:59:14 1999 Alex Samuel <samuel@codesourcery.com>
16440 Richard Henderson <rth@cygnus.com>
16442 * ggc-page.c: New file.
16443 * Makefile.in (ggc-page.o): New.
16445 Thu Sep 23 13:55:21 1999 Jeffrey A Law (law@cygnus.com)
16447 * invoke.texi: Document -fdelete-null-pointer-checks
16448 * toplev.c (flag_delete_null_pointer_checks): New.
16449 (f_options): Add entry for -fdelete-null-pointer-checks.
16450 (rest_of_compilation): Conditionalize null pointer check
16451 elimination on flag_delete_null_pointer_checks.
16452 (main): If -O2 or greater, enable -fdelete-null-pointer-checks
16454 1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com>
16456 * iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
16457 copyright notice and special exception to GPL.
16459 Thu Sep 23 13:40:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16461 * abi64.h (mips_function_value): Add prototype arguments.
16463 * mips-protos.h: New file with mips prototypes.
16465 * mips.c: Include "tm_p.h".
16466 (mktemp, lookup_name): Add prototype arguments.
16467 (extern_list, string_constant, mips_fill_delay_slot,
16468 mips_output_external, mips_output_external_libcall,
16469 mips_output_filename, mips_declare_object, function_prologue,
16470 mips_expand_prologue, function_epilogue, mips16_constant,
16471 build_mips16_function_stub, mips_output_conditional_branch):
16473 (mips_va_start): Remove unused variable `u'.
16474 (mips_va_arg): Cast value to unsigned when comparing against one.
16476 (save_restore_insns, mips_expand_prologue): Add missing arg in
16477 call to `large_int'.
16479 * mips.h: Move prototypes to mips-protos.h.
16480 (data_section, memory_address_p, rdata_section,
16481 readonly_data_section, simple_epilogue_p, text_section): Delete
16482 prototypes delcared elsewhere.
16483 (mips_epilogue_delay_slots, print_options): Delete unused decls.
16485 (GO_PRINTF, GO_PRINTF2): Call fprintf, not trace.
16487 * mips.md: Delete extra args in call to `mips_move_2words'.
16489 * xm-iris6.h (alloca): Add prototype argument.
16491 * genpeep.c: Include "tm_p.h" in generated output file.
16493 Thu Sep 23 10:36:55 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
16495 * basic-block.h (find_edge_index): Change parameters.
16496 * flow.c (verify_edge_list): Pass basic_block parameters to
16497 find_edge_index instead of integers.
16499 Thu Sep 23 15:54:12 1999 Nick Clifton <nickc@cygnus.com>
16501 * combine.c (simplify_comparison): Use an unsigned shift to adjust
16504 Thu Sep 23 08:46:21 1999 Guy Harris <guy@netapp.com>
16506 * gcc.1: Fix a formatting error.
16508 Wed Sep 22 16:10:21 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
16510 * install.texi (Configurations): Remove pyramid. Add fr30, i686,
16511 i786, mn10200, mn10300, pdp11, v850.
16513 Thu Sep 23 07:37:13 1999 Dan Nicolaescu <dann@ics.uci.edu>
16515 * libgcc2.c (num_digits): Add prototype with
16516 __attribute__((const)).
16517 (__terminate): Add prototype.
16519 Thu Sep 23 05:32:06 1999 Richard Henderson <rth@cygnus.com>
16521 * builtins.c, dbxout.c, varasm.c: Include tm_p.h.
16523 * alpha/alpha.c (print_operand): Fix type of `code'.
16524 (alpha_output_filename): Constify.
16525 * alpha/alpha.h: Move all function declarations ...
16526 * alpha/alpha-protos.h: ... here. New file.
16527 * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function.
16528 (SECTION_FUNCTION_TEMPLATE): Likewise.
16530 Thu Sep 23 11:15:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16532 * expmed.c (do_cmp_and_jump): Pass ccp_jump to can_compare_p.
16533 * expr.c (expand_expr): Likewise.
16534 (do_jump): Likewise.
16535 (do_store_flag): Pass ccp_store_flag to can_compare_p.
16536 * expr.h (enum optab_index): Add cbranch, cmov, cstore optabs and
16538 (enum can_compare_purpose): New.
16539 (can_compare_p): Adjust prototype.
16540 (prepare_cmp_insn, prepare_operand): Declare.
16541 * genopinit.c (optabs): Add cbranch_optab, cmov_optab, cstore_optab.
16542 * optabs.c (cmp_available_p): Deleted.
16543 (expand_abs): Pass ccp_jump to can_compare_p.
16544 (can_compare_p): New arg PURPOSE. Check for combined optabs.
16545 (prepare_cmp_insn): No longer static. Add arg PURPOSE.
16546 Call can_compare_p rather than cmp_available_p.
16547 (prepare_operand): No longer static.
16548 (emit_cmp_and_jump_insn): Check for and use cbranch patterns.
16549 (emit_cmp_and_jump_insns): Pass ccp_jump to prepare_cmp_insn.
16550 (expand_float): Fix a slightly broken emit_cmp_insn/emit_jump_insn
16551 sequence to use emit_cmp_and_jump_insns.
16552 (init_optabs): Initialize cbranch_optab, cmov_optab, cstore_optab.
16554 Wed Sep 22 17:58:01 1999 Stan Cox <scox@cygnus.com>
16556 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large
16557 register offsets; let LEGITIMIZE_ADDRESS load it into a register.
16558 (LEGITIMIZE_ADDRESS): Use plus_constant to avoid
16559 (plus (reg) (const_int 0))
16560 * mips.md (call_internal3c): New pattern for -mips16 -mlong-calls.
16562 Wed Sep 22 17:55:31 1999 David Edelsohn <edelsohn@gnu.org>
16564 * rs6000.c (expand_block_move): DImode loads and stores require
16565 word-aligned displacements. Increment address registers with
16566 adddi3 on 64-bit platform. Use TARGET_POWERPC64 not TARGET_64BIT.
16568 Wed Sep 22 17:35:55 1999 Michael Meissner <meissner@cygnus.com>
16570 * dwarf2out.c (base_type_die): Use the name __unknown__ if there
16571 is no name for the base type, rather than segfault. If we are
16572 writing out a complex integer type, use DW_ATE_lo_user.
16574 * expr.c (emit_move_insn_1): If we are copying a complex that fits
16575 in one word or less (complex char, complex short, or on 64 bit
16576 systems complex float) to/from a hard register, copy it through
16577 memory instead of dying in gen_{real,imag}part. If we have a
16578 short complex type, prevent inlining since it allocates stack
16581 * tree.c (build_complex_type): If we are writing dwarf2 output,
16582 generate a name for complex integer types.
16584 Wed Sep 22 11:34:08 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
16586 * basic-block.h (add_noreturn_fake_exit_edges): Use correct name.
16587 * flow.c (remove_edge): Remove extra whitespace.
16588 (remove_fake_edges): Fix comment.
16589 (add_noreturn_fake_exit_edges): Use the correct name.
16591 Wed Sep 22 16:12:40 BST 1999 Nathan Sidwell <nathan@acm.org>
16593 * Makefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.
16594 (mostlyclean): Depend on INTL_MOSTLYCLEAN.
16595 (clean): Depend on INTL_CLEAN.
16596 (maintainer-clean): Adjust.
16598 Wed Sep 22 10:18:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16600 * configure.in (AC_PREREQ): Bump to 2.13.
16601 (AC_C_STRINGIZE): Call this instead of using a custom macro.
16603 * gansidecl.h (HAVE_STRINGIZE): Define, if stage2 gcc && __STDC__.
16605 * system.h (HAVE_STRINGIZE): Test this instead of HAVE_CPP_STRINGIFY.
16607 * acconfig.h (HAVE_CPP_STRINGIFY): Delete.
16609 * alpha/xm-vms.h (HAVE_CPP_STRINGIFY): Delete.
16610 (HAVE_STRINGIZE): Define.
16612 Wed Sep 22 06:25:15 1999 Jim Kingdon <http://developer.redhat.com>
16614 * c-parse.in: save and restore warn_pointer_arith on __extension__
16615 along with pedantic.
16616 (SAVE_WARN_FLAGS, RESTORE_WARN_FLAGS): Added.
16617 Set the type of extension to itype rather than $<itype>1 kludge.
16618 * extend.texi (Alternate Keywords): Adjust documentation.
16619 * c-parse.c, c-parse.y, objc-parse.c, objc-parse.y: Rebuilt.
16621 Wed Sep 22 06:06:57 1999 Jeffrey A Law (law@cygnus.com)
16623 * pa.c, pa.h, pa.md: Support multiple assembler dialects in
16624 most assembler templates.
16626 * pa.c (hppa_legitimize_address): Handle full offsets for PA2.0
16627 FP loads and stores.
16628 (following_call): Always return zero for the PA8000.
16629 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Handle full offsets for PA2.0
16630 FP loads and stores.
16631 (LEGITIMIZE_RELOAD_ADDRESS): Similarly.
16633 * pa.h (BRANCH_COST): Define.
16635 * pa.md (return, return_internal): Use bve for PA2.0.
16637 * pa.md (fused multiply): Add variants which reduce height for the
16638 fused multiply, but which still generate 2 insns.
16639 (fnegabs): Similarly.
16641 * pa.md (subsi3): Turn into an expander. Create two anonymous
16642 patterns. One for PA2.0 one for PA1.x. Use mtsarcm for PA2.0.
16643 * pa.h (EXTRA_CONSTRAINT): Handle 'S'.
16645 * pa.md (floatunssisf2, floatunssidf2): Generate different RTL
16647 (floatunssidf2_pa20, floatunssisf2_pa20): New patterns for PA2.0
16649 (floatunsdisf2, floatunsdidf2, fixuns_truncsfsi2): Likewise.
16650 (fixuns_truncdfsi2, fixuns_truncsfdi2, fixuns_truncdfsi2): Likewise.
16652 * regclass.c (init_regs): Add "top_of_stack" as a garbage
16655 * flow.c (record_active_eh_regions): Terminate loop after finding
16656 the last insn in the last basic block.
16658 Wed Sep 22 20:25:00 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16660 * config/c4x/c4x.md: Delete parallel instruction peepholes.
16662 Wed Sep 22 19:59:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16664 * config/c4x/c4x.c (c4x_add_gc_roots): Add tree roots.
16666 Wed Sep 22 19:56:25 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16668 * config/c4x/c4x.c (c4x_process_after_reload): Rework machdep insn
16669 splitting to not use output template.
16671 Wed Sep 22 19:50:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16673 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.
16674 * config/c4x/c4x.c (c4x_va_start): New function.
16676 Tue Sep 21 18:40:01 1999 Jan Hubicka <hubicka@freesoft.cz>
16678 * genrecog.c (not_both_true): Handle correctly cases when called for
16679 tests with different positions in the insn.
16681 Tue Sep 21 18:29:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16683 * machmode.h (HOST_PTR_PRINTF): Move from here ...
16685 * system.h (HOST_PTR_PRINTF): ... to here.
16687 * mips-tfile.c: Don't include machmode.h.
16689 * Makefile.in (MACHMODE_H): New variable. Update to use it.
16690 (mips-tfile.o): Don't depend on machmode.h.
16692 Tue Sep 21 18:27:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16694 * haifa-sched.c (sched_analyze): Rename local variable `region' to
16695 avoid conflicts with typedef struct `region' at the top level scope.
16697 Tue Sep 21 14:14:50 1999 Richard Henderson <rth@cygnus.com>
16699 * basic-block.h (basic_block): Add eh_beg, eh_end.
16700 * flow.c (entry_exit_blocks): Update.
16701 (find_basic_blocks): Don't allocate bb_eh_end, or pass it around.
16702 Call new functions.
16703 (find_basic_blocks_1): Don't record eh_list at each bb. Use
16704 lists.c functions to allocate insn lists.
16705 (make_edges): Use eh_beg+eh_end, not the lists. Split out EH
16707 (make_eh_edge): ... here. New.
16708 (move_stray_eh_region_notes): New.
16709 (record_active_eh_regions): New.
16710 (delete_unreachable_blocks): Split out block merging ...
16711 (try_merge_blocks): ... here. New.
16712 (merge_blocks_move_predecessor_nojumps): Remove edge arg.
16713 Dump debugging data.
16714 (merge_blocks_move_successor_nojumps): Likewise.
16715 (merge_blocks): Use eh_beg+eh_end to validate block movement.
16717 Tue Sep 21 11:15:03 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
16719 * extend.texi (Bound member functions): Document unbound pmf
16722 Tue Sep 21 14:55:11 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
16724 * flow.c (split_edge): Handle insertion on a fallthrough edge which
16725 has the EXIT_BLOCK as a dest.
16727 Tue Sep 21 14:51:23 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
16729 * flow.c (remove_edge): New function to remove an edge from the
16731 (remove_fake_successors): New function to remove fake successor edges.
16732 (remove_fake_edges): New function to remove all fake edges from the
16734 (add_fake_exit_edges): New function to add fake edges from all blocks
16735 with no successors to the exit block.
16736 * basic-block.h (remove_fake_edges, add_fake_exit_edges): Add
16737 prototypes for new functions.
16739 Tue Sep 21 14:49:53 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
16741 * config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR):
16742 Use Pmode to determine whether to output .dword or .word.
16744 Tue Sep 21 11:04:34 1999 Alex Samuel <samuel@codesourcery.com>
16746 * tree.c (built_in_filename): New variable.
16747 (BUILT_IN_FILENAME): New macro.
16748 (init_tree_codes): Allocate built_in_filename.
16749 (make_node): Use built_in_filename instead of string constant.
16751 Tue Sep 21 14:13:27 1999 Nick Clifton <nickc@cygnus.com>
16753 * configure.in: Add fr30 target.
16754 * configure: Regenerate.
16755 * config/fr30: New directory.
16756 * config/fr30/crti.asm: New file.
16757 * config/fr30/fr30.c: New file.
16758 * config/fr30/crtn.asm: New file.
16759 * config/fr30/fr30.h: New file.
16760 * config/fr30/fr30.md: New file.
16761 * config/fr30/lib1funcs.asm: New file.
16762 * config/fr30/t-fr30: New file.
16763 * config/fr30/xm-fr30.h: New file.
16765 Tue Sep 21 06:45:31 1999 Jeffrey A Law (law@cygnus.com)
16767 * flow.c (merge_blocks_move_successor_nojumps): Delete the
16768 BARRIER at the end of the successor, not the BARRIER before
16771 * pa.c (pa_add_gc_roots): Fix thinko in last change.
16773 Tue Sep 21 05:29:17 1999 Richard Earnshaw (rearnsha@arm.com)
16775 * stmt.c (any_pending_cleanups): Don't crash when
16776 current_function->stmt is unset.
16778 Tue Sep 21 00:59:49 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16780 * emit-rtl.c (init_emit_once): Initialize const_int_rtx before
16781 other initializations that may use it for relative offsets.
16783 Mon Sep 20 21:43:25 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16785 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
16786 (ASM_SPEC): Moved from sol2dbg.h. Added work-around for gas.
16787 * config/i386/sol2dbg.h: Removed.
16788 * config/i386/sol2gas.h: New file, to enable gas work-around.
16789 * configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas.
16790 Don't use sol2dbg.h.
16791 * configure: Rebuilt.
16793 Mon Sep 20 13:29:41 1999 Mark Mitchell <mark@codesourcery.com>
16795 * invoke.texi (-fthis-is-variable): Remove documentation.
16797 Mon Sep 20 12:59:16 1999 Richard Henderson <rth@cygnus.com>
16799 * basic-block.h (compute_bb_for_insn): Declare.
16800 * flow.c (compute_bb_for_insn): Export. Don't accept the varray
16801 to use; set size of basic_block_for_insn directly.
16802 (find_basic_blocks): Update.
16804 Mon Sep 20 15:11:54 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16806 * flow.c (verify_flow_info): Fix typo, "abort;" -> "abort ();".
16808 Mon Sep 20 14:56:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16810 * crtstuff.c (ON_EXIT): Delete empty macro definition.
16811 (__do_global_ctors_aux): Call atexit(), not ON_EXIT().
16813 Mon Sep 20 15:25:35 1999 Nick Clifton <nickc@cygnus.com>
16815 * c-decl.c (c_decode_option): Extend comment.
16817 Mon Sep 20 14:43:37 1999 Nick Clifton <nickc@cygnus.com>
16819 * toplev.c (progname): Make 'const char *'
16820 (flag_print_mem): Move out of main.
16821 (version_flag): Move out of main.
16822 (filename): Move out of main.
16823 (debug_args): Remove g prefix from options.
16824 (documented_lang_options): Remove cpplib specific options.
16825 (display_help): Add g prefix to debug options.
16826 (check_lang_option): Delete this function.
16827 (decode_d_option): New function: Decode -d... option.
16828 (decode_f_option): New function: Decode -f... option.
16829 (decode_W_option): New function: Decode -W... option.
16830 (decode_g_option): New function: Decode -g... option.
16831 (independent_decode_option): New function: Decode a language
16832 independent command line option.
16833 (main): Invoke lang_decode_option and then
16834 independent_decode_option on each command line option in
16837 Mon Sep 20 05:41:36 1999 Jeffrey A Law (law@cygnus.com)
16839 Revert this change. Gavin's patch to operand_equal_p is a better fix.
16840 * fold-const.c (fold_range_test): Do not try to fold the range
16841 test if the rhs or lhs has side effects.
16843 * basic-block.h (compute_flow_dominators): Declare.
16845 * gcse.c (alloc_code_hoist_mem): New function.
16846 (free_code_hoist_mem, compute_code_hoist_vbeinout): Likewise.
16847 (compute_code_hoist_data, hoist_expr_reaches_here_p): Likewise.
16848 (hoist_code, one_code_hoisting_pass): Likewise.
16849 (gcse_main): If optimizing for size, then hoist expressions
16850 computed in multiple dominated basic blocks.
16852 * gcse.c (invalid_nonnull_info): New function.
16853 (delete_null_pointer_checks): Likewise.
16854 * rtl.h (delete_null_pointer_checks): Declare.
16855 * toplev.c (rest_of_compilation): Call delete_null_pointer_checks.
16857 * flow.c (merge_blocks_move_predecessor_nojumps): New function.
16858 (merge-blocks_move_successor_nojumps): Likewise.
16859 (merge_blocks): Allow merging of some blocks, even if it requires
16860 physical movement of the blocks, but not if it requires new jumps.
16862 * bitmap.c (debug_bitmap_file): Renmaed from bitmap_debug_file.
16863 Callers and prototype changed.
16864 * bitmap.h: Fix debug_bitmap and debug_bitmap_file prototypes.
16866 Mon Sep 20 06:56:32 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16868 * config/sparc/sol2.h (LINK_SPEC): Avoid the duplication of
16869 -YP when both -p and -pg are present. From i386/sol2.h.
16871 Mon Sep 20 10:49:05 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16873 * Makefile.in (distclean): Delete tm_p.h.
16874 * configure.in: Create a new file, "tm_p.h", from a list in
16875 "tm_p_file". For ix86 systems, set up "tm_p_file" to include
16876 "i386/i386-protos.h".
16878 * alias.c: Include "tm_p.h".
16879 * c-typeck.c: Likewise.
16880 * calls.c: Likewise.
16882 * emit-rtl.c: Likewise.
16883 * explow.c: Likewise.
16884 * expmed.c: Likewise.
16885 * expr.c: Likewise.
16886 * final.c: Likewise.
16887 * flow.c: Likewise.
16888 * fold-const.c: Likewise.
16889 * function.c: Likewise.
16890 * gcse.c: Likewise.
16891 * global.c: Likewise.
16892 * haifa-sched.c: Likewise.
16893 * integrate.c: Likewise.
16894 * jump.c: Likewise.
16895 * local-alloc.c: Likewise.
16896 * loop.c: Likewise.
16897 * optabs.c: Likewise.
16898 * recog.c: Likewise.
16899 * reg-stack.c: Likewise.
16900 * regclass.c: Likewise.
16901 * regmove.c: Likewise.
16902 * reload.c: Likewise.
16903 * reload1.c: Likewise.
16904 * reorg.c: Likewise.
16905 * resource.c: Likewise.
16906 * stmt.c: Likewise.
16907 * stor-layout.c: Likewise.
16908 * toplev.c: Likewise.
16909 * tree.c: Likewise.
16910 * unroll.c: Likewise.
16911 * genattrtab.c (main): Make generated file include "tm_p.h".
16912 * genemit.c (main): Likewise.
16913 * genoutput.c (main): Likewise.
16914 * genrecog.c (main): Likewise.
16916 * i386.h: Delete all prototypes.
16917 * i386.c: Include "tm_p.h".
16918 (ix86_attr_length_default): Call constant_call_address_operand
16919 with correct number of arguments.
16920 * i386-protos.h: New file.
16921 * i386.md (unnamed patterns): Call constant_call_address_operand
16922 with correct number of arguments.
16923 (exception_receiver): Call load_pic_register with correct number
16926 Sun Sep 19 14:18:39 1999 Richard Henderson <rth@cygnus.com>
16928 * c-pragma.c (mark_align_stack): Dereference the void* properly.
16930 Sun Sep 19 09:03:40 1999 Mark Mitchell <mark@codesourcery.com>
16932 * rtl.h (insns_safe_to_move_p): New function.
16933 * loop.c (find_and_verify_loops): Use it.
16934 * rtlanal.c (insns_safe_to_move_p): Define it.
16936 Sun Sep 19 02:54:33 1999 Richard Henderson <rth@cygnus.com>
16938 * c-pragma.c: Include ggc.h.
16939 * Makefile.in (c-pragma.o): Update.
16941 Sat Sep 18 16:01:18 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16943 * config/i386/sol2.h (CPP_SPEC): Support -[p]threads
16944 (LIB_SPEC): Likewise.
16945 (LINK_SPEC): Do not assert -z text with -shared -mimpure-text.
16946 Reindent -YP/-p/-pg.
16947 Copied from config/sparc/sol2.h.
16949 Sat Sep 18 11:52:43 1999 Richard Henderson <rth@cygnus.com>
16951 * c-pragma.c (mark_align_stack): New.
16952 (init_pragma): New.
16953 * c-pragma.h (init_pragma): Declare it.
16954 * c-lex.c (init_parse): Call it.
16956 Sat Sep 18 15:20:38 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16958 * configure.in: Pick up thread library on Solaris/x86 just
16959 like on Solaris/sparc.
16960 * configure: Rebuilt.
16962 Sat Sep 18 11:15:58 1999 Alex Samuel <samuel@codesourcery.com>
16964 * rtl.h (global_rtx_index): New enum.
16965 (global_rtl): Change to array of rtx.
16966 (pc_rtx, cc0_rtx): Redefine accordingly.
16967 (cc0_rtx, stack_pointer_rtx, frame_pointer_rtx): Likewise.
16968 (hard_frame_pointer_rtx, arg_pointer_rtx): Likewise.
16969 (virtual_incoming_args_rtx, virtual_stack_vars_rtx): Likewise.
16970 (virtual_outgoing_args_rtx, virtual_cfa): Likewise.
16971 (const_int_rtx): Change to array of rtx.
16972 (const0_rtx, const1_rtx, const2_rtx, constm1_rtx): Redefine
16974 * emit-rtl.c (global_rtl): Change to array of rtx.
16975 (const_int_rtx): Change to aray of rtx.
16976 (gen_rtx_CONST_INT): Redefine accordingly.
16977 (init_emit_once): Allocate and initialize global_rtl. Likewise
16978 for const_int_rtx. Add both as GC roots.
16979 * genattrtab.c (global_rtl): Update declaration.
16981 1999-09-17 Ulrich Drepper <drepper@cygnus.com>
16983 * Makefile (USER_H): Add iso646.h back.
16985 Sat Sep 18 01:07:21 1999 Jeffrey A Law (law@cygnus.com)
16987 * haifa-sched.c (sched_analyze): Use free_INSN_LIST_list instead of
16988 zapping the LOG_LINKS of sched_before_next_call.
16990 * pa.h (INSN_SETS_ARE_DELAYED): Delete.
16991 * pa.c (insn_refs_are_delayed): Renamed from
16992 insn_sets_and_refs_are_delayed.
16994 Fri Sep 17 15:19:01 1999 Mark Mitchell <mark@codesourcery.com>
16996 * functiion.h (struct function): Add x_whole_function_mode_p.
16997 (retrofit_block): Declare.
16998 * function.c (retrofit_block): New function.
16999 (identify_blocks): Add assertions. Allow an incomplete set of
17000 block notes if we're still generating code for the function.
17001 * integrate.c: Include loop.h.
17002 (expand_inline_function): Call find_loop_tree_blocks to map block
17003 notes to blocks when in whole-function mode. Use retrofit_block
17004 to insert new BLOCKs for the inlined function, rather than
17006 * stmt.c (expand_fixup): Likewise. Don't use pushlevel/polevel.
17007 * Makefile.in (integrate.o): Depend on loop.h.
17009 Fri Sep 17 15:11:20 1999 Mark Mitchell <mark@codesourcery.com>
17011 * tree.h (warn_about_unused_variables): Declare.
17012 * stmt.c (warn_about_unused_variables): New function, split out
17014 (expand_end_bindings): Here.
17016 Fri Sep 17 15:07:37 1999 Mark Mitchell <mark@codesourcery.com>
17018 * stmt.c (preserve_subexpressions_p): Don't crash when
17019 current_function->stmt is unset.
17021 Fri Sep 17 15:03:16 1999 Mark Mitchell <mark@codesourcery.com>
17023 * stmt.c (expand_start_bindings): Allow callers to pass a flag
17024 indicating that no NOTE_INSN_BLOCK_BEG note is required.
17025 (expand_start_target_temps): Use it.
17026 * except.c (expand_eh_region_start_for_decl): Likewise.
17027 * expr.c (expand_expr): Likewise.
17029 Fri Sep 17 15:05:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
17031 * fold-const.c (operand_equal_p): Pay attention to side effects.
17033 Fri Sep 17 11:14:17 1999 Jason Merrill <jason@yorick.cygnus.com>
17035 * libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
17036 * sparc/sunos4.h (HAVE_ON_EXIT): Remove.
17038 * tlink.c (scan_linker_output): Look for keywords before accepting
17039 a mangled name in quotes.
17041 Thu Sep 16 16:47:08 1999 Richard Henderson <rth@cygnus.com>
17043 * alpha/alpha-interix.h (DWARF2_UNWIND_INFO): Define to zero.
17044 * alpha/osf2or3.h (DWARF2_UNWIND_INFO): Likewise.
17046 Thu Sep 16 16:35:41 1999 Richard Henderson <rth@cygnus.com>
17048 * alpha.md: Revert Thu Nov 26 change that came in through the
17049 last gcc2 merge: reinstate (plus (plus ...)) reload patterns.
17050 Avoid earlyclobber when possible.
17052 Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17054 * libgcc2.c (__do_global_ctors): Call atexit with one arg.
17056 * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
17057 Define HAVE_ON_EXIT.
17059 Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17061 * system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
17062 CTYPE_CONV in all ctype macros.
17064 * cccp.c (initialize_char_syntax): Use uppercase ctype macro
17067 * cexp.y (initialize_random_junk): Likewise.
17069 * c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.
17071 * i370.c (handle_pragma): Likewise.
17073 * i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.
17075 * v850.c (override_options): Likewise.
17077 * doprint.c (_doprnt): Likewise.
17079 * fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
17082 * fixinc/server.c (load_data): Likewise.
17084 * fold-const.c (real_hex_to_f): Likewise.
17086 * genattr.c (write_upcase, gen_attr): Likewise.
17088 * genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
17089 write_upcase): Likewise.
17091 * genemit.c (print_code): Likewise.
17093 * genopinit.c (gen_insn): Likewise.
17095 * genpeep.c (print_code): Likewise.
17097 * genrecog.c (print_code): Likewise.
17099 * optabs.c (init_libfuncs): Likewise.
17101 Thu Sep 16 14:03:32 1999 Mark Mitchell <mark@codesourcery.com>
17103 * haifa-sched.c (sched_analyze): Keep the list of notes organized
17105 (reemit_notes): Likewise.
17107 Thu Sep 16 11:50:52 1999 Alex Samuel <samuel@codesourcery.com>
17109 * ggc.h (ggc_root): Move to ggc-common.c.
17111 (ggc_mark_rtx, ggc_mark_tree): Change to macro.
17112 (ggc_mark_rtvec, ggc_mark_tree_varray): Declare extern.
17113 (ggc_mark_tree_hash_table, ggc_mark_string, ggc_mark): Likewise.
17114 (ggc_mark_roots, ggc_mark_rtx_children, ggc_mark_tree_children): New.
17115 * ggc-common.c (ggc_root): Move from ggc.h.
17116 (roots): Declare, static.
17117 (ggc_mark_rtx, ggc_mark_tree): Renamed to...
17118 (ggc_mark_rtx_children, ggc_mark_tree_children): Don't check for
17119 null or check/set mark bit.
17120 (ggc_mark_roots): New.
17121 * ggc-simple.c (ggc_collect): Call ggc_mark_roots.
17123 Thu Sep 16 11:37:32 1999 Richard Henderson <rth@cygnus.com>
17125 * m32r.c: Include toplev.h.
17126 (*): Add ATTRIBUTE_UNUSED as needed to arguments.
17127 (gen_compare): Rename swap_p to must_swap to match uses.
17128 Add default abort case.
17129 (m32r_output_function_epilogue): Remove unused variables.
17130 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
17131 * m32r.h (PROTO, STDIO_PROTO): Rename XPROTO; unconditionally
17132 define to empty parameter list. Update all uses.
17133 (predicate decls): Use enum machine_mode not int.
17134 * m32r.md (movsi): Call abort, not fatal_insn.
17135 (zero_branch_insn, rev_zero_branch_insn): Add default abort case.
17137 1999-09-14 Andrew Haley <aph@cygnus.com>
17139 * config/mips/mips.md (movsi_usw): if operand 1 is const_int 0,
17140 use $0 instead of 0.
17142 Thu Sep 16 10:53:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17144 * reload1.c (order_regs_for_reload): Move hard_reg_n_uses
17145 computation out of loop over hard regs.
17147 Wed Sep 15 21:37:06 1999 Mark Mitchell <mark@codesourcery.com>
17149 * function.c (identify_blocks): Don't shadow a variable in an
17151 * integrate.c (integrate_decl_tree): Don't use pushlevel,
17152 pushdecl, or poplevel to build up the new BLOCK tree.
17153 (expand_inline_function): Likewise.
17154 (integrate_parm_decls): Likewise.
17156 Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
17158 * c-typeck.c (qualify_type): Merge qualifiers from both types.
17160 1999-09-15 Brad Lucier <lucier@math.purdue.edu>
17162 * toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
17163 * invoke.texi: Document this change.
17165 Wed Sep 15 17:56:00 1999 Richard Henderson <rth@cygnus.com>
17167 * emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
17169 (mark_emit_status): Renamed from mark_emit_state.
17170 * except.c (mark_eh_status): Renamed from mark_eh_state.
17171 Check not null before marking.
17172 (free_eh_status): New.
17173 * expr.c (mark_expr_status, free_expr_status): New.
17174 * function.c (free_machine_status): New.
17175 (free_after_parsing): New.
17176 (free_after_compilation): Move bits to free_after_parsing; call
17177 free_eh_status, free_expr_status; zero the marked members of the
17179 (prepare_function_start): No can_garbage_collect.
17180 Call init_eh_for_function.
17181 (expand_dummy_function_end): Free up current_function state.
17182 (mark_function_status): Renamed from mark_function_state.
17183 (mark_function_chain): No can_garbage_collect. Call mark_expr_status.
17184 * function.h (struct function): No can_garbage_collect.
17185 (free_machine_status, free_after_parsing): Declare.
17186 (free_eh_status, free_expr_status): Declare.
17187 * ggc.h (mark_expr_status): Declare.
17188 * stmt.c (free_stmt_status): Free the struct.
17189 (mark_stmt_status): Renamed from mark_stmt_state.
17190 (init_stmt): Don't call init_eh.
17191 (init_stmt_for_function): Don't call init_eh_for_function.
17192 * toplev.c (compile_file): Call init_eh.
17193 (rest_of_compilation): Free basic block info before ggc_collect.
17194 Call free_after_parsing; conditionally call free_after_compilation.
17195 * varasm.c (mark_varasm_status): Renamed from mark_varasm_state.
17196 Check not null before marking.
17197 (free_varasm_status): Don't check DECL_DEFER_OUTPUT. Free the struct.
17199 Wed Sep 15 17:53:16 1999 Richard Henderson <rth@cygnus.com>
17201 * c-lex.c (yylex): Initialize warn.
17203 Wed Sep 15 18:35:38 1999 Jeffrey A Law (law@cygnus.com)
17205 * pa.c (emit_move_sequence): Properly set the mode of the scratch
17206 register when performing secondary reloads for the SAR register.
17208 Wed Sep 15 15:51:52 1999 Mark Mitchell <mark@codesourcery.com>
17210 * rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
17211 (NOTE_BLOCK): New macro.
17212 (NOTE_BLOCK_LIVE_RANGE_BLOCK): Remove.
17213 * function.h (identify_blocks): Change prototype.
17214 * function.c (identify_blocks): Simplify.
17215 (reorder_blocks): Likewise.
17216 * ggc-common.c (ggc_mark_rtx): Mark the BLOCK associated with a
17217 NOTE_INSN_BLOCK_{BEG,END}.
17218 * haifa-sched.c (sched_analyze): Don't put NOTE_BLOCK_NUMBER on
17219 the list of saved notes if the note isn't a
17220 NOTE_INSN_BLOCK_{BEG,END}.
17221 (move_insn1): Use NOTE_EH_HANDLER in comment, rather than
17223 (reemit_notes): Adjust recreation of notes to reflect new saved
17225 * print-rtl.c (print_rtx): Print the address of the BLOCK when
17226 printing a block note.
17227 * stmt.c (block_vector): Remove.
17228 (find_loop_tree_blocks): Simplify.
17229 (unroll_block_trees): Likewise.
17230 * tree.h (reorder_block): Change prototype.
17232 Wed Sep 15 14:39:35 1999 Jason Merrill <jason@yorick.cygnus.com>
17234 * gbl-ctors.h: Lose HAVE_ATEXIT. Don't define ON_EXIT.
17235 * libgcc2.c: Lose obsolete defn of WEAK_ALIAS.
17236 (__bb_init_func, __bb_init_prg): Use atexit instead of ON_EXIT.
17237 (__do_global_dtors): Likewise. Don't mess with _exit_dummy_decl.
17238 (atexit, exit): Simplify.
17239 * tm.texi: Document NEED_ATEXIT and ON_EXIT. Remove HAVE_ATEXIT.
17240 * config/lots: Remove defns of HAVE_ATEXIT.
17242 Wed Sep 15 10:25:12 1999 Mark Mitchell <mark@codesourcery.com>
17244 * calls.c (precompute_arguments): Fix typo in comment.
17245 * expr.c (preexpand_calls): Don't preexpand the cleanup in a
17248 Wed Sep 15 09:59:59 1999 Mark Mitchell <mark@codesourcery.com>
17250 * dsp16xx.c (override_options): Fix typos in GC root registration.
17252 Wed Sep 15 15:23:28 1999 Philip Blundell <pb@nexus.co.uk>
17254 * config/arm/linux-elf.h (MAKE_DECL_ONE_ONLY): Copy definition
17255 from config/svr4.h.
17256 (UNIQUE_SECTION_P, UNIQUE_SECTION): Likewise.
17257 (FUNCTION_PROFILER): Redefine appropriately for Linux.
17258 (CC1_SPEC): Likewise.
17260 Wed Sep 15 10:09:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17262 * genattr.c (main): Add extern prototype. Call return, not exit.
17263 * genattrtab.c (main): Likewise.
17264 * gencheck.c (main): Likewise.
17265 * gencodes.c (main): Likewise.
17266 * genconfig.c (main): Likewise.
17267 * genemit.c (main): Likewise.
17268 * genextract.c (main): Likewise.
17269 * genflags.c (main): Likewise.
17270 * gengenrtl.c (main): Likewise.
17271 * genopinit.c (main): Likewise.
17272 * genoutput.c (main): Likewise.
17273 * genpeep.c (main): Likewise.
17274 * genrecog.c (main): Likewise.
17276 * genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED.
17277 * genattrtab.c (get_insn_name): Likewise.
17278 * gencodes.c (get_insn_name): Likewise.
17279 * genconfig.c (get_insn_name): Likewise.
17280 * genemit.c (get_insn_name): Likewise.
17281 * genextract.c (get_insn_name): Likewise.
17282 * genflags.c (get_insn_name): Likewise.
17283 * genopinit.c (get_insn_name): Likewise.
17284 * genpeep.c (get_insn_name): Likewise.
17286 * gencheck.c (usage): Add static prototype.
17287 * genextract.c (print_path): Constify a char*.
17288 * genopinit.c (optabs): Likewise.
17289 * genoutput.c (operand_data, data, output_predicate_decls,
17290 compare_operands): Likewise.
17291 * genrecog.c (write_tree): Add default case in switch.
17293 Wed Sep 15 09:59:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17295 * rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.
17297 * print-rtl.c (get_insn_name): Remove prototype.
17299 * toplev.h (progname): Declare const.
17301 * toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
17302 init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
17303 dump_sched_info, dump_local_alloc, regset_release_memory,
17304 print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
17305 error_with_file_and_line, error_with_decl, error_for_asm, error,
17306 fatal, warning_with_file_and_line, warning_with_decl, warning,
17307 pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
17308 Remove redundant prototypes.
17310 (notice, check_lang_option, report_file_and_line, vnotice,
17311 mark_file_stack): Add static prototype.
17312 (set_fatal_function): Add prototype.
17313 (vnotice, report_file_and_line, set_fatal_function,
17314 check_lang_option): Constify a char*.
17315 (main): Prototype. Call return, not exit.
17317 Wed Sep 15 09:50:18 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17319 * aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
17321 * configure.in (AC_GCC_C_LONG_DOUBLE): Call it.
17323 * gansidecl.h (HAVE_LONG_DOUBLE): Define if gcc for stage2.
17325 * ggc-simple.c (HAVE_LONG_DOUBLE): Test before using long double.
17327 Wed Sep 15 11:04:43 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17329 * function.c (assign_parms): Delete arg SECOND_TIME. Don't test it,
17330 behave as if it's zero in all cases.
17331 (expand_function_start): Adjust call to assign_parms.
17332 * tree.h (assign_parms): Adjust prototype.
17333 * objc/objc-act.c (hack_method_prototype): Adjust call to
17336 Tue Sep 14 21:47:06 1999 Jeffrey A Law (law@cygnus.com)
17338 * cse.c (FIXED_BASE_PLUS_P): Do not consider referneces to
17339 arg_pointer_rtx fixed if the argument pointer register is
17341 (NONZERO_BASE_PLUS_P): Likewise.
17343 Tue Sep 14 20:26:02 1999 Richard Henderson <rth@cygnus.com>
17345 * rtl.def (match_insn, match_insn2): Remove match_insn; rename
17346 match_insn2 to match_insn.
17347 * genrecog.c (add_to_sequence): Rename MATCH_INSN2.
17349 Tue Sep 14 20:10:29 1999 Richard Henderson <rth@cygnus.com>
17351 * Makefile.in (USER_H): Remove va-foo.h.
17353 * ginclude/{va-alpha.h,va-arc.h,va-c4x.h,va-clipper.h,va-h8300.h,
17354 va-i860.h,va-i960.h,va-m32r.h,va-m88k.h,va-mips.h,va-mn10200.h,
17355 va-mn10300.h,va-pa.h,va-ppc.h,va-pyr.h,va-sh.h,va-sparc.h,
17356 va-spur.h,va-v850.h}: Remove.
17358 Tue Sep 14 19:43:16 1999 Richard Henderson <rth@cygnus.com>
17360 * sparc/sparc.md (eligible_for_return_delay): New attribute.
17361 (in_return_delay): Use it instead of match_insn.
17363 Tue Sep 14 23:05:37 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17365 * config/alpha/va_list.h (va-alpha.h): Do not include.
17366 (__gnuc_va_list): Typedef as in varargs.h.
17368 Tue Sep 14 18:14:03 1999 Richard Henderson <rth@cygnus.com>
17370 * ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and
17371 DECL_LIVE_RANGE_RTL.
17373 Tue Sep 14 16:47:08 1999 Mark Mitchell <mark@codesourcery.com>
17375 * except.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER,
17376 not NOTE_BLOCK_NUMBER.
17377 (expand_eh_region_end): Likewise.
17378 (find_exception_handler_labels): Likewise.
17379 (scan_region): Likewise.
17380 (exception_optimize): Likewise.
17381 (update_rethrow_references): Likewise.
17382 (set_insn_eh_region): Likewise.
17383 * final.c (final_scan_insn): Likewise.
17384 * flow.c (make_edges): Likewise.
17385 * integrate.c (expand_inline_function): Likewise.
17386 * print-rtl.c (print_rtx): Likewise.
17388 Tue Sep 14 16:30:16 1999 Richard Henderson <rth@cygnus.com>
17390 * ginclude/stdarg.h, ginclude/varargs.h: Implement in
17391 terms of builtin functions and types.
17393 * mips.c (mips_build_va_list): New.
17394 (mips_va_start, mips_va_arg): New.
17395 * mips.h (BUILD_VA_LIST_TYPE): New.
17396 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
17398 * sh.c (sh_builtin_saveregs): Use get_varargs_alias_set.
17399 (sh_build_va_list, sh_va_start, sh_va_arg): New.
17400 * sh.h (BUILD_VA_LIST_TYPE): New.
17401 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
17403 Tue Sep 14 16:20:24 1999 Richard Henderson <rth@cygnus.com>
17405 * recog.h (struct recog_data): Make dup_num, operand_address_p,
17406 n_operands, n_dups, n_alternatives `char' instead of `unsigned char'.
17407 (struct insn_data): Likewise with n_operands, n_dups,
17408 n_alternatives, output_format.
17409 * regclass.c (scan_one_insn): Cast n_operands to int before
17410 arithmetic inside comparison.
17412 Tue Sep 14 15:13:36 1999 Richard Henderson <rth@cygnus.com>
17414 * toplev.c (compile_function): Unconditionally emit nop.
17416 Tue Sep 14 14:41:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17418 * haifa-sched.c (actual_hazard): Move declaration of variable
17419 `this_cost' into the scope where it is used.
17421 Tue Sep 14 14:14:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17423 * c-pragma.c (handle_pragma_token): Wrap variables `name' and
17424 `value' in HANDLE_PRAGMA_WEAK. Wrap variable `align' in
17425 HANDLE_PRAGMA_PACK||HANDLE_PRAGMA_PACK_PUSH_POP.
17427 * genrecog.c (make_insn_sequence): Call memset, not bzero.
17429 * jump.c (find_insert_position): Don't declare or define unless
17430 !HAVE_conditional_arithmetic.
17431 (returnjump_p_1, delete_prior_computation): Add static prototypes.
17433 * mips-tdump.c (fatal, fancy_abort, main): Add extern prototypes.
17435 * recog.c (offsettable_address_p): Prototype function pointer.
17436 (preprocess_constraints): Call memset, not bzero.
17438 * tree.c (tree_node_kind_names): Constify a char*. Make static.
17439 (gcc_obstack_init): Don't declare.
17440 (fix_sizetype): Add static prototype.
17441 (gcc_obstack_init): Use prototype casts in call to _obstack_begin.
17442 (tree_cons): Call memset, not bzero.
17444 * varasm.c (remove_from_pending_weak_list): Wrap declaration and
17445 definition in macro ASM_WEAKEN_LABEL.
17446 (mark_const_hash_entry): Add static prototype.
17448 Tue Sep 14 12:22:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17450 * c-lex.c (handle_generic_pragma): Remove unused variable `c'.
17452 * unroll.c (find_common_reg_term, subtract_reg_term,
17453 loop_find_equiv_value): Add static prototypes.
17454 (unroll_loop): Wrap variable `prev' in macro HAVE_cc0.
17455 (copy_loop_body): Remove unreachable break statement.
17457 * sparc.c (sparc_va_arg): Remove unused variable `tmp'.
17459 * sparc.h (sparc_va_start, sparc_va_arg): Add extern prototypes.
17461 Tue Sep 14 15:28:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17463 Undo some changes from the gcc2 merge:
17464 * rtl.def (CONSTANT_P_RTX): Fix the comment for this rtx code.
17465 * emit-rtl.c (gen_rtx_REG): Don't test special reg rtx's for null
17469 Sat Oct 3 07:20:28 1998 Stephen L Moshier <moshier@world.std.com>
17470 * emit-rtl.c (gen_lowpart_common): Disable optimization of
17471 initialized float-int union if the value is a NaN.
17473 Tue Sep 14 04:03:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
17475 * gthr-win32.h: New file.
17477 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Recognize
17478 shared as a valid attribute.
17479 * i386/cygwin.h (ASM_OUTPUT_SECTION): Handle shared attribute.
17480 * extend.texi: Document `shared' variable attribute.
17482 Tue Sep 14 04:01:46 1999 Loren Rittle <ljrittle@acm.org>
17484 * configure.in: Handle --enable-threads on FreeBSD.
17485 * configure: Rebuit.
17487 Tue Sep 14 03:58:44 1999 Andreas Jaeger <aj@arthur.rhein-neckar.de>
17489 * configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
17491 * configure: Rebuilt.
17493 Tue Sep 14 03:47:23 1999 Joel Sherrill <joel@OARcorp.com>
17494 Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
17495 Rosimildo DaSilva <rdasilva@connecttel.com>
17497 * configure.in (m68k-*-rtemscoff*): Added.
17498 * configure.in (mips64orion-*-rtems*): Converted to ELF.
17499 * configure.in (sparc-*-rtemsaout*): Added as alias for old
17500 sparc-rtems configuration.
17501 * configure.in (sparc-*-rtemself*): Added.
17502 * configure.in (sparc-*-rtems*): Now ELF not a.out.
17503 * config/i386/rtems.h: Added comment.
17504 * config/sparc/rtemself.h: New file.
17506 * configure.in (m68k-rtemself): Added.
17507 * config/elfos.h: Added ifndef wrapper for DWARF2_DEBUGGING_INFO
17508 and DWARF_DEBUGGING_INFO.
17509 * config/m68k/crti.s: New file.
17510 * config/m68k/crtn.s: New file.
17511 * config/m68k/t-crtstuff: New file.
17512 * config/m68k/rtemself.h: New file.
17514 * configure.in (i[[34567]]86-*-rtemself*): Now uses crtstuff for
17515 global ctor/dtor and C++ exception handling.
17516 * config/i386/rtemself.h: Now uses crtstuff (crti.o + crtbegin.o)
17517 for STARTFILE_SPEC and crtstuff (crtend.o + crtn.o) for
17519 * config/i386/t-rtems-i386: New File.
17521 Tue Sep 14 09:47:41 1999 Andreas Schwab <schwab@suse.de>
17523 * stmt.c (expand_end_case): Return right away if the case stack is
17526 Tue Sep 14 01:47:19 1999 Jeffrey A Law (law@cygnus.com)
17528 * Makefile.in (version.c): Remove rule incorrectly brought in from
17531 Tue Sep 14 01:42:27 1999 Marc Espie <espie@cvs.openbsd.org>
17533 * Makefile.in: Prepend $(SHELL) to move-if-change calls.
17534 * msdos/top.sed: Take into account a prepended $(SHELL) to
17536 * winnt/config-nt.sed: Likewise. Kill bogus substitution.
17538 * objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.
17540 Tue Sep 14 01:38:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17542 * regmove.c (fixup_match_1): Don't change an unchanging register.
17543 (stable_but_for_p): Renamed to:
17544 (stable_and_no_regs_but_for_p). Reject unchanging registers too.
17545 Changed all callers.
17547 Tue Sep 14 01:33:15 1999 Andreas Schwab <schwab@suse.de>
17549 * loop.c (strength_reduce): Don't call reg_used_between_p if the
17550 insn from BL2 is after the insn from BL.
17552 Mon Sep 13 21:06:01 1999 Richard Henderson <rth@cygnus.com>
17554 * recog.h (INSN_OUTPUT_FORMAT_*): New.
17555 (struct insn_data): Merge `template' and `outfun' into `output'.
17556 Add `output_format'.
17557 * genoutput.c (INSN_OUTPUT_FORMAT_*): New.
17558 (struct data): Remove `outfun'; add `output_format'.
17559 (name_for_index): Remove declaration.
17560 (output_insn_data): Handle output formats.
17561 (process_template): Emit the bare array for @.
17562 (gen_expand, gen_split): Set output_format to NONE.
17563 * output.h (get_insn_template): Declare.
17564 * final.c (get_insn_template): New.
17565 (final_scan_insn): Use it.
17566 * toplev.c (compile_file): Likewise.
17568 * c4x/c4x.c (c4x_process_after_reload): Likewise.
17569 * i860/i860.c (output_delayed_branch): Likewise.
17570 (output_delay_insn): Likewise.
17572 1999-09-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17574 * rtl.c (obstack_alloc_rtx): Removed.
17576 1999-09-13 17:03 -0700 Zack Weinberg <zack@bitmover.com>
17578 * config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.
17580 Mon Sep 13 15:21:46 1999 Richard Henderson <rth@cygnus.com>
17582 * i386.c (call_insn_operand): Reject const_int.
17583 (expander_call_insn_operand): Use call_insn_operand.
17585 Mon Sep 13 17:44:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17587 * gcc.c (getrusage): Wrap prototype arguments in PROTO().
17589 1999-09-13 12:18 -0700 Zack Weinberg <zack@bitmover.com>
17591 * config/i370/i370.md (mulsi, divsi, modsi anonymous insns):
17592 Use DImode operation.
17594 1999-09-13 12:13 -0700 Zack Weinberg <zack@bitmover.com>
17596 * gcc.c: Include sys/resource.h.
17597 (report_times): New flag.
17598 (execute): If report_times is set, calculate and report the
17599 CPU time consumed by each subprocess.
17601 (rus, prus): New globals.
17602 (option_map): Add --time.
17603 (display_help): Document -time.
17604 (process_command): Set report_times if -time is given.
17605 Turn off -pipe if -time is given.
17607 * invoke.texi: Document new option -time.
17609 * configure.in: Check for getrusage. Check if we have to
17610 prototype getrusage.
17611 * acconfig.h: Add NEED_DECLARATION_GETRUSAGE.
17612 * configure: Regenerate.
17613 * config.in: Regenerate.
17615 Mon Sep 13 12:57:06 1999 Dave Brolley <brolley@cygnus.com>
17617 * cppinit.c (append_include_chain): Initialize 'next' and 'alloc'
17620 Mon Sep 13 10:01:33 1999 Nick Clifton <nickc@cygnus.com>
17622 * config/fp-bit.c: Define L_thenan_sf or L_thenan_df (as
17623 appropriate) if FINE_GRAINED_LIBRARIES is not defined.
17624 (nan): Return _thenan_sf or _thenan_df as appropriate.
17625 (L_thenan_sf): Define _thenan_sf.
17626 (L_thenan_df): Define _thenan_df.
17628 * Makefile.in (FPBIT_FUNCS): Add _thenan_sf.
17629 (DPBIT_FUNCS): Add _thenan_df.
17631 Mon Sep 13 09:38:53 1999 Andreas Schwab <schwab@suse.de>
17633 * tree.c (fix_sizetype): Exchange the types for TYPE_SIZE and
17636 Sun Sep 12 23:28:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17638 * Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.
17641 (lang_specific_driver): Don't take a function pointer parameter.
17642 All callers changed.
17644 * gcc.c: Include gcc.h.
17645 (do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
17646 lang_specific_extra_outfiles, fatal): Don't declare.
17647 (multilib_defaults_raw): Constify.
17648 (read_specs): Call memset, rather than bzero.
17649 (main): Call return, not exit.
17650 (lookup_compiler): Call memcpy, not bcopy.
17651 (fatal): Make extern.
17653 * cppspec.c: Include gcc.h.
17654 (lang_specific_driver): Initialize variable `quote'. Constify a
17655 char*. All calls to the function pointer parameter now
17656 explicitly call `fatal'.
17658 * gccspec.c (lang_specific_driver): Include gcc.h.
17660 Sun Sep 12 19:52:10 1999 Richard Earnshaw <rearnsha@arm.com>
17662 * arm.c (note_invalid_constants): Use recog_data.operand_type
17665 Sun Sep 12 15:53:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17667 * tree.h (build_common_tree_nodes, build_common_tree_nodes_2):
17670 * reload.h (reload_in, reload_out, reload_in_reg, reload_out_reg,
17671 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
17672 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
17673 reload_secondary_in_reload, reload_secondary_out_reload,
17674 reload_secondary_in_icode, reload_secondary_out_icode,
17675 reload_reg_rtx, reload_when_needed): Delete declarations.
17676 (struct reload): New structure.
17677 (rld): Declare new array.
17678 * reload.c (reload_in, reload_out, reload_in_reg, reload_out_reg,
17679 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
17680 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
17681 reload_secondary_in_reload, reload_secondary_out_reload,
17682 reload_secondary_in_icode, reload_secondary_out_icode,
17683 reload_reg_rtx, reload_when_needed): Delete definitions.
17685 (whole file): Replace uses of the deleted arrays with uses of rld.
17686 * reload1.c (whole file): Replace uses of the deleted arrays with
17688 (choose_reload_regs): Copy in/out of save_reload_reg_rtx with
17689 explicit loops, not with bcopy.
17691 Sun Sep 12 05:00:24 1999 Richard Henderson <rth@cygnus.com>
17693 * recog.h (insn_template, insn_outfun, insn_n_operands, insn_n_dups,
17694 insn_n_alternatives, insn_operand_constraint, insn_operand_address_p,
17695 insn_operand_mode, insn_operand_strict_low, insn_operand_predicate,
17696 insn_name): Delete and consolidate into new structures.
17697 (insn_operand_predicate_fn): New.
17698 (insn_output_fn): New.
17699 (insn_gen_fn): New.
17700 (struct insn_operand_data): New.
17701 (struct insn_data): New.
17703 (OUT_FCN): Update for insn_data change.
17704 * builtins.c (expand_builtin_strlen): Likewise.
17705 (expand_builtin_memcmp): Likewise.
17706 * combine.c (make_extraction, simplify_comparison): Likewise.
17707 * cse.c (canon_reg, cse_insn): Likewise.
17708 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
17709 * expmed.c (store_bit_field, extract_bit_field): Likewise.
17710 (emit_store_flag): Likewise.
17711 * expr.c (convert_move, emit_block_move): Likewise.
17712 (clear_storage, emit_push_insn, expand_increment): Likewise.
17713 (do_store_flag): Likewise.
17714 * expr.h (GEN_FCN): Likewise.
17715 (insn_gen_function): Die.
17716 * final.c (final_scan_insn): Update for insn_data change.
17717 (output_asm_name): Likewise.
17718 * function.c (fixup_var_refs_1): Likewise.
17719 * loop.c (check_dbra_loop): Likewise.
17720 * optabs.c (expand_binop, expand_twoval_binop): Likewise.
17721 (expand_unop, expand_complex_abs, emit_unop_insn): Likewise.
17722 (prepare_cmp_insn, prepare_operand, emit_indirect_jump): Likewise.
17723 (emit_conditional_move, gen_add2_insn, gen_sub2_insn): Likewise.
17724 * recog.c (validate_replace_rtx_1, extract_insn): Likewise.
17725 * regmove.c (gen_add3_insn): Likewise.
17726 * reload.c (push_secondary_reload, combine_reloads): Likewise.
17727 (find_reloads, find_reloads_address_1): Likewise.
17728 (debug_reload_to_stream): Likewise.
17729 * reload1.c (emit_reload_insns, gen_reload): Likewise.
17730 * stmt.c (expand_end_case): Likewise.
17731 * toplev.c (compile_file): Likewise.
17733 * c4x/c4x.c (c4x_process_after_reload): Likewise.
17734 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
17736 * print-rtl.c (insn_name_ptr): Remove declaration.
17737 (get_insn_name): Declare.
17738 (print_rtx): Use it.
17739 * genoutput.c (insn_name_ptr): Remove.
17740 (next_operand_number): New.
17741 (struct operand_data): New.
17742 (null_operand, odata, odata_end): New.
17743 (struct data): Use struct operand_data.
17744 (idata, idata_end): Renamed from insn_data and end_of_insn_data.
17745 (get_insn_name): Renamed from name_for_index.
17746 (output_prologue): Define NO_MD_PROTOTYPES.
17747 (output_predicate_decls): Break out from output_epilogue.
17748 Iterate over the operands list.
17749 (output_operand_data): Break out from output_epilogue. Emit
17750 just the operands list.
17751 (output_insn_data): Break out from output_epilogue. Emit just
17753 (output_epilogue): Remove.
17754 (output_get_insn_name): New.
17755 (constraints, op_n_alternatives, predicates, address_p): Die.
17756 (modes, strict_low, seen): Die.
17757 (scan_operands): Take new param `d' instead of writing to
17758 seven global variables.
17759 (compare_operands): New.
17760 (place_operands): New.
17761 (validate_insn_alternatives): Update for struct data change.
17762 (gen_insn): Don't zero or copy 7 global arrays. Update for
17763 scan_operands; call place_operands.
17764 (gen_peephole, gen_expand, gen_split): Likewise.
17765 (main): Update for new output routines.
17767 * genattr.c (insn_name_ptr): Remove.
17768 (get_insn_name): New function.
17769 * genattrtab.c, gencodes.c, genconfig.c, genemit.c: Likewise.
17770 * genextract.c, genflags.c, genopinit.c, genpeep.c: Likewise.
17771 * genrecog.c: Likewise.
17773 * alpha.md (adddi3): Make `pattern' array static.
17775 Sun Sep 12 22:05:21 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17777 * config/c4x/c4x.h (c4x_rpts_cycles_string,
17778 c4x_cpu_version_string): Constify char *.
17779 * config/c4x/c4x.c (c4x_rpts_cycles_string,
17780 c4x_cpu_version_string): Likewise.
17782 Sat Sep 11 23:28:33 1999 Richard Henderson <rth@cygnus.com>
17784 * tree.c (save_tree_status): Revert 10 Sep change.
17785 (restore_tree_status): Likewise. Call obstack_free with NULL
17786 before freeing the obstack proper.
17788 Sat Sep 11 23:23:46 1999 Richard Henderson <rth@cygnus.com>
17790 * cse.c (cse_main): If gc'ing, collect around cse_basic_block.
17792 * ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
17793 surrounding context.
17795 Sat Sep 11 19:52:43 1999 Mark Mitchell <mark@codesourcery.com>
17797 * tree.c (type_hash_canon): Put all types in the hash-table, when
17800 Sat Sep 11 18:37:04 1999 Richard Henderson <rth@cygnus.com>
17802 * recog.h (struct recog_data, recog_data): New.
17803 (recog_foo variables): Kill.
17804 * recog.c (recog_operand, recog_operand_loc): Kill.
17805 (recog_dup_loc, recog_dup_num, recog_n_operands): Kill.
17806 (recog_n_dups, recog_n_alternatives, recog_operand_mode): Kill.
17807 (recog_constraints, recog_op_type, recog_operand_address_p): Kill.
17808 (recog_data): Define.
17809 (extract_insn): Update all recog_foo references to use recog_data.
17810 (preprocess_constraints, constrain_operands): Likewise.
17811 * final.c (final_scan_insn, cleanup_subreg_operands): Likewise.
17812 * genattrtab.c (main): Likewise.
17813 * genextract.c (main): Likewise.
17814 * genoutput.c: Likewise.
17815 * genrecog.c (write_subroutine, main): Likewise.
17816 * local-alloc.c (block_alloc): Likewise.
17817 * reg-stack.c (record_asm_reg_life, subst_asm_stack_regs): Likewise.
17818 * regclass.c (scan_one_insn, record_reg_classes): Likewise.
17819 * regmove.c (regmove_optimize, find_matches, fixup_match_1): Likewise.
17820 * reload.c (find_reloads, find_reloads_toplev): Likewise.
17821 * reload1.c (maybe_fix_stack_asms, eliminate_regs_in_insn): Likewise.
17822 (reload_cse_simplify_operands): Likewise.
17824 * arc/arc.c (arc_final_prescan_insn): Likewise.
17825 * arm/arm.c (note_invalid_constants, arm_final_prescan_insn): Likewise.
17826 * h8300/h8300.c (notice_update_cc): Likewise.
17827 * i386/i386.c (ix86_attr_length_default, ix86_agi_dependant): Likewise.
17828 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
17829 * mn10200/mn10200.c (notice_update_cc): Likewise.
17830 * mn10300/mn10300.c (notice_update_cc): Likewise.
17831 * romp/romp.c (update_cc): Likewise.
17832 * sparc/sparc.c (check_pic): Likewise.
17833 * v850/v850.c (notice_update_cc): Likewise.
17835 * genemit.c (main): Don't declare recog_operand.
17837 Sat Sep 11 12:41:55 1999 Alex Samuel <samuel@codesourcery.com>
17839 * ggc.h (rtvec_def): Forward declare.
17840 (tree_node): Likewise.
17841 (ggc_root): Define.
17843 (ggc_set_mark_rtx): Add prototype.
17844 (ggc_set_mark_rtvec): Likewise.
17845 (ggc_set_mark_tree): Likewise.
17846 * ggc-simple.c (ggc_root): Don't define.
17847 (roots): Don't declare.
17848 (ggc_mark_rtx): Remove.
17849 (ggc_mark_rtvec): Likewise.
17850 (ggc_mark_tree): Likewise.
17851 (ggc_mark_varray): Likewise.
17852 (ggc_mark_tree_hash_table_entry): Likewise.
17853 (ggc_mark_tree_hash_table): Likewise.
17854 (ggc_set_mart_rtx): New function.
17855 (ggc_set_mark_rtvec): Likewise.
17856 (ggc_set_mark_tree): Likewise.
17857 (ggc_add_root): Remove.
17858 (ggc_add_rtx_root): Likewise.
17859 (ggc_remove_tree_root): Likewise.
17860 (ggc_add_string_root): Likewise.
17861 (ggc_add_tree_varray_root): Likewise.
17862 (ggc_add_tree_hash_table_root): Likewise.
17863 (ggc_del_root): Likewise.
17864 (ggc_mark_rtx_ptr): Likewise.
17865 (ggc_mark_tree_ptr): Likewise.
17866 (ggc_mark_string_ptr): Likewise.
17867 (ggc_mark_tree_varray_ptr): Likewise.
17868 (ggc_mark_tree_hash_table_ptr): Likewise.
17869 * ggc-common.c: New file.
17870 * Makefile.in (OBJS): Add ggc-common.o.
17871 (ggc-common.o): List dependencies.
17873 1999-09-10 22:37 -0700 Zack Weinberg <zack@bitmover.com>
17875 * cppalloc.c (xstrdup): Use memcpy.
17876 * cpperror.c (cpp_print_containing_files): Don't use
17878 * cpplib.c (conditional_skip): Set temp->lineno.
17879 (do_endif): Make error message less obscure.
17880 (if_directive_name): New function.
17881 (cpp_get_token [case EOF]): Unwind the if stack and generate
17882 error messages for each unterminated conditional in this file.
17883 (parse_string): Do not behave differently if -traditional.
17885 Fri Sep 10 14:04:07 1999 Richard Henderson <rth@cygnus.com>
17887 * builtins.c (expand_builtin_va_arg): Cope with an array-type
17888 va_list decomposing to pointer-type.
17889 * rs6000.c (rs6000_va_start) Unwrap the ARRAY_TYPE to get at fields.
17890 (rs6000_va_arg): Likewise.
17892 Fri Sep 10 13:21:21 1999 Jim Wilson <wilson@cygnus.com>
17894 * except.c (start_dynamic_handler): Compute size using
17895 STACK_SAVEAREA_MODE.
17897 Fri Sep 10 16:01:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17899 * protoize.c: Remove various __STDC__ and POSIX hacks. Don't
17900 include directory headers. Don't define strrchr. Don't provide
17901 my_* replacement functions. Prefer PTR over `pointer_type'.
17902 Don't prototype system functions. Don't redefine getopt.
17904 (shortpath, fancy_abort, notice, savestring, dupnstr, substr,
17905 safe_read, safe_write, save_pointers, restore_pointers,
17906 is_id_char, in_system_include_dir, directory_specified_p,
17907 file_excluded_p, unexpand_if_needed, abspath, check_aux_info,
17908 find_corresponding_lparen, referenced_file_is_newer,
17909 save_def_or_dec, munge_compile_params, gen_aux_info_file,
17910 process_aux_info_file, identify_lineno, check_source,
17911 seek_to_line, forward_to_next_token_char, output_bytes,
17912 output_string, output_up_to, other_variable_style_function,
17913 find_rightmost_formals_list, do_cleaning, careful_find_l_paren,
17914 do_processing, is_syscalls_file, rename_c_file, find_extern_def,
17915 find_static_definition, connect_defs_and_decs, add_local_decl,
17916 add_global_decls, needs_to_be_converted, visit_each_hash_node,
17917 add_symbol, lookup, free_def_dec, find_file, reverse_def_dec_list,
17918 edit_fn_declaration, edit_formals_lists, edit_fn_definition,
17919 scan_for_missed_items, edit_file, string_list_cons): Add static
17921 (standard_exec_prefix, target_machine, target_version,
17922 default_syscalls_dir, string_list, string_list_cons, find_file,
17923 do_cleaning): Constify a char*.
17924 (safe_read, safe_write): Use PTR, not a char*.
17925 (is_id_char): Take an int, not a char.
17926 (main): Add prototype. Call return, not exit.
17928 Fri Sep 10 16:48:26 1999 Andrew Haley <aph@cygnus.com>
17930 * tree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields
17931 when comparing types.
17933 Fri Sep 10 08:43:32 1999 Richard Henderson <rth@cygnus.com>
17935 * loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
17936 (strength_reduce): Release the varrays from the no-bivs early exit.
17938 * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before
17939 the loop over the registers.
17941 * tree.c (save_tree_status): Set maybepermanent_firstobj NULL
17943 (restore_tree_status): Check that instead when freeing the obstack.
17945 Wed Sep 8 16:12:04 1999 Andrew Haley <aph@cygnus.com>
17947 * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
17950 Fri Sep 10 11:58:55 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17952 * i386.md (ashlqi3): For NON_QI_REG_P regs, use sall. Fix some
17953 operand size modifiers.
17955 Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17957 * c-common.c (c_common_nodes_and_builtins): Don't build
17959 * c-common.h (enum c_tree_index and related accesor macros): Remove
17960 everything now declared in tree.h.
17961 * c-decl.c (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
17962 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, WCHAR_UNSIGNED, FLOAT_TYPE_SIZE,
17963 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Don't provide defaults.
17964 (error_mark_node, void_type_node, char_type_node, integer_type_node,
17965 unsigned_type_node, ptr_type_node, va_list_type_node,
17966 integer_zero_node, null_pointer_node, integer_one_node): Delete.
17967 (init_decl_processing): Call build_common_tree_nodes and
17968 build_common_tree_nodes_2 instead of building their nodes here.
17969 Don't add roots for these nodes.
17970 * stor-layout.c (size_zero_node, size_one_node): Delete.
17971 (set_sizetype): Make a new node for bitsizetype each time.
17972 * tree.c (global_trees): New variable.
17973 (init_obstacks): Add a gc root for it.
17974 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
17975 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE,
17976 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Provide defaults.
17977 (build_common_tree_nodes): New function.
17978 (fix_sizetype): New function.
17979 (build_common_tree_nodes_2): New function.
17980 * tree.h (enum tree_index): New.
17981 (global_trees): Declare.
17982 Add accessor macros for all nodes now moved to global_trees.
17983 Delete their declarations.
17985 Thu Sep 9 20:15:46 1999 Richard Henderson <rth@cygnus.com>
17987 * c-decl.c (finish_function): When processing a nested function,
17988 push and pop GC context around rest_of_compilation.
17990 Thu Sep 9 16:42:06 1999 Richard Henderson <rth@cygnus.com>
17992 * i386.c (override_options): Remove ppro, pentium2, and p2 as aliases.
17993 Default ix86_arch to PROCESSOR_I386.
17994 * i386.h (CC1_CPU_SPEC): Don't add -march=foo. Remove -mno-foo.
17995 (CPP_486_SPEC, CPP_586_SPEC, CPP_686_SPEC): Delete.
17996 (CPP_CPU_DEFAULT_SPEC): Define to __tune_foo__.
17997 (CC1_CPU_SPEC): Make -march=foo define __foo__, and provide
17998 __tune_foo__ if no -mcpu. Make -mcpu=bar define __tune_bar__.
17999 (EXTRA_SPECS): Remove deleted specs.
18001 Thu Sep 9 16:03:06 1999 Richard Henderson <rth@cygnus.com>
18003 * function.c (assign_stack_local_1): Allocate from
18004 function->x_frame_offset, not frame_offset.
18006 Thu Sep 9 14:36:31 1999 Mark Mitchell <mark@codesourcery.com>
18008 * ggc.h (lang_cleanup_tree): Remove.
18009 * gcc-simple.c (ggc_free_tree): Don't call lang_cleanup_tree.
18010 * ggc-callbacks.c (lang_cleanup_tree): Remove.
18012 * c-decl.c (finish_struct): Use ggc_alloc to allocate
18013 TYPE_LANG_SPECIFIC when garbage collecting.
18014 (lang_mark_tree): Mark TYPE_LANG_SPECIFIC.
18015 (lang_cleanup_tree): Remove.
18017 Thu Sep 9 14:23:02 1999 Jason Merrill <jason@yorick.cygnus.com>
18019 * defaults.h (EH_FRAME_SECTION, EH_FRAME_SECTION_ASM_OP): Define here.
18020 * crtstuff.c: Not here.
18021 * dwarf2out.c: Or here.
18022 * libgcc2.c (__do_global_ctors, __do_global_dtors): Handle EH frame
18025 Thu Sep 9 09:40:58 1999 Mark Mitchell <mark@codesourcery.com>
18027 * function.h (free_after_compilation): Remove decl parameter.
18028 (free_varasm_status0: Likewise.
18029 (free_emit_status): Likewise.
18030 (free_stmt_status): Likewise.
18031 (free_after_compilation): Likewise.
18032 (init_lang_status): New variable.
18033 (free_lang_status): Likewise.
18034 * emit-rtl.c (free_emit_status): Make decl parameter implicit.
18035 * function.c (init_lang_status): New variable.
18036 (free_lang_status): Likewise.
18037 (push_function_context_to): Don't set function::decl here.
18038 (free_after_copmilation): Make decl parameter implicit. Call
18039 free_lang_status if defined.
18040 (prepare_function_start): Call init_lang_status if defined.
18041 (init_function_start): Set function::decl here.
18042 * profile.c (output_func_start_profiler): Don't call pushdecl
18043 until we've actually started the function.
18044 * stmt.c (free_stmt_status): Make decl parameter implicit.
18045 * toplev.c (rest_of_compilation): Don't pass decl to
18046 free_after_compilation.
18047 * varasm.c (free_varasm_status): Likewise.
18049 Thu Sep 9 17:23:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18051 * except.c (call_get_eh_context): Add root when allocating static
18054 Thu Sep 9 15:24:59 BST 1999 Richard Earnshaw <rearnsha@arm.com>
18056 * arm.c: Include "ggc.h".
18057 (arm_add_gc_roots): New function.
18058 (arm_override_options): Call it.
18059 (aof_pic_entry): Add a GC root for aof_pic_label when it's allocated.
18061 * arm.md (define_asm_attributes): Add a pool_range attribute.
18063 Thu Sep 9 12:32:57 BST 1999 Nathan Sidwell <nathan@acm.org>
18065 * extend.texi (Volatiles): New node.
18067 Thu Sep 9 03:37:31 1999 Richard Henderson <rth@cygnus.com>
18069 * ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
18070 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): New.
18071 (struct ggc_any): Replace `mark' with `magic_mark'.
18072 (ggc_alloc_string): Use memcpy, not bcopy.
18073 (ggc_alloc_any): Set magic_mark. Update bytes_alloced_since_gc.
18074 (ggc_free_{rtx,rtvec,tree,string}): Mark inline.
18075 (ggc_free_any): New.
18076 (ggc_mark_string): Use IGNORE_MARK. Calc back to struct gcc_string.
18077 (ggc_mark): Use IGNORE_MARK. Abort if magic doesn't match.
18078 (ggc_collect): Re-enable collection avoidance. Use GGC_ANY_MARK.
18079 Use IS_MARKED. Use ggc_free_any.
18081 1999-09-09 Scott Bambrough <scottb@netwinder.org>
18083 * config/arm/linux-elf.h: define NO_IMPLICIT_EXTERN_C
18085 Thu Sep 9 01:55:21 1999 Richard Henderson <rth@cygnus.com>
18087 * toplev.c (main): Always init_ggc.
18089 Wed Sep 8 23:53:22 1999 Richard Henderson <rth@cygnus.com>
18091 * except.c (find_all_handler_type_matches): Free the list if
18092 we found no matches.
18094 * combine.c (SUBST): Break out to a real function do_SUBST.
18095 (SUBST_INT): Likewise.
18096 * gcse.c (free_pre_mem): Free `temp_bitmap'.
18097 (pre_insert): Free `inserted'.
18098 * loop.c (basic_induction_var): Always set `location'.
18100 * function.c (expand_function_end): Add initial_trampoline as a root.
18101 * rtl.h (init_varasm_once): Declare.
18102 * toplev.c (compile_file): Call it.
18103 * ggc-simple.c (ggc_mark_string_ptr): New.
18104 (ggc_add_string_root): New.
18105 (ggc_collect): Disable collection avoidance temporarily.
18106 * ggc.h (ggc_add_string_root): Declare.
18107 * except.c (create_rethrow_ref): Use ggc_alloc_string.
18108 * optabs.c (init_libfuncs): Likewise.
18109 * varasm.c (named_section): Use ggc_alloc_string.
18110 (make_function_rtl): Likewise.
18111 (make_decl_rtl): Likewise.
18112 (assemble_static_space): Likewise.
18113 (assemble_trampoline_template): Likewise.
18114 (output_constant_def): Likewise.
18115 (force_const_mem): Likewise.
18116 (mark_const_hash_entry): New.
18117 (mark_pool_sym_hash_table): New.
18118 (mark_varasm_state): Use it.
18119 (init_varasm_once): New.
18121 * expr.h (init_one_libfunc): Declare.
18122 * optabs.c (init_one_libfunc): New.
18123 (init_optabs): Use it.
18124 * config/gofast.h: Likewise.
18125 * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Likewise.
18126 * config/sparc/sparc.h (INIT_TARGET_OPTABS): Likewise.
18128 Thu Sep 9 13:46:06 1999 Geoffrey Keating <geoffk@cygnus.com>
18130 * Makefile.in (cppexp.o): Depend on cpphash.h.
18131 * cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx.
18133 * cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx.
18134 * cpplib.c (do_define): Generalise to handle poisoned definitions,
18135 redefining poisoned identifiers, etc.
18136 (do_undef): Don't allow poisoned identifiers to be undefined.
18137 (do_pragma): Add #pragma poison.
18138 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
18140 * cccp.c: Add T_POISON node type.
18141 (special_symbol): Handle `defined(xxx)' and plain `xxx' for
18143 (do_define): Generalise to handle poisoned definitions,
18144 redefining poisoned identifiers, etc.
18145 (do_undef): Don't allow poisoned identifiers to be undefined.
18146 (do_pragma): Add #pragma poison.
18147 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
18149 * c-pragma.c (handle_pragma_token): Ignore #pragma poison.
18150 * c-pragma.h: Add ps_poison state. We now always have generic
18153 Wed Sep 8 20:30:42 1999 Mark Mitchell <mark@codesourcery.com>
18155 * ggc.h (ggc_alloc): New function.
18156 (ggc_mark): Likewise.
18157 * ggc-simple.c (ggc_any): New structure.
18158 (ggc_status): Add anys.
18159 (n_anys_collected): New variable.
18160 (ggc_alloc): Define.
18161 (ggc_mark): Likewise.
18162 (ggc_collect): Collect the anys.
18164 Wed Sep 8 20:15:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18166 * c-decl.c (mark_binding_level): Make static to match prototype.
18168 Wed Sep 8 16:41:27 1999 Richard Henderson <rth@cygnus.com>
18170 * flow.c (new_insn_dead_notes): Don't early out for preexisting regs.
18172 Wed Sep 8 16:07:52 1999 Richard Henderson <rth@cygnus.com>
18174 * gengenrtl.c (CONST_DOUBLE_FORMAT): Take the size REAL_ARITHMETIC
18175 will use into account. Expand the max width to 5.
18178 Wed Sep 8 16:01:14 1999 Richard Henderson <rth@cygnus.com>
18180 * ggc-simple.c (ggc_free_rtx): Poison the correct amount
18181 for the rtx length.
18183 Wed Sep 8 15:23:54 1999 Richard Henderson <rth@cygnus.com>
18185 * alpha.md (call value patterns): Remove the result predicates.
18187 Wed Sep 8 13:35:38 1999 Richard Henderson <rth@cygnus.com>
18189 * Makefile.in (stmp-fixinc): Remove extraneous exit 1 from
18192 Wed Sep 8 15:32:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18194 * system.h (sbrk, malloc, calloc, realloc): Backup prototypes
18195 changed from extern char *, to extern PTR. Also fix typo in
18196 NEED_DECLARATION_REALLOC test.
18198 * mips-tdump.c (malloc, calloc, realloc): Don't prototype.
18200 Wed Sep 8 11:40:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18202 * gansidecl.h (__attribute__, ATTRIBUTE_UNUSED_LABEL,
18203 ATTRIBUTE_UNUSED, ATTRIBUTE_NORETURN, ATTRIBUTE_PRINTF,
18204 ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2, ATTRIBUTE_PRINTF_3,
18205 ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5, GENERIC_PTR): Delete.
18207 * c-decl.c (field_decl_cmp): Use PTR instead of GENERIC_PTR.
18209 * cccp.c (pcfinclude): Likewise.
18211 * global.c (allocno_compare): Likewise.
18213 * haifa-sched.c (rank_for_schedule): Likewise.
18215 * local-alloc.c (qty_sugg_compare_1, qty_compare_1): Likewise.
18217 * reload1.c (hard_reg_use_compare, reload_reg_class_lower): Likewise.
18219 * stupid.c (stupid_reg_compare): Likewise.
18221 * tree.c (_obstack_allocated_p): Likewise.
18223 * varray.h (varray_data_tag, VARRAY_GENERIC_PTR_INIT): Likewise.
18225 1999-09-08 Bruce Korb autogen@linuxbox.com
18227 * Makefile.in: Give the hapless gperf user a hint about
18228 why "gperf -F" fails.
18230 Wed Sep 8 04:43:22 1999 Richard Henderson <rth@cygnus.com>
18232 * lists.c: Include ggc.h.
18234 (init_EXPR_INSN_LIST_cache): Install it.
18236 * ggc-simple.c (init_ggc): Absorb the old init.
18237 (ggc_push_context): Use xcalloc.
18238 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Likewise.
18239 (ggc_collect): Add [rvts] tags to the collection stats.
18241 Wed Sep 8 11:14:25 1999 Andreas Schwab <schwab@suse.de>
18243 * cccp.c (main): Fix handling of -include and -imacros options.
18245 Wed Sep 8 02:23:08 1999 Jeffrey A Law (law@cygnus.com)
18247 * cpplib.c (cpp_push_buffer): Fix order of arguments.
18249 Wed Sep 8 04:44:09 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
18251 * rtl.h (obstack_alloc_rtx): Removed, it's now static in
18254 Wed Sep 8 00:33:43 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
18256 * flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.
18257 * haifa-sched.c (sched_analyze_1): Use XEXP rather than SUBREG_REG
18258 and SET_DEST. Update comment.
18260 Wed Sep 8 18:55:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18262 * config/c4x/c4x.c: Include ggc.h.
18263 (c4x_add_gc_roots): New function.
18264 (c4x_override_options): Call c4x_add_gc_roots.
18266 Wed Sep 8 00:00:16 1999 Richard Henderson <rth@cygnus.com>
18268 * defaults.h (TARGET_ESC): Move ...
18269 * system.h: ... here, where Linas had it in the first place. Silly me.
18271 Tue Sep 7 23:46:35 1999 Linas Vepstas <linas@linas.org>
18273 * c-common.c: Use ISGRAPH, ISLOWER, toupper.
18274 * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c,
18275 genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise.
18276 * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC.
18277 * defaults.h (TARGET_ESC): Add default.
18279 Tue Sep 7 23:36:59 1999 Linas Vepstas <linas@linas.org>
18281 * configure.in: add i370-*-openedition, i370-*-mvs and
18282 i370-*-linux targets
18284 Tue Sep 7 23:31:53 1999 Mark Mitchell <mark@codesourcery.com>
18286 * dsp16xxx.c: Include ggc.h
18287 (override_options): Mark GC roots.
18288 * mn10200.c: Include ggc.h.
18289 (asm_file_start): Mark GC roots.
18290 * tahoe.c: Include ggc.h.
18291 (extensible_operand): Mark GC roots.
18293 Tue Sep 7 23:23:15 1999 Linas Vepstas <linas@linas.org>
18295 * README: Add section discussing status of ELF ABI.
18296 * i370.c: Fix misc spelling mistakes.
18297 (i370_label_scan): Updated notes, exception handling.
18298 (i370_function_prolog): Simplify ELF stack handling.
18299 * i370.h: (FIXED_REGISTERS): Free up r12 for ELF.
18300 (STACK_GROWS_DOWNWARD): ELF stack grows down.
18301 (ASM_DECLARE_FUNCTION_NAME): Fix crazy malloc size.
18302 * i370.md: (movdi): Add notes.
18303 (floatsidf2): Use stack not rtca for scratch float area.
18304 (iorsi3): Correct operand constraints.
18305 * x-oe: Restore TAROUTOPTS which are used by pax.
18307 Tue Sep 7 22:39:18 1999 Mark Mitchell <mark@codesourcery.com>
18309 * rs6000.c: Include ggc.h.
18310 (rs6000_add_gc_roots): New function.
18311 (override_options): Call it.
18313 Tue Sep 7 22:09:03 1999 Richard Henderson <rth@cygnus.com>
18315 * alpha.h (alpha_compare): New.
18316 (alpha_compare_op0, alpha_compare_op1, alpha_compare_fp_p): Remove.
18317 * alpha.c: Likewise for the definitions.
18318 (alpha_emit_conditional_branch): Update for alpha_compare.
18319 (alpha_emit_conditional_move): Likewise.
18320 * alpha.md (cmpdf, cmpdi): Likewise.
18321 (setcc patterns): Likewise. Zero alpha_compare after use.
18322 (sne): Optimize (x != 0) into (0U < x).
18324 Tue Sep 7 21:55:02 1999 Richard Henderson <rth@cygnus.com>
18326 * alpha.h (alpha_eh_epilogue_sp_ofs): Remove.
18327 (struct machine_function): Declare; add eh_epilogue_sp_ofs.
18328 (INIT_EXPANDERS): Remove.
18329 * alpha.c: Include ggc.h.
18330 (alpha_eh_epilogue_sp_ofs, alpha_return_addr_rtx): Remove.
18331 (alpha_init_machine_status, alpha_mark_machine_status): New.
18332 (override_options): Install them.
18333 (struct machine_function): Moved to alpha.h.
18334 (alpha_save_machine_status, alpha_restore_machine_status): Remove.
18335 (alpha_init_expanders): Remove.
18336 (alpha_return_addr): Adjust to use current_function->machine.
18337 (alpha_ra_ever_killed): Likewise.
18338 (alpha_expand_epilogue): Likewise.
18339 * alpha.md (eh_epilogue): Likewise.
18341 Wed Sep 8 14:34:42 1999 Ian Piumarta <piumarta@prof.inria.fr>
18342 Melissa O'Neill <oneill@cs.sfu.ca>
18343 Geoffrey Keating <geoffk@cygnus.com>
18345 * config/rs6000/rs6000.c (first_reg_to_save): Don't save fixed or
18346 call-used registers (call-saved registers must still be contiguous
18347 and end with r31, of course).
18349 Tue Sep 7 21:41:38 1999 Richard Henderson <rth@cygnus.com>
18351 * c-typeck.c (type_lists_compatible_p): Use simple_type_promotes_to.
18352 (self_promoting_type_p): Delete.
18353 (self_promoting_args_p): Move ...
18354 * c-common.c: ... here.
18355 (c_common_nodes_and_builtins): Initialize lang_type_promotes_to.
18356 (simple_type_promotes_to): New.
18357 * builtins.c (lang_type_promotes_to): New.
18358 (expand_builtin_va_arg): Use it to give diagnostic for illegal types.
18359 * c-tree.h (C_PROMOTING_INTEGER_TYPE_P): Move ...
18360 * c-common.h: ... here.
18361 (self_promoting_args_p, simple_type_promotes_to): Declare.
18362 * c-decl.c (duplicate_decls): Use simple_type_promotes_to.
18363 (grokdeclarator): Likewise.
18364 * tree.h (lang_type_promotes_to): Declare.
18366 Tue Sep 7 17:15:21 1999 Mark Mitchell <mark@codesourcery.com>
18368 Add some machine-dependent GC roots.
18369 * sparc.c: Include ggc.h.
18370 (sparc_add_gc_roots): New function.
18371 (mark_ultrasparc_pipeline_state): Likewise.
18372 (override_options): Call sparc_add_gc_roots.
18373 * pa.c: Include ggc.h.
18374 (pa_add_gc_roots): New function.
18375 (mark_deferred_plabels): Likewise.
18376 (override_options): Call pa_add_gc_roots.
18377 * mips.c: Include ggc.h.
18378 (mips_add_gc_roots): New function.
18379 (override_options): Use it.
18381 Tue Sep 7 11:39:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18383 * cpperror.c (cpp_file_line_for_message): Constify a char*.
18385 * cppexp.c (parse_number, parse_charconst, cpp_lex,
18386 cpp_parse_expr): Add static prototypes.
18387 (parse_charconst): Don't cast away const-ness.
18388 (token): Constify a char*.
18390 * cppfiles.c (file_name_list, include_hash, find_include_file,
18391 finclude, initialize_input_buffer): Constify a char*.
18392 (file_cleanup, find_position): Add static prototypes.
18394 * cpphash.c (macro_cleanup, macarg, timestamp, special_symbol,
18395 collect_expansion): Add static prototypes.
18396 (cpp_install, create_definition, monthnames): Constify a char*.
18398 * cpphash.h (cpp_install): Likewise.
18400 * cppinit.c (known_suffixes, default_include,
18401 dump_special_to_buffer, NAME, cpp_start_read, cpp_finish): Likewise.
18402 (base_name, dump_special_to_buffer, initialize_dependency_output):
18403 Add static prototypes.
18405 * cpplib.c (my_strerror): Constify a char*.
18406 (null_underflow, null_cleanup, skip_comment, copy_comment,
18407 copy_rest_of_line, handle_directive, pass_thru_directive,
18408 get_directive_token, read_line_number, cpp_print_file_and_line,
18409 v_cpp_error, v_cpp_warning, v_cpp_error_with_line,
18410 v_cpp_warning_with_line, detect_if_not_defined,
18411 consider_directive_while_skipping): Add static prototypes.
18412 (pass_thru_directive, check_macro_name, cpp_expand_to_buffer,
18413 cpp_pedwarn_with_file_and_line): Constify a char*.
18415 * cpplib.h (cpp_options, include_hash, progname, definition,
18416 cpp_pedwarn_with_file_and_line, cpp_expand_to_buffer,
18417 check_macro_name, cpp_pfatal_with_name, cpp_file_line_for_message,
18418 find_include_file, deps_output, include_hash): Constify a char*.
18420 * cppmain.c (progname): Constify.
18421 (main): Add prototype. Use return, not exit.
18423 * fix-header.c (fatal, add_symbols, lookup_std_proto, write_lbrac,
18424 recognized_macro, check_macro_names, read_scan_file, write_rbrac,
18425 inf_skip_spaces, inf_read_upto, inf_scan_ident, inf_scan_ident,
18426 check_protection): Add static prototype.
18428 (progname, recognized_macrom, recognized_extern): Constify a char*.
18429 (main): Add prototype.
18431 * gen-protos.c (progname): Constify a char*.
18433 Tue Sep 7 00:47:52 1999 Mark Mitchell <mark@codesourcery.com>
18435 * emit-rtl.c (free_emit_status): Take decl as a parameter.
18436 (init_emit_once): Add more GC roots.
18437 * except.c (mark_func_eh_entry): New function.
18438 (mark_eh_node): Mark false_label and rethrow_label.
18439 (init_eh): Add more GC roots.
18440 * function.c (free_after_compilation): Take decl as a paramter.
18441 Call free_stmt_status.
18442 (mark_function_state): Don't assume x_parm_reg_stack_loc is
18444 * function.h (free_after_compilation): Change prototype.
18445 (free_varasm_status): Likewise.
18446 (free_emit_status): Likewise.
18447 (free_stmt_status): New function.
18448 * ggc-simple.c (rtx, vecs, trees, strings, bytes_alloced_since_gc):
18449 Remove, replacing with ...
18450 (ggc_status): New structure.
18451 (ggc_chain): New variable.
18452 (init_gcc): Define.
18453 (ggc_push_context): New function.
18454 (ggc_pop_context): Likewise.
18455 (ggc_alloc_rtx): Adjust for use of ggc_chain.
18456 (ggc_alloc_rtvec): Likewise.
18457 (ggc_alloc_tree): Likewise.
18458 (ggc_alloc_string): Likewise.
18459 (ggc_mark_rtx): Mark NOTE_SOURCE_FILE and NOTE_RANGE_INFO.
18460 (ggc_mark_tree): Give language-dependent code a chance to mark
18462 (ggc_mark_tree_varray): Handle empty arrays.
18463 (ggc_collect): Adjust for use of ggc_chain. Clear
18464 bytes_alloced_since_last_gc.
18465 * ggc.h (ggc_pop_context): New function.
18466 (ggc_push_context): Likewise.
18467 * print-tree.c (print_node): Don't print obstacks when GC'ing.
18468 * stmt.c (free_stmt_status): New function.
18469 (init_stmt_for_function): Clear last_expr_value.
18470 * toplev.c (rest_of_compilation): Always call free_after_compilation.
18471 Conditionalize call to ggc_collect.
18472 (main): Call init_ggc.
18473 * tree.c (push_obstacks): Do the push, even when GC'ing.
18474 (push_obstacks_nochange): Likewise.
18475 (pop_obstacks): Liekwise.
18476 * varasm.c (free_varasm_status): Take decl as a parameter.
18478 Tue Sep 7 08:15:49 1999 Gavin Romig-Koch <gavin@cygnus.com>
18480 * config/mips/mips.h (MULTILIB_ENDIAN_DEFAULT) : New macro.
18481 (MULTILIB_ENDIAN_DEFAULT) : Use the new macro.
18482 * config/mips/elf64.h (MULTILIB_DEFAULTS) : Use the new macro.
18483 * config/mips/r3900.h (MULTILIB_DEFAULTS) : Use the new macro.
18485 Tue Sep 7 03:42:45 1999 Mark Klein (mklein@dis.com)
18487 * pa/x-pa-mpeix: New file for the MPE port.
18489 * pa/quadlib.asm: New file for long double support.
18491 * configure.in: Add hppa1.0-*-mpeix for MPE port.
18492 * configure: Rebuilt.
18494 Tue Sep 7 10:08:40 1999 Andreas Schwab <schwab@suse.de>
18496 * final.c (shorten_branches): Fix last change.
18498 Tue Sep 7 00:30:32 1999 Jeffrey A Law (law@cygnus.com)
18500 * pa.h (ASM_OUTPUT_DOUBLE_INT): Delete.
18502 Mon Sep 6 22:44:47 1999 Jeffrey A Law (law@cygnus.com)
18504 * Merge from gcc2 snapshot Jan 9, 1999. See FSFChangeLog for
18507 Mon Sep 6 22:31:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18509 * c-aux-info.c (concat): Don't define.
18511 * cccp.c (my_strerror): Likewise. All callers changed to use
18513 (do_include): Call xstrdup, not xmalloc/strcpy.
18514 (grow_outbuf): Don't check if xrealloc returns NULL, it can't.
18515 (xmalloc, xrealloc, xcalloc, xstrdup): Don't define.
18517 * collect2.c (my_strsignal): Likewise. All callers changed to use
18519 (locatelib): Call xstrdup, not xmalloc/strcpy.
18521 * 1750a.h (ASM_OUTPUT_INTERNAL_LABEL): Call xmalloc, not malloc.
18523 * dsp16xx.c (override_options): Call xstrdup, not xmalloc/strcpy.
18525 * i370.h (ASM_DECLARE_FUNCTION_NAME): Call xmalloc, not malloc.
18527 * mips.c (build_mips16_call_stub): Call xstrdup, not xmalloc/strcpy.
18529 * cppinit.c (cpp_options_init): Call xcalloc, not xmalloc/bzero.
18531 * dwarfout.c (dwarfout_init): Call concat, not xmalloc/strcpy/...
18533 * except.c (new_eh_region_entry): Call xmalloc/xrealloc, not
18535 (find_all_handler_type_matches): Likewise. Don't check return
18537 (get_new_handler, init_insn_eh_region, process_nestinfo): Call
18538 xmalloc, not malloc.
18539 (init_eh_nesting_info): Likewise. Call xcalloc, not xmalloc/bzero.
18541 * gcc.c (xstrerror, xmalloc, xrealloc): Don't define.
18542 (init_spec): Call xcalloc, not xmalloc/bzero.
18543 (set_spec): Call xstrdup, not save_string.
18544 (record_temp_file): Call xstrdup, not xmalloc/strcpy.
18545 (find_a_file): Call xstrdup, not xmalloc/strcpy.
18546 (process_command): Call xstrdup, not save_string.
18547 (main): Call xcalloc, not xmalloc/bzero.
18549 * gcov.c (xmalloc): Don't define.
18550 (create_program_flow_graph): Call xcalloc, not xmalloc/bzero.
18551 (scan_for_source_files): Call xstrdup, not xmalloc/strcpy.
18552 (output_data): Call xcalloc, not xmalloc/bzero.
18554 * haifa-sched.c (schedule_insns): Call xcalloc, not xmalloc/bzero.
18556 * mips-tdump.c (xmalloc): Don't define.
18557 (print_symbol): Call xmalloc, not malloc.
18558 (read_tfile): Call xcalloc, not calloc.
18560 * mips-tfile.c (xfree, my_strsignal, xmalloc, xcalloc, xrealloc):
18561 Don't define. All callers of xfree/my_strsignal changed to use
18562 free/strsignal instead.
18563 (allocate_cluster): Call xcalloc, not calloc.
18565 * objc/objc-act.c (lang_init): Call concat, not xmalloc/strcpy/...
18566 Fix memory leak, free allocated memory.
18568 * prefix.c (translate_name): Call xstrdup, not save_string.
18569 (update_path): Likewise.
18571 * profile.c (branch_prob): Call xstrdup, not xmalloc/strcpy.
18573 * protoize.c (xstrerror, xmalloc, xrealloc, xfree, savestring2):
18574 Don't define. Callers of xfree/savestring2 changed to use
18575 free/concat instead.
18577 * reload1.c (reload): Call xcalloc, not xmalloc/bzero.
18578 (init_elim_table): Likewise.
18580 * resource.c (init_resource_info): Likewise.
18582 * stupid.c (stupid_life_analysis): Likewise.
18584 * toplev.c (xmalloc, xcalloc, xrealloc, xstrdup): Don't define.
18585 (open_dump_file): Call concat, not xmalloc/strcpy/...
18586 (clean_dump_file): Likewise.
18587 (compile_file): Call xstrdup, not xmalloc/strcpy.
18589 Mon Sep 6 15:04:55 1999 Richard Henderson <rth@cygnus.com>
18591 * v850.h (EXPAND_BUILTIN_VA_ARG): New.
18592 * v850.c (v850_va_arg): New.
18594 Tue Sep 7 09:36:01 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18596 * haifa-sched.c: Tidy comments.
18598 Mon Sep 6 14:30:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18600 * Makefile.in (C_AND_OBJC_OBJS): Remove ggc-callbacks.o.
18601 (c-parse.o, c-decl.o, c-lang.o, c-lex.o, c-common.o,
18602 $(out_object_file)): Depend on ggc.h.
18603 * c-common.c: Include "ggc.h".
18604 (combine_strings): If doing GC, use ggc_alloc_string.
18605 * c-decl.c: Include "ggc.h".
18606 (ggc_p): Define with value 0.
18607 (mark_binding_level): New function.
18608 (init_decl_processing): Add GC roots.
18609 (mark_c_function_context): New function.
18610 (lang_mark_false_label_stack): New function.
18611 (lang_mark_tree): New function.
18612 (lang_cleanup_tree): New function.
18613 * c-lang.c: Include "ggc.h".
18614 (lang_init): Call c_parse_init.
18615 * c-lex.c: Include "ggc.h".
18616 (check_linenum): If doing GC, don't copy filenames to permanent
18618 * c-parse.in: Include "ggc.h".
18619 (c_parse_init): New function.
18620 * c-tree.h (c_parse_init, mark_c_function_context): Declare.
18621 * objc/Make-lang.in (objc-parse.o): Depend on ggc.h.
18623 * except.c (mark_eh_state): Mark more state.
18624 * function.c (mark_function_state): Likewise.
18625 * ggc-simple.c (ggc_alloc_rtvec): Bring in sync with non-gc version.
18626 (ggc_alloc_string) [GGC_DUMP]: Fix typo.
18627 * toplev.c (mark_file_stack): New function.
18628 (compile_file): If doing GC, use ggc_alloc_string on input filename.
18629 (main): Add root for input_file_stack.
18631 * i386.c: Include "ggc.h".
18632 (ix86_mark_machine_status): New function.
18633 (override_options): Set mark_machine_status.
18635 Mon Sep 6 15:26:23 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18637 * tree.c (copy_node): Copy node contents also if doing GC.
18639 Mon Sep 6 08:42:06 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
18641 * collect2.c (scan_libraries): Fix double-thinko :-).
18643 Mon Sep 6 02:42:36 1999 Jeffrey A Law (law@cygnus.com)
18645 * collect2.c (scan_libraries): Fix thinko.
18647 * cse.c (delete_trivially_dead_insns): Do not skip the last
18648 insn if it is a real insn.
18650 Sun Sep 5 18:57:42 1999 Mark Mitchell <mark@codesourcery.com>
18652 * Makefile.in (ggc-simple.o): Depend on hash.h.
18653 * ggc.h (ggc_add_tree_hash_table_root): Declare.
18654 (ggc_mark_tree_varray): Likewise.
18655 (ggc_mark_tree_hash_table): Likewise.
18656 * ggc-simple.c: Include hash.h.
18657 (ggc_mark_tree_hash_table_ptr): New function.
18658 (ggc_mark_tree_hash_table_entry): Likewise.
18659 (ggc_mark_tree_hash_table): Likewise.
18660 (ggc_add_tree_hash_table_root): Likewise.
18661 * varray.h (const_equiv_data): Use struct rtx_def *, rather than
18662 rtx, when defining fields.
18664 Sun Sep 5 18:57:42 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
18666 * profile.c (output_func_start_profiler): Remove apparently
18667 nonsensical call to start_sequence.
18669 Sun Sep 5 17:34:33 1999 Richard Henderson <rth@cygnus.com>
18671 * clipper/clipper.c (clipper_va_start): Fix typos.
18673 * pyr/pyr.c (pyr_build_va_list, pyr_va_start, pyr_va_arg): New stubs.
18674 * spur/spur.c (spur_build_va_list, spur_va_start): New stubs.
18675 (spur_va_arg): New stub.
18677 * configure.in: Comment out pyramid.
18679 Sun Sep 5 19:11:01 1999 Michael Meissner <meissner@cygnus.com>
18681 * i386.h (MASK_{DEBUG_{ADDR,ARG},INTEL_SYNTAX}): Move so these
18682 don't conflict with the bits that win32, cygwin, and dgux
18685 Sun Sep 5 09:31:56 1999 Richard Henderson <rth@cygnus.com>
18686 Bernd Schmidt <bernds@cygnus.co.uk>
18688 * integrate.c (function_cannot_inline_p): Do not inline
18689 functions with forced labels.
18691 Sun Sep 5 00:35:17 1999 Richard Henderson <rth@cygnus.com>
18692 Bernd Schmidt <bernds@cygnus.co.uk>
18693 Mark Mitchell <mark@codesourcery.com>
18695 * Makefile.in (ggc-simple.o): Depend on varray.h.
18696 (rtl.o): Depend on ggc.h.
18697 (genattrtab.o): Depend on ggc.h.
18698 (print-tree.o): Likewise.
18699 (fold-const.o): Likewise.
18700 * emit-rtl.c (sequence_element_free_list): Remove, and all references.
18701 (make_insn_raw): Don't cache insns when GC'ing.
18702 (emit_insn_before): Likewise.
18703 (emit_insn_after): Likewise.
18704 (emit_insn): Likewise.
18705 (start_sequence): Use xmalloc to allocate the sequence_stack.
18706 (end_sequence): Add free to free it.
18707 (gen_sequence): Don't cache insns when GC'ing.
18708 (clear_emit_caches): Don't use sequence_element_free_list.
18709 (init_emit): Use xcalloc, not xmalloc+bzero.
18710 * fold-const.c (size_int_wide): Kill the cache, when GC'ing.
18711 * function.c (pop_function_context_from): Use free to free the
18712 fixup_var_refs_queue.
18713 (put_reg_into_stack): Allocate it with xmalloc.
18714 * genattrtab.c: Include ggc.h.
18715 (operate_exp): Don't use obstack_free when GC'ing.
18716 (simplify_cond): Likewise.
18717 (simplify_text_exp): Likewise.
18718 (optimize_attrs): Likewise.
18719 * gengenrtl.c (gendef): Use ggc_alloc_rtx to allocate RTL, when
18721 (gencode): Generate a #include for ggc.h.
18722 * ggc-callbacks.c (ggc_p): Define it to zero.
18723 * ggc-none.c (ggc_p): Likewise.
18724 * ggc-simple.c: Include varray.h.
18725 (ggc_mark_tree_varray): New function.
18726 (ggc_add_tree_varray_root): Likewise.
18727 (ggc_mark_tree_varray_ptr): Likewise.
18728 * ggc.h (ggc_p): Declare.
18729 (varray_head_tag): Likewise.
18730 (ggc_add_tree_varray_root): Declare.
18731 * print-tree.c (print_node): Don't check for TREE_PERMANENT
18732 inconsistencies when GC'ing.
18733 * rtl.c: Include ggc.h.
18734 (rtvec_alloc): Use ggc_alloc_rtvec when GC'ing.
18735 (rtx_alloc): Use ggc_alloc_rtx when GC'ing.
18736 (rtx_free): Don't call obstack_free when GC'ing.
18737 * toplev.c (rest_of_compilation): Call ggc_collect after every
18739 * tree.c (push_obstacks): Do nothing, if GC'ing.
18740 (pop_obstacks_nochange): Likewise.
18741 (pop_obstacks): Likewise.
18742 (make_node): Use ggc_alloc_tree when GC'ing.
18743 (copy_node): Likewise.
18744 (get_identifier): Use ggc_alloc_string when GC'ing.
18745 (build_string): Likewise.
18746 (make_tree_vec): Use ggc_alloc_tree when GC'ing.
18747 (tree_cons): Likewise.
18748 (build1): Likewise.
18749 (type_hash_canon): Don't call obstack_free when GC'ing.
18751 Sat Sep 4 21:52:32 1999 Richard Henderson <rth@cygnus.com>
18753 * haifa-sched.c (schedule_block): Use next_nonnote_insn instead
18754 of NEXT_INSN when examining speculative insns for SCHED_GROUP_P.
18756 Sat Sep 4 20:40:19 1999 Richard Henderson <rth@cygnus.com>
18757 Bernd Schmidt <bernds@cygnus.co.uk>
18758 Mark Mitchell <mark@codesourcery.com>
18760 * Makefile.in (stor-layout.o): Depend on ggc.h.
18761 (expr.o): Depend on ggc.h.
18762 (profile.o): Depend on ggc.h.
18763 (stor-layout.o): Depend on ggc.h.
18764 * emit-rtl.c (init_emit_once): Add gc roots.
18765 * expr.c: Include ggc.h.
18766 (emit_block_move): Add gc roots.
18767 (clear_storage): Likewise.
18768 * expr.h (init_stor_layout_once): New function.
18769 * profile.c: Include ggc.h.
18770 (init_arc_profiler): profiler_label is a root.
18771 * scan.c (make_sstring_space): Trust xrealloc to function
18772 correctly with first parameter NULL.
18773 * stor-layout.c: Include ggc.h.
18774 (set_sizetype): Add gc root.
18775 (init_stor_layout_once): New function.
18776 * toplev.c (compile_file): Call it.
18778 Sat Sep 4 19:26:25 1999 Richard Henderson <rth@cygnus.com>
18779 Bernd Schmidt <bernds@cygnus.co.uk>
18780 Mark Mitchell <mark@codesourcery.com>
18782 * Makefile.in (tree.o): Depend on ggc.h.
18783 (varasm.o): Likewise.
18784 (function.o): Likewise.
18785 (stmt.o): Likewise.
18786 (except.o): Likewise.
18787 (optabs.o): Likewise.
18788 (emit-rtl.o): Likewise.
18789 * emit-rtl.c: Include ggc.h.
18790 (sequence_element_free_list): Remove, and all references.
18791 (mark_sequence): New functions.
18792 (mark_emit_state): New function.
18793 * except.c: Include ggc.h.
18794 (mark_eh_node, mark_eh_stack, mark_eh_queue): New functions.
18795 (mark_tree_label_node): New functions.
18796 (mark_eh_state): New function.
18797 * function.c: Include ggc.h.
18798 (mark_temp_slot, mark_function_chain): New functions.
18799 (mark_function_state): New function.
18800 (init_function_once): New function.
18801 * function.h (init_function_once): New function.
18802 * ggc-callbacks.c (lang_mark_false_label_stack): New function.
18803 * ggc.h (label_node): Declare.
18804 (eh_status, emit_status, stmt_status, varasm_status): Likewise.
18805 (lang_mark_false_label_stack): New function.
18806 (mark_temp_slot): Remove declaration.
18807 (mark_function_chain): Likewise.
18808 (mark_eh_state): Adjust prototype.
18809 (mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab):
18811 * optabs.c: Include ggc.h.
18812 (mark_optab): New function.
18813 (init_optabs): Add gc roots.
18814 * stmt.c: Include ggc.h.
18815 (mark_cond_nesting, mark_loop_nesting): New functions.
18816 (mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise.
18817 (mark_stmt_state): New function.
18818 * toplev.c (compile_file): Call init_function_once.
18819 * tree.c: Include ggc.h.
18820 (type_hash): Move declaration earlier in file.
18821 (TYPE_HASH_SIZE, type_hash_table): Likewise.
18822 (init_obstacks): Add gc roots.
18823 (mark_type_hash): New function.
18824 * varasm.c: Include ggc.h.
18825 (mark_pool_constant): New function.
18826 (mark_varasm_state): New function.
18828 Sat Sep 4 22:28:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18830 * ggc-simple.c (ggc_root, ggc_collect): Wrap prototype with PROTO.
18832 Sat Sep 4 18:01:45 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18834 * c-decl.c (struct language_function): Renamed from struct c_function.
18836 (c_function_chain): Delete.
18837 (push_c_function_context): New arg F. Don't warn about nested
18838 functions here. Fill LANGUAGE elt of F. Delete code to update
18839 c_function_chain. Don't call push_function_context.
18840 (pop_c_function_context): New arg F. Restore from there instead of
18841 from c_function_chain. Don't call pop_function_context. Clear out
18842 LANGUAGE field of F when done.
18843 * c-lang.c: Include "function.h"
18844 (lang_init): Initialize save_lang_status and restore_lang_status.
18845 * c-parse.in (nested_function, nested_function_notype): Warn about
18846 nested functions. Call push_function_context/pop_function_context
18847 instead of the _c_ variants.
18848 * c-tree.h (push_c_function_context, pop_c_function_context): Update
18850 * Makefile.in (c-lang.o): Update dependencies.
18852 * emit-rtl.c (init_emit): Use xmalloc to allocate regno_reg_rtx,
18853 regno_pointer_flag, regno_pointer_align.
18854 (gen_reg_rtx): Use xrealloc to enlarge them.
18855 (free_emit_status): New function.
18856 * function.c (mark_machine_status, mark_lang_status): New variables.
18857 (assign_stack_local_1): Renamed from assign_outer_stack_local. Merge
18858 in some bits from assign_stack_local. All callers changed to use new
18860 (assign_stack_local): Just call assign_stack_local_1.
18861 (free_after_compilation): New function.
18862 (put_reg_into_stack): Simplify to always call assign_stack_local_1.
18863 (trampoline_address): Likewise.
18864 (assign_parms): Use xcalloc/xrealloc to allocate parm_reg_stack_loc.
18865 (prepare_function_start): Explicitly clear some more variables.
18866 * function.h (struct function): New elt can_garbage_collect.
18867 (mark_machine_status, mark_lang_status): Declare variables.
18868 (free_after_compilation, free_emit_status, free_varasm_status,
18869 init_varasm_status): Declare functions.
18870 * toplev.c (rest_of_compilation): Call free_after_compilation when
18871 done with the current function.
18872 * varasm.c (free_varasm_status): New function.
18874 Sat Sep 4 17:15:13 1999 Richard Henderson <rth@cygnus.com>
18876 * sparc.h (EXPAND_BUILTIN_VA_START): Define.
18877 (EXPAND_BUILTIN_VA_ARG): Define.
18878 * sparc.c (sparc_va_start): New.
18879 (sparc_va_arg): New.
18881 Sun Sep 5 11:11:59 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18883 * config/c4x/c4x.h (DBR_OUTPUT_SEQEND): Use XVECEXP not XEXPs.
18885 Sun Sep 5 10:13:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18887 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Disable.
18889 Sat Sep 4 13:44:01 1999 Mark Mitchell <mark@codesourcery.com>
18891 * Makefile.in (C_AND_C_OBJS): Add gcc-callbacks.o.
18892 (OBJS): Add $(GGC).
18893 (ggc-callbacks.o): New target.
18894 * ggc-callbacks.c: New file.
18896 Sat Sep 4 22:53:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18898 * expr.h: Collapse individual optab and libfunc vars to arrays.
18899 (optab_index, libfunc_index): New enumerations.
18900 (optab_table, libfunc_table): New arrays.
18901 Add accessor macros for both.
18903 * optabs.c (optab_table, libfunc_table): New.
18904 Delete declarations for individual optab and libfunc vars.
18906 Sat Sep 4 12:57:17 1999 Richard Henderson <rth@cygnus.com>
18908 * i386/sco5.h (RETURN_POPS_ARGS): Name change ix86_return_pops_args.
18910 Sat Sep 4 11:19:52 1999 Richard Henderson <rth@cygnus.com>
18912 * Makefile.in (GGC, GGC_LIB): New.
18913 (HOST_RTL): Include ggc-none.o.
18914 (ggc-simple.o): New target.
18915 (ggc-none.o): Likewise.
18916 * tree.h (tree_common): Add gc_mark.
18917 * rtl.h (struct rtx_def): Steal a bit from code to make gc_mark.
18918 (struct rtvec_def): Add gc_mark.
18919 * emit-rtl.c (global_rtl): Update static initializers to contain
18920 enough initializers.
18921 * ggc.h, ggc-none.c, ggc-simple.c: New files.
18922 * toplev.c (gc_time): New variable.
18923 (all_time): New variable.
18924 (compile_file): Print gc time.
18925 (print_time): Calculate percentage of the whole.
18927 Sat Sep 4 13:11:01 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18929 Change obstack memory management and varasm constant pool handling so
18930 that nested functions are treated like any other functions.
18931 * function.c (init_machine_status): New variable.
18932 (push_function_context_to): Set contains_functions for the outer
18933 function. Don't call save_varasm_status.
18934 (pop_function_context_from): Don't call restore_varasm_status. Don't
18935 set current_function_contains_functions.
18936 (prepare_function_start): Call init_varasm_status rather than
18937 init_const_rtx_hash_table. Call (*init_machine_status) if the pointer
18939 * function.h (struct function) Add field varasm. Delete fields
18940 inline_obstacks, inl_emit, const_rtx_hash_table, first_pool,
18941 last_pool, const_rtx_sym_hash_table, pool_offset, const_double_chain.
18942 (init_machine_status): Declare.
18943 (save_varasm_status, restore_varasm_status): Delete declarations.
18944 (save_tree_status, restore_tree_status): Delete last argument.
18945 * integrate.c (initialize_for_inline): Lose arg COPY. Delete copying
18946 code. All callers changed.
18947 (copy_decl_list, copy_decl_tree, copy_decl_rtls, copy_for_inline,
18948 save_constants_in_decl_trees, restore_constants, save_constants,
18949 save_for_inline_eh_labelmap, save_for_inline_copying): Delete
18951 (inlining): New variable.
18952 (reg_map, label_map, insn_map, orig_asm_operands_vector,
18953 copy_asm_operands_vector, copy_asm_constraints_vector): Delete
18955 (save_for_inline_nocopy): Don't save constants.
18956 Don't set inl_emit field in current_function.
18957 (expand_inline_function): Use emit field, not inl_emit, of the inlined
18958 function. Set new variable inlining before
18959 calling copy_rtx_and_substitute.
18960 (copy_rtx_and_substitute): In MEM and SYMBOL_REF cases, handle
18961 constant pool references if inlining is nonzero.
18962 Delete ADDRESS and (most of the) CONST cases.
18963 (output_inline_function): Save and restore current_function/
18964 current_function_decl. Delete restore_constants code. Don't call
18965 init_const_rtx_hash_table.
18966 * output.h (init_const_rtx_hash_table): Don't declare.
18967 * rtl.h (struct function): Declare.
18968 (get_pool_constant_for_function, get_pool_mode_for_function): Declare.
18969 * toplev.c (rest_of_compilation): Don't treat nested functions or
18970 functions containing them specially. Delete all code to deal with
18971 save_for_inline_copying.
18972 * tree.c (toplev_inline_obstacks, extra_inline_obstacks,
18973 inline_obstacks): Delete variables.
18974 (save_tree_status): Lose arg CONTEXT. All callers changed.
18975 Simply allocate a new function_maybepermanent_obstack for the new
18976 function, delete all the special cases.
18977 Don't save inline_obstacks.
18978 (restore_tree_status): Lose arg CONTEXT. All callers changed.
18979 Delete special handling for function_maybepermanent_obstack; simply
18981 Don't restore inline_obstacks.
18982 (permanent_allocation): Delete code that frees inline_obstacks.
18983 (print_inline_obstack_statistics): Delete function.
18984 (dump_tree_statistics): Don't call it.
18985 * varasm.c (struct varasm_status): New.
18986 (const_rtx_hash_table, const_rtx_sym_hash_table, first_pool,
18987 last_pool, pool_offset, const_double_chain): Delete global
18988 variables, replace with accessor macros.
18989 (immed_double_const): Don't walk const_double_chain outside a
18990 function, but don't treat nested functions specially anymore.
18991 (immed_real_const_1): Likewise.
18992 (clear_const_double_mem): Don't treat nested functions specially.
18993 (init_const_rtx_hash_table): Deleted, code moved to init_varasm_status.
18994 (save_varasm_status, restore_varasm_status): Delete functions.
18995 (init_varasm_status): New function.
18996 (force_const_mem): Don't treat nested functions specially.
18997 (find_pool_constant): Accept new arg F, search for constants in
18998 that function's pool rather than the current one. All callers
19000 (get_pool_constant_for_function, get_pool_mode_for_function): New
19003 * i386.c (init_386_machine_status): New function, mostly from
19004 clear_386_stack_locals.
19005 (struct machine_functions): Rename element names to avoid name
19007 (pic_label_rtx, pic_label_name, i386_stack_locals): New accessor
19008 macros, replacing global variables.
19009 (clear_386_stack_locals, save_386_machine_status,
19010 restore_386_machine_status): Delete functions.
19011 (override_options): Initialize init_machine_status.
19012 * i386.h (INIT_EXPANDERS): Delete macro.
19013 (save_386_machine_status, restore_386_machine_status,
19014 clear_386_stack_locals): Delete declarations.
19016 Sat Sep 4 16:56:28 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19018 * config/c4x/c4x.md (rptb_init): Renamed from *rptb_init.
19019 (doloop_begin): Simplify pattern and use emit_jump_insn.
19020 (doloop_end): Simplify pattern, switch operand order,
19021 and use emit_jump_insn.
19023 Fri Sep 3 19:02:38 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
19025 * function.h (struct function): Add new element LANGUAGE.
19026 (save_lang_status): Declare new variable.
19027 (restore_lang_status): Likewise.
19028 * function.c (save_lang_status): Define.
19029 (restore_lang_status): Likewise.
19030 (push_function_context_to): Call language-specific save function.
19031 (pop_function_context_from): Call language-specific restore function.
19033 Fri Sep 3 01:16:18 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
19035 * i386.md (movsf_1): Check REG_P before use of REGNO.
19036 (movdf_1): Likewise.
19037 (movxf_1): Likewise.
19038 (extendsfdf2): Likewise.
19039 (extendsfxf2): Likewise.
19040 (extenddfxf2): Likewise.
19042 Sat Sep 4 11:37:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19044 * config/c4x/c4x.c (c4x_emit_move_sequence): Do not force large
19045 constants into memory.
19046 (c4x_shiftable_constant): New function.
19047 * config/c4x/c4x.c (LEGITIMATE_CONSTANT_P): Allow any CONST_INT.
19048 (c4x_shiftable_constant): Declare.
19049 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant,
19050 ashlqi3_noclobber): Add new patterns and associated splitters.
19052 Fri Sep 3 16:22:17 1999 Richard Henderson <rth@cygnus.com>
19054 * dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
19055 * dwarf2out.c (dwarf2out_frame_init): Likewise.
19056 * final.c (shorten_branches): Likewise.
19057 * global.c (global_alloc): Likewise.
19058 * haifa-sched.c (build_control_flow): Likewise.
19059 * stmt.c (check_for_full_enumeration_handling): Likewise.
19060 (estimate_case_costs): Likewise.
19062 Fri Sep 3 15:49:56 1999 Mark Mitchell <mark@codesourcery.com>
19064 * rtl.h (RTL_CHECKC2): Fix typo in last change.
19066 Fri Sep 3 15:13:34 1999 Richard Henderson <rth@cygnus.com>
19068 * flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
19069 (recompute_reg_usage): Likewise.
19070 * rtlanal.c (find_regno_fusage): Likewise.
19072 * rtl.c (rtl_check_failed_code1): New function.
19073 (rtl_check_failed_code2): New.
19074 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
19075 (RTL_CHECKC1, RTL_CHECKC2): New.
19076 (XC*): New accessor macros.
19077 (NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
19078 (ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
19079 (CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
19080 (ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
19081 (TRAP_*, RANGE_INFO_*): Likewise.
19083 Fri Sep 3 15:10:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19085 * Makefile.in (tlink.o): Don't depend on toplev.h.
19087 * collect2.c (c_file, o_file, export_file, import_file, ldout,
19088 output_file, nm_file_name, ldd_file_name, strip_file_name,
19089 c_file_name, prefix_list, libexts, is_ctor_dtor, find_a_file,
19090 add_prefix, prefix_from_env, prefix_from_string, do_wait,
19091 fork_execute, maybe_unlink, add_to_list,
19092 extract_init_priority, write_list, dump_list,
19093 dump_prefix_list, write_list_with_asm, write_c_file,
19094 write_c_file_stat, write_c_file_glob, scan_prog_file,
19095 scan_libraries, is_in_list, resolve_lib_name, use_import_list,
19096 ignore_library, extract_string, notice, dump_file, target_machine,
19097 collect_wait, collect_execute, libname, locatelib, aix_std_libs,
19098 read_file, print_load_command): Constify a char*.
19099 (fdopen, error, fatal, fatal_perror): Don't prototype.
19100 (my_strerror): Remove. All callers use xstrerror instead.
19101 (xcalloc, xmalloc, xrealloc, xstrdup, putenv): Remove definitions.
19102 (main): Add prototype. Constify lots of char* ptrs. Change calls
19103 to xcalloc/strcpy/strcat/... to one call to concat.
19104 (main, scan_prog_file, scan_libraries): Use an intermediate
19105 `const char **' to build an argv array.
19106 (mapfile, libselect, libcompare, locatelib): Add prototypes.
19108 * collect2.h (collect_execute, collect_wait, dump_file,
19109 file_exists): Constify a char*.
19110 (ldout, c_file_name, temporary_obstack, permanent_obstack,
19111 temporary_firstobj, vflag, debug): Add extern declarations.
19112 (fancy_abort, error, notice, fatal, fatal_perror): Add prototypes.
19114 * tlink.c: Don't include toplev.h.
19115 (vflag, debug, ldout, c_file_name, temporary_obstack,
19116 permanent_obstack, temporary_firstobj): Don't declare.
19117 (tlink_execute, frob_extension, symbol_hash_lookup,
19118 file_hash_lookup, demangled_hash_lookup, tlink_init, freadsym,
19119 recompile_files, read_repo_files, demangle_new_symbols,
19120 scan_linker_output): Constify a char*.
19121 (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc,
19122 do_tlink): Mark parameters with ATTRIBUTE_UNUSED.
19124 Fri Sep 3 18:09:24 1999 Andrew Haley <aph@cygnus.com>
19126 * config/m68k/m68kelf.h: Set USE_GAS; this makes gcc generate jbsr
19127 (relative) rather than jsr (absolute) subroutine call insns.
19128 * config/m68k/m68k-coff.h: Ditto.
19130 Fri Sep 3 17:24:31 1999 Richard Earnshaw <rearnsha@arm.com>
19132 * arm.c (note_invalid_constants): No need to ignore ASMs, we can
19133 now rework these too.
19134 (arm_reorg): If an insn can't reach the end of the current pool,
19135 ensure that we emit that pool before the insn.
19137 Fri Sep 3 09:14:32 1999 Marc Espie <espie@tetto.liafa.jussieu.fr>
19139 * tlink.c (scan_linker_output): Skip the initial underscore in
19140 a mangled name if appropriate.
19142 Fri Sep 3 01:28:33 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19144 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
19145 objc_tree_code_name, synth_id_with_class_suffix, warn_with_method,
19146 error_with_ivar, gen_declarator, create_builtin_decl,
19147 my_build_string, generate_descriptor_table, generate_ivars_list,
19148 generate_dispatch_table, check_protocols, TAG_GETCLASS,
19149 TAG_GETMETACLASS, TAG_MSGSEND, TAG_MSGSENDSUPER, TAG_EXECCLASS,
19150 dump_base_name, lang_decode_option, build_encode_expr,
19151 start_class, finish_class, encode_pointer, really_start_method,
19152 gen_declaration, dump_interface, handle_class_ref, handle_impent):
19154 (objc_demangle, objc_printable_name, generate_struct_by_value_array):
19155 Add static prototypes.
19156 (build_objc_string_decl, build_selector_reference_decl,
19157 encode_bitfield, build_class_reference_decl): Remove unused
19158 parameter, all callers changed.
19159 (maybe_objc_method_name): Mark with ATTRIBUTE_UNUSED.
19160 (objc_printable_name): Likewise. Change second parameter to type int.
19161 (init_objc): Use memcpy, not bcopy, to avoid casts.
19163 Thu Sep 2 21:49:52 1999 Richard Henderson <rth@cygnus.com>
19165 * reload1.c (eliminate_regs_in_insn): Avoid eliminating the
19166 reg notes on a deleted insn.
19167 * gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.
19169 Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com)
19171 * i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
19173 Thu Sep 2 22:00:08 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
19175 * stmt.c (expand_asm_operands): Fix index into inout_mode when
19178 Thu Sep 2 13:00:48 1999 Richard Henderson <rth@cygnus.com>
19180 * stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
19181 * tm.texi (MD_ASM_CLOBBERS): Document it.
19183 Thu Sep 2 10:22:40 1999 Richard Henderson <rth@cygnus.com>
19185 * dwarf2out.c (dwarf2out_line): Constify `lastfile'.
19186 * except.c (expand_rethrow): Remove unused variable.
19187 * expr.c (do_jump_by_parts_greater_rtx): Likewise.
19188 * flow.c (replace_insns): Likewise.
19189 (create_edge_list, verify_edge_list): Likewise.
19190 * gcse.c (cprop_cc0_jump): Protect declaration with HAVE_cc0.
19192 * genemit.c (gen_expand): Only emit `operands[N]' decl if there
19193 is special code to run.
19194 (main): Don't define operands to emit_operand.
19195 * genrecog.c (main): Don't emit an empty peephole2_insn function.
19197 * rtl.h (NOTE_BASIC_BLOCK): Use X0BBDEF.
19199 * alpha/alpha.h (normal_memory_operand): Declare.
19200 (reg_no_subreg_operand): Declare.
19201 * alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use HOST_WIDE_INT_PRINT_DEC.
19203 Thu Sep 2 10:19:20 1999 Richard Henderson <rth@cygnus.com>
19205 * c-parse.in (compstmt_primary_start): New, broken out of first
19206 part of compstmt handling in primary.
19207 (primary): Use it. Add an error clause.
19208 (compstmt_nostart): Renamed from compstmt; remove all
19209 initial invocations of compstmt_start.
19212 Thu Sep 2 01:35:50 1999 Marc Espie <espie@cvs.openbsd.org>
19214 * protoize.c (gen_aux_info_file): Let pexecute call choose_temp_base if
19217 Thu Sep 2 00:43:59 1999 Finn Hakansson <finn@axis.com>
19219 * combine.c (simplify_shift_const): Remove extra semicolon.
19220 * dwarf2out.c (remove_AT): Likewise.
19221 * expmed.c (expand_mult): Likewise.
19222 * gcov.c (create_program_flow_graph): Likewise.
19223 * reorg.c (mostly_true_jump): Likewise.
19225 Thu Sep 2 00:06:43 1999 Jeffrey A Law (law@cygnus.com)
19227 * fold-const.c (fold_range_test): Do not try to fold the range
19228 test if the rhs or lhs has side effects.
19230 * combine.c (simplify_rtx): Recognize another case of a synthesized
19233 * varasm.c (mark_constant_pool): When marking indirect references,
19234 only look at SYMBOL_REFs.
19236 * except.c (expand_fixup_region_end): Do not peek at
19237 INSN_UID (node->entry->outer_context) for flag_new_exceptions.
19239 Thu Sep 2 13:52:53 1999 Geoffrey Keating <geoffk@cygnus.com>
19241 * flags.h: New variables align_loops, align_loops_log,
19242 align_jumps, align_jumps_log, align_labels, align_labels_log,
19243 align_functions, align_functions_log.
19244 * toplev.c: Define them.
19245 (f_options): Handle -falign-* when they have no argument.
19246 (main): Add logic to set variables for -falign-functions,
19247 -falign-jumps, -falign-labels, -falign-loops.
19248 Make it -fsched-verbose=<n> and -finline-limit=<n>.
19249 (display_help): Change help to match options.
19250 * final.c (LABEL_ALIGN): Default to align_labels_log.
19251 (LABEL_ALIGN_MAX_SKIP): Default to align_labels-1.
19252 (LOOP_ALIGN): Default to align_loops_log.
19253 (LOOP_ALIGN_MAX_SKIP): Default to align_loops-1.
19254 (LABEL_ALIGN_AFTER_BARRIER): Default to align_jumps_log.
19255 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to align_jumps-1.
19256 * varasm.c (assemble_start_function): Handle align_functions.
19258 * config/sparc/sparc.h: Don't declare sparc_align_*.
19259 Don't provide LABEL_ALIGN_AFTER_BARRIER or LOOP_ALIGN.
19260 (DEFAULT_SPARC_ALIGN_FUNCS): Delete; take functionality into
19262 (FUNCTION_BOUNDARY): Fix incorrect use---it's not just a request,
19264 * config/sparc/sparc.c: Delete sparc_align_loops,
19265 sparc_align_jumps, sparc_align_funcs and the corresponding string
19267 (sparc_override_options): Default align_functions on ultrasparc.
19268 Delete -malign-* handling.
19270 * config/mips/mips.c (override_options): On 64-bit targets,
19271 try to align code to 64-bit boundaries.
19272 (print_operand): New substitution, %~,
19273 which aligns labels to align_labels_log.
19274 * config/mips/mips.md (div_trap_normal): Use %~.
19275 (div_trap_mips16): Likewise.
19277 (absdi2): Likewise.
19278 (ffssi2): Likewise.
19279 (ffsdi2): Likewise.
19280 (ashldi3_internal): Likewise.
19281 (ashrdi3_internal): Likewise.
19282 (lshrdi3_internal): Likewise.
19283 (casesi_internal): Likewise.
19285 Wed Sep 1 21:13:48 1999 Richard Henderson <rth@cygnus.com>
19287 Merge new ia32 backend from the branch!
19289 * i386.h, i386.c, i386.md, reg-stack.c, i386/unix.h: Many changes.
19290 See ChangeLog.P2 on new_ia32_branch for details.
19292 * rtl.h (stack_regs_mentioned_p): Delete prototype.
19293 * i386/cygwin.h (SUBTARGET_PROLOGUE): No more do_rtl.
19294 * i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
19295 * i386/gas.h (ASM_FILE_START): Define.
19296 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Update
19297 for name change of ix86_valid_decl_attribute_p.
19298 (i386_pe_valid_type_attribute_p): Similarly.
19300 Wed Sep 1 18:21:23 1999 Richard Henderson <rth@cygnus.com>
19302 * emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
19303 to step through CC modes.
19305 Wed Sep 1 20:18:06 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
19307 * regmove.c (fixup_match_1): Don't move INSN in front of P if
19308 it would end up in the shadow of a live flags regsiter.
19310 Wed Sep 1 11:32:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19312 * reload1.c: Fix many indentation problems.
19313 * reload.c: Likewise.
19315 Tue Aug 31 22:08:03 1999 Marc Espie <espie@cvs.openbsd.org>
19317 * alias.c (non_local_reference_p): Constify fmt.
19319 Tue Aug 31 23:19:35 1999 Michael Meissner <meissner@cygnus.com>
19321 * config/i386/xm-cygwin.h (HAVE_DOS_BASED_FILE_SYSTEM): Define.
19323 Tue Aug 31 16:44:52 1999 Jeffrey A Law (law@cygnus.com)
19325 * cse.c (delete_trivially_dead_insns): Do not delete stores to
19326 the internal_arg_pointer.
19328 Tue Aug 31 13:35:42 1999 Richard Henderson <rth@cygnus.com>
19330 Merge peephole2 from new_ia32_branch:
19331 * Makefile.in (STAGESTUFF): Add *.peephole2.
19332 (mostlyclean): Likewise.
19333 (recog.o): Depend on resource.h.
19335 * final.c (peephole): Conditionalize decl on HAVE_peephole.
19336 (final_scan_insn): Likewise for the invocation of peephole.
19337 * genconfig.c (main): Look for peephole and peephole2 patterns.
19338 Emit HAVE_peephole* accordingly.
19339 * genpeep.c (main): Conditionalize entire output on HAVE_peephole.
19340 * flags.h (flag_peephole2): Declare.
19341 * toplev.c: New pass peephole2. New flag -fpeephole2.
19343 * genattrtab.c (main): Count DEFINE_PEEPHOLE2.
19344 * gencodes.c (main): Likewise.
19345 * genextract.c (main): Likewise.
19346 * genoutput.c (main): Likewise.
19347 * genemit.c (max_operand_1): Look for the max scratch operand.
19348 (gen_rtx_scratch): New.
19349 (gen_exp): Use it, and pass on new arg subroutine_type.
19350 (gen_expand): Take max scratch into account.
19351 (gen_split): Emit peephole2 functions.
19352 (output_peephole2_scratch): New.
19353 (main): Include hard-reg-set.h and resource.h. Handle peephole2.
19354 * genrecog.c (routine_type): Add PEEPHOLE2.
19356 (make_insn_sequence): Match outer parallel for peep2. Discard
19357 top level scratches and dups.
19358 (add_to_sequence): New args insn_type and top. Update all callers.
19359 Handle toplevel peep2 matching insns.
19360 (write_subroutine): Handle peep2.
19361 (write_tree_1): Likewise.
19362 (write_tree): Likewise.
19364 (change_state): New arg afterward. Update all callers.
19365 Handle matching separate insns.
19366 * recog.c (recog_next_insn): New.
19367 (peephole2_optimize): New.
19368 * rtl.def (DEFINE_PEEPHOLE2): New.
19369 * resource.c (find_free_register): New argument last_insn. Use it
19370 to find a register available through the entire span.
19371 * resource.h (find_free_register): Update prototype.
19373 Tue Aug 31 11:51:06 1999 Jim Kingdon <http://developer.redhat.com>
19375 * i386.c (output_strlen_unroll): Don't write xops[7]
19376 label if it wasn't set.
19378 1999-08-31 12:44 -0700 Zack Weinberg <zack@bitmover.com>
19380 * cpplib.c (struct directive): Const-ify name pointer and
19381 function pointer prototype.
19382 (validate_else, do_define, do_line, do_include, do_undef,
19383 do_error, do_pragma, do_ident, do_if, do_xifdef, do_else,
19384 do_elif, do_endif, do_sccs, do_assert, do_unassert,
19385 do_warning): Const-ify second arg.
19386 (directive_table): Mark const. Reorder entries by frequency
19387 of usage, record statistics.
19389 1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
19391 * rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
19392 bounds- check RTL accesses if --enable-checking.
19393 (RTVEC_ELT): Bounds check if --enable-checking.
19394 (XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
19395 XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
19396 (XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
19398 (X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
19399 X0BBDEF, X0ADVFLAGS): New macros for accessing '0' slots of RTXes.
19401 (ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
19402 (NOTE_SOURCE_FILE): Use X0STR.
19403 (NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
19404 MEM_ALIAS_SET): Use X0INT.
19405 (NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
19406 JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
19408 * real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
19409 * rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
19410 (rtl_check_failed_bounds, rtl_check_failed_type1,
19411 rtl_check_failed_type2, rtvec_check_failed_bounds): New
19413 (fancy_abort): Fix comment.
19415 * cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
19416 (cse_insn): Decrement LABEL_NUSES for jump target before
19417 deleting jump insn.
19418 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
19419 * final.c (alter_subreg): Compute regno before changing x to
19420 REG; set REGNO(x) after changing it.
19421 * flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
19422 notes containing CONST_INTs.
19423 (delete_eh_regions): Use NOTE_EH_HANDLER.
19424 * function.c (put_reg_into_stack): Make reg a MEM before
19426 (fixup_var_refs_insns): Save REG_NOTES (insn) in case we
19428 (gen_mem_addressof): Make reg a MEM before initializing it.
19429 * integrate.c (copy_rtx_and_substitute): Copy '0' slots with
19431 * local-alloc.c (update_equiv_regs): Zap REG_NOTES before
19432 deleting an insn, not after.
19433 (block_alloc): Only look at PATTERN(insn) if we have to, and
19434 only if it's format class 'i'.
19435 * loop.c (check_dbra_loop): Check bl->biv->add_val is a
19436 CONST_INT before using its INTVAL.
19437 * print-rtl.c (print_rtx): Use X0STR.
19438 * regmove.c (fixup_match_1): Don't look at PATTERN of
19439 non-class-'i' insn chain elements.
19440 * reload.c (loc_mentioned_in_p): Take address of
19441 in->fld[1].rtx directly.
19442 * reload1.c (reload): Change reg to a MEM before initializing
19444 * varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
19446 * config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
19448 Fri Aug 20 13:43:41 1999 Andrew Haley <aph@cygnus.com>
19450 * config/mips/mips.c (machine_dependent_reorg): Force a
19451 barrier to output the local constant pool if a barrier hasn't
19452 been found at a natural point in the instruction stream.
19454 Mon Aug 30 22:04:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19456 * c-parse.in (language_string): Constify.
19458 * dwarf2out.c (language_string): Remove declaration.
19460 * dwarfout.c (language_string): Likewise.
19462 * toplev.c (language_string, init_parse, finish_parse): Likewise.
19464 * tree.h (language_string, init_parse, finish_parse): Declare.
19466 * i386/sun386.h (language_string): Remove declaration.
19468 * mips.h (language_string): Likewise.
19470 * nextstep.h (language_string): Likewise.
19472 * nextstep21.h (language_string): Likewise.
19474 * rs6000.c (language_string): Likewise.
19476 Mon Aug 30 20:56:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19478 * Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
19479 (getpwd.o): Remove target.
19481 * getpwd.c: Delete file. Its in libiberty now.
19483 * dbxout.c (getpwd): Don't prototype.
19484 * dwarf2out.c (getpwd): Likewise
19485 * dwarfout.c (getpwd): Likewise
19486 * final.c (getpwd): Likewise.
19487 * protoize.c (getpwd): Likewise.
19489 Mon Aug 30 20:21:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19491 * cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
19493 Mon Aug 30 16:07:49 1999 Richard Henderson <rth@cygnus.com>
19495 * flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
19496 mark_set_resources.
19498 Mon Aug 30 12:23:53 1999 Jim Wilson <wilson@cygnus.com>
19500 * fixinc/Makefile.in (subdir): New.
19501 (fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
19504 Mon Aug 30 01:02:09 1999 Jeffrey A Law (law@cygnus.com)
19506 * emit-rtl.c (copy_rtx_if_shared): A MEM which references
19507 virtual_stack_vars_rtx or virtual_incoming_args_rtx can not
19510 * invoke.texi: Fix typo.
19512 * dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers
19513 changed. Handle autoincrement addressing modes.
19515 * integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer
19516 just like we would the virtual incoming args register when
19519 Sun Aug 29 23:17:54 1999 David Edelsohn <edelsohn@gnu.org>
19521 * rs6000.h (ASM_FILE_START): Specify complete filename, including
19522 path, in .file directive.
19524 Sun Aug 29 05:06:43 1999 Russ Allbery <rra@stanford.edu>
19526 * gcc.texi (External Bugs): Remove obsolete note about Perl on
19529 1999-08-29 08:38 -0700 Zack Weinberg <zack@bitmover.com>
19531 * stdbool.h: Make the typedef name _Bool, with bool a #defined
19534 Sun Aug 29 09:36:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19536 * tree.c (tree_code_name): Constify a char*.
19538 * tree.h (tree_code_name, decl_printable_name): Likewise.
19540 * function.h (struct function): Likewise.
19542 * toplev.c (decl_name, decl_printable_name): Likewise.
19544 * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise.
19546 * objc/objc-act.c (decl_printable_name): Remove redundant prototype.
19547 (init_objc): Remove function pointer cast.
19549 Sun Aug 29 05:01:17 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
19551 * pa.md (interspace_jump): New pattern.
19552 (builtin_longjmp): New expander.
19554 1999-08-29 Bernd Schmidt <bernds@cygnus.co.uk>
19556 * fp-bit.c (add, sub, multiply, divide, compare, _eq_f2, _ne_f2,
19557 _gt_f2, _ge_f2, _lt_f2, _le_f2, float_to_si, float_to_usi, negate,
19558 sf_to_df, df_to_sf): Fix potential problem with alias analysis.
19560 Sun Aug 29 04:30:52 1999 John Wehle (john@feith.com)
19562 * jump.c (delete_prior_computation): Also check calls
19563 to constant functions. Don't bother checking for a
19564 REG_UNUSED note before adding it.
19565 (delete_computation): Handle multi-word hard registers
19566 when synthesizing missing REG_DEAD notes for a register
19567 which is both set and used by an insn.
19569 1999-08-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19571 * loop.c (this_loop_info): New variable.
19572 (loop_has_call, loop_has_volatile, loop_has_tablejump,
19573 loop_continue, loops_enclosed): Replace with fields in this_loop_info.
19575 (prescan_loop, strength_reduce): New argument loop_info. All callers
19577 (scan_loop): New variable loop_info, initialise to address of
19579 (prescan_loop): Set loop_info->vtop if find NOTE_INSN_LOOP_VTOP.
19580 Delete variable loop_has_multiple_exit targets and replace with
19581 field in this_loop_info.
19582 (find_and_verify_loops): Rename this_loop to this_loop_num.
19583 (strength_reduce): Delete loop_iteration_info. Replace variable
19584 loop_info with function argument of same name.
19585 (insert_bct): Rework test for loop being completely unrolled.
19587 * loop.h (struct loop_info): New fields num, loops_enclosed,
19588 has_call, has_volatile, has_tablejump, has_multiple_exit_targets,
19589 has_indirect_jump, and cont. Redefine use of unroll_number.
19590 (loop_unroll_number): Delete.
19592 * unroll.c (unroll_loop): Store loop unroll count in unroll_number
19593 field of loop_info.
19594 (loop_iterations): Delete variable vtop and instead use
19595 loop_info->vtop computed in prescan_loop.
19597 Sun Aug 29 03:27:23 1999 Scott Weikart <scott@igc.apc.org>
19599 * fix-header.c (main): Do not pass a null pointer to strcmp.
19601 Sun Aug 29 03:18:48 1999 William Bader (william@nscs.fast.net)
19603 * configure.in (i[34567]86-*-sco3.2v4*): Target does not truncate
19605 * configure: Rebuilt.
19607 Sat Aug 28 19:36:05 1999 Jeffrey A Law (law@cygnus.com)
19609 * jump.c (jump_optimize_1): Do not delete assignments to
19610 internal_arg_pointer.
19611 * cse.c (delete_trivially_dead_insns): Always consider a set of
19612 the internal_arg_pointer live.
19614 Sat Aug 28 16:24:31 1999 Richard Henderson <rth@cygnus.com>
19616 * flow.c (flow_delete_insn_chain): Rename from delete_insn_chain.
19617 (update_life_info) [REG_WAS_0]: Search the original insns rather
19618 than the new insns for the note. Fix typos finding note_dest.
19619 If no dest found, discard the note rather than abort.
19620 [REG_NOALIAS]: Handle as REG_NO_CONFLICT.
19621 (replace_insns): Remove the old insn list after update_life_info
19624 Sat Aug 28 16:20:12 1999 Richard Henderson <rth@cygnus.com>
19626 * haifa-sched.c (sched_analyze): Clear LOG_LINKS before calling
19627 sched_analyze_insn.
19628 (sched_analyze_1): Let add_dependence care for not adding dups.
19629 (sched_analyze_2): Likewise.
19630 (add_branch_dependences): Likewise.
19632 Sat Aug 28 15:58:16 1999 Mumit Khan <khan@xraylith.wisc.edu>
19634 * i386/winnt.c (export_list): New type.
19635 (exports_head): Rename to
19636 (export_head): this.
19637 (i386_pe_record_exported_symbol): Add is_data flag.
19638 (i386_pe_asm_file_end): Emit directive for exported variables.
19639 * i386/cygwin.h (i386_pe_record_exported_symbol): Update
19641 * i386/cygwin.h (ASM_OUTPUT_COMMON): Specify symbol type.
19642 (ASM_DECLARE_OBJECT_NAME): Likewise.
19643 (ASM_DECLARE_FUNCTION_NAME): Likewise.
19644 * i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19646 Fri Aug 27 15:35:24 1999 Jeffrey A Law (law@cygnus.com)
19648 * cse.c (fold_rtx): Work around bug in Sun V5.0 compilers.
19650 * pa.c (emit_move_sequence): Do not stop on SUBREG_WORD of an
19653 Fri Aug 27 14:01:19 1999 Marc Espie <espie@cvs.openbsd.org>
19655 * config/openbsd.h: Define SET_ASM_OP.
19656 * tm.texi: cross-reference SET_ASM_OP in the index.
19658 1999-08-27 13:27 -0700 Zack Weinberg <zack@bitmover.com>
19660 * rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format
19661 for a CONST_DOUBLE, at compile time. Initialize rtx_length
19662 and class_narrowest_mode at compile time. Kill init_rtl.
19663 Mark rtx_length, mode_class, mode_size, mode_unit_size,
19664 mode_wider_mode, mode_mask_array, class_narrowest_mode, and
19665 rtx_format as const. Kill all references to EXTRA_CC_MODES or
19667 * rtl.def (CONST_DOUBLE): Use CONST_DOUBLE_FORMAT macro for
19669 * rtl.h: Declare rtx_length and rtx_format as const.
19670 * machmode.def: Define CC(). Use CC() to define CCmode. If
19671 EXTRA_CC_MODES is defined, expand it here.
19672 * machmode.h: Declare mode_class, mode_size, mode_unit_size,
19673 mode_wider_mode, mode_mask_array, and class_narrowest_mode as
19674 const. Kill all references to EXTRA_CC_MODES.
19676 * toplev.c: Don't prototype or call init_rtl.
19677 * optabs.c: Don't call init_mov_optab.
19678 * genemit.c: Don't generate init_mov_optab. Don't call
19680 * gengenrtl.c: Duplicate calculation of CONST_DOUBLE_FORMAT
19682 * genattr.c, genattrtab.c, gencodes.c, genconfig.c,
19683 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
19684 genrecog.c: Don't call init_rtl.
19686 * arc.h, arm.h, c4x.h, i386.h, i960.h, m88k.h, pa.h, pdp11.h,
19687 rs6000.h, sparc.h: Don't define EXTRA_CC_NAMES. Use CC() in
19688 definition of EXTRA_CC_MODES.
19690 * md.texi: Kill ref to EXTRA_CC_NAMES.
19691 * tm.texi: Document new way to define EXTRA_CC_MODES.
19693 * genrecog.c: Do not look up the name of a define_split.
19694 (Unrelated bugfix.)
19696 Fri Aug 27 17:03:42 1999 Nick Clifton <nickc@cygnus.com>
19698 * config/v850/v850.md: Fix typo introduced by previous delta.
19700 Fri Aug 27 09:48:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19702 * gcc.c (fatal): Make definition static to match prototype.
19704 Fri Aug 27 10:33:35 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19706 * combine.c (get_last_value): Don't look for earlier sets if the last
19707 known set is somewhere in between the insns being combined.
19709 Fri Aug 27 10:03:12 BST 1999 Nathan Sidwell <nathan@acm.org>
19711 * configure.in: Don't use shell ! to negate exit codes
19712 * configure: Regenerate
19714 Fri Aug 27 09:36:17 1999 Andreas Schwab <schwab@suse.de>
19716 * function.c (assign_stack_temp_for_type): Fix change of Mar 5 for
19717 the fact that ALIGN is measured in bits, not bytes.
19719 1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
19721 * errors.c: New file; defines functions error, warning, and
19722 fatal, variables have_error and progname.
19723 * errors.h: New file; prototypes and decls for stuff in errors.c.
19725 * Makefile: Add rules to build errors.o and
19726 $(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
19727 genopinit, genrecog, genextract, genpeep, genattr, and
19728 genoutput with errors.o. Add errors.h to deps of genconfig.o,
19729 gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
19730 genpeep.o, genattr.o, and genoutput.o.
19732 * genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
19733 genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
19734 define or prototype fatal. Set progname at beginning of main.
19735 * genoutput.c: Likewise, and don't define or prototype error
19738 * c-typeck.c (c_expand_start_case): Return immediately if exp
19740 * fold-const.c (operand_equal_p): Return immediately if arg1
19741 or arg0 are ERROR_MARKs.
19742 * stor-layout.c (layout_type [case RECORD_TYPE]): Ignore
19743 fields of type ERROR_MARK when calculating if the record can
19746 Fri Aug 27 01:03:48 1999 Jim Kingdon <http://developer.redhat.com>
19747 with much help from Jeffrey A Law and Richard Henderson
19749 * i386.md: In the 6 insns which call output_fix_trunc,
19750 earlyclobber operands[0].
19752 Fri Aug 27 01:01:51 1999 Philip Blundell <pb@nexus.co.uk>
19754 * jump.c (duplicate_loop_exit_test): Call reg_scan_update after
19755 creating new registers.
19757 1999-08-26 23:09 -0700 Zack Weinberg <zack@bitmover.com>
19759 * i386.h: Declare ix86_cpu_string, ix86_arch_string,
19760 i386_reg_alloc_order, i386_regparm_string,
19761 i386_align_loops_string, i386_align_jumps_string,
19762 i386_align_funcs_string, i386_preferred_stack_boundary_string,
19763 and i386_branch_cost_string as type "const char *".
19764 * i386.c: Define all above strings as type "const char *".
19766 Thu Aug 26 20:36:30 1999 Jim Wilson <wilson@cygnus.com>
19768 * dwarf2out.c (output_aranges): Check DWARF_OFFSET_SIZE not PTR_SIZE
19769 when emitting alignment padding. Emit padding byte of 0 instead of 4.
19771 Thu Aug 26 18:11:20 1999 Mark Mitchell <mark@codesourcery.com>
19773 * tree.c (array_type_nelts): Don't create RTL_EXPRs from
19774 SAVE_EXPRs unless the SAVE_EXPRs have already been expanded.
19776 Thu Aug 26 19:33:23 1999 Jim Wilson <wilson@cygnus.com>
19778 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Add default definition.
19779 (debug_dwarf): Add DWARF2_ASM_LINE_DEBUG_INFO support.
19780 (dwarf2out_line, dwarf2out_finish): Likewise.
19781 * tm.texi (DWARF2_ASM_LINE_DEBUG_INFO): Add documetation.
19783 Thu Aug 26 16:10:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
19785 * tree.c (lang_unsave_expr_now) : Correct return type.
19786 * tree.h (lang_unsave_expr_now) : Same.
19788 Thu Aug 26 13:12:29 1999 Jeffrey A Law (law@cygnus.com)
19790 * pa.c (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
19791 instead of duplicating code.
19793 Thu Aug 26 18:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19795 * gcse.c (hash_scan_insn): Don't scan obvious no-ops.
19797 1999-08-26 09:42 -0700 Zack Weinberg <zack@bitmover.com>
19799 * tree.h: fancy_abort always takes three args.
19800 * resource.c: Move include of system.h before toplev.h.
19802 Thu Aug 26 09:46:16 1999 Nick Clifton <nickc@cygnus.com>
19804 * dwarf2out.c (mem_loc_descriptor): Accept LABEL_REFs as well
19807 1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
19809 * system.h: Don't redefine abort or trim_filename.
19810 * rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
19811 or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
19812 whether or not __FUNCTION__ is available.
19813 * tree.h: Duplicate rtl.h's definition of abort, for files
19814 that don't include rtl.h. Delete all code to perform type
19815 checking with a compiler other than GCC.
19816 * varray.h: Delete all code to perform type checking with a
19817 compiler other than GCC. Make VARRAY_CHECK() always evaluate
19818 its arguments exactly once, using a statement expression.
19819 Adjust the VARRAY_<type> accessor macros to match.
19820 * toplev.h (fatal_insn, fatal_insn_not_found): Kill.
19821 (_fatal_insn, _fatal_insn_not_found): New fns, take info on
19822 caller's location. Define fatal_insn and fatal_insn_not_found
19823 as macros that use _fatal_insn and _fatal_insn_not_found.
19824 (fancy_abort, trim_filename): Kill prototypes.
19826 * rtl.c (trim_filename): Move here from toplev.c.
19827 (fancy_abort): New function.
19828 (DIR_SEPARATOR): Provide default definition.
19829 * tree.c (tree_check_failed, tree_class_check_failed): Go
19830 through fancy_abort.
19831 (tree_check, tree_class_check, cst_or_constructor_check,
19832 expr_check): Delete.
19833 * varray.c (varray_check_failed): New function.
19834 * toplev.c (fatal_insn, fatal_insn_not_found): Replace with
19835 _fatal_insn and _fatal_insn_not_found. Go through
19837 (trim_filename, fancy_abort): Delete.
19839 * builtins.c (expand_builtin_args_info): Report ICE with abort.
19840 * except.c (start_catch_handler): Report ICE with error/abort
19842 * final.c (output_operand_lossage): Likewise.
19843 * flow.c (verify_flow_info): Likewise.
19845 * gcc.c: Prototype fatal.
19846 * gengenrtl.c: Undef abort after including rtl.h not system.h.
19847 * genattr.c, genattrtab.c, genemit.c, genextract.c,
19848 genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
19849 Don't define fancy_abort.
19851 Wed Aug 25 17:56:59 1999 Richard Henderson <rth@cygnus.com>
19853 * optabs.c (emit_cmp_and_jump_insns): Be more thorough in
19856 Wed Aug 25 15:35:55 1999 Richard Henderson <rth@cygnus.com>
19858 * m88k.h (VERSION_INFO2): Kill.
19859 (VERSION_STRING): Kill.
19861 (VERSION_INFO1): Tidy.
19862 (TARGET_VERSION): Update.
19863 * m88k/dgux.h (VERSION_INFO2): Kill.
19864 (ASM_FIRST_LINE): Adjust for death of VERSION_STRING.
19865 * m88k/luna.h (VERSION_INFO1): Tidy.
19866 * m88k/sysv4.h (VERSION_INFO1): Likewise.
19867 * m88k.c (out_rcs_id, tm_rcs_id): Kill.
19868 (output_file_start): Adjust for death of VERSION_STRING.
19870 1999-08-25 13:51 -0700 Jim Meyering <meyering@ascend.com>
19872 * cpplib.c (detect_if_not_defined): New function.
19873 (do_if): Use it to detect potential once-only headers.
19875 Wed Aug 25 14:00:18 1999 Jason Merrill <jason@yorick.cygnus.com>
19877 * c-common.c (combine_strings): Always set TREE_CONSTANT.
19879 Wed Aug 25 15:27:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
19881 * combine.c (nonzero_bits) : Allow single-ly set registers to be
19882 anywere in the function only if they are pseudos and set before
19883 being used (not live at the start of the function).
19884 (num_sign_bit_copies) : Same.
19885 (get_last_value_validate) : Same.
19886 (get_last_value) : Same.
19888 Wed Aug 25 11:13:29 1999 Richard Henderson <rth@cygnus.com>
19890 * loop.c (express_from): Try harder to unify (* c N) and (* c M)
19891 where N and M are constant and N is an integer multiple of M.
19893 Wed Aug 25 13:55:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
19895 * sbitmap.h (sbitmap_intersection_of_succs): Add prototype.
19896 (sbitmap_intersection_of_preds, sbitmap_union_of_succs,
19897 sbitmap_union_of_preds): Add prototypes.
19898 * sbitmap.c (sbitmap_intersection_of_succs): New function to compute
19899 the intersection of successors with the new flow graph structures.
19900 (sbitmap_intersection_of_preds): New function to compute the
19901 intersection of predecessors with the new flow graph structures.
19902 (sbitmap_union_of_succs): New function to compute the union of
19903 successors with the new flow graph structures.
19904 (sbitmap_union_of_preds): New function to compute the union of
19905 predecessors with the new flow graph structures.
19906 * gcse.c (compute_rdm, compute_available): Use new sbitmap routines.
19907 (expr_reaches_here_p): Use edge and basic_block structures instead
19908 of s_preds and s_succs.
19909 (compute_cprop_avinout): Use new sbitmap routines.
19910 (pre_expr_reaches_here_p): Use edge and basic_block structures instead
19911 of s_preds and s_succs.
19912 * flow.c (compute_flow_dominators): Compute dominators using
19913 edges and basic blocks instead of s_preds and s_succs.
19915 Wed Aug 25 13:41:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
19917 * lists.c (unused_insn_list, unused_expr_list): New file for
19918 maintaining various types of lists. New statics for maintaining a
19919 cache of available INSN_LIST and EXPR_LIST nodes.
19920 (free_list): Static function for freeing a list of INSN/EXPR nodes.
19921 (alloc_INSN_LIST): Function to get a free INSN_LIST node.
19922 (alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
19923 (init_EXPR_INSN_LIST_cache): Initialize the cache lists.
19924 (free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
19925 (free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
19926 (free_EXPR_LIST_node): Free an individual EXPR_LIST node.
19927 (free_INSN_LIST_node): Free an individual INSN_LIST node.
19928 * haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
19929 (free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
19930 (remove_dependence, free_pending_lists): Use new global routines.
19931 (flush_pending_lists, sched_analyze_insn): Use new global routines.
19932 (sched_analyze, compute_block_backward_dependences): Use new routines.
19933 (sched_analyze_1, sched_analyze_2): Use new routines.
19934 (schedule_insns): Use new global routines.
19935 * rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
19937 (free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
19938 (free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
19940 * toplev.c (rest_of_compilation): Initialize node cache.
19941 * Makefile.in (OBJS): Add lists.o to list of object files.
19942 (lists.o): Add dependancies.
19944 Wed Aug 25 17:31:56 1999 Nick Clifton <nickc@cygnus.com>
19946 * config/v850/v850.md: Fix compile time warning messages.
19947 * config/v850/v850.c: Fix compile time warning messages.
19948 * config/v850/v850.h: Fix compile time warning messages.
19950 Wed Aug 25 09:44:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19952 * genattr.c (gen_attr): Add prototype arguments for get_attr_*().
19953 Remove unused prototype for `init_lengths'.
19955 Wed Aug 25 09:32:31 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19957 * calls.c (emit_call_1): Mark parameter `stack_size' with
19959 (expand_call): Initialize variable `insn'.
19960 (emit_library_call): Likewise for variable `high_to_save'.
19961 (emit_library_call_value): Likewise.
19962 (store_one_arg): Likewise for variables `lower_bound' and
19965 * combine.c (try_combine): Likewise for variables `i2_code_number'
19966 and `other_code_number'.
19967 (find_split_point): Likewise for variables `pos', `unsignedp' and
19969 (simplify_if_then_else): Likewise for variables `op' and `c1'.
19970 (simplify_and_const_int): Remove unused variable `width'.
19971 (merge_outer_ops): Likewise.
19973 * cse.c (simplify_binary_operation): Cast an INTVAL() to `unsigned
19974 HOST_WIDE_INT' when comparing against one.
19975 (simplify_relational_operation): Likewise.
19976 (cse_insn): Initialize variables `src_eqv_volatile',
19977 `src_eqv_in_memory', `src_eqv_in_struct', `src_eqv_hash' and `sets'.
19979 * final.c (init_final): Constify parameter `filename'.
19980 (final_start_function): Mark parameter `optimize' with
19982 (profile_function): Likewise for parameters `first' and `optimize'.
19983 (output_source_line): Likewise for parameter `file'.
19985 * integrate.c (subst_constants): Cast a value to `size_t' when
19986 comparing against one.
19987 (mark_stores): Initialize variable `mode'. Cast a value to
19988 `size_t' when comparing against one.
19990 * integrate.h (MAYBE_EXTEND_CONST_EQUIV_VARRAY): Likewise.
19992 * loop.c (move_movables): Initialize variable `first'.
19993 (strength_reduce): Likewise for variable `increment'.
19994 (check_dbra_loop): Likewise for variable `comparison_val'. Cast a
19995 value to `size_t' when comparing against one.
19996 (load_mems): Initialize variable `end_label'.
19998 * output.h (init_final): Constify parameter.
20000 * reload.c (decompose): Initialize variable `base'.
20002 * reload1.c (reload): Likewise for variable `is_scalar'.
20003 (spill_hard_reg): Mark parameter `dumpfile' with ATTRIBUTE_UNUSED.
20004 (choose_reload_regs): Initialize variable `mode'.
20005 (emit_reload_insns): Likewise for variable `store_insn'.
20006 (reload_cse_noop_set_p): Mark parameter `insn' with
20008 (reload_combine): Initialize variable `set'.
20010 * unroll.c (unroll_loop): Likewise for variable `local_label'.
20011 (copy_loop_body): Cast a value to `size_t' when comparing against
20014 * varasm.c (assemble_variable): Initialize variable `size_tree'.
20015 (const_hash): Add an `else abort()' in an if-else-if-else sequence.
20016 (remove_from_pending_weak_list): Mark parameter `name' with
20019 Wed Aug 25 11:18:39 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20021 * toplev.c (rest_of_compilation): Use decl_printable_name when opening
20024 Wed Aug 25 10:57:12 1999 Nick Clifton <nickc@cygnus.com>
20026 * config/arm/telf.h (ASM_WEAKEN_LABEL): Define.
20027 (ASM_DECLARE_FUNCTION_NAME): Define.
20028 (TYPE_ASM_OP, SIZE_ASM_OP, TYPE_OPERAND_FORMAT,
20029 ASM_DECLARE_RESULT, ASM_DECLARE_OBJECT_NAME,
20030 ASM_FINISH_DECLARE_OBJECT, ASM_DECLARE_FUNCTION_SIZE): Define if
20031 not already defined.
20033 Wed Aug 25 01:36:11 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
20035 * calls.c (emit_call_1): Use call_pop/call_value_pop for all values
20036 of n_popped when call/call_value are not defined.
20038 Wed Aug 25 01:25:14 1999 Jeffrey A Law (law@cygnus.com)
20040 * tm.texi: GNU CC -> GCC conversion.
20041 (CC1_SPEC): Indicate it is used for all language front ends.
20043 Tue Aug 24 23:43:03 1999 Mark Mitchell <mark@codesourcery.com>
20045 * flow.c (delete_block): Spell NOTE_INSN_EH_REGION_BEG and
20046 NOTE_INSN_EH_REGION_END correctly.
20048 Tue Aug 24 23:26:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
20049 Jeff Law <law@cygnus.com>
20051 * loop.c (strength_reduce): Automatically unroll loops if the
20052 unrolled loop size is smaller than the rolled loop size.
20054 * loop.c (insert_bct): Replace use of sdiv_optab with asr_optab
20055 and delete comment that code should be rewritten.
20057 Tue Aug 24 22:56:35 1999 Jeffrey A Law (law@cygnus.com)
20059 * haifa-sched.c (find_rgns): Mark a block found during the DFS search
20062 * haifa-sched.c (get_visual_tbl_length): Fix off-by-one error.
20064 Tue Aug 24 22:41:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
20066 * fixinc/mkfixinc.sh: Don't fix uwin headers.
20067 * i386/uwin.h (MD_STARTFILE_PREFIX): Define.
20068 (LINK_SPEC): Add -u _main when building executables.
20069 (ASM_DECLARE_FUNCTION): Update from Cygwin.
20070 (ASM_FILE_END): Use the default for ix86-pe.
20071 * i386/xm-uwin.h (HAVE_BCOPY): Undefine.
20073 Tue Aug 24 20:49:47 1999 Art Haas <ahaas@neosoft.com>
20075 * final.c (output_addr_const): Handle case where ASM_OPEN_PAREN
20076 and ASM_CLOSE_PAREN are empty strings.
20078 Wed Aug 25 12:46:22 1999 Fred Fish <fnf@cygnus.com>
20079 Geoffrey Keating <geoffk@cygnus.com>
20081 * Makefile.in (PREPROCESSOR_DEFINES): New macro.
20082 (protoize.o): Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
20083 (unprotoize.o): Ditto.
20084 (test-protoize-simple): Don't define STD_PROTO_DIR.
20085 * protoize.c: Use PARAMS rather than PROTO. Minor whitespace
20086 changes to make 'test-protoize-simple' pass.
20087 (STD_PROTO_DIR): Remove define.
20088 (STANDARD_EXEC_PREFIX): Supply default define.
20089 (standard_exec_prefix): New variable, init to STANDARD_EXEC_PREFIX.
20090 (target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
20091 (target_version): New variable, init to DEFAULT_TARGET_VERSION.
20092 (GET_ENV_PATH_LIST): New macro.
20093 (default_syscalls_dir): No longer initialized to STD_PROTO_DIR.
20094 (do_processing): Initialize default_syscalls_dir using new
20095 macros. Use it to initialize syscalls_absolute_filename.
20097 Tue Aug 24 16:58:15 1999 Richard Henderson <rth@cygnus.com>
20099 * jump.c (jump_optimize_1): Do cmov opt on any single-set; force
20100 B into a register before emit_conditional_move.
20102 Tue Aug 24 15:37:03 1999 Richard Henderson <rth@cygnus.com>
20104 * fold-const.c (fold): Reassociate (+ (+ (* a b) c) (* d e))
20105 as (+ (+ (* a b) (* d e)) c). Factor a common power-of-two
20106 multiplicand out of (+ (* a b) (* c d)).
20108 Tue Aug 24 11:46:10 1999 Bob Manson <manson@cygnus.com>
20109 Richard Henderson <rth@cygnus.com>
20111 * haifa-sched.c (split_hard_reg_notes): Move to flow.c
20112 (new_insn_dead_notes): Likewise.
20113 (update_n_sets): Likewise.
20114 (update_flow_info): Move to flow.c, renamed to update_life_info;
20115 extend to handle multiple source insns.
20116 * flow.c: Include resource.h
20117 (unlink_insn_chain): New.
20118 (split_hard_reg_notes): New.
20119 (maybe_add_dead_note): New.
20120 (maybe_add_dead_note_use): New.
20121 (find_insn_with_note): New.
20122 (new_insn_dead_notes): New.
20123 (update_n_sets): New.
20124 (sets_reg_or_subreg_1, sets_reg_or_subreg): New.
20125 (maybe_remove_dead_notes): New.
20126 (update_life_info): New.
20127 (prepend_reg_notes): New.
20128 (replace_insns): New.
20129 * output.h (update_life_info): Declare.
20130 * recog.c (split_block_insns): Use update_life_info.
20131 * resource.c (find_free_register): Use reg_alloc_order, don't use
20132 fixed regs, make sure the mode is supported, don't use new regs.
20134 * rtl.h (replace_insns): Declare.
20136 Tue Aug 24 13:48:39 1999 Nathan Sidwell <nathan@acm.org>
20138 * expr.c (expand_expr): Cope with COND_EXPRs with one
20139 non-returning branch.
20141 Mon Aug 23 22:28:16 1999 Mark Mitchell <mark@codesourcery.com>
20143 * expr.c (store_expr): Always pass down the target, even when not
20146 1999-08-24 Nick Clifton <nickc@cygnus.com>
20148 * configure.in: Define target_cpu_default for v850 targets.
20149 * configure: Regenerate
20151 * config/v850/v850.h (TARGET_CPU_generic): Define.
20152 (GO_IF_LEGITIMATE_ADDRESS): Insist that SImode and larger constant
20153 addresses are 4 byte aligned.
20155 * config/v850/v850.c (print_operand): Cope with 'R' format DFmode
20158 Tue Aug 24 09:32:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20160 * genattr.c (function_unit_desc): Constify a char*. Add prototype.
20161 (main): Add prototypes.
20163 * genattrtab.c (substitute_address, write_const_num_delay_slots,
20164 attr_eq, attr_numeral, attr_equal_p, attr_copy_rtx): Prototype.
20165 (write_attr_get): Emit prototypes along with function definition.
20166 (write_eligible_delay): Mark a parameter with ATTRIBUTE_UNUSED.
20167 (write_complex_function): Emit static prototype along with
20168 function definition.
20170 * genemit.c (gen_split): Emit prototypes along with function
20173 * genoutput.c (output_epilogue): Add prototype to `insn_outfun'.
20174 Likewise for predicates and `insn_operand_predicate'.
20175 (process_template): Emit static prototype along with function
20178 * genrecog.c (make_insn_sequence): Constify a char*. Add
20179 prototypes for get_split_*().
20180 (write_subroutine): Emit prototypes along with function
20183 Tue Aug 24 12:35:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20185 * gcse.c (find_avail_set): Follow chains of register-register copies.
20186 Use oprs_not_set_p to guarantee that the returned value can be
20188 (cprop_insn): Don't verify the return value of find_avail_set with
20191 * gcse.c (cprop_jump): New function, broken out of cprop_insn.
20192 (cprop_cc0_jump): New function.
20193 (cprop_insn): Break out new function cprop_jump and use it.
20194 Also use cprop_cc0_jump for machines with CC0.
20195 (cprop): Don't crash if cprop_insn turned the insn into a NOTE.
20197 * tree.h (current_function_calls_setjmp,
20198 current_function_calls_longjmp): Delete declarations.
20199 * dsp16xx.c: Include "function.h".
20200 * elxsi.c: Likewise.
20201 * gmicro.c: Likewise.
20202 * h8300.c: Likewise.
20203 * i370.c: Likewise.
20204 * m32r.c: Likewise.
20205 * mn10200.c: Likewise.
20206 * mn10300.c: Likewise.
20207 * ns32k.c: Likewise.
20208 * spur.c: Likewise.
20209 * v850.c: Likewise.
20211 * rtl.h (rtx_equal_function_value_matters): Declare.
20212 * toplev.c (rtx_equal_function_value_matters): Don't declare.
20214 * function.c: Likewise.
20215 * emit-rtl.c: Likewise.
20217 Tue Aug 24 02:47:44 1999 Jeffrey A Law (law@cygnus.com)
20219 * expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION
20222 1999-08-24 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20224 * jump.c (delete_barrier_successors) Match (set (pc) (pc)) insn
20227 Mon Aug 23 23:35:52 1999 Matthias Klose <doko@cs.tu-berlin.de>
20229 * cpp.texi: Add a node documenting macro varargs (copied
20232 1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com>
20234 * cppspec.c: Put a null pointer at the end of the new argv.
20236 Mon Aug 23 21:23:24 1999 Jeffrey A Law (law@cygnus.com)
20238 * configure.in: Remove code to select/de-select the haifa
20239 scheduler. Every scheduled port gets haifa now.
20240 * configure: Rebuilt.
20241 * flags.h, genattrtab.c, rtl.h, toplev.c: Remove HAIFA ifdefs.
20243 * Makefile.in: Corresponding changes.
20245 Mon Aug 23 16:04:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20247 * optabs.c (prepare_cmp_insn): Turn COMPARISON arg into a pointer.
20248 All callers changed.
20249 (prepare_float_lib_cmp): Likewise.
20250 Use FLOAT_LIB_COMPARE_RETURNS_BOOL.
20251 * expr.h (emit_float_lib_cmp): Delete declaration.
20252 * tm.texi (FLOAT_LIB_COMPARE_RETURNS_BOOL): Document.
20253 * sparc.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): Define.
20254 * sparc.md (bcc and scc patterns): Don't handle TFmode comparisons
20256 (cmptf): Now conditional on TARGET_HARD_QUAD.
20258 Fri Aug 20 17:52:27 1999 Jim Wilson <wilson@cygnus.com>
20260 * resource.c (mark_target_live_regs): Use
20261 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
20263 Fri Aug 20 19:07:55 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20265 * rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
20267 * rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.
20269 * genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.
20271 Fri Aug 20 18:53:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20273 * rtl.h (rtx_format): Constify a char*.
20275 * rtl.c (rtx_format): Likewise.
20276 (copy_rtx, copy_most_rtx, read_rtx): Likewise.
20277 (init_rtl): Use accessor macro, not `rtx_format'.
20279 * alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
20282 * caller-save.c (mark_referenced_regs): Likewise.
20284 * combine.c (subst, make_compound_operation, known_cond,
20285 gen_rtx_combine, update_table_tick, get_last_value_validate,
20286 use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.
20288 * cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
20289 refers_to_p, canon_reg, fold_rtx, cse_process_notes,
20290 count_reg_usage): Likewise.
20292 * emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
20295 * final.c (leaf_renumber_regs_insn): Likewise.
20297 * flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
20298 dump_edge_info, count_reg_references): Likewise.
20300 * function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
20301 fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
20304 * gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
20305 oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
20306 add_label_notes): Likewise.
20308 * genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
20309 clear_struct_flag, count_sub_rtxs, count_alternatives,
20310 compares_alternatives_p, contained_in_p, walk_attr_value,
20311 write_expr_attr_cache): Likewise.
20313 * genconfig.c (walk_insn_part): Likewise.
20315 * genemit.c (max_operand_1, gen_exp): Likewise.
20317 * genextract.c (walk_rtx): Likewise.
20319 * genflags.c (num_operands): Likewise.
20321 * genoutput.c (scan_operands): Likewise.
20323 * genpeep.c (match_rtx): Likewise.
20325 * genrecog.c (add_to_sequence): Likewise.
20327 * haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
20330 * integrate.c (save_constants, copy_for_inline,
20331 copy_rtx_and_substitute, subst_constants, restore_constants):
20334 * jump.c (mark_jump_label, invert_exp, redirect_exp,
20335 rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.
20337 * local-alloc.c (contains_replace_regs, memref_referenced_p):
20340 * loop.c (record_excess_regs, rtx_equal_for_loop_p,
20341 add_label_notes, replace_call_address, count_nonfixed_reads,
20342 invariant_p, find_single_use_in_loop, find_mem_givs,
20343 find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
20346 * print-rtl.c (reg_names, print_rtx): Likewise.
20348 * recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.
20350 * reg-stack.c (stack_regs_mentioned_p, record_label_references,
20351 record_reg_life_pat, swap_rtx_condition, goto_block_pat,
20352 print_blocks): Likewise.
20354 * regclass.c (fix_register, record_address_regs,
20355 reg_scan_mark_refs): Likewise.
20357 * regmove.c (stable_but_for_p): Likewise.
20359 * reload.c (loc_mentioned_in_p, operands_match_p,
20360 find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
20361 copy_replacements, refers_to_regno_for_reload_p,
20362 refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
20363 reload_when_needed_name, reg_class_names, debug_reload_to_stream):
20366 * reload1.c (eliminate_regs, scan_paradoxical_subregs,
20367 delete_address_reloads_1, count_occurrences,
20368 reload_cse_mem_conflict_p, reload_combine_note_use,
20369 add_auto_inc_notes): Likewise.
20371 * resource.c (mark_referenced_resources, mark_set_resources):
20374 * rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
20375 reg_mentioned_p, regs_set_between_p, modified_between_p,
20376 modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
20377 rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
20378 may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
20379 jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.
20381 * sched.c (sched_analyze_2, attach_deaths): Likewise.
20383 * stupid.c (stupid_mark_refs): Likewise.
20385 * unroll.c (remap_split_bivs): Likewise.
20387 * varasm.c (mark_constants): Likewise.
20389 * a29k/a29k.c (uses_local_reg_p): Likewise.
20391 * alpha/alpha.c (summarize_insn): Likewise.
20393 * arm/arm.c (symbol_mentioned_p, label_mentioned_p,
20394 eliminate_lr2ip): Likewise.
20396 * arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.
20398 * i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
20399 reg_mentioned_in_mem): Likewise.
20401 * ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
20402 symbolic_reference_mentioned_p): Likewise.
20404 * romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.
20406 * sh/sh.c (regs_used, mark_use): Likewise.
20408 * vax/vax.c (vax_rtx_cost): Likewise.
20410 Fri Aug 20 18:38:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20412 * machmode.h (mode_name): Constify a char*.
20414 * rtl.c (mode_name): Likewise.
20416 * genopinit.c (gen_insn): Use accessor macro, not `mode_name'.
20418 * optabs.c (init_libfuncs): Constify a char*.
20420 * print-tree.c (mode_name): Remove redundant declaration.
20421 (print_node): Use accessor macro, not `mode_name'.
20423 * reload1.c (dump_needs): Constify a char*. Use accessor macro,
20425 (new_spill_reg): Constify a char*.
20427 * tree.c (mode_name): Remove redundant declaration.
20429 Fri Aug 20 18:31:26 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20431 * rtl.c (rtx_name): Constify a char*.
20433 * rtl.h (rtx_name, fix_sched_param): Likewise.
20435 * gmicro/gmicro.c (rtx_name): Remove redundant declaration.
20436 (mypr): Use accessor macro, not `rtx_name'.
20438 * genemit.c (print_code): Constify a char*.
20440 * genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.
20442 * genpeep.c (print_code): Constify a char*.
20444 * genrecog.c (print_code): Likewise.
20446 * graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
20447 end_bb): Add static prototype.
20448 (draw_edge): Constify a char*.
20449 (end_bb): Remove unused parameter.
20451 * haifa-sched.c (fix_sched_param, safe_concat, print_exp
20452 print_block_visualization): Constify a char*.
20454 Fri Aug 20 15:02:10 1999 Mark Mitchell <mark@codesourcery.com>
20456 * c-common.c (c_get_alias_set): Update comment.
20458 1999-08-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
20460 * linux.h (LIB_SPEC): Added.
20462 Fri Aug 20 22:32:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20464 * config/c4x/c4x.h (STARTFILE_SPEC): Don't def.
20466 1999-08-19 18:43 -0700 Zack Weinberg <zack@bitmover.com>
20468 * tree.c (expr_check): Fix typo in last change.
20470 1999-08-19 14:44 -0700 Zack Weinberg <zack@bitmover.com>
20472 * rtl.def (NOTE): Change format to "iuu0n".
20473 (ADDR_DIFF_VEC): Change format to "eEee0".
20474 (ADDRESSOF): Change format to "eit".
20476 * rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
20477 (RTVEC_ELT): Change to match.
20478 (XVECEXP): Use XVEC and RTVEC_ELT.
20479 (INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
20480 ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
20481 (PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
20482 CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
20483 TRAP_CONDITION, TRAP_CODE): Use XEXP.
20484 (INTVAL): Use XWINT.
20485 (ADDRESSOF_DECL): Use XTREE.
20486 (SET_ADDRESSOF_DECL): Delete.
20487 (NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
20488 NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill. These have been
20489 ifdefed out since 2.6 at least.
20490 (gen_rtvec_vv): Delete prototype.
20492 * rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
20494 (copy_most_rtx): Handle 't' format letter.
20495 * emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
20496 (gen_rtvec_vv): Delete function. All callers changed to use
20497 gen_rtvec_v instead.
20498 * print-rtl.c (print_rtx): Move special casing of NOTEs to
20499 the '0' format letter.
20501 * function.c (gen_mem_addressof): Don't use
20502 SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
20504 * integrate.c (copy_rtx_and_substitute): Likewise.
20505 Copy 't' slots with XTREE.
20506 (subst_constants): Treat 't' slots like '[swi]' slots.
20507 * cse.c (canon_hash, exp_equiv_p): Treat 't' slots like '0' slots.
20508 * jump.c (rtx_equal_for_thread_p): Likewise.
20509 * rtlanal.c (rtx_equal_p): Likewise.
20510 * stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
20511 only four arguments.
20512 * gengenrtl.c (type_from_format): Provide correct types for
20516 * tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
20517 If a recent gcc is in use (always in stage2 and beyond), use
20518 statement expressions, so we don't make a function call unless
20519 the check fails. Evaluate arguments exactly once.
20520 (CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
20521 TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
20523 (CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
20524 they evaluate their arguments exactly once, irrespective of
20525 the compiler in use.
20527 * tree.c [ENABLE_CHECKING]: Define whichever set of functions
20528 is used by the currently-enabled check macros. This is:
20529 (tree_check_failed, tree_class_check_failed): For gcc.
20530 (tree_check, tree_class_check, cst_or_constructor_check,
20531 expr_check): For other compilers.
20533 * gencheck.c: Do not define any *_CHECK1 macros.
20535 Thu Aug 19 14:42:38 1999 Mike Stump <mrs@wrs.com>
20536 Mark Mitchell <mark@codesourcery.com>
20538 * c-common.c (c_get_alias_set): Fix support for poitners and
20541 Thu Aug 19 11:51:22 EDT 1999 John Wehle (john@feith.com)
20543 * alias.c: Include tree.h.
20544 (nonlocal_reference_p, mark_constant_function): New functions.
20545 * flow.c (life_analysis): Call mark_constant_function.
20546 * rtl.h (mark_constant_function): Declare it.
20548 Thu Aug 19 15:02:01 1999 Nick Clifton <nickc@cygnus.com>
20550 * config/rs6000/rs6000.c (rs6000_override_options): Fix test for
20551 unrecognisable switches.
20553 Wed Aug 18 23:31:57 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20555 * loop.c (recombine_givs): Set ix field after sorting.
20556 (recombine_givs): Remove bogus index / giv lockstep looping.
20558 Wed Aug 18 18:20:40 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20560 * expmed.c (emit_store_flag): If UNSIGNEDP, call unsigned_condition
20562 (emit_store_flag_force): Use do_compare_rtx_and_jump.
20563 (do_cmp_and_jump): Formatting fixes.
20564 * expr.c (do_compare_and_jump): Renamed from compare; changed to call
20565 do_compare_rtx_and_jump instead of compare_from_rtx.
20566 (do_compare_rtx_and_jump): New function; mostly copied from
20568 (do_jump_for_compare): Delete.
20569 (expand_expr): Use do_compare_rtx_and_jump when handling MAX_EXPR and
20571 (do_jump): Use do_compare_and_jump or do_compare_rtx_and_jump instead
20572 of compare/do_jump_for_compare pairs.
20573 (do_jump_by_parts_greater): Use do_jump_by_parts_greater_rtx.
20574 (do_jump_by_parts_greater_rtx): Use do_compare_rtx_and_jump instead of
20575 compare_from_rtx/do_jump_for_compare pairs.
20576 (do_jump_by_parts_equality): Likewise.
20577 (do_jump_by_parts_equality_rtx): Likewise.
20578 * expr.h (do_compare_rtx_and_jump): Declare.
20579 * optabs.c (prepare_cmp_insn): New function, contains most of the code
20580 that used to be in emit_cmp_insn.
20581 (cmp_available_p): New function.
20582 (prepare_operand): New function.
20583 (emit_cmp_and_jump_insn_1): New function, contains some code that used
20584 to be in emit_cmp_insn.
20585 (prepare_float_lib_cmp): Renamed from emit_float_lib_cmp; change some
20586 parameters to be pointers; don't emit final compare but modify some of
20587 the values pointed to by the args so the caller can perform the
20588 correct comparison.
20589 (expand_binop): Call emit_store_flag_force with signed forms of
20591 (expand_abs): Use do_compare_rtx_and_jump instead of compare_from_rtx/
20592 emit_jump_insn pair.
20593 (emit_cmp_and_jump_insn): Use prepare_cmp_insn and
20594 emit_cmp_and_jump_insn_1. Call emit_queue.
20595 (emit_cmp_insn): Just call emit_cmp_and_jump_insns with zero for LABEL
20597 * flow.c (tidy_fallthru_edge): If HAVE_cc0, verify insn before a
20598 jump sets cc0 before deleting it.
20599 * integrate.c (expand_inline_function): Likewise.
20600 * unroll.c (unroll_loop): Similar changes in several places.
20601 (copy_loop_body): If HAVE_cc0, verify insn before a jump sets cc0
20602 before deleting it.
20604 Wed Aug 18 06:37:44 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20606 * Makefile.in (insn-recog.o): Update dependencies.
20607 * genrecog.c (main): Make generated file include "function.h".
20609 Sat Aug 14 00:54:57 1999 Geoffrey Keating <geoffk@cygnus.com>
20611 * cse.c (cse_insn): Call never_reached_warning when a jump is
20612 changed to be unconditional.
20613 * flags.h: Declare warn_notreached.
20614 * flow.c (delete_block): Call never_reached_warning when
20615 a block is deleted.
20616 * jump.c (delete_barrier_successors): Call never_reached_warning
20617 when we delete everything after a BARRIER.
20618 (never_reached_warning): New function.
20619 * rtl.h: Declare never_reached_warning.
20620 * toplev.c (warn_notreached): New variable.
20621 (lang_independent_options): Set warn_notreached
20622 when -Wunreachable-code.
20623 (compile_file): We need line numbers for -Wunreachable-code.
20625 Tue Aug 17 22:06:11 1999 Jan Hubicka <hubicka@freesoft.cz>
20627 * haifa-sched.c (insn_unit): Fix typo on out of range test.
20628 * sched.c (insn_unit): Likewise.
20630 Tue Aug 17 21:57:23 1999 Andreas Schwab <schwab@suse.de>
20632 * combine.c (distribute_notes): Handle REG_EH_RETHROW.
20634 Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
20636 * flow.c (create_edge_list): Use xmalloc, not malloc.
20638 Tue Aug 17 01:40:54 1999 Loren Rittle <ljrittle@acm.org>
20640 * fixinc/inclhack.def (no_double_slash): Do not trash single-line
20641 C-style comments. Do not lose the character before double slash.
20643 Mon Aug 16 18:08:22 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
20645 * basic-block.h (struct edge_list): Stucture to maintain a vector
20647 (EDGE_INDEX_NO_EDGE, EDGE_INDEX, INDEX_EDGE_PRED_BB, INDEX_EDGE_SUCC_BB,
20648 INDEX_EDGE, NUM_EDGES): New Macros for accessing edge list.
20649 (create_edge_list, free_edge-List, print_edge_list, verify_edge_list):
20650 New function prototypes.
20651 * flow.c (create_edge_list): Function to create an edge list.
20652 (free_edge_list): Discards memory used by an edge list.
20653 (print_edge_list): Debug output showing an edge list.
20654 (verify_edge_list): Internal consistency check for an edge list.
20655 (find_edge_index): Function to find an edge index for a pred and succ.
20657 Mon Aug 16 11:56:36 1999 Mark Mitchell <mark@codesourcery.com>
20659 * tree.c (type_hash_add): Use permalloc to allocate nodes in the
20662 Mon Aug 16 17:04:15 1999 Jorn Rennecke <amylaar@cygnus.co.uk>
20664 * mips.h (CLASS_CANNOT_CHANGE_SIZE): Define.
20666 Fri Aug 13 15:20:43 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20668 * config/i386/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
20670 Fri Aug 13 10:21:28 1999 Nick Clifton <nickc@cygnus.com>
20672 * toplev.c (rest_of_compilation): Allow machine dependent
20673 reorganisation pass to place information into the RTL dump
20674 file if it so wishes.
20676 Sun Aug 15 12:41:21 1999 Jim Wilson <wilson@cygnus.com>
20678 * explow.c (hard_function_value): Use VOIDmode instead of
20680 * stmt.c (expand_return): Likewise.
20681 * stor-layout.c (get_best_mode): Likewise.
20683 * genemit.c (gen_expand): If next is MATCH_PAR_DUP, then output
20684 emit call instead of emit_insn call.
20686 Sat Aug 14 15:04:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
20688 * configure.in: Handle --disable/enable-win32-registry.
20689 * install.texi: Document --disable/enable-win32-registry.
20690 * acconfig.h (ENABLE_WIN32_REGISTRY): New macro.
20691 (WIN32_REGISTRY_KEY): New macro.
20692 * prefix.c: Use to enable/disable win32-specific code.
20693 (lookup_key): Use versioned key.
20694 * configure: Regenerate.
20695 * config.in: Likewise.
20697 Fri Aug 13 17:41:55 1999 Jason Merrill <jason@yorick.cygnus.com>
20699 * cpplib.c (read_line_number): New fn, split out of...
20702 Fri Aug 13 14:18:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
20704 tree.c (lang_unsave_expr_now) : New.
20705 (unsave_expr_now): Call lang_unsave_expr_now.
20706 tree.h (lang_unsave_expr_now) : New.
20708 Fri Aug 13 00:49:46 1999 Jason Merrill <jason@yorick.cygnus.com>
20710 * toplev.c (flag_new_exceptions): On by default.
20712 1999-08-13 Michael Meissner <meissner@cygnus.com>
20714 * Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B.
20716 Fri Aug 13 01:29:57 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
20718 * dwarfout.c (fundamental_type_code): Return FT_boolean for
20719 INTEGER_TYPE with precision==1, it's __java_boolean.
20721 Thu Aug 12 23:51:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20723 * global.c (prune_preferences): Move some invariants out of the
20726 Thu Aug 12 15:30:29 1999 Jesse Perry (jap@unx.dec.com)
20728 * configure.in (alpha*-dec-osf*): Add osf5.
20730 Sun Aug 1 22:24:03 1999 Philip Blundell <philb@gnu.org>
20732 * configure.in: Rework handling of ARM GNU/Linux slightly.
20733 (arm*-*-linux-gnuoldld): New target.
20734 * configure: Regenerate.
20735 * install.texi (Configurations): Add arm-*-linux-gnu{oldld} and
20736 arm-*-elf. Mention that arm-*-linux-gnuaout is obsolete.
20737 * config/arm/linux-oldld.h: New file.
20738 * config/arm/linux-elf26.h: Don't include linux-elf.h.
20739 (TARGET_DEFAULT, SUBTARGET_LINK_SPEC, SUBTARGET_EXTRA_ASM_SPEC):
20741 * config/arm/linux-elf.h (ASM_SPEC): Define.
20742 (TARGET_DEFAULT, SUBTARGET_EXTRA_LINK_SPEC,
20743 SUBTARGET_EXTRA_ASM_SPEC, CPP_APCS_PC_DEFAULT): Add definitions
20744 for 26-bit APCS and old linker.
20745 (CPP_PREDEFINES): Define `__arm__'; don't define `arm' or
20747 (FP_DEFAULT): Define to FP_SOFT3 for all machines.
20748 * config/arm/linux-aout.h (CPP_PREDEFINES): Define `__arm__';
20749 don't define `arm' or `arm_elf'.
20750 * config/arm/t-linux (EXTRA_MULTILIB_PARTS, MULTILIB_OPTIONS,
20751 MULTILIB_DIRNAMES): Define. Fix typo in comment.
20753 Thu Aug 12 10:14:47 1999 Andreas Schwab <schwab@suse.de>
20755 * rtl.texi: Fix typo.
20757 Wed Aug 11 23:50:57 1999 Jason Merrill <jason@yorick.cygnus.com>
20759 * invoke.texi (C++ Dialect Options): Add -fms-extensions.
20761 Wed Aug 11 12:59:37 1999 Mark Mitchell <mark@codesourcery.com>
20763 * extend.texi (C++ Signatures): Remove node.
20764 * invoke.texi: Remove discussion of -fhandle-signatures,
20765 signature, sigof, __signature__, and __sigof__.
20767 Wed Aug 11 03:38:25 1999 Jeffrey A Law (law@cygnus.com)
20769 * Makefile.in (JAVAGC): Removed.
20771 Wed Aug 11 02:13:26 1999 Mumit Khan <khan@xraylith.wisc.edu>
20773 * i386/cygwin.h (ASM_OUTPUT_ALIGNED_BSS): Define.
20775 1999-08-11 Mark Elbrecht <snowball3@bigfoot.com>
20777 * i386/djgpp.h (ASM_OUTPUT_ALIGNED_BSS): Define.
20779 1999-08-11 Richard Earnshaw (rearnsha@arm.com)
20781 * emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
20782 a register that is already known to be a pointer.
20784 1999-08-11 Bruce Korb <ddsinc09@ix.netcom.com>
20786 * fixinc/inclhack.tpl: Only install assert.h conditionally.
20787 * fixinc/inclhack.sh: Regenerated.
20788 * fixinc/fixincl.sh: Regenerated.
20790 Wed Aug 11 00:34:22 1999 Joe Buck <jbuck@synopsys.com>
20792 * invoke.texi: s/GNU CC/GCC/ for consistency with gcc.texi.
20793 Fix documentation of -ansi flag to describe its C++ behavior.
20794 Remove bogus reference to GCC 2.9.
20796 Tue Aug 10 17:19:02 1999 Jim Wilson <wilson@cygnus.com>
20798 * config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on
20799 note if it is non-NULL.
20801 Tue Aug 10 10:47:42 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
20803 * except.h (eh_nesting_info): Add new structure defintion.
20804 (init_eh_nesting_info, free_eh_nesting_info): Add function prototypes.
20805 (reachable_handlers, update_rethrow_references): Add function
20807 * rtl.h (struct rtvec_def): Update comments. REG_EH_RETHROW takes
20808 a rethrow symbol instead of an integer exception region number.
20809 * flow.c (Make_edges): Use new exception nesting routines to determine
20810 which handlers are reachable from a CALL or asynchronous insn.
20811 Dont add an edge for calls with a REG_EH_REGION of -1 to non-local
20813 (delete_eh_regions): Update rethrow labels, and don't delete
20814 regions which are the target of a rethrow.
20815 * except.c (struct func_eh_entry): Add rethrow_ref field, now we can
20816 avoid overloading the SYMBOL_REF_USED flag.
20817 (rethrow_symbol_map): Use new rethrow_ref field.
20818 (rethrow_used): Use new rethrow_ref field.
20819 (expand_rethrow): REG_EH_RETHROW now has a SYMBOL_REF instead
20820 of an integer. Fix formatting.
20821 (output_exception_table_entry): Use new rethrow_ref field.
20822 (can_throw): Check for EH_REGION_NOTE before deciding
20823 whether a CALL can throw or not.
20824 (scan_region): Call rethrow_used() instead of accessing data structure.
20825 (update_rethrow_references): New function to make sure only regions
20826 which are still targets of a rethrow are flagged as such.
20827 (process_nestinfo): New static function to initialize a handler
20828 list for a specific region.
20829 (init_eh_nesting_info): New function to allocate and initialize
20830 the list of all EH handlers reachable from all regions.
20831 (reachable_handlers): New function to retrieve the list of handlers
20832 reachable from a specific region and insn.
20833 (free_eh_nesting_info): New function to dispose of a list of
20834 reachable handlers.
20836 Tue Aug 10 10:39:31 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
20838 * flow.c (split_edge): Set JUMP_LABEL field.
20839 (commit_one_edge_insertion): Set head correctly for insert_before.
20840 When inserting insns, update insn block numbers if allocated.
20842 Tue Aug 10 09:26:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20844 * dwarf2out.c (dwarf2out_frame_debug_expr, add_incomplete_type,
20845 retry_incomplete_types): Add static prototype.
20846 (stripattributes, dwarf_cfi_name, ASM_OUTPUT_DWARF_STRING,
20847 dwarf_tag_name, dwarf_attr_name, dwarf_form_name,
20848 dwarf_stack_op_name, dwarf_type_encoding_name, add_AT_string,
20849 dwarf2_name, add_name_attribute, lookup_filename, dwarf2out_line,
20850 dwarf2out_start_source_file, dwarf2out_define, dwarf2out_undef):
20853 * dwarf2out.h (dwarf2out_define, dwarf2out_undef,
20854 dwarf2out_start_source_file, dwarf2out_line): Likewise.
20856 Tue Aug 10 09:21:46 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20858 * output.h (assemble_name): Constify a char*.
20860 * varasm.c (UNIQUE_SECTION, assemble_start_function,
20861 assemble_variable, assemble_name): Likewise.
20863 * dwarf2out.c (ASM_NAME_TO_STRING): Likewise.
20865 * arm/pe.c (arm_pe_unique_section): Likewise.
20867 * i386/cygwin.h (STRIP_NAME_ENCODING): Likewise.
20869 * i386/i386-interix.h (STRIP_NAME_ENCODING): Likewise.
20871 * i386/interix.c (i386_pe_unique_section): Likewise.
20873 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
20875 * i386/winnt.c (i386_pe_unique_section): Likewise.
20877 * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise.
20879 * mn10200/mn10200.h (ASM_OUTPUT_LABELREF): Likewise.
20881 * mn10300/mn10300.h (ASM_OUTPUT_LABELREF): Likewise.
20883 * pa/pa.c (output_call): Likewise.
20885 * pa/pa.h (ASM_OUTPUT_MI_THUNK): Likewise.
20887 * pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
20889 * rs6000/rs6000.c (rs6000_output_load_toc_table, output_toc):
20892 * rs6000/rs6000.h (RS6000_OUTPUT_BASENAME, STRIP_NAME_ENCODING):
20895 * rs6000/sol2.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
20897 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_INT,
20898 STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Likewise.
20900 * v850/v850.h (ASM_OUTPUT_LABELREF): Likewise.
20902 Mon Aug 9 19:54:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20904 * real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy.
20906 Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20908 * tree.h (lang_identify): Constify a char*.
20909 (print_error_function): Add extern prototype. Constify a char*.
20911 * c-lang.c (lang_identify): Constify a char*.
20913 * objc/objc-act.c (lang_identify): Constify a char*.
20915 Mon Aug 9 16:21:53 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20917 * genpeep.c (main): Make generated file include "function.h".
20918 * arm.c (function_really_clobbers_lr): Delete INLINE_HEADER case.
20920 Mon Aug 9 10:08:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20922 * Makefile.in: Update dependencies.
20923 * alias.c: Include "function.h"
20924 * c-decl.c: Likewise.
20925 * caller-save.c: Likewise.
20926 * calls.c: Likewise.
20927 * combine.c: Likewise.
20929 * explow.c: Likewise.
20930 * final.c: Likewise.
20931 * global.c: Likewise.
20932 * graph.c: Likewise.
20933 * local-alloc.c: Likewise.
20934 * loop.c: Likewise.
20935 * optabs.c: Likewise.
20936 * profile.c: Likewise.
20937 * recog.c: Likewise.
20938 * regclass.c: Likewise.
20939 * regmove.c: Likewise.
20940 * reload.c: Likewise.
20941 * reorg.c: Likewise.
20942 * resource.c: Likewise.
20943 * sched.c: Likewise.
20944 * stupid.c: Likewise.
20945 * config/1750a/1750a.c: Likewise.
20946 * config/a29k/a29k.c: Likewise.
20947 * config/arc/arc.c: Likewise.
20948 * config/arm/arm.c: Likewise.
20949 * config/arm/thumb.c: Likewise.
20950 * config/c4x/c4x.c: Likewise.
20951 * config/clipper/clipper.c: Likewise.
20952 * config/convex/convex.c: Likewise.
20953 * config/fx80/fx80.c: Likewise.
20954 * config/i860/i860.c: Likewise.
20955 * config/m68k/m68k.c: Likewise.
20956 * config/m88k/m88k.c: Likewise.
20957 * config/mips/mips.c: Likewise.
20958 * config/pdp11/pdp11.c: Likewise.
20959 * config/pyr/pyr.c: Likewise.
20960 * config/romp/romp.c: Likewise.
20961 * config/sh/sh.c: Likewise.
20962 * config/tahoe/tahoe.c: Likewise.
20963 * config/vax/vax.c: Likewise.
20964 * config/we32k/we32k.c: Likewise.
20965 * config/sparc/sparc.c: Include "function.h".
20966 (mem_min_alignment): Test current_function rather than
20967 regno_pointer_align.
20968 * config/pa/pa.c: Likewise.
20969 (compute_frame_size): Delete declaration of
20970 current_function_outgoing_args_size.
20971 * config/arc/arc.h (current_function_varargs): Delete declaration.
20972 * config/elxsi/elxsi.h (current_function_calls_alloca): Delete
20974 * config/i370/i370.h (current_function_outgoing_args_size): Delete
20976 * config/i386/i386.h (FINALIZE_PIC): Delete declaration of
20977 current_function_uses_pic_offset_table.
20978 * config/m68k/a-ux.h (FUNCTION_EXTRA_EPILOGUE): Delete declaration
20979 of current_function_returns_pointer.
20980 * config/m68k/altos3068.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
20981 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
20982 * config/m68k/m68kv4.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
20983 * config/m68k/mot3300.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
20984 * config/m68k/pbb.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
20985 * config/m68k/tower-as.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
20986 * config/m88k/m88k.c: Include "function.h"
20987 (call_used_regs, current_function_pretend_args_size,
20988 current_function_outgoing_args_size, frame_pointer_needed): Delete
20990 * config/m88k/m88k.h (current_function_pretend_args_size): Delete
20992 * config/mips/mips.h (current_function_calls_alloca): Delete
20994 * config/mn10200/mn10200.h (current_function_needs_context,
20995 rtx_equal_function_value_matters): Delete declarations.
20996 * config/ns32k/ns32k (current_function_uses_pic_offset_table,
20997 flag_pic): Delete declarations.
20998 * config/pa/pa.h (current_function_pretend_args_size,
20999 current_function_decl): Delete declarations.
21000 * config/pa/som.h (current_function_varargs): Delete declaration.
21001 * config/pdp11/pdp11.h (current_function_pretend_args_size): Delete
21003 * config/pyr/pyr.h (current_function_pretend_args_size,
21004 current_function_args_size, current_function_calls_alloca): Delete
21006 * config/sh/sh.h (current_function_varargs): Delete declaration.
21007 * config/sparc/sparc.h (current_function_outgoing_args_size,
21008 current_function_calls_alloca, current_function_decl): Delete
21010 * config/spur/spur.h (current_function_pretend_args_size,
21011 current_function_calls_alloca): Delete declarations.
21012 * config/v850/v850.c (current_function_outgoing_args_size): Delete
21014 * config/vax/vms.h (current_function_name): Delete declaration.
21015 * gcse.c: Include "function.h".
21016 (current_function_name, current_function_calls_setjmp): Delete
21018 * haifa-sched.c: Include "function.h".
21019 (forced_labels): Delete declaration.
21020 * jump.c: Likewise.
21021 * reg-stack.c: Likewise.
21022 * reload1.c: Likewise.
21023 * genemit.c (main): Make generated file include function.h.
21024 * genoutput.c (output_prologue): Likewise.
21026 * builtins.c (saveregs_value, apply_args_value): Delete variables.
21027 * emit-rtl.c (reg_rtx_no, first_label_num, first_insn, last_insn,
21028 sequence_rtl_expr, cur_insn_uid, last_linenum, last_filename,
21029 regno_pointer_flag, regno_pointer_flag_length, regno_pointer_align,
21030 regno_reg_rtx, sequence_stack): Delete variables. Add accessor
21031 macros for some of them.
21032 (emit_filename, emit_lineno): Delete declarations.
21033 (gen_reg_rtx): Use memset/memcpy instead of bzero/bcopy. Access
21034 regno_pointer_* variables through current_function.
21035 (gen_inline_header_rtx): Delete function.
21036 (save_emit_status): Delete function.
21037 (set_new_last_label_num): New function.
21038 (clear_emit_caches): New function.
21039 (restore_emit_status): Just clear last_labelnum and call
21041 (get_last_insn_anywhere): Variable sequence_stack is now accessed
21042 through macro seq_stack.
21043 (add_insn_after): Likewise.
21044 (add_insn_before): Likewise.
21045 (remove_insn): Likewise.
21046 (pop_topmost_sequence): Likewise.
21047 (in_sequence_p): Likewise.
21048 (start_sequence_for_rtl_expr): Likewise.
21049 (start_sequence): Likewise, and likewise for
21050 sequence_rtl_expr/seq_rtl_expr.
21051 (push_topmost_sequence): Likewise.
21052 (end_sequence): Likewise.
21053 (init_virtual_regs): Now takes a "struct emit_status *" argument.
21054 All callers changed. Store into that pointer instead of globals.
21055 (init_emit): Allocate emit elt of current_function.
21056 Changes for sequence_rtl_expr/sequence_stack renaming.
21057 Call clear_emit_caches instead of doing it in-line.
21058 Access regno_pointer_* variables through current_function.
21059 (init_emit_once) Don't clear sequence_stack.
21061 * expr.c (pending_stack_adjust, inhibit_defer_pop, pending_chain):
21063 (arg_pointer_save_area): Delete declaration.
21064 (finish_expr_for_function): Renamed from init_queue; no longer static.
21065 (init_expr): Don't call init_queue.
21066 (save_expr_status, restore_expr_status): Delete functions.
21067 (expand_expr): Changes to reflect new layout of struct function.
21068 Don't access current_function_check_memory_usage when current_function
21070 * expr.h (forced_labels, save_expr_regs, saveregs_value,
21071 apply_args_value, current_function_calls_alloca, inhibit_defer_pop,
21072 current_function_outgoing_args_size, current_function_arg_offset_rtx,
21073 current_function_uses_const_pool, function_call_count,
21074 current_function_uses_pic_offset_table, nonlocal_labels,
21075 current_function_internal_arg_pointer, nonlocal_goto_stack_level,
21076 current_function_check_memory_usage, nonlocal_goto_handler_slots,
21077 pending_stack_adjust, target_temp_slot_level, temp_slot_level): Delete
21079 (finish_expr_for_function): Declare.
21080 * flags.h (current_function_has_nonlocal_label,
21081 current_function_has_nonlocal_goto, current_function_is_thunk,
21082 current_function_has_computed_jump): Delete declarations.
21083 * flow.c (forced_labels): Delete declaration.
21084 * function.c (current_function_pops_args,
21085 current_function_returns_struct, current_function_returns_pcc_struct,
21086 current_function_needs_context, current_function_calls_setjmp,
21087 current_function_calls_longjmp, current_function_has_nonlocal_label,
21088 current_function_has_nonlocal_goto, current_function_is_thunk,
21089 current_function_has_computed_jump, current_function_calls_alloca,
21090 current_function_contains_functions, current_function_returns_pointer,
21091 current_function_epilogue_delay_list, current_function_args_size,
21092 current_function_pretend_args_size, current_function_arg_offset_rtx,
21093 current_function_outgoing_args_size, current_function_varargs,
21094 current_function_stdarg, current_function_args_info, cleanup_label,
21095 current_function_name, current_function_uses_const_pool,
21096 current_function_instrument_entry_exit, current_function_return_rtx,
21097 current_function_uses_pic_offset_table, nonlocal_labels,
21098 current_function_internal_arg_pointer, current_function_cannot_inline,
21099 current_function_check_memory_usage, function_call_count,
21100 nonlocal_goto_handler_slots, nonlocal_goto_handler_labels,
21101 nonlocal_goto_stack_level, return_label, save_expr_regs,
21102 stack_slot_list, rtl_expr_chain, tail_recursion_label, temp_slots,
21103 tail_recursion_reentry, arg_pointer_save_area, frame_offset,
21104 context_display, trampoline_list, parm_birth_insn, invalid_stack_slot,
21105 last_parm_insn, max_parm_reg, parm_reg_stack_loc, sequence_rtl_expr,
21106 temp_slot_level, var_temp_slot_level, target_temp_slot_level):
21108 (push_function_context_to): Don't save them. Don't call
21109 save_storage_status, save_emit_status or save_expr_status.
21110 (pop_function_context_from): Don't restore them. Don't call
21111 restore_storage_status or restore_expr_status.
21112 (get_func_frame_size): New function.
21113 (get_frame_size): Use it.
21114 (assign_outer_stack_local): Reflect some member name changes in struct
21116 (put_reg_into_stack): Likewise.
21117 (assign_stack_temp_for_type): sequence_rtl_expr was renamed to
21119 (fixup_var_refs): Likewise.
21120 (fix_lexical_addr): Likewise.
21121 (trampoline_address): Likewise.
21122 (prepare_function_start): Clear field inlinable of current_function.
21123 (init_function_for_compilation): New function.
21124 (expand_dummy_function_end): New function.
21125 (expand_function_end): Call finish_expr_for_function.
21126 * function.h (struct emit_status): New; fields moved here from struct
21127 function and from global variables. Add accessor macros for some of
21129 (struct expr_status): Likewise.
21130 (REGNO_POINTER_ALIGN, REGNO_POINTER_FLAG): Moved here from regs.h.
21131 (struct function): Add fields expr and emit, inlinable, inl_emit,
21132 original_arg_vector, original_decl_initial, inl_last_parm_insn,
21133 inl_max_label_num. Add many comments.
21134 Add accessor macros for all elts of struct function that no longer
21135 have a global variable.
21136 (cleanup_label, return_label, frame_offset, tail_recursion_label,
21137 tail_recursion_reentry, arg_pointer_save_area, rtl_expr_chain,
21138 stack_slot_list): Delete declarations.
21139 (get_func_frame_size): Declare.
21140 (save_expr_status, restore_expr_status, save_emit_status,
21141 save_storage_status, restore_storage_status): Delete declarations.
21142 (init_virtual_regs): Declare.
21143 * output.h (current_function_pops_args,
21144 current_function_returns_struct, current_function_returns_pcc_struct,
21145 current_function_needs_context, current_function_calls_setjmp,
21146 current_function_calls_longjmp, current_function_calls_alloca,
21147 current_function_has_nonlocal_label, current_function_varargs,
21148 current_function_has_computed_jump, current_function_returns_pointer,
21149 current_function_contains_functions, current_function_args_size,
21150 current_function_pretend_args_size, current_function_stdarg,
21151 current_function_outgoing_args_size, current_function_args_info,
21152 current_function_name, current_function_return_rtx,
21153 current_function_epilogue_delay_list,
21154 current_function_uses_const_pool, current_function_cannot_inline):
21155 Delete declarations.
21156 * regs.h (reg_rtx_no, regno_pointer_flag, regno_pointer_flag_length,
21157 regno_reg_rtx): Delete declaration.
21158 (REGNO_POINTER_FLAG): Delete macro.
21159 * stmt.c (expand_goto): Changes to reflect that some fields in struct
21160 function were renamed.
21161 * stor-layout.c (save_storage_status, restore_storage_status): Delete
21163 * toplev.c: Include "function.h".
21164 (current_function_decl): Delete declaration.
21165 (compile_file): Call init_dummy_function_start and
21166 expand_dummy_function_end around some initializations that need to
21168 (rest_of_compilation): Use DECL_SAVED_INSNS properly.
21169 Call init_function_for_compilation.
21170 * unroll.c: Include "function.h"
21171 (unroll_loop): Access regno_pointer_* variables through
21174 * tree.h (struct tree_decl): Add elt f to saved_insns member.
21175 (DECL_SAVED_INSNS): use it.
21176 (expand_dummy_function_end): Declare.
21177 (init_function_for_compilation): Declare.
21178 * calls.c (calls_function_1): Change use of DECL_SAVED_INSNS now
21179 that it's no longer an INLINE_HEADER.
21180 (expand_call): Likewise.
21181 * integrate.c (finish_inline): Delete function.
21182 (max_parm_reg, parm_reg_stack_loc): Delete declarations.
21183 (initialize_for_inline): Delete min_labelno, max_labelno and max_reg
21184 args. Don't generate an INLINE_HEADER rtx, just return the arg
21185 vector. All callers changed.
21186 (save_for_inline_copying): Create a duplicate struct emit_status to
21187 hold the emit state for compiling the current function. Use this and
21188 the other new fields in struct function that are for integration
21189 instead of an INLINE_HEADER.
21190 Use memcpy instead of bcopy.
21191 Store the current struct function in DECL_SAVED_INSNS of fndecl.
21192 (save_for_inline_nocopy): Similar changes, except no new emit_status
21194 (expand_inline_function): Get information from function structure,
21195 not from an inline header rtx.
21196 (output_inline_function): Lose code to extract the necessary
21197 information from an inline header; simply put back the function
21198 structure into current_function. Clear its inlinable elt.
21199 * rtl.def (INLINE_HEADER): Delete.
21200 * rtl.h: Delete all accessors for an INLINE_HEADER.
21201 (gen_inline_header_rtx): Delete declaration.
21202 (regno_reg_rtx, regno_pointer_align, nonlocal_goto_handler_labels):
21203 Delete declarations.
21204 (REGNO_POINTER_ALIGN): Delete.
21205 (clear_emit_caches): Declare.
21206 (set_new_last_label_num): Declare.
21208 Mon Aug 9 01:52:24 1999 Jason Merrill <jason@yorick.cygnus.com>
21210 * print-tree.c (print_node): Print base for OFFSET_TYPEs.
21212 * except.c (expand_eh_region_start_for_decl): Always start a new block.
21213 * stmt.c (is_eh_region): Make sure current_function is present, too.
21215 Mon Aug 9 01:15:24 1999 Jeffrey A Law (law@cygnus.com)
21217 * pa.h (HARD_REGNO_MODE_OK): Correctly handle FPregs, even when
21218 for 64bit PA targets.
21220 * pa.h (SELECT_SECTION): Define.
21221 * som.h (SELECT_SECTION): Delete.
21223 Sun Aug 8 15:13:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21225 * alias.c (init_alias_analysis): Wrap call to
21226 `prologue_epilogue_contains' within HAVE_prologue||HAVE_epilogue.
21228 1999-08-07 Bruce Korb <autogen@linuxbox.com>
21230 * fixinc/inclhack.def(irix_asm_apostrophe): IRIX 5.2's
21231 <sys/asm.h> contains an asm comment with an apostrophe
21232 * fixinc/inclhack.sh: regen
21233 * fixinc/fixincl.x: regen
21235 Sat Aug 7 19:37:07 1999 Richard Henderson <rth@cygnus.com>
21237 * function.c (init_function_start): Clear prologue & epilogue.
21238 (prologue_epilogue_contains): New function.
21239 * alias.c (init_alias_analysis): Use it.
21240 * rtl.h (prologue_epilogue_contains): Declare it.
21242 Sat Aug 7 19:32:16 1999 Richard Henderson <rth@cygnus.com>
21244 * jump.c (onlyjump_p): New function.
21245 * rtl.h: Declare it.
21246 * flow.c (delete_unreachable_blocks): Use onlyjump_p instead
21247 of condjump_p in calling tidy_fallthru_edge and merge_blocks.
21249 Sat Aug 7 17:09:36 1999 Richard Henderson <rth@cygnus.com>
21251 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_REG_SET
21252 to invert loops. Simplify block scanning.
21254 Sat Aug 7 02:11:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21256 * gcse.c (hash_scan_set): Treat SYMBOL_REFs like CONST_INTs.
21257 (cprop_insn): Treat SYMBOL_REFs like CONST_INTs.
21259 1999-08-07 Jonathan Larmour <jlarmour@cygnus.co.uk>
21261 * config/sparc/liteelf.h: New file to support sparclite-elf target
21262 * config/sparc/t-sp86x: New file to support sparc86x targets
21263 * config/sparc/sp86x-aout.h: New file to support sparc86x-aout target
21264 * config/sparc/sp86x-elf.h: New file to support sparc86x-elf target
21265 * configure.in: Support above target triplets
21266 * configure: Regenerated
21268 Sat Aug 7 01:39:27 1999 Philippe De Muyter <phdm@macqel.be>
21270 * fixinc/server.c (server_setup): Do not prefix function used as
21271 parameter with `&'.
21273 Sat Aug 7 00:21:20 1999 Richard Henderson <rth@cygnus.com>
21275 * alpha.md (movhi and movqi patterns): Correct predicate for !BWX.
21276 Remove fp reg alternatives.
21278 Sat Aug 7 00:06:54 1999 Jeffrey A Law (law@cygnus.com)
21280 * Makefiin (TAROUTOPTS): Kill.
21281 (install-headers-tar): Use "xpf" for tar headerfile extraction
21282 * i370/x-oe (TAROUTOPTS): Delete.
21283 * m68k/x-apollo68 (TAROUTOPTS): Delete.
21284 * m68k/x-hp320 (TAROUTOPTS): Delete.
21285 * m68k/x-hp320g (TAROUTOPTS): Delete.
21286 * gcc.texi: Update bug reporting text.
21288 1999-08-6 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21290 * reg-stack.c (change_stack) Fixed problem with negative array index.
21292 Fri Aug 6 23:08:44 1999 Jeffrey A Law (law@cygnus.com)
21294 * extend.texi, install.texi: Fix spelling mistakes.
21296 * Makefile.in (PREMADE_ATTRTAB_MD, PREMADE_ATTRTAB): Delete.
21297 (s-attrtab); No longer try to use pre-made insn-attrtab file.
21298 * mips/t-bsd: Delete references to obsolete PREMADE_ATTRTAB and
21299 PREMADE_ATTRTAB_MD.
21300 * mips/t-ecoff: Likewise.
21301 * mips/t-elf: Likewise.
21302 * mips/t-mips: Likewise.
21303 * mips/t-osfrose: Likewise.
21304 * mips/t-r3900: Likewise.
21305 * mips/t-svr3: Likewise.
21306 * mips/t-svr4: Likewise.
21307 * mips/t-ultrix: Likewise.
21309 * gcc.texi: Document recommend means to provide software floating
21310 point libraries in libgcc.a
21312 1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
21314 * c-lex.c (yylex): We can have a number with no digits.
21316 Fri Aug 6 16:53:55 EDT 1999 John Wehle (john@feith.com)
21318 * jump.c (delete_prior_computation): New function, broken
21319 out of delete_computation. Check for side effects with
21320 side_effects_p instead of FIND_REG_INC_NOTE. Handle
21321 multi-word hard registers.
21322 (delete_computation): Use it. Check for side effects with
21323 side_effects_p instead of FIND_REG_INC_NOTE. Synthesize a
21324 missing REG_DEAD note for a register which is both set and
21327 Fri Aug 6 11:05:29 1999 Jeffrey A Law (law@cygnus.com)
21329 * elf.h (TEXT_SPACE_P, FUNCTION_NAME_P): Delete.
21330 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT): Likewise.
21331 (ASM_FILE_START): Import _mcount with the right type.
21332 (ASM_DECLARE_FUNCTION_NAME): Define.
21333 (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
21334 * pa.c (output_function_prologue): Always emit the function's label
21336 * pa.h (TEXT_SPACE_P): Define.
21337 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
21338 (ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT, ASM_GLOBALIZE_LABEL): Likewise.
21339 * som.h (TEXT_SPACE_P): Delete.
21340 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
21341 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT): Likewise.
21343 Thu Aug 5 19:29:39 1999 Jim Wilson <wilson@cygnus.com>
21345 * expr.c (emit_group_load): Allow src to be a CONCAT.
21347 Thu Aug 5 22:27:15 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21349 * config/sh/lib1funcs.asm (___movstrSI0): Change or r0,r0,r0 to nop.
21350 (___mulsi3): Use '!' comment character.
21352 Thu Aug 5 13:34:14 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21354 * reload1.c (maybe_fix_stack_asms): Also declare P as "const char *".
21356 Thu Aug 5 02:40:42 1999 Jeffrey A Law (law@cygnus.com)
21358 * gcc.c: Update URLs and mail addresses.
21359 * gcc.texi: Likewise.
21361 Thu Aug 5 01:14:13 1999 Daniel Jacobowitz <drow@false.org>
21363 * rs6000.c (current_file_function_operand): Return zero for
21365 (rs6000_encode_section_info): Do not set SYMBOL_REF_FLAG for
21367 * rs6000.h (ENCODE_SECTION_NIFO): Do not set SYMBOL_REF_FLAG
21370 Thu Aug 5 00:56:30 1999 Geoffrey Keating <geoffk@cygnus.com>
21372 * rs6000.c (rs6000_stack_info): For ABI_V4/ABI_SOLARIS -fpic, always
21373 allocate space in the stack frame for the PIC register.
21375 Thu Aug 5 00:20:47 1999 Jeffrey A Law (law@cygnus.com)
21377 * m68k.md (xordi3, anddi3): These patterns are not available on
21380 Wed Aug 4 23:39:20 1999 Mark Mitchell <mark@codesourcery.com>
21382 * real.c (GET_REAL): Don't violate ANSI/ISO aliasing rules.
21383 (PUT_REAL): Likewise.
21385 Wed Aug 4 20:45:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21387 * final.c (shorten_branches): Don't add an alignment for loops
21388 that have no label inside.
21390 Wed Aug 4 16:39:24 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21392 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp): Wrap
21393 prototypes in macro HAVE_cmpstrsi.
21395 * cpplib.c (cpp_get_token): Remove unused label `op3'.
21397 * emit-rtl.c (operand_subword): Remove unused variable
21400 * rtl.c (shallow_copy_rtx): Remove unused variable `format_ptr'.
21402 * tree.c (chainon): Wrap variable `t2' in macro ENABLE_CHECKING.
21404 Wed Aug 4 13:29:23 1999 Zack Weinberg <zack@bitmover.com>
21406 * cpphash.c (macroexpand): Delete leading whitespace when arg
21407 is concatenated before.
21408 (unsafe_chars): Correct test for whether + and - can extend a
21411 * cppinit.c (cpp_start_read): Do dependencies for
21412 -include/-imacros files also.
21414 * cpplib.c (cpp_scan_buffer): In no-output mode, don't bother
21415 tokenizing non-directive lines.
21416 (cpp_expand_to_buffer): Temporarily disable no-output mode.
21417 * cppmain.c: In no-output mode, just call cpp_scan_buffer for
21420 Wed Aug 4 12:53:44 1999 Jason Merrill <jason@yorick.cygnus.com>
21422 * expr.c (expand_expr, case PLUS_EXPR): Fix parallel case, too.
21424 * c-lex.c: Sync with C++ frontend.
21425 (linemode): New variable.
21426 (parse_float): imag, conversion_errno, and type are output only.
21427 (yylex): Adjust. Move initial '.' case into main switch.
21429 (handle_generic_pragma): Just deal with tokens.
21430 (readescape): Use ISXDIGIT and ISGRAPH.
21431 * c-parse.in: Add END_OF_LINE token.
21433 * c-lex.c (lang_init): Generalize.
21434 (nextchar): Remove. Replace uses with UNGETC.
21435 (skip_white_space): Handle linemode here. Optimize for cpplib.
21436 (skip_white_space_on_line): Remove.
21437 (extend_token_buffer_to): New fn.
21438 (extend_token_buffer): Use it.
21439 (read_line_number, check_newline): Just deal with tokens.
21440 (token_getch, token_put_back): New fns.
21441 (yylex): Use them. More cpplib optimizations. Simplify.
21443 Wed Aug 4 12:53:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
21444 Jason Merrill <jason@yorick.cygnus.com>
21446 * c-lex.c (init_parse): Set cpp_token to CPP_DIRECTIVE.
21447 (consume_string): Make this smart about USE_CPPLIB.
21448 (check_newline): Rewrite to be intelligent about USE_CPPLIB.
21449 (yylex): Rewrite to be intelligent about USE_CPPLIB.
21450 Also, clean up cases where we redundantly set token_buffer[0].
21451 (read_line_number): New fn.
21452 (ignore_escape_flag): New variable.
21454 Wed Aug 4 13:12:17 1999 Jeffrey A Law (law@cygnus.com)
21456 * a29k/t-a29kbare: Fix some comments.
21457 (LIB2FUNCS_EXTRA): Remove fp-bit.c and dp-bit.c
21458 (FPBIT, DPBIT): Define.
21459 * a29k/t-vx29k: Likewise.
21460 * arc/t-arc: Likewise.
21461 * arm/t-arm-elf: Likewise.
21462 * arm/t-bare: Likewise.
21463 * arm/t-pe: Likewise.
21464 * arm/t-pe-thumb: Likewise.
21465 * arm/t-semi: Likewise.
21466 * arm/t-thumb: Likewise.
21467 * arm/t-thumb-elf: Likewise.
21468 * arm/t-thumb-linux: Likewise.
21469 * h8300/t-h8300: Likewise.
21470 * i960/t-i960: Likewise.
21471 * i960/t-vxworks960: Likewise.
21472 * m32r/t-m32r: Likewise.
21473 * mips/t-ecoff: Likewise.
21474 * mips/t-elf: Likewise.
21475 * mips/t-r3900: Likewise.
21476 * pa/t-pro: Likewise.
21477 * rs6000/t-aix43: Likewise.
21478 * rs6000/t-beos: Likewise.
21479 * rs6000/t-newas: Likewise.
21480 * rs6000/t-ppccomm: Likewise.
21481 * rs6000/t-rs6000: Likewise.
21482 * rs6000/t-winnt: Likewise.
21483 * rs6000/t-xnewas: Likewise.
21484 * rs6000/t-xrs6000: Likewise.
21485 * sh/t-sh: Likewise.
21486 * sparc/t-elf: Likewise.
21487 * sparc/t-sparcbare: Likewise.
21488 * sparc/t-sparclite: Likewise.
21489 * sparc/t-splet: Likewise.
21490 * v850/t-v850: Likewise.
21491 * mn10200/t-mn10200: Fix comments.
21492 * mn10300/t-mn10300: Likewise.
21494 * pa.md (divsi3, udivsi3, modsi3, umodsi3 expanders): Clobber a new
21495 dummy operand. Allocate a new pseudo for the dummy operand.
21496 (divsi3, udivsi3, modis3, umodsi3 patterns): Corresponding changes.
21498 * pa.md (movqi, movhi patterns): Do not expose FP regs to regclass.
21500 Wed Aug 4 11:53:55 1999 Tom Tromey <tromey@cygnus.com>
21502 * configure: Rebuilt.
21503 * configure.in: Removed --enable-java-gc option and JAVAGC subst.
21505 Wed Aug 4 09:06:14 1999 Richard Earnshaw (rearnsha@arm.com)
21507 * recog.c (preproces_constraints): Zero recog_op_alt before
21508 processing the constraints.
21510 * arm.c (typedef minipool_node): Renamed from pool_node.
21511 (minipool_vector, minipool_size, minipool_vector_label): Similarly.
21512 (add_minipool_constant): New function.
21513 (dump_minipool): New function.
21514 (find_barrier): Remove special case for getting the insn size of
21515 an insn that references the constant pool.
21516 (minipool_fixup): New structure.
21517 (push_minipool_barrier): New function.
21518 (push_minipool_fix): New function.
21519 (note_invalid_constants): New function.
21520 (add_pool_constant, dump_table, fixit, broken_move): Delete.
21521 (arm_reorg): Rewrite code to fix up the constant pool into a
21522 series of mini-pools embedded in the insn stream.
21523 (arm_output_epilogue): New function, made mainly from the body
21524 of output_func_epilogue.
21525 (output_func_epilogue): Move insn generation part of epilogue code
21526 to arm_output_epilogue.
21527 * arm.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Delete.
21528 * arm.md (pool_range): New attribute.
21529 (zero_extendqidi2): Add attribute pool_range.
21530 (zero_extend_hisi_insn, load_extendqisi, extendhisi_insn,
21531 extendqihi_insn, extendqisi_insn, movdi, movsi_insn, pic_load_addr,
21532 pic_load_addr_based_insn, movhi_insn_arch4, movhi_insn_littleend,
21533 movhi_insn_bigend, loadhi_si_bigend, movsf_hard_insn, movsf_soft_insn,
21534 movdf_hard_insn, movdf_soft_insn, movxf_hard_insn): Likewise.
21535 (epilogue): New expand.
21536 (epilogue_insn): New insn. Call arm_output_epilogue.
21538 * arm.c (arm_poke_function_name): Undo change of July 17. Tidy up.
21539 * arm.h (TARGET_SWITCHES): Add missing doc string for TARGET_DEFAULT.
21541 Mon Aug 2 19:18:44 1999 Jason Merrill <jason@yorick.cygnus.com>
21543 * linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
21545 1999-08-04 Mark Elbrecht <snowball3@bigfoot.com>
21547 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Define.
21549 Wed Aug 4 02:15:32 1999 Richard Henderson <rth@cygnus.com>
21551 * jump.c (delete_insn): Delete the addr_vec when deleting a tablejump.
21553 Wed Aug 4 01:48:08 1999 Jim Kingdon <http://developer.redhat.com>
21555 * global.c: Fix comment.
21557 Wed Aug 4 01:43:01 1999 Ian Lance Taylor <ian@zembu.com>
21559 * gcc.c (access_check): New static function.
21560 (find_a_file): Use it when searching a directory list.
21561 * collect2.c (find_a_file): Don't accept directories found when
21562 searching a directory list.
21564 Wed Aug 4 01:40:43 1999 Philippe De Muyter <phdm@macqel.be>
21566 * tlink.c (symbol_hash_lookup): Do not prefix functions used as
21567 function parameters with `&'.
21568 (file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.
21570 Wed Aug 4 01:08:44 1999 Jeffrey A Law (law@cygnus.com)
21572 * flow.c (delete_unreachable_blocks): Do not call merge_blocks
21573 or tidy_fallthru_edge if the last insn in the block is not
21574 an unconditional jump or a simple conditional jump.
21576 Tue Aug 3 20:21:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21578 * Makefile.in (c-decl.o): Depends on defaults.h.
21580 Tue Aug 3 14:14:52 1999 Jeffrey A Law (law@cygnus.com)
21582 * pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for
21584 (CLASS_MAX_NREGS): Likewise.
21586 Tue Aug 3 03:51:20 1999 Jeffrey A Law (law@cygnus.com)
21588 * cse.c (cse_insn): Fix dumb thinko in last change.
21590 Tue Aug 3 10:36:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21592 * reload1.c (maybe_fix_stack_asms): Declare CONSTRAINTS as
21595 Mon Aug 2 23:45:45 1999 Hans-Peter Nilsson <hp@bitrange.com>
21597 * dwarf2out.c (add_location_or_const_value_attribute): Correct
21598 test for sizes of passed and declared parameter types.
21600 Tue Aug 3 00:03:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21602 * fixincludes: Fix the return type of bsearch, char* -> void*.
21604 * fixinc/inclhack.def: Likewise.
21606 Mon Aug 2 18:29:32 1999 Mark Mitchell <mark@codesourcery.com>
21608 * invoke.texi (-fdump-translation-unit): New option.
21610 Mon Aug 2 17:54:19 1999 Richard Henderson <rth@cygnus.com>
21612 * expr.h (PROMOTE_PROTOTYPES): Move ...
21613 * defaults.h: ... to here.
21614 * c-decl.c: Include defaults.h instead of expr.h.
21615 * c-typeck.c: Include defaults.h.
21617 Mon Aug 2 17:10:24 1999 Mark Mitchell <mark@codesourcery.com>
21619 * toplev.h (errorcount): Declare.
21620 (warningcount): Likewise.
21621 (sorrycount): Likewise.
21622 * c-lex.c (errorcount): Don't declare.
21623 * dwarf2out.c (errorcount): Don't declare.
21625 Mon Aug 2 17:02:08 1999 Jason Merrill <jason@yorick.cygnus.com>
21627 * config/libgloss.h: Add a note discouraging use with ELF.
21628 * configure.in: Don't use libgloss.h for ELF targets.
21629 Always use_collect2 on a.out targets.
21631 Mon Aug 2 16:27:42 1999 Jim Wilson <wilson@cygnus.com>
21633 * combine.c (force_to_mode, case LSHIFTRT): Add goto shiftrt.
21634 (force_to_mode, case ASHIFTRT): Add shiftrt label.
21636 Tue Aug 3 00:45:02 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21638 * loop.c (strength_reduce): When doing biv->giv conversion, update
21639 reg note of NEXT->insn.
21641 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
21643 * real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad.
21645 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
21647 * c-decl.c (get_parm_info, store_parm_decls): Change all uses of
21648 PROMOTE_PROTOTYPES, so that it tests it as a C expression.
21649 Ensure expr.h is included.
21650 * c-typecheck.c (convert_arguments): Ditto.
21652 * expr.h: Supply default for PROMOTE_PROTOTYPES (0).
21654 * config/arc/arc.h: Define PROMOTE_PROTOTYPES to 1.
21655 * config/convex/convex.h: Ditto.
21656 * config/dsp16xx/dsp16xx.h: Ditto.
21657 * config/fx80/fx80.h: Ditto.
21658 * config/gmicro/gmicro.h: Ditto.
21659 * config/i370/i370.h: Ditto.
21660 * config/i386/i386.h: Ditto.
21661 * config/m32r/m32r.h: Ditto.
21662 * config/m68k/m68k.h: Ditto.
21663 * config/m88k/m88k.h: Ditto.
21664 * config/mips/mips.h: Ditto.
21665 * config/pa/pa.h: Ditto.
21666 * config/pyr/pyr.h: Ditto.
21667 * config/tahoe/tahoe.h: Ditto.
21668 * config/we32k/we32k.h: Ditto.
21670 * config/sparc/sparc.h: Define PROMOTE_PROTOTYPES
21671 based on arch size.
21673 * config/i1750a/i1750a.h: Define PROMOTE_PROTOTYPES to 0.
21675 * config/i860/paragon.h: Remove PROMOTE_PROTOTYPES
21678 * tm.texi: Document new usage of PROMOTE_PROTOTYPES.
21680 1999-08-02 Richard Henderson <rth@cygnus.com>
21682 * m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set
21683 for the register spill block.
21684 (m32r_va_arg): New.
21685 * m32r.h (EXPAND_BUILTIN_VA_ARG): New.
21686 (EXPAND_BUILTIN_SAVEREGS): Delete #if 0 code.
21688 * m32r.h (INT8_P): Don't short-cut test with (unsigned).
21689 (INT16_P, CMP_INT16_P, UINT16_P): Likewise.
21690 (UPPER16_P, UINT24_P, INT32_P, UINT5_P): Likewise.
21692 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
21694 * config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef
21695 MAX_WCHAR_TYPE defined in sparc.h.
21696 * config/sparc/linuxaout.h: Likewise.
21697 * config/sparc/linux64.h: Likewise.
21698 Also default to -mvis if CPU is UltraSPARC.
21700 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
21702 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro.
21703 (RTX_OK_FOR_OLO10): Likewise.
21704 (GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable
21705 %lo(), allow it in addresses...
21706 (PRINT_OPERAND_ADDRESS): ... and print it appropriately.
21707 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo()
21708 does not make sense.
21709 * config/sparc/sparc.c (sparc_hard_reg_printed): New array.
21710 (sparc_output_scratch_registers): New function.
21711 (output_function_prologue, sparc_flat_output_function_prologue): Use
21713 * varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if
21715 * tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it.
21716 * configure.in: Add check for .register pseudo-op support in as and
21717 check for offsetable %lo().
21718 * acconfig.h: Add templates for the above checks.
21719 * configure: Regenerate.
21721 1999-08-02 Richard Henderson <rth@cygnus.com>
21723 * sparc/linux64.h (TARGET_DEFAULT): Remove MASK_APP_REGS.
21724 * sparc/sol2-sld-64.h (TARGET_DEFAULT): Likewise.
21725 * sparc/sol2.h (TARGET_DEFAULT): Likewise.
21727 Mon Aug 2 23:46:45 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21729 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
21732 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
21734 * config/float-sparc.h: New file.
21735 * configure.in: Use float_format=sparc for sparc-*-linux-gnulibc1,
21736 sparc-*-linux-gnu and sparc64-*-linux*.
21738 1999-08-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21740 * rs6000.c (rs6000_va_list): Type is an array.
21741 (rs6000_va_start): Don't doubly adjust for varargs.
21742 (rs6000_va_arg): Evaluate long long GPR adjustment.
21744 Mon Aug 2 16:15:57 1999 David Edelsohn <edelsohn@gnu.org>
21746 * rs6000/aix43.h (SUBTARGET_SWITCHES): Use -m64 and -m32 instead of
21747 -maix64 and -maix32.
21748 (ASM_SPEC, ASM_CPU_SPEC, CPP_SPEC, CPP_CPU_SPEC, LIB_SPEC,
21749 LINK_SPEC): Change appropriately.
21750 * rs6000/rs6000.c (short_cint_operand): Use CONST_OK_FOR_LETTER_P.
21751 (u_short_cint_operand): Likewise.
21752 * rs6000/rs6000.md (movdi splitters): Add TARGET_POWERPC64 support
21754 * rs6000/t-aix43 (MULTILIB): Change to -m64.
21756 * invoke.texi (RS/6000 Submodel): Document 64-bit processor options.
21758 Mon Aug 2 16:15:57 1999 Geoff Keating <geoffk@cygnus.com>
21760 * rs6000/rs6000.c (num_insns_constant_wide): Correct
21761 for type promotion.
21762 (add_operand): Get test correct for 64-bit HOST_WIDE_INT.
21763 (non_add_cint_operand): Likewise.
21764 (logical_operand): Likewise.
21765 (non_logical_cint_operand): Likewise.
21766 (print_operand): Correct printf()s for 64-bit HOST_WIDE_INT.
21767 (print_operand_address): Correct printf() for 64-bit HOST_WIDE_INT.
21768 (rs6000_select_rtx_section): Suppress warning.
21769 (small_data_operand): Suppress warning.
21770 (rs6000_got_register): Suppress warning.
21771 * rs6000/rs6000.md (andsi3): HOST_WIDE_INT is a signed
21772 type, so `J' is generally the wrong constraint for a SImode value;
21774 (andsi3_internal2): Likewise.
21775 (andsi3_internal3): Likewise.
21776 (iorsi3_internal1): Likewise.
21777 (xorsi3_internal1): Likewise.
21779 (movsf_softfloat): Likewise.
21780 (scc insns): Likewise.
21781 (movsi+2): Preserve sign bits of SImode constant.
21782 (floatsidf2_internal+1): Sign-extend SImode constant correctly.
21783 (movdf+1): Sign-extend properly.
21784 (movdi_32+1): Sign-extend properly.
21785 (scc insns): Sign-extend properly.
21787 * md.texi (RS/6000 EXTRA_CONSTRAINTS): Update documentation for J,
21790 1999-08-02 Richard Henderson <rth@cygnus.com>
21792 * alpha.c (override_options): Move ev6 alpha_tp frobbing out of
21793 -mcpu parsing code.
21794 (print_operand): Notice alpha_fptm not alpha_tp for sw completion.
21795 * alpha.md (all fp insns): Likewise.
21797 1999-08-02 Nick Clifton <nickc@cygnus.com>
21799 * config/v850/v850.h (STRICT_ALIGNMENT): Only define if not
21802 Mon Aug 2 03:38:33 1999 Jeffrey A Law (law@cygnus.com)
21804 * pa.c (legitimize_pic_address): Clarify comments. Do not call the
21805 pic_load_label generator directly.
21806 * pa.md (pic_load_label): Clarify comments. Remove modes on operands.
21807 No longer a named pattern.
21809 Mon Aug 2 09:38:10 1999 Nick Clifton <nickc@cygnus.com>
21811 * explow.c (force_reg): Call force_operand if X does not
21812 satisfy general_operand.
21814 Mon Aug 2 01:34:22 1999 Jeffrey A Law (law@cygnus.com)
21816 * fix-header.c (main): When testing for CONTINUED, use string
21817 equality, not pointer equality.
21819 Mon Aug 2 01:27:24 1999 Dan Nicolaescu <dann@ics.uci.edu>
21821 * sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.
21823 Sun Aug 1 22:46:42 1999 Jeffrey A Law (law@cygnus.com)
21825 * cse.c (cse_insn): Fix loop which deletes insns after a jump
21826 that has become an unconditional jump.
21828 * m68k.c (output_function_prologue): Fix typo in CPU32 case.
21829 (output_function_epilogue): Similarly.
21831 Sun Aug 1 20:14:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21833 * tree.h (init_dummy_function_start): Declare.
21835 Sun Aug 1 12:55:31 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21837 * stmt.c (emit_filename, emit_lineno, expr_stmts_for_value,
21838 last_expr_type, last_expr_value, block_start_count, block_stack,
21839 stack_block_stack, cond_stack, loop_stack, case_stack, nesting_stack,
21840 nesting_depth, goto_fixup_chain): Delete global vars; now allocated
21841 dynamically in stmt elt of struct function for each function.
21842 (struct nesting): Rename function_call_count elt to n_function_calls,
21843 target_temp_slot_level to block_target_temp_slot_level. All users
21845 (struct stmt_status): New structure definition.
21846 Add many accessor macros for stmt_status elements which previously
21847 were global variables.
21848 (init_stmt_for_function): Allocate stmt elt for current_function.
21849 Reflect that block_start_count was renamed to
21850 current_block_start_count.
21851 (save_stmt_status, restore_stmt_status): Delete functions.
21852 (preserve_subexpressions_p): Don't access loop_stack when outside
21854 (expand_start_bindings): Reflect that block_start_count was renamed to
21855 current_block_start_count.
21856 (expand_fixup): Likewise.
21857 (expand_decl): Don't access block_stack when outside a function.
21858 (expand_decl_cleanup): Likewise.
21859 (expand_dcc_cleanup): Likewise.
21860 (expand_dhc_cleanup): Likewise.
21861 (expand_anon_union_decl): Likewise.
21862 (set_file_and_line_for_stmt): New function.
21863 (in_control_zone_p): New function.
21865 * function.h (struct function): Add new elt stmt.
21866 Delete elts block_stack, stack_block_stack, cond_stack, loop_stack,
21867 case_stack, nesting_stack, nesting_depth, block_start_count,
21868 last_expr_type, last_expr_value, expr_stmts_for_value, emit_filename,
21869 emit_lineno, goto_fixup_chain.
21870 (save_eh_status, restore_eh_status, save_stmt_status,
21871 restore_stmt_status): Delete declarations.
21872 * function.c (push_function_context_to): Don't call save_stmt_status.
21873 (pop_function_context_to): Don't call restore_stmt_status.
21874 * tree.h (in_control_zone_p): Declare.
21875 * rtl.h (set_file_and_line_for_stmt): Declare.
21877 * emit-rtl.c (emit_line_note): Don't set emit_filename/emit_lineno;
21878 call set_file_and_line_for_stmt.
21880 Thu Jul 31 12:34:45 1999 Joe Buck <jbuck@synopsys.com>
21882 * gcc.texi: Use terms "GNU Compiler Collection" and "GCC".
21883 Also update copyright.
21885 Sat Jul 31 11:10:07 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21887 * c-pragma.c: Don't include "except.h".
21888 * emit-rtl.c: Likewise.
21889 * stor-layout.c: Likewise.
21890 * tree.c: Likewise.
21891 * varasm.c: Likewise.
21893 * flow.c: Include "function.h".
21894 * tree.h (init_dummy_function_start): Declare new function.
21896 * except.h (struct eh_status): New structure.
21897 (struct label_node, struct eh_entry): Declare even if tree.h hasn't
21899 (eh_return_stub_label, ehstack, catchstack, ehqueue,
21900 catch_clauses, false_label_stack, caught_return_label_stack,
21901 protect_list, current_function_ehc): Add accessor macros for the
21902 corresponding fields in current_function->eh; delete declarations
21903 for all items that used to be declared here.
21904 * except.c (eh_return_stub_label, ehstack, catchstack, ehqueue,
21905 catch_clauses, false_label_stack, caught_return_label_stack,
21906 protect_list, current_function_ehc): Delete variables.
21907 (init_eh_for_function): Allocate current_function->eh.
21908 (save_eh_status, restore_eh_status): Delete functions.
21910 * function.h (struct function): Add fields next_global and eh.
21911 Delete all exception handling related fields.
21912 * function.c (current_function): New variable.
21913 (all_functions): New variable.
21914 (push_function_context_to): Don't allocate a struct function,
21915 use current_function instead. Call init_dummy_function_start when
21916 outside a function. Clear current_function before returning.
21917 (pop_function_context_from): Restore current_function.
21918 Don't free the restored struct function.
21919 (prepare_function_start): New function.
21920 (init_dummy_function_start): New function.
21921 (init_function_start): Break out some code into prepare_function_start
21924 * stmt.c (save_stmt_status): Don't call save_eh_status.
21925 (restore_stmt_status): Don't call restore_eh_status.
21927 * Makefile.in: Update dependencies.
21929 Sat Jul 31 04:10:01 1999 Jeffrey A Law (law@cygnus.com)
21931 * pa.c (compute_frame_size): Use STARTINg_FRAME_OFFSET instead
21932 of depending on a magic constant value. Update comments.
21933 (hppa_expand_prologue): Similarly.
21935 * pa.md (reload_indi, reload_outdi): Allow any register for the
21936 original reload register.
21938 Fri Jul 30 19:41:35 1999 Jim Wilson <wilson@cygnus.com>
21940 * cccp.c (print_help): Change marcos to macros.
21942 1999-07-30 Richard Henderson <rth@cygnus.com>
21944 * c-typeck.c (initializer_constant_valid_p): Move ...
21945 * c-common.c (initializer_constant_valid_p): ... here. Use
21946 FOO_TYPE_P instead of tests against TREE_CODE. Allow subtraction
21947 of label addresses.
21948 * c-common.h (initializer_constant_valid_p): Declare.
21949 * c-tree.h (initializer_constant_valid_p): Remove.
21951 Fri Jul 30 16:33:42 1999 Mathias Froehlich <frohlich@na.uni-tuebingen.de>
21953 * config/i386/sol2-c1.asm: Align the stack.
21954 * config/i386/sol2-gc1.asm: Likewise.
21956 1999-07-30 Vladimir Makarov <vmakarov@loony.cygnus.com>
21958 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto
21959 -Asparclite for sparc86x.
21960 (CPP_CPU32_DEFAULT_SPEC, CPP_CPU_SPEC): Remove -D__sparc_v8__ for
21962 (ASM_CPU_SPEC): Use -Asparclite for sparc86x.
21964 Fri Jul 30 14:53:56 1999 Jakub Jelinek <jj@ultra.linux.cz>
21966 * config/sparc/linux64.h (CC1_SPEC): Preserve CPU specified by
21967 the user if using the non-default arch size in BI_ARCH configuration.
21968 * config/sparc/sol2-sld-64.h (CC1_SPEC): Ditto.
21970 * config/sparc/sparc.md (cmp_mul_set, cmp_udiv_cc_set):
21971 Fix patterns so that they actually match.
21972 (cmp_sdiv_cc_set): Ditto, also don't require g0 to be zero.
21973 (mulsidi3_sp64, const_mulsidi3_sp64): New patterns.
21974 (const_mulsidi3_sp32): Renamed from const_mulsidi3, only on
21976 (mulsidi3): Reflect this in the expand.
21977 (smulsi3_highpart): Only on TARGET_ARCH32.
21978 (umulsidi3_sp64, const_umulsidi3_sp64): New patterns.
21979 (const_umulsidi3_sp32): Renamed from const_umulsidi3.
21980 (umulsidi3): Reflect this in the expand.
21981 (umulsi3_highpart): Only on TARGET_ARCH32.
21982 (divsi3_sp32): Renamed from divsi3, only on TARGET_ARCH32,
21983 don't require g0 to be zero.
21984 (udivsi3_sp32): Renamed from udivsi3, only on TARGET_ARCH32.
21985 ({,u}divsi3): New expands.
21986 ({,u}divsi3_sp64): New patterns.
21987 (after lshrdi3_v8plus): Four new patterns to help combiner
21988 optimizing nested mixed mode shifts.
21990 * config/sparc/sparc.c (sparc_override_options): Use deprecated
21991 v8 instructions if optimizing for UltraSPARC I, II, IIi, as it
21992 speed things up. Don't use them by default on plain v9 in 64bit
21993 mode, according to what SPAMv9 sais.
21995 * config/sparc/sparc.h: Fix comments, e.g. Linux already preserves
21996 top 32 bits of %[og][0-7] in signal handlers.
21997 Also, TARGET_HARD_MUL32 now is only true for TARGET_ARCH32.
21999 Fri Jul 30 03:00:41 1999 Jeffrey A Law (law@cygnus.com)
22001 * pa.md (zvdep_imm32): Renamed from zvdep_imm.
22002 (ashlsi3): Corresponding changes.
22004 * pa.c (compute_zdepwi_operands): Renamed from compute_zdepi_operands.
22006 Thu Jul 29 18:37:13 1999 Jeffrey A Law (law@cygnus.com)
22008 * pa.h (FIRST_PARM_CALLER_OFFSET): Delete.
22010 Thu Jul 29 19:01:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22012 * arm.h (Hint): Delete macro.
22013 Substitute HOST_WIDE_INT for Hint in some prototypes.
22014 * arm.c: Substitute HOST_WIDE_INT for Hint in one prototype.
22016 Thu Jul 29 09:21:42 1999 Nick Clifton <nickc@cygnus.com>
22018 * builtins.c (expand_builtin_setjmp): Use force_operand to
22019 make sure that the buffer address is in a suitable form to be
22020 passed to force_reg.
22022 Wed Jul 28 12:50:48 1999 Geoff Keating <geoffk@cygnus.com>
22024 * config/mips/mips.c: system.h handles MIN and MAX, don't undefine
22027 Wed Jul 28 13:18:35 1999 Jeffrey A Law (law@cygnus.com)
22029 * pa.md (indirect_jump): Remove mode from match_operand. Verify
22030 proper mode in the condition string.
22031 (icacheflush, dcacheflush): Remove modes from match_operands.
22033 * pa.c (emit_move_sequence): Always convert scratch_reg to the
22034 proper mode before using it.
22036 * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
22039 * pa.c (store_reg): Do not call add_high_const generator directly.
22040 (load_reg, set_reg_plus_d): Likewise.
22041 * pa.md (add_high_const): No longer a named pattern.
22043 * pa.c (legitimize_address): Consistently use Pmode rather than
22044 SImode. Do not call gen_pic2_highpart directly anymore.
22045 * pa.md (pic2_highpart): No longer a named pattern.
22046 (pic2_lo_sum): Similarly. Reformat to make more readable.
22048 * pa.md (call, call_value): Use "word_mode" instead of "SImode" as
22053 Wed Jul 28 11:28:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22055 * builtins.c (expand_builtin): Typo in call to expand_builtin_ffs.
22057 Wed Jul 28 11:23:48 1999 Richard Henderson <rth@cygnus.com>
22059 * pa.c (hppa_builtin_saveregs): Use get_varargs_alias_set
22060 and tag the spill mems.
22061 (hppa_va_start): New.
22062 (hppa_va_arg): New.
22063 * pa.h (EXPAND_BUILTIN_VA_START): New.
22064 (EXPAND_BUILTIN_VA_ARG): New.
22066 Wed Jul 28 11:22:21 1999 Richard Henderson <rth@cygnus.com>
22068 * mn10300.c (mn10300_builtin_saveregs): Use get_varargs_alias_set
22069 and tag the spill mems.
22070 (mn10300_va_start): New.
22071 (mn10300_va_arg): New.
22072 * mn10300.h (EXPAND_BUILTIN_VA_START): New.
22073 (EXPAND_BUILTIN_VA_ARG): New.
22075 Wed Jul 28 11:20:19 1999 Richard Henderson <rth@cygnus.com>
22077 * mn10200.c (mn10200_va_arg): New.
22078 * mn10200.h (EXPAND_BUILTIN_VA_ARG): New.
22080 Wed Jul 28 11:19:06 1999 Richard Henderson <rth@cygnus.com>
22082 * builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
22083 rather than play with TREE_INT_CST_LOW.
22085 1999-07-27 Philip Blundell <pb@nexus.co.uk>
22087 * config/arm/telf.h: Include dbxelf.h.
22088 (CPP_PREDEFINES): Only define if not already defined.
22089 (ASM_IDENTIFY_GCC): Likewise.
22090 (SUBTARGET_EXTRA_SECTIONS): Likewise.
22091 (SUBTARGET_EXTRA_SECTION_FUNCTIONS): Likewise.
22092 * config/arm/thumb.h (LINK_SPEC): Only define if not already
22094 (DBX_DEBUGGING_INFO): Don't define.
22095 * config/arm/linux-telf.h: New file.
22096 * config/arm/linux-tgas.h: New file.
22097 * config/arm/t-thumb-linux: New file.
22098 * config/arm/uclinux-elf.h: New file.
22099 * config/arm/uclinux-telf.h: New file.
22100 * configure.in (arm-*-uclinux, thumb-*-linux-gnu,
22101 thumb-*-uclinux): New targets.
22102 * configure: Regenerate.
22104 Tue Jul 27 23:20:21 1999 Jeffrey A Law (law@cygnus.com)
22106 * pa.md (post_store, pre_load): New expanders.
22107 (post_stwm, pre_ldwm): Renamed to post_stw and pre_ldw respectively.
22108 (post_ldwm, pre_stwm): Make these unnamed patterns since we never
22109 need to directly generate RTL for them.
22110 * pa.c (hppa_expand_prologue, hppa_expand_epilogue): Corresponding
22113 Tue Jul 27 16:05:52 1999 David Edelsohn <edelsohn@gnu.org>
22115 * aix43.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add rs64a and PPC630.
22116 * rs6000.c (processor_target_table): Add powerpc64, rs64a, and PPC630.
22117 (rs6000_cpu): Choose between 32-bit and 64-bit default processors.
22118 (secndary_reload_class): Make TARGET_ELF conditional compile.
22119 (print_operand_address): Similar.
22120 (output_toc): Print all values as hex.
22121 (get_issue_rate): Rearrange and add RS64A and PPC630.
22122 * rs6000.h (processor_type): Add RS64A and PPC630.
22123 (PROCESSOR_POWERPC64): New.
22124 (PROMOTE_MODE): Use word_mode.
22125 (RTX_COSTS): Add RS64A and PPC630.
22126 * rs6000.md (scheduling information): Add lmul and ldiv
22127 representing 64-bit integer multiply and divide. Add rs64a and
22128 PPC630 information.
22129 (ashldi3): Add support for "rldic" instruction.
22130 * sysv4.h (PROCESSOR_DEFAULT): Change to PROCESSOR_750.
22132 Tue Jul 27 15:31:53 1999 Vladimir Makarov <vmakarov@toad.to.cygnus.com>
22134 * config/sparc/sparc.c (sparc_override_options): Enable SPARCLITE
22135 instead of V8 for sparclite86x in cpu_table.
22137 Tue Jul 27 17:49:42 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22139 * config/arm/coff.h (ASM_FILE_START): If generating SDB output, call
22140 output_file_directive.
22142 Tue Jul 27 03:15:33 1999 Jason Merrill <jason@yorick.cygnus.com>
22144 * expr.c (expand_expr, case PLUS_EXPR): Get the mode from the
22145 tree for op1, not the rtl.
22147 Tue Jul 27 00:18:34 1999 Richard Henderson <rth@cygnus.com>
22149 * m88k.c (m88k_builtin_saveregs): Break out the constructor code
22150 to m88k_va_start, leaving only the register spill.
22151 (m88k_build_va_list): New.
22152 (m88k_va_start): New.
22153 (m88k_va_arg): New.
22154 * m88k.h (BUILD_VA_LIST_TYPE): New.
22155 (EXPAND_BUILTIN_VA_START): New.
22156 (EXPAND_BUILTIN_VA_ARG): New.
22158 Mon Jul 26 19:07:11 1999 Geoff Keating <geoffk@cygnus.com>
22160 * config/rs6000/rs6000.c (rs6000_expand_builtin_saveregs):
22161 Rename from expand_builtin_saveregs.
22162 * config/rs6000/rs6000.h (EXPAND_BUILTIN_SAVEREGS): Change caller.
22164 Mon Jul 26 22:52:47 1999 Richard Henderson <rth@cygnus.com>
22166 * i960.c (i960_setup_incoming_varargs): Use get_varargs_alias_set
22167 for the register spill block.
22168 (i960_build_va_list): New.
22169 (i960_va_start): New.
22170 (i960_va_arg): New.
22171 * i960.h (BUILD_VA_LIST_TYPE): New.
22172 (EXPAND_BUILTIN_VA_START): New.
22173 (EXPAND_BUILTIN_VA_ARG): New.
22174 * i960.md (store_multiple): Use change_address on individul mems.
22176 Mon Jul 26 22:43:12 1999 Richard Henderson <rth@cygnus.com>
22178 * builtins.c (stabilize_va_list): Don't INDIRECT_REF through
22180 (std_expand_builtin_va_start): Back out one word if !stdarg_p.
22181 (expand_builtin_va_end): Evaluate arg for side effects.
22182 * c-common.c (c_common_nodes_and_builtins): Construct a
22183 va_list_arg_type_node to handle array decomposition to pointer.
22185 Mon Jul 26 18:51:34 1999 Richard Henderson <rth@cygnus.com>
22187 * except.c (st_dynamic_cleanup): Use force_operand on the
22190 Mon Jul 26 16:43:26 1999 Richard Henderson <rth@cygnus.com>
22192 * c4x.h (EXPAND_BUILTIN_VA_ARG): New.
22193 * c4x.c (c4x_va_arg): New.
22195 Mon Jul 26 12:30:09 1999 Jason Merrill <jason@yorick.cygnus.com>
22197 * cpplib.c (cpp_get_token): Don't return a CPP_POP if the buffer
22198 has manual_pop set.
22200 1999-07-26 Nathan Sidwell <nathan@acm.org>
22202 * eh-common.h (__eh_matcher): Prototype correctly.
22204 Mon Jul 26 17:24:51 1999 Philip Blundell <pb@nexus.co.uk>
22206 * config/arm/thumb.h (THUMB_FLAG_SINGLE_PIC_BASE): Define.
22207 (TARGET_SINGLE_PIC_BASE): Likewise.
22208 (GOT_PCREL, NEED_GOT_RELOC, NEED_PLT_RELOC): Provide default
22210 (TARGET_CALLEE_INTERWORKING): Fix typo in comment.
22211 (TARGET_SWITCHES): Add -m{no-}single-pic-base.
22212 (TARGET_OPTIONS): Add -mpic-register=N.
22213 (OUTPUT_INT_ADDR_CONST): New macro.
22214 (INDEX_REGISTER_RTX_P, PIC_OFFSET_TABLE_REGNUM, FINALIZE_PIC,
22215 LEGITIMATE_PIC_OPERAND_P): Likewise.
22216 (LEGITIMIZE_ADDRESS, GOT_IF_LEGITIMATE_ADDRESS): Support PIC.
22217 (ASM_OUTPUT_INT): Use OUTPUT_INT_ADDR_CONST rather than calling
22218 output_addr_const directly.
22219 (PRINT_OPERAND_PUNCT_VALID_P): Accept `|' for compatibility with
22221 (thumb_pic_register, thumb_pic_register_string): Declare.
22223 * config/arm/thumb.c (symbol_mentioned_p): New function: Imported
22225 (label_mentioned_p): New function: Imported from arm.c.
22226 (legitimize_pic_address): New function: Imported from arm.c.
22227 (is_pic):New function: Imported from arm.c.
22228 (thumb_finalize_pic):New function: Imported from arm.c.
22229 (add_constant): Cope with PIC constants.
22230 (fixit): Cope with PIC constants.
22231 (output_return): Do not treat the PIC register as live if
22232 TARGET_SINGLE_PIC_BASE is true.
22233 (thumb_function_prologue): Do not treat the PIC register as live if
22234 TARGET_SINGLE_PIC_BASE is true.
22235 (thumb_expand_prologue): Do not treat the PIC register as live if
22236 TARGET_SINGLE_PIC_BASE is true.
22237 (thumb_unexpand_epilogue): Do not treat the PIC register as live if
22238 TARGET_SINGLE_PIC_BASE is true.
22239 (thumb_print_operand): Accept '|'.
22240 (thumb_override_options): Process PIC options.
22242 * config/arm/thumb.md (movsi): Support PIC.
22243 (call_insn): Change "i" constraint to "X".
22244 (call_value_insn): Likewise.
22245 (consttable_4, consttable_8, consttable_end): Set and clear
22246 "making_const_table" as appropriate.
22247 (pic_load_addr, pic_add_dot_plus_four): New insns.
22249 * invoke.texi (Thumb Options): Fix spelling. Document new
22250 options -msingle-pic-base and -mpic-register=.
22252 1999-07-26 Andrew Haley <aph@cygnus.com>
22254 * config/m32r/initfini.c (__init): Use a full word immediate for
22255 __fini: this allows it to be placed in any memory region.
22257 * config/m32r/t-m32r: Compile crtinit.o and crtfini.o for
22258 -mmodel=medium. This is OK for all memory models.
22260 Mon Jul 26 11:58:46 1999 Nick Clifton <nickc@cygnus.com>
22262 * config/arm/arm.c: Replace %R%s in asm_fprintf strings with %r.
22263 * config/arm/arm.h: Replace %R%s in asm_fprintf strings with %r.
22265 Mon Jul 26 10:23:36 1999 Nick Clifton <nickc@cygnus.com>
22267 * final.c (asm_fprintf): Accept ASM_FPRINTF_EXTENSIONS, if
22270 * tm.texi: Document ASM_FPRINTF_EXTENSIONS.
22272 Sun Jul 25 23:51:59 1999 Richard Henderson <rth@cygnus.com>
22274 * i860.h (EXPAND_BUILTIN_SAVEREGS): New.
22275 (BUILD_VA_LIST_TYPE): New.
22276 (EXPAND_BUILTIN_VA_START): New.
22277 (EXPAND_BUILTIN_VA_ARG): New.
22278 * i860.c (output_delayed_branch): Disable.
22279 (output_delay_insn): Likewise.
22280 (i860_saveregs): New.
22281 (i860_build_va_list): New.
22282 (i860_va_start): New.
22283 (i860_va_arg): New.
22284 * i860.md: Disable all peepholes using output_delayed_branch.
22285 * i860/sysv4.h (I860_SVR4_VA_LIST): New.
22287 Sun Jul 25 23:44:13 1999 Richard Henderson <rth@cygnus.com>
22289 * clipper.h (EXPAND_BUILTIN_SAVEREGS): Remove argument.
22290 (BUILD_VA_LIST_TYPE): New.
22291 (EXPAND_BUILTIN_VA_START): New.
22292 (EXPAND_BUILTIN_VA_ARG): New.
22293 * clipper.c (clipper_builtin_saveregs): Only dump registers.
22294 Return the address of the save area.
22295 (clipper_build_va_list): New.
22296 (clipper_va_start): New.
22297 (clipper_va_arg): New.
22299 Sun Jul 25 22:56:47 1999 Richard Henderson <rth@cygnus.com>
22301 * arc.h (EXPAND_BUILTIN_VA_START): New.
22302 (EXPAND_BUILTIN_VA_ARG): New.
22303 * arc.c (arc_setup_incoming_varargs): Set alias set of
22305 (arc_va_start): New.
22308 Sun Jul 25 22:45:55 1999 Richard Henderson <rth@cygnus.com>
22310 * alpha.h (EXPAND_BUILTIN_SAVEREGS): Delete.
22311 (BUILD_VA_LIST_TYPE): New.
22312 (EXPAND_BUILTIN_VA_START): New.
22313 (EXPAND_BUILTIN_VA_ARG): New.
22314 * alpha.c (alpha_builtin_saveregs): Delete.
22315 (alpha_build_va_list): New.
22316 (alpha_va_start): New.
22317 (alpha_va_arg): New.
22319 Sun Jul 25 21:40:33 1999 Jeffrey A Law (law@cygnus.com)
22321 * config/svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in
22323 (DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP): Likewise.
22324 (FINI_SECTION_ASM_OP, ASM_OUTPUT_SECTION_NAME): Likewise.
22326 * gcc.texi: More changes related to list conversion.
22327 * invoke.texi: Likewise.
22329 Sun Jul 25 18:15:39 1999 Richard Henderson <rth@cygnus.com>
22331 * builtins.c (expand_builtin_saveregs): Remove static, remove exp
22332 and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
22333 (expand_builtin_next_arg): Accept ARGLIST not EXP.
22334 (stabilize_va_list): New function.
22335 (std_expand_builtin_va_start): New function.
22336 (expand_builtin_va_start): New function.
22337 (get_varargs_alias_set): New function.
22338 (std_expand_builtin_va_arg): New function.
22339 (expand_builtin_va_arg): New function.
22340 (expand_builtin_va_end): New function.
22341 (expand_builtin_va_copy): New function.
22342 (expand_builtin): Call them.
22343 * c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list,
22344 __builtin_{varargs_start,stdarg_start,end,copy}.
22345 (build_va_arg): New function.
22346 * c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete.
22347 (build_va_arg): Declare.
22348 * c-decl.c (ptr_type_node, va_list_type_node): New.
22349 * c-parse.gperf (__builtin_va_arg): New.
22350 * c-parse.in (VA_ARG): New token.
22351 (unary_expr): Recognize it.
22352 * expr.c (expand_expr): Expand VA_ARG_EXPR.
22353 * expr.h (std_expand_builtin_va_start): Declare.
22354 (std_expand_builtin_va_arg): Declare.
22355 (expand_builtin_va_arg): Declare.
22356 (get_varargs_alias_set): Declare.
22357 * tree.def (VA_ARG_EXPR): New.
22358 * tree.h (BUILT_IN_VARARGS_START): New.
22359 (BUILT_IN_STDARG_START, BUILT_IN_VA_END): New.
22360 (ptr_type_node, va_list_type_node): Declare.
22361 * tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument.
22362 * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
22363 * m88k.h, m88k.c: Likewise.
22364 * mn10300.h, mn10300.c: Likewise.
22365 * pa.h, pa.c: Likewise.
22366 * rs6000.h, rs6000.c: Likewise.
22367 * sh.h, sh.c: Likewise.
22368 * sparc.h, sparc.c: Likewise.
22370 * emit-rtl.c (operand_subword): Copy alias set.
22371 (change_address): Likewise.
22373 Sun Jul 25 15:04:37 1999 Jeffrey A Law (law@cygnus.com)
22375 * pa.c (compute_frame_size): Scan all the used callee saved registers,
22376 not just the first one.
22378 Fri Jul 23 14:09:58 1999 Philip Blundell <pb@nexus.co.uk>
22380 * config/arm/arm.h (TARGET_SWITCHES): Add
22381 -m{no-}single-pic-base. Correct help string for -mshort-load-words.
22382 (TARGET_OPTIONS): Add -mpic-register=.
22383 (ARM_FLAG_SINGLE_PIC_BASE, TARGET_SINGLE_PIC_BASE): Define.
22384 (arm_pic_register_string): Declare.
22385 (NEED_PLT_GOT): Delete, replace with ...
22386 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. New macros.
22387 (OUTPUT_INT_ADDR_CONST): Replace NEED_PLT_GOT with NEED_GOT_RELOC.
22388 (ASM_OUTPUT_MI_THUNK): Replace NEED_PLT_GOT with NEED_PLT_RELOC.
22389 * config/arm/arm.c (arm_override_options): Add new option
22391 (arm_pic_register_string): New variable.
22392 (arm_finalize_pic): Respect TARGET_SINGLE_PIC_BASE.
22393 (output_func_prologue): If TARGET_SINGLE_PIC_BASE, treat the PIC
22394 register as never live. Use NEED_PLT_RELOC not NEED_PLT_GOT.
22395 (output_return_instruction): Likewise.
22396 * config/arm/elf.h (NEED_PLT_GOT): Delete, replace with ...
22397 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. Define to flag_pic.
22398 * config/arm/arm.md: Use NEED_PLT_RELOC in place of NEED_PLT_GOT.
22400 * invoke.texi (ARM Options): Fix spelling. Remove duplicate
22401 mention of -msched-prolog. Document new options -msingle-pic-base
22402 and -mpic-register=.
22404 Thu Jul 22 18:23:56 1999 Richard Henderson <rth@cygnus.com>
22406 * haifa-sched.c (reemit_notes): Tidy.
22407 * sched.c (reemit_notes): Duplicate 1998-08-31 patch to
22410 Thu Jul 22 18:21:04 1999 Richard Henderson <rth@cygnus.com>
22412 * explow.c (trunc_int_for_mode): New function.
22413 (plus_constant_wide): Use it.
22414 * combine.c (simplify_and_const_int): Likewise.
22415 (merge_outer_ops): Likewise.
22416 (simplify_shift_const): Likewise.
22417 * cse.c (simplify_unary_operation): Likewise.
22418 (simplify_binary_operation): Likewise.
22419 * emit-rtl.c (operand_subword): Likewise.
22420 * rtl.h: Declare it.
22422 Thu Jul 22 14:34:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22424 * config/arm/arm.c (arm_print_operand): Fix typo in 'M' case
22425 (use NUM_REGS instead of NUM_INTS).
22427 Thu Jul 22 11:25:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22429 * builtins.c: New file.
22430 * expr.c (saveregs_value, apply_args_value): Delete definition,
22431 moved into builtins.c.
22432 (string_constant): No longer static.
22433 (get_pointer_alignment, c_strlen, get_memory_rtx, expand_builtin,
22434 apply_args_size, apply_result_size, result_vector,
22435 expand_builtin_apply_args, expand_builtin_apply,
22436 expand_builtin_return): Delete functions, moved into builtins.c.
22437 (INCOMING_REGNO, OUTGOING_REGNO): Delete unused macros.
22438 * expr.h (saveregs_value, apply_args_value): Declare variables.
22439 (expand_builtin, string_constant): Declare functions.
22440 * Makefile.in: Update to build builtin.o.
22442 Wed Jul 21 00:46:58 1999 Mark P. Mitchell <mark@codesourcery.com>
22444 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro.
22445 * tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Define it.
22446 * dwarf2out.c (dwarf2out_init): Don't output a label to mark the
22447 start of the text section if DWARF2_GENERATE_TEXT_SECTION_LABEL is
22449 * config/mips/iris6.h (DWARF2_GENERATE_TEXT_SECTION_LABEL):
22452 1999-07-21 Michael Meissner <meissner@cygnus.com>
22454 * print-rtl.c (print_rtx): Print the names of the virtual
22457 Wed Jul 21 16:00:32 1999 Nick Clifton <nickc@cygnus.com>
22459 * config/arm/arm.h (INITIAL_ELIMINATION_OFFSET): Fix typo
22460 introduced in previous delta.
22462 Wed Jul 21 14:30:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22464 * c-lang.c (finish_file): Rename void_list_node to void_list_node_1
22465 to avoid name clash.
22467 Wed Jul 21 08:39:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
22469 * c-lex.c (yylex) : Correct the test for overflow when lexing
22472 Tue Jul 20 18:02:42 1999 Richard Henderson <rth@cygnus.com>
22474 * haifa-sched.c (insn_cost): FREE implies cost 0 and vice versa.
22475 (adjust_priority): Always call ADJUST_PRIORITY.
22476 (schedule_insn): Only put insns into the ready at cost 0.
22477 (schedule_block): Remove redundant initial sort. Give clock_var
22478 and can_issue_more to MD_SCHED_REORDER. Requeue if hazard cost
22480 * tm.texi (MD_SCHED_REORDER): Update docs.
22482 * sparc.h (MD_SCHED_REORDER): Update. Set CAN_ISSUE_MORE.
22483 * sparc.c (ultra_reorder_called_this_block): Delete.
22484 (ultrasparc_sched_init): Don't set it.
22485 (ultrasparc_sched_reorder): Don't check it.
22487 Tue Jul 20 17:07:54 1999 Richard Henderson <rth@cygnus.com>
22489 * rs6000.h (struct rs6000_args): Add sysv_gregno.
22490 * rs6000.c (init_cumulative_args): Init sysv_gregno.
22491 (function_arg_boundary): Align DFmode.
22492 (function_arg_advance): Restructure for ABI_V4; use sysv_gregno
22493 to get fp reg and stack overflow correct.
22494 (function_arg): Likewise.
22495 (function_arg_pass_by_reference): True for TFmode for ABI_V4.
22496 (setup_incoming_varargs): Restructure for ABI_V4; use
22497 function_arg_advance to skip final named argument.
22498 (expand_builtin_saveregs): Properly unskip the last integer arg
22499 when doing varargs. Adjust overflow location calculation.
22501 * ginclude/va-ppc.h (struct __va_list_tag): Make gpr and fpr
22502 explicitly unsigned.
22503 (__VA_FP_REGSAVE): Use new OFS argument instead of AP->fpr directly.
22504 (__VA_GP_REGSAVE): Similarly.
22505 (__va_longlong_p): Delete.
22506 (__va_arg_type_violation): New declaration.
22507 (va_arg): Restructure. Flag promotion errors. Align double.
22508 TFmode passed by reference.
22510 * rs6000.md (movdi_32+1): Use GEN_INT after arithmetic
22511 in the HOST_BITS_PER_WIDE_INT > 32 case.
22513 Tue Jul 20 12:37:30 1999 Hans-Peter Nilsson <hp@bitrange.com>
22515 * dwarf2out.c (output_abbrev_section): Terminate with a zero.
22517 Tue Jul 20 12:12:27 1999 Jason Merrill <jason@yorick.cygnus.com>
22519 * gcc.c (default_compilers, cpp-output): Pass -fpreprocessed.
22520 * toplev.c (documented_lang_options): Add -fpreprocessed.
22521 * cpplib.h (struct cpp_buffer): Add preprocessed.
22522 * cppinit.c (cpp_handle_option): Handle -fpreprocessed.
22523 (cpp_start_read): Don't expand macros or emit an initial #line
22524 directive if -fpreprocessed.
22526 Tue Jul 20 12:12:09 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
22528 * cpplib.h (struct cpp_buffer): Added manual_pop for
22529 better C++ tokenization.
22530 * cpplib.c (cpp_get_token): Return CPP_EOF if manual_pop.
22531 Also, support C++ tokenization for ->*, .*, <?, and >? operators.
22532 * c-common.c (cpp_token): Make non-static.
22534 Tue Jul 20 11:24:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22536 * c-common.h: New file.
22537 * c-common.c (permanent_obstack): Delete unused declaration.
22538 (c_global_trees): New array.
22539 (c_common_nodes_and_builtins): New function; split off common code
22540 from init_decl_processing in both c-decl.c and cp/decl.c.
22541 * c-tree.h: Delete lots of declarations of tree nodes; replaced by
22542 c_global_trees and accessor macros defined in c-common.h.
22543 Include c-common.h.
22544 * c-decl.c: Delete definitions for tree nodes that were replaced by
22546 (init_decl_processing): Build void_list_node.
22547 Call c_common_nodes_and_builtins; delete code to generate the common
22549 * objc/objc-act.c (build_module_descriptor): Rename variable
22550 void_list_node to avoid clash with c-common.h.
22552 * Makefile.in: Update dependencies.
22553 * objc/Make-lang.in: Likewise.
22555 Mon Jul 19 14:22:18 1999 Mark P. Mitchell <mark@codesourcery.com>
22557 * config/mips/iris6gld.h (MAKE_DECL_ONE_ONLY): Define.
22558 (UNIQUE_SECTION_P): Likewise.
22559 (UNIQUE_SECTION): Likewise.
22561 1999-07-19 Linas Vepstas <linas@linas.org>
22563 * config/i370/README: New file.
22564 * config/i370/linux.h: New file.
22565 * config/i370/mvs.h: New file.
22566 * config/i370/oe.h: New file.
22567 * config/i370/t-linux: New file.
22568 * config/i370/t-mvs: New file.
22569 * config/i370/t-oe: New file.
22570 * config/i370/x-oe: New file.
22571 * config/i370/xm-linux.h: New file.
22572 * config/i370/xm-mvs.h: New file.
22573 * config/i370/xm-oe.h: New file.
22575 * i370.c (label_node_t): Add first_ref_page, label_addr,
22576 label_first_ref, label_last_ref members.
22577 (mvs_need_base_reload): Renamed from mvs_label_emitted.
22578 (MAX_MVS_LABEL_SIZE): Define.
22579 (MAX_LONG_LABEL_SIZE): Define.
22580 (alias_node_t, alias_anchor, alias_number): New.
22581 (mvs_function_table): Reorder for EBCDIC.
22582 (ascebc, ebcasc): Unconditionally define.
22583 (i370_branch_dest, i370_branch_length): New functions.
22584 (i370_short_branch, i370_label_scan): New functions.
22585 (mvs_get_label): Renamed from mvs_add_label. Search for
22586 an existing label before creating a new one.
22587 (mvs_add_label): New function.
22588 (mvs_get_label_page): New function.
22589 (mvs_free_label_list): Renamed from mvs_free_label. Iterate
22590 over the entire list.
22591 (mvs_check_page) [TARGET_HLASM]: Use BASR not BALR.
22592 (mvs_check_page) [TARGET_ELF_ABI]: New function.
22593 (mvs_add_alias, mvs_need_alias): New functions.
22594 (mvs_get_alias, mvs_check_alias): New functions.
22595 (handle_pragma): New function.
22596 (mvs_function_check): New function.
22597 (unsigned_jump_follows_p): Search harder.
22598 (i370_function_prolog) [TARGET_HLASM]: Handle LE370. Scan labels.
22599 (i370_function_prolog) [TARGET_ELF_ABI]: New function.
22600 * i370.h (TARGET_VERSION): Delete.
22601 (CPP_SPEC, CPP_PREDEFINES): Delete.
22602 (mvs_label_emitted): Delete.
22603 (TARGET_EBCDIC): Delete.
22604 (MAP_CHARACTER): Define only if TARGET_EBCDIC.
22605 (HANDLE_PRAGMA): Define.
22606 (HARD_REGNO_NREGS): Handle complex modes.
22607 (HARD_REGNO_MODE_OK): Likewise.
22608 (CLASS_MAX_NREGS): Likewise.
22609 (RET_REG): Likewise.
22610 (EXTRA_CONSTRAINT): Define.
22611 (RETURN_IN_MEMORY): True for DImode.
22612 (TRAMPOLINE_TEMPLATE): Use gen_rtx instead of GEN_INT.
22613 (FUNCTION_PROFILER): Delete.
22614 (COUNT_REGS): Fail if REG_P but not REG_OK_FOR_BASE_P.
22615 (NOTICE_UPDATE_CC): Correct handling of MULT, DIV, logicals and shifts.
22616 (TARGET_ESC, TARGET_BELL): Conditionally define for TARGET_EBCDIC.
22617 (TARGET_BS, TARGET_TAB, TARGET_NEWLINE): Likewise.
22618 (TARGET_VT, TARGET_FF, TARGET_CR): Likewise.
22619 (ASM_FILE_START): Add "RMODE ANY".
22620 (ASM_OUTPUT_EXTERNAL): Check for aliases.
22621 (ASM_GLOBALIZE_LABEL): Likewise.
22622 (ASM_OUTPUT_LABELREF): Likewise.
22623 (ASM_OUTPUT_COMMON): Likewise.
22624 (PRINT_OPERAND): Handle 'K', 'W', default.
22625 (PRINT_OPERAND_ADDRESS): New.
22626 (Lots of defines): Add support for TARGET_ELF_ABI.
22627 * i370.md (attr length): New. Define for all patterns.
22628 (*): Lots of tweeks to assembly output and constraints.
22630 Mon Jul 19 15:09:29 1999 David Edelsohn <edelsohn@gnu.org>
22632 * rs6000.md (arithmetic, logical, and shift Rc combiner patterns):
22633 Disable patterns performing SImode comparisons with SImode values
22634 if TARGET_POWERPC64 and instruction does not sign-extend or does
22635 not mask to narrower than SImode, i.e. where bit 31 and bit 63 may
22636 differ for signed quantities.
22637 (indirect_jump): Add expander to choose RTL based on TARGET_64BIT.
22638 (tablejump): Patterns contingent on TARGET_64BIT not TARGET_POWERPC64.
22639 (decrement_and_branch_on_count): Add 64-bit variant.
22641 Mon Jul 19 09:36:27 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22643 * final.c (output_asm_insn): When searching for the matching string
22644 for a given dialect, don't run past the end of the list of
22645 alternatives if there are fewer alternatives in the template than
22648 1999-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
22650 * gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org.
22651 Removed paragraph about compression of files and size limitation,
22652 duplicated in the FAQ. Use gcc-patches for posting patches.
22653 * gcc.c (main): Updated URL with bug reporting instructions to
22654 gcc.gnu.org. Removed e-mail address.
22655 * system.h (abort): Likewise.
22657 1999-07-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22659 * Makefile.in (stmp-multilib-sub): Make the files extracted
22660 from $(LIBGCC1) writable.
22662 Sat Jul 17 14:25:46 1999 Nick Clifton <nickc@cygnus.com>
22664 * config/arm/aout.h: Reformat for improved readability.
22666 * config/arm/arm.h: Reformat for improved readability.
22667 Replace uses of fprintf with asm_fprintf where appropriate.
22668 (ARM_DECLARE_FUNCTION_NAME): New macro: Perform any generic ARM
22669 function declaration assembler actions.
22670 (NUM_INTS): New macro: Convert from bytes to words.
22671 (NUM_REGS): New macro: Compute number of registers required to
22672 hold a quanitity of tyep MODE.
22673 (NUM_REGS2): New macro: Like NUM_REGS but also copes with BLKmode
22675 (NUM_ARG_REGS): New macro: The number of argument registers
22677 (ARG_REGISTER): New macro: Compute the register number of the Nth
22679 (LAST_ARG_REGNUM): New macro: The number of the last argument
22681 (SP_REGNUM): New macro: Register number of the stack pointer.
22682 (FP_REGNUM): New macro: Register number of the frame pointer.
22683 (FUNCTION_ARG, FUNCTION_ARG_PARTIAL_NREGS, INIT_CUMULATIVE_AGS,
22684 FUNCTION_ARG_ADVANCE, SETUP_INCOMING_VARARGS): Change
22685 CUMULATIVE_ARGS so that it counts registers not bytes.
22687 * config/arm/arm.c: Rename TARGET_THUMB_INTERWORK to
22689 Replace uses of fprintf with asm_fprintf where appropriate.
22690 (output_ascii_pseudo_op): Replace with version from thumb.c
22692 * config/arm/coff.h (ASM_FILE_START): Emit ASM_APP_OFF.
22694 * config/arm/elf.h (CPP_PREDEFINES): Replace with
22695 SUBTARGET_CPP_SPEC.
22696 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
22697 (ASM_FILE_START): Emit ASM_APP_OFF.
22699 Fri Jul 16 13:48:09 1999 Jeffrey A Law (law@cygnus.com)
22701 * pa.c (compute_frame_size): Round frame according to
22702 STACK_BOUNDARY rather than a hardwired value.
22704 * pa.h (POINTER_SIZE, PARM_BOUNDARY): Define in terms of BITS_PER_WORD.
22706 * configure.in (hppa*-*-hpux11*): Use symbolic MASK_PA_11 instead
22708 * configure: Rebuilt.
22710 * configure.in (hppa*-*-linux*): New configuration.
22711 * configure: Rebuilt.
22712 * pa.h (MAX_OFILE_ALIGNMENT): Delete.
22713 * pa/som.h (MAX_OFILE_ALIGNMENT): Define.
22714 * pa/pa-linux.h: New file.
22715 * pa/t-linux: New file.
22716 * pa/xm-linux.h: New file.
22718 * pa.c (hppa_legitimize_address): Change references from SImode to
22719 either Pmode or word_mode as appropriate.
22720 (emit_move_sequence, store_reg, load_reg): Likewise.
22721 (set_reg_plus_d, hppa_expand_prologue): Likewise.
22722 (output_mul_insn): Likewise.
22723 * pa.h (PROMOTE_MODE): Likewise.
22724 (INITIALZE_TRAMPOLINE): Likewise.
22725 (Pmode): Define to word_mode.
22727 * pa.c (compute_frame_size): Use UNITS_PER_WORD instead of hardwired
22728 value of 4. Allocate 8 bytes for each FP register save.
22729 (hppa_expand_epilogue): Use UNITS_PER_WORD instead of harwarewired
22731 (hppa_expand_prologue): Likewise.
22732 * pa.h (PROMOTE_MODE): Likewise.
22733 (HARD_REGNO_MODE_OK, FUNCTION_ARG_SIZE): Likewise.
22734 (FUNCTION_ARG_BOUNDARY): Likewise.
22736 * invoke.texi (HPPA Options): Remove -mspace/-mno-space.
22738 * pa.c (out_of_line_prologue_epilogue): Delete.
22739 (override_options): Remove -mspace related code.
22740 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
22741 (compute_frame_size): Only allocate space for register that
22742 actually need to be saved.
22743 * pa.h (MASK_SPACE, TARGET_SPACE): Delete.
22744 (TARGET_SWITCHES): Remove -mspace, -mno-space
22745 * pa/t-pa (LIB2FUNCS_EXTRA): Remove ee.asm and ee_fp.asm
22746 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise. Remove -mspace multilib.
22747 * pa/ee.asm, pa/ee_fp.asm: Delete.
22749 * pa/elf.h (ASM_OUTPUT_DOUBLE_INT): Define.
22751 * config/svr4.h (CONST_SECTION_ASM_OP): Do not emit assembler
22752 directive in column zero.
22754 Fri Jul 16 01:39:57 1999 Jeffrey A Law (law@cygnus.com)
22756 * m68k.c (output_function_prologue): Fix computation of save mask
22757 when generating PIC code.
22759 Thu Jul 15 15:40:09 1999 Jim Wilson <wilson@cygnus.com>
22761 * tree.c (build_type_attribute_variant): Move current_obstack restore
22762 after build_qualified_type call.
22764 1999-07-15 Mark Mitchell <mark@codesourcery.com>
22766 * configure.in: Use t-iris6, even with GNU LD.
22767 * config/mips/iris6gld.h: Fix typo in linker spec.
22768 * config/mips/t-iris6gld: Remove.
22770 Thu Jul 15 15:15:43 1999 David Edelsohn <edelsohn@gnu.org>
22772 * rs6000.md (insv, extzv): Remove SImode dependence in named
22773 patterns. Explicitly generate DImode RTL if PowerPC64 and
22775 (insvdi): Reverse start and size in instruction template.
22777 1999-07-12 Joseph S. Myers <jsm28@cam.ac.uk>
22779 * invoke.texi: Typo fixes.
22781 Wed Jul 14 23:28:06 1999 Jeffrey A Law (law@cygnus.com)
22783 * emit-rtl.c (gen_realpart): Issue an error for cases GCC can not
22784 handle at this time instead of silently generating incorrect code.
22785 (gen_imagpart): Likewise.
22787 * reload.c (find_reloads): Emit a USE for a pseudo register without
22788 a hard register if we could not create an optional reload for the
22791 Wed Jul 14 23:45:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22793 * c-typeck.c (output_init_element, process_init_element):
22794 When advancing constructor_unfilled_fields for a RECORD_TYPE,
22795 check for nameless bit fields.
22797 Wed Jul 14 01:57:39 1999 Richard Henderson <rth@cygnus.com>
22799 * regclass.c (scan_one_insn): Notice subregs that change the
22800 size of their operand.
22801 (record_reg_classes): Use that to obey CLASS_CANNOT_CHANGE_SIZE.
22803 Wed Jul 14 01:41:42 1999 Jeffrey A Law (law@cygnus.com)
22805 * configure.in (alpha*-*-*): Include alpha/t-ieee.
22806 * configure: Rebuilt.
22807 * alpha/t-ieee: New file.
22809 Tue Jul 13 10:45:58 1999 Jeffrey A Law (law@cygnus.com)
22811 * rs6000.c (find_addr_reg): Do not select r0 as an address
22814 Tue Jul 13 00:46:18 1999 Philippe De Muyter <phdm@macqel.be>
22816 * m68k/x-mot3300 (XCFLAGS): List of big files now includes `cse.o'.
22818 Mon Jul 12 14:29:15 1999 Jeffrey A Law (law@cygnus.com)
22820 * rs6000.md (movsf): Do not force easy FP constants into memory.
22822 * expr.c (expand_expr, case PLUS_EXPR): Pass constants through
22823 immed_double_const to ensure they are properly truncated then
22826 Mon Jul 12 10:40:01 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
22828 * config/arm/thumb.c (thumb_reorg): Call replace_symbols_in_block
22829 always unless NO_DEBUG is used. Compile this code
22831 (replace_symbols_in_block): Compile it unconditionally.
22833 Sun Jul 11 12:32:32 1999 Jeffrey A Law (law@cygnus.com)
22835 * configure.in (i?86-*-elf*): New target.
22836 * configure: Rebuilt.
22837 * i386/i386elf.h, i386/t-i386elf: New files.
22839 Fri Jul 9 22:39:44 1999 Jason Merrill <jason@yorick.cygnus.com>
22841 * toplev.c (main): Don't complain about saying -gdwarf.
22842 (rest_of_compilation): Remove redundant code.
22844 Fri Jul 9 19:08:55 1999 Jim Wilson <wilson@cygnus.com>
22846 * unroll.c (unroll_loops): Don't delete named CODE_LABELs.
22848 Fri Jul 9 18:54:18 1999 Felix Lee <flee@cygnus.com>
22850 * config/i960/i960.c (ret_label): Change asm label from "LR:" to
22851 "Li960R:", to avoid name clash.
22853 Fri Jul 9 10:48:28 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22855 * loop.c (check_dbra_loop): When reversing a loop, delete all
22856 REG_EQUAL notes referencing the reversed biv except those which are
22857 for a giv based on it.
22859 Fri Jul 9 03:51:52 1999 Jeffrey A Law (law@cygnus.com)
22861 * version.c: Drop "gcc-" prefix from version #.
22863 Thu Jul 8 18:06:30 1999 Jason Merrill <jason@yorick.cygnus.com>
22865 * dwarf2out.c (dwarf2out_line): Emit a line number comment after
22866 the label if we're being verbose.
22868 Thu Jul 8 14:18:46 1999 Richard Henderson <rth@cygnus.com>
22870 * m68k.c (output_function_prologue): Add pic register to mask
22871 if live and flag_pic.
22872 (output_function_epilogue): Likewise.
22874 Thu Jul 8 12:55:12 1999 Jeffrey A Law (law@cygnus.com)
22876 * dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Do not put assembler
22877 directives in column zero.
22879 * pa/elf.h (ASM_FILE_START): Define.
22880 * pa/som.h (ASM_FILE_START): Include .level directives.
22881 * pa/hpux10.h (ASM_FILE_START): Delete.
22882 * pa/hpux11.h (ASM_FILE_START): Delete.
22884 * pa/elf.h (BSS_SECTION_ASM_OP): Use .section .bss.
22886 Thu Jul 8 18:03:19 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22888 * reload1.c (choose_reload_regs): Never call remove_adress_replacements
22889 when reload_out equals reload_in.
22891 Thu Jul 8 16:50:14 1999 Nick Clifton <nickc@cygnus.com>
22893 * invoke.texi (Spec Files): New node: Describe the contents of
22896 Thu Jul 8 10:28:25 1999 Craig Burley <craig@jcb-sc.com>
22898 * invoke.texi (DEC Alpha Options): Put @end table at
22899 beginning of line, to avoid confusing texi2html.
22901 Thu Jul 8 09:22:06 1999 Nick Clifton <nickc@cygnus.com>
22903 * config/arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Fixed typo
22904 introduced in previous delta.
22906 Wed Jul 7 02:00:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22908 * reload1.c (gen_reload): When synthesizing a 3 operand add
22909 sequence, improve test for when to reload OP1 into the reload
22910 register instead of OP0.
22912 Wed Jul 7 01:38:03 1999 Jim Wilson <wilson@cygnus.com>
22914 * unroll.c (unroll_loop): Don't delete NOTE_INSN_DELETED_LABEL notes.
22916 1999-07-07 Manfred Hollstein <mhollstein@cygnus.com>
22918 * m88k/dguxbcs.h (CPP_SPEC): Add missing \ in multi-line
22921 Wed Jul 7 01:16:43 1999 Richard Henderson <rth@cygnus.com>
22923 * ginclude/varargs.h (__builtin_va_alist_t): New typedef.
22924 (va_dcl): Use __builtin_va_alist_t.
22926 Wed Jul 7 01:14:42 1999 Jason Merrill <jason@yorick.cygnus.com>
22928 * dwarf2out.c (gen_struct_or_union_type_die): Only remember types
22929 on the permanent_obstack.
22930 * dwarfout.c (output_type): Likewise.
22932 Tue Jul 6 15:25:32 1999 Gavin Romig-Koch <gavin@cygnus.com>
22934 * c-common.c (unsigned_type,signed_type,signed_or_unsigned_type) :
22935 Merged from c-typeck.c and cp/typeck.c.
22936 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
22937 Merged into c-common.
22939 Tue Jul 6 13:06:01 1999 Dave Brolley <brolley@cygnus.com>
22941 * c-lex.c (errorcount): Declare it.
22942 (finish_parse): Update errorcount when using CPPLIB.
22944 1999-07-06 Bruce Korb <ddsinc09@ix.netcom.com>
22946 * fixinc/inclhack.def(end_else_label): Double the backslash so
22947 sed gets a chance to see it.
22948 * fixinc/inclhack.sh: regen
22949 * fixinc/fixincl.x: regen
22951 Fri Jul 2 18:49:51 1999 Nick Clifton <nickc@cygnus.com>
22953 Add framework to support armv5 architecture when it becomes
22956 * config/arm/arm.c (FL_ARCH5): New processor capability flag.
22957 (arm_arch5): New variable.
22958 (all_architectures): Add armv5 line.
22959 * config/arm/arm.h (CPP_CPU_ARCH_SPEC): Define __ARM_ARCH_5__ if
22960 -march=armv5 is specified on the command line.
22961 (arm_arch5): Export this variable.
22962 * invoke.texi: Document new string accepted by -march= switch for
22965 * config/arm/arm.h: Replace use of constant 12 as a register
22966 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
22967 * config/arm/arm.c: Replace use of constant 12 as a register
22968 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
22970 * config/arm/elf.h: Tidy up.
22971 * config/arm/coff.h: Tidy up.
22973 Thu Jul 1 19:08:13 1999 Mark P. Mitchell <mark@codesourcery.com>
22975 * gcc/configure.in (mips-sgi-irix6*): Handle --with-gnu-ld.
22976 * gcc/config/mips/t-iris6gld: New file.
22977 * gcc/config/mips/iris6gld.h: Likewise.
22979 Fri Jul 2 13:23:39 1999 Gavin Romig-Koch <gavin@cygnus.com>
22981 * c-decl.c (widest_integer_literal_type_node,
22982 widest_unsigned_literal_type) : New.
22983 (init_decl_processing): Handle/use the two new types.
22984 * c-common.c (type_for_size,type_for_mode) : Same.
22985 * c-lex.c (yylex) : Same.
22986 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
22988 * c-tree.h (widest_integer_literal_type_node,
22989 widest_unsigned_literal_type) : New.
22991 Fri Jul 2 03:05:44 1999 Jeffrey A Law (law@cygnus.com)
22993 * dwarfout.c (field_byte_offset): Correctly compute the object's
22994 byte offset for the first bit of a field which crosses an alignment
22995 boundary on a !BYTES_BIG_ENDIAN target.
22997 Fri Jul 2 01:36:36 1999 Robert Lipe <robertlipe@usa.net>
22999 * fixinc.svr4: Fix <arpa/inet.h> by deleting protos for htons and
23002 Fri Jul 2 00:46:47 1999 Richard Henderson <rth@cygnus.com>
23003 Jeff Law <law@cygnus.com>
23005 * ginclude/varargs.h (va_dcl): Use word_mode for type of
23008 * except.c: Include intl.h.
23009 (expand_eh_return): Set current_function_cannot_inline.
23010 (save_eh_status, restore_eh_status): Twiddle eh_return_stub_label.
23011 * function.h (struct function): Add eh_return_stub_label.
23012 * flow.c (delete_unreachable_blocks): Don't merge across EH edges.
23013 * Makefile.in (except.o): Depend on intl.h.
23015 Fri Jul 2 00:04:23 1999 David Edelsohn <edelsohn@gnu.org>
23017 * rs6000.md (movdf_hardfloat32): Handle PRE_INC and PRE_DEC the
23018 same as offsettable in cases 1 and 2.
23020 Thu Jul 1 20:54:10 1999 Richard Henderson <rth@cygnus.com>
23022 * alpha.md (extqh): Define as 64-((R&7)*8) instead of 56-(((R-1)&7)*8).
23023 (extlh, extwh): Likewise.
23025 Thu Jul 1 11:05:25 1999 Gavin Romig-Koch <gavin@cygnus.com>
23027 * c-lex.c (yylex): Improve 'integer constant out of range' messages.
23029 Wed Jun 30 16:51:41 1999 Nick Clifton <nickc@cygnus.com>
23031 * configure.in: Add arm-pe and thumb-pe targets.
23032 * configure: Regenerate.
23034 * thumb.c (arm_naked_function_p): New function: Determines if
23035 a function is naked (has no gcc generated prologue/epilogue).
23036 (is_called_in_ARM_mode): Return true if the func has the
23037 interfacearm attribute.
23038 (output_return): Do not generate a return for naked functions.
23039 (thumb_function_prologue): Do not generate a prologue for
23041 (thumb_expand_prologue): Do not generate a prologue for naked
23043 (thumb_expand_epilogue): Do not generate an epilogue for naked
23045 (arm_valid_machine_decl_attribute): New function, copied from
23046 arm.c: Permit naked and interfacearm attributes.
23048 * config/arm/pe.c: New file: Support code for arm-pe target.
23049 * config/arm/pe.h: New file: Header file for arm-pe target.
23050 * config/arm/tpe.h: New file: Header file for thumb-pe target.
23051 * config/arm/t-thumb-pe: New file: Makefile fragment for
23054 1999-07-01 Mark Kettenis <kettenis@gnu.org>
23056 * config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if
23057 -fPIC or -fpic is specified.
23059 Wed Jun 30 03:31:54 1999 Jeffrey A Law (law@cygnus.com)
23061 * expr.c (emit_block_move): Use copy_to_mode_reg for
23062 !TARGET_MEM_FUNCTIONS case too.
23064 * configure.in (hppa*-*-*): Add som.h or elf.h to tm_file as
23066 * configure: Rebuilt.
23067 (hppa1.1-*-pro*, hppa1.1-*-rtems*): Define target_cpu_default.
23068 * pa.h: Include dbxelf.h. Delete various dbx/stabs related
23069 definitions made redundant by dbxelf.h inclusion. Delete
23070 lots of definitions related to assembly output that are
23071 specific to the SOM object format.
23072 * pa.c (output_function_prologue): Do not emit the function's
23074 * pa-pro-end.h (STARTFILE_SPEC): Undefine before redefining.
23075 * pa-pro.h: Deleted.
23076 * som.h: New file with SOM specific definitions.
23077 * elf.h: New file with ELF specific definitions.
23079 * elfos.h (const_section): Output a tab before assembler directives.
23080 (ctors_section, dtors_section): Likewise.
23081 (ASM_OUTPUT_SECTION_NAME): Likewise.
23083 * pa/pa1.h: Delete unused file.
23085 Tue Jun 29 01:37:53 1999 Jeffrey A Law (law@cygnus.com)
23087 * configure.in (hppa*-hp-hpux11*): New configuration.
23088 * configure: Rebuilt.
23089 * pa/pa-hpux11.h: New file.
23090 * pa.h (CPP_SPEC): Conditionally add -D__STDC_EXT__ to the cpp
23093 * mips.md (leasi, leadi): New patterns.
23095 * expr.c (emit_block_move): Properly handle case where one of the
23096 block move arguments has a queued increment or decrement.
23097 (clear_storage): Similarly. Fix formatting goof.
23099 1999-06-28 "David O'Brien" <obrien@NUXI.com>
23101 * fixinc/inclhack.def(stdio_va_list): This patch Removes a
23102 semicolon from the BSD VA_LIST replacement expression.
23104 * fixinc/inclhack.sh: regen
23105 * fixinc/fixincl.x: regen
23107 * fixinc/mkfixinc.sh: Have `i[34567]86-*-freebsd*' machines
23108 now use the fixincl program.
23110 Mon Jun 28 05:28:12 1999 Jeffrey A Law (law@cygnus.com)
23112 * m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA
23113 case. Also make the PIC register call_used.
23115 * m68k.h (FINALIZE_PIC): Delete.
23116 * m68k.c (finalize_pic): Delete.
23118 Mon Jun 28 05:16:35 1999 Richard Henderson <rth@cygnus.com>
23120 * m68k.h (PREFERRED_RELOAD_CLASS): Don't force any FP const_doubles
23123 Mon Jun 28 04:07:27 1999 David Edelsohn <edelsohn@gnu.org>
23125 * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.
23127 Sun Jun 27 02:39:08 1999 Richard Henderson <rth@cygnus.com>
23129 * jump.c (jump_optimize_1): Validate the cmov copy to a temporary.
23131 Sat Jun 26 17:18:18 1999 David Edelsohn <edelsohn@gnu.org>
23133 * rs6000.c (print_operand, case 'L'): Use plus_constant_for_output.
23135 Fri Jun 25 11:33:24 1999 Richard Henderson <rth@cygnus.com>
23137 * alpha.c (override_options): Add -mcpu=ev45 as an alias for ev4.
23139 Fri Jun 25 13:41:25 1999 David Edelsohn <edelsohn@gnu.org>
23141 * rs6000.c (output_toc): Always use hex values for floating-point
23142 constants. Store single-precision values in upper-half of TOC
23143 entry in 64-bit mode.
23144 * rs6000.md (floatsidf2, floatunssidf2): Add !TARGET_POWERPC64
23145 to final constraints.
23146 (fix_truncdfsi2 splitter): Change pattern matching fctiwz.
23147 (fctiwz): Improve accuracy of RTL for pattern.
23149 Fri Jun 25 11:26:38 1999 Gavin Romig-Koch <gavin@cygnus.com>
23151 * expr.c (expand_expr): Allow RTL_EXPR's through the
23152 MAX_INTEGER_COMPUTATION_MODE checks.
23154 Fri Jun 25 06:06:37 1999 Richard Henderson <rth@cygnus.com>
23156 * alpha.h (MASK_SUPPORT_ARCH, MASK_CPU_EV5, MASK_CPU_EV6): Define
23157 such that MASK_SUPPORT_ARCH is not negative.
23159 Fri Jun 25 05:35:44 1999 Jeffrey A Law (law@cygnus.com)
23161 * loop.c (verify_dominator): Properly handle ADDR_VEC and
23162 ADDR_DIFF_VEC insns that appear inside loops.
23164 Thu Jun 24 22:54:05 1999 David Edelsohn <edelsohn@gnu.org>
23165 Jeff Law <law@cygnus.com>
23167 * rs6000.md (movdf_hardfloat32): Revert previous patch.
23168 Handle LO_SUM the same as offsettable in cases 1 and 2.
23169 * rs6000.c (find_addr_reg): Revert previous patch.
23171 Thu Jun 24 22:43:12 1999 Philippe De Muyter <phdm@macqel.be>
23173 * system.h (strstr): New external function declaration.
23174 * acconfig.h (NEED_DECLARATION_STRSTR): New define slot.
23175 * configure.in (GCC_NEED_DECLARATIONS): Check for strstr.
23176 * config.in, configure: Rebuilt.
23178 1999-06-24 Tom Tromey <tromey@cygnus.com>
23180 * gcc.c (main): Read user-specified specs files after computing
23181 additional startfile_prefixes.
23183 Thu Jun 24 15:00:47 1999 Mark Mitchell <mark@codesourcery.com>
23185 Revert these two patches:
23187 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23188 * loop.c (strength_reduce): When doing biv->giv conversion, update
23189 reg note of NEXT->insn.
23191 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23192 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
23194 (recombine_givs): Set ix field after sorting.
23196 Wed Jun 23 21:26:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23198 * rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
23199 for the parts of an UNSPEC / UNSPEC_VOLATILE.
23201 1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com>
23203 *fixinc/inclhack.def: Add fix development commentary
23204 (read_ret_type): reactivate and add selection clause
23205 (zzz_*): tweak output file name to match what is used in hackshell.tpl
23206 *fixinc/{fixincl.x|inclhack.sh}: regen
23208 Wed Jun 23 00:48:21 1999 Jason Merrill <jason@yorick.cygnus.com>
23210 * expr.c (expand_expr): STRIP_NOPS before checking against
23211 MAX_INTEGER_COMPUTATION_MODE
23212 (check_max_integer_computation_mode): Likewise.
23214 Tue Jun 22 20:23:43 1999 Jim Wilson <wilson@cygnus.com>
23216 * md.texi (smul@var{m}3_highpart): Add missing 's' prefix.
23218 1999-06-22 Jim Wilson <wilson@cygnus.com>
23220 * expr.c (store_expr): When target is a promoted subreg, return a
23221 promoted subreg as a result.
23223 Tue Jun 22 17:14:58 1999 Michael Meissner <meissner@cygnus.com>
23225 * dwarf2out.c (dwarf2out_frame_debug_expr): Reformat to match GNU
23227 (dwarf2out_define): Mark unused parameters appropriately.
23228 (gen_unspecified_parameters_die): Ditto.
23229 (gen_subprogram_die): Fix signed/unsigned warnings.
23230 (gen_variable_die): Ditto.
23232 1999-06-22 Bruce Korb <ddsinc09@ix.netcom.com>
23234 * fixinc/inclhack.def(end_else_label): combined else_label
23235 and endif_label and fixed the sed expression.
23236 *fixinc/{fixincl.x|inclhack.sh}: regen
23238 Tue Jun 22 01:58:18 1999 Jeffrey A Law (law@cygnus.com)
23240 * rs6000.md (movdf_hardfloat32): Use %X instead of always emitting
23241 'x' when handling non-offsettable addresses
23243 Tue Jun 22 00:20:05 1999 Richard Earnshaw (rearnsha@arm.com)
23245 * final.c (shorten_branches): Don't try to split an insn that has
23248 Mon Jun 21 12:47:39 1999 Mark Mitchell <mark@codesourcery.com>
23250 * config/mips/mips.c (symbolic_expression_p): New function.
23251 (mips_select_rtx_section): Put symbolic expressions in the
23252 data section, not the read-only data section.
23254 Mon Jun 21 22:13:06 1999 Jeffrey A Law (law@cygnus.com)
23256 * rs6000.md (find_addr_reg): Handle LO_SUM addresses.
23258 Mon Jun 21 20:10:42 1999 Richard Henderson <rth@cygnus.com>
23260 * collect2.c (main): Log frame table count.
23261 (GCC_OK_SYMBOL) [ECOFF]: Accept stGlobal.
23262 (scan_prog_file) [COFF]: Handle frame tables.
23264 * alpha/alpha.h (UNALIGNED_SHORT_ASM_OP): Define.
23265 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Define.
23266 * alpha/elf.h: Undef them again.
23267 * alpha/vms.h: Remove their definitions.
23269 Tue Jun 22 03:17:53 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23271 * sh.c (machine_dependent_reorg): When fixing up fp pcloads,
23272 remove the clobber of r0 and change the REG_UNUSED note to
23275 1999-06-21 Jakub Jelinek <jj@ultra.linux.cz>
23277 * real.c (ereal_from_double): Fix for 64-bit big endian hosts.
23278 * emit-rtl.c (gen_lowpart_common): Add case for hosts where double
23279 fits in HOST_WIDE_INT and one uses union to access a long constant
23282 Mon Jun 21 17:18:25 1999 Richard Henderson <rth@cygnus.com>
23284 * sparc.c (sparc_override_options): Don't allow profiling for
23285 code models other than medlow.
23286 (sparc_function_profiler): New function from old FUNCTION_PROFILER
23287 macro. Use ASM_GENERATE_INTERNAL_LABEL and MCOUNT_FUNCTION.
23288 (sparc_function_block_profiler): Likewise. Use user_label_prefix.
23289 (sparc_block_profiler): Likewise.
23290 (sparc_function_block_profiler_exit): Likewise.
23291 * sparc.h (FUNCTION_PROFILER): Call new sparc.c function.
23292 (FUNCTION_BLOCK_PROFILER): Likewise.
23293 (BLOCK_PROFILER): Likewise.
23294 (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
23295 (MCOUNT_FUNCTION): New.
23296 * sparc/pbd.h (FUNCTION_PROFILER): Delete.
23297 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Delete.
23298 * sparc/sun4o3.h (FUNCTION_PROFILER): Delete.
23299 (MCOUNT_FUNCTION): New.
23300 * sparc/sysv4.h (FUNCTION_BLOCK_PROFILER): Delete.
23301 (BLOCK_PROFILER): Delete.
23302 (MCOUNT_FUNCTION): New.
23304 Mon Jun 21 14:11:29 1999 David Edelsohn <edelsohn@gnu.org>
23306 * rs6000.md (movdf_hardfloat32): Fix typo in case 2.
23308 Mon Jun 21 12:27:17 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
23310 * config/mips/elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23313 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23316 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23319 * config/arm/telf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23322 Mon Jun 21 14:58:42 1999 Nick Clifton <nickc@cygnus.com>
23324 * config/arm/arm.h: Add cpp support for ARM920 and ARM920T cpu
23327 Mon Jun 21 06:22:21 1999 Mark Elbrecht <snowball3@bigfoot.com>
23329 * i386/djgpp.h (LIB_SPEC): New.
23330 (STARTFILE_SPEC): New.
23332 * i386/xm-djgpp.h (NO_SYS_SIGLIST): Deleted. Now obsolete.
23334 Mon Jun 21 06:19:33 1999 Philippe De Muyter <phdm@macqel.be>
23336 * fixinc/Makefile.in (gnu-regex.o): Do not define STDC_HEADERS in
23339 * system.h (WSTOPSIG): New macro.
23341 Mon Jun 21 05:33:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
23343 * c-pragma.c (push_alignment): Don't ignore alignments greater than
23345 (insert_pack_attributes): Take into account member natural
23348 * i386/winnt.c (exports_head): New static variable.
23349 (i386_pe_record_exported_symbol): New function.
23350 (i386_pe_asm_file_end): Use.
23351 * i386/cygwin.h (ASM_OUTPUT_COMMON): Record the exported
23352 symbols to be emitted at end of assembly.
23353 (ASM_DECLARE_OBJECT_NAME): Likewise.
23354 (ASM_DECLARE_FUNCTION_NAME): Likewise.
23356 * i386/uwin.h (CPP_SPEC): Use -idirafter instead -iprefix and
23359 Mon Jun 21 04:44:31 1999 Jeffrey A Law (law@cygnus.com)
23361 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Fix paren error introduced
23364 Sun Jun 20 17:27:20 1999 Richard Henderson <rth@cygnus.com>
23366 * haifa-sched.c (sched_analyze_1): Use free_list instead of
23367 zapping reg_last_uses directly.
23368 (sched_analyze_2, sched_analyze_insn): Likewise.
23369 (sched_analyze): Likewise. Don't clear reg_last_uses on calls.
23371 Sun Jun 20 16:57:29 1999 David Edelsohn <edelsohn@gnu.org>
23373 * rs6000.md (movdf_hardfloat32): Use worst case insn length
23374 attributes for cases 1 and 2.
23376 Sat Jun 19 22:52:55 1999 Richard Henderson <rth@cygnus.com>
23378 * haifa-sched.c (sched_analyze): Mark call-user regs as clobbered
23381 Sat Jun 19 05:40:07 1999 Philip Blundell <pb@nexus.co.uk>
23383 * arm.c (arm_reload_in_hi): Invert sense of test on BYTES_BIG_ENDIAN.
23385 Sat Jun 19 05:25:05 1999 Richard Earnshaw (rearnsha@arm.com)
23387 * arm.h (CONDITIONAL_REGISTER_USAGE): If flag_pic, never use
23388 PIC_OFFSET_TABLE_REGNUM for general alloaction.
23389 (INITIAL_ELIMINATION_OFFSET): Count the fact that the PIC register
23390 must be stacked if it is used for PIC accesses.
23391 * arm.c (use_return_insn): Handle PIC register specially.
23392 (output_return_instruction): Likewise.
23393 (output_func_{prologue,epilogue}): Likewise.
23394 (output_expand_prologue): Likewise.
23396 * arm.md (*adddf_esfdf_df): Renamed from *adddf_df_esfdf.
23397 (*strsi_predec): Renamed from *strqi_predec.
23398 (*loadsi_shiftpreinc): Renamed from *loadqi_shiftpreinc.
23399 (*loadsi_shiftpredec): Renamed from *loadqi_shiftpredec.
23401 * arm.c (arm_override_options): Remove warning about PIC code
23402 not being supported.
23404 Fri Jun 18 23:47:06 1999 David Edelsohn <edelsohn@gnu.org>
23406 * rs6000.c (find_addr_reg): New function.
23407 * rs6000.h (find_addr_reg): Declare.
23408 (offsettable_addr_operand): Delete.
23409 * rs6000.md (movdf_hardfloat32): Handle non-offsettable loads
23410 from and stores to GPRs.
23412 Fri Jun 18 15:44:18 1999 Richard Henderson <rth@cygnus.com>
23414 * alpha.c (alpha_expand_block_move): Use get_insns rather than
23415 gen_sequence as argument to emit_no_conflict_block.
23417 Fri Jun 18 07:02 1999 Bruce Korb <ddsinc09@ix.netcom.com>
23419 * fixinc/mkfixinc.sh: enable the fixincl program for DG/UX
23420 * fixinc/inclhack.def(dgux_int_varargs): script must end with \n
23421 *fixinc/fixincl.x: regen
23422 *fixinc/inclhack.sh: regen
23424 Thu Jun 17 15:06:10 PDT 1999 Don Lindsay <dlindsay@cygnus.com>
23426 * added support for -mpcrel (PC relative addressing for m68k)
23427 based on code done by Michael Tiemann <tiemann@axon.cygnus.com>.
23428 * invoke.texi (m68000 options): Add documentation for -mpcrel flag.
23429 * m68k.c (print_operand_address): Handle 32-bit PIC case.
23430 (comments for general_src_operand): Add some explanation
23431 about EXTRA_CONSTRAINTS.
23432 (OVERRIDE_OPTIONS): Enable -fPIC in combination with -mpcrel.
23433 * m68kelf.h (OVERRIDE_OPTIONS): Ditto.
23434 (LEGITIMATE_PIC_OPERAND_P): Fix typo.
23435 (LEGITIMATE_PIC_OPERAND_P): Re-derive from m68k.h case.
23436 * m68k.h (LEGITIMATE_PIC_OPERAND_P): Fix delete-o.
23437 (INDIRECTABLE_1_ADDRESS): Delete spurious '/' at end of macro.
23438 (OVERRIDE_OPTIONS): Change behavior so that -mpcrel implies -fpic
23439 if not already set.
23440 (OVERRIDE_OPTIONS): Merge in changes from m68k.h.
23441 * m68k.h (TARGET_PCREL): New target flag.
23442 (TARGET_SWITCHES): Add "pcrel" as a recognized switch.
23443 (OVERRIDE_OPTIONS): Add checks for -mpcrel.
23444 (LEGITIMATE_PIC_OPERAND_P): Don't normally accept anything that
23445 contains a SYMBOL_REF. Relax this constraint during reload, since
23446 we want to use the predicates, not reload's built-in concept of a
23447 valid memory address, to control what insns need reloading.
23448 (EXTRA_CONSTRAINT): Define constraints to accept pc-relative
23449 operands (essentially 'g', 'm', and 's' under normal circumstances).
23450 * m68k.c (print_operand): Cause printing of pc-relative addresses
23451 to include pc register.
23452 (print_operand_address): Ditto.
23453 (general_src_operand): Accept operands that are not only
23454 general_operands, but are also valid when used as a pc-relative
23456 (nonimmediate_src_operand): Similar, for nonimmediate_operands.
23457 (memory_src_operand): Similar, for memory_operands.
23458 (pcrel_address): New predicate to accept the special case of a
23459 pc-relative address.
23460 * m68k.md (many patterns): Rewrite common SImode, HImode, and
23461 QImode insns to accept *_src_operand instead of *_operand where
23462 pc-relative operands can fit. For example, a pc-relative operand
23463 can be used as a memory source operand for addsi3, but not as a
23464 memory destination.
23465 * hp320.h linux.h m68kv4.h (LEGITIMATE_PIC_OPERAND_P) as in m68k.h.
23467 Fri Jun 18 09:11:07 1999 Nick Clifton <nickc@cygnus.com>
23469 * config/arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS): New Marco: USe
23470 .thumb_set pseudo op to mark aliases of thumb functions.
23472 Wed Jun 16 18:19:13 1999 Nick Clifton <nickc@cygnus.com>
23474 * varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in
23475 preference to ASM_OUTPUT_DEF, if it is defined.
23477 * tm.texi: Document new, optional target macro
23478 ASM_OUTPUT_DEF_FROM_DECLS.
23480 Thu Jun 17 15:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
23482 * fixincludes: ISCNTL patch
23483 * fixinc/inclhack.def (ioctl_fix_ctrl): Fix the definition of [_]*ISCTRL().
23484 (dgux_int_varargs): new for DG/UX
23485 * fixinc/{fixincl.x,inclhack.sh}: Regenerated.
23487 Thu Jun 17 21:34:24 1999 Jeff Law <law@cygnus.com>
23489 * invoke.texi (ia32 options): Fix typo.
23491 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23493 * loop.c (strength_reduce): When doing biv->giv conversion, update
23494 reg note of NEXT->insn.
23496 Thu Jun 17 14:25:08 1999 Jeffrey A Law (law@cygnus.com)
23498 * loop.c (move_movables): Note issues with replacing REGs with
23500 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Handle SUBREGs properly.
23502 Thu Jun 17 13:28:30 1999 David O'Brien <obrien@FreeBSD.org>
23504 * i386/freebsd-elf.h (LINK_SPEC): Fix typo.
23506 * i386/freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and
23507 the reference to `mcount' was not correct for the ELF on FreeBSD.
23509 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23511 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
23514 (recombine_givs): Set ix field after sorting.
23516 Thu Jun 17 02:54:30 1999 Jeffrey A Law (law@cygnus.com)
23518 * emit-rtl.c (operand_subword): Tighten checks for when it is safe
23519 to safe to extract a subword out of a REG.
23521 Thu Jun 17 01:45:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23523 * sh.md (mulsi3): Don't add a no-op move at the end.
23525 Wed Jun 16 20:29:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23527 * cse.c (cse_insn): Don't put hard register source into tables for
23528 the last insn of a libcall.
23530 Wed Jun 16 19:44:33 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23532 * loop.c (strength_reduce): Insert sets of derived givs at every
23533 biv increment, even if it's the only one.
23535 Wed Jun 16 10:33:02 1999 Jason Merrill <jason@yorick.cygnus.com>
23537 * dwarfout.c (add_incomplete_type): New fn.
23538 (output_type): Call it.
23539 (retry_incomplete_types): New fn.
23540 (dwarfout_finish): Call it.
23542 From Eric Raskin <ehr@listworks.com>:
23543 (output_type): Output types for bases.
23545 Tue Jun 15 12:51:23 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
23547 * mips.c (mips_output_conditional_branch): Add `break'
23548 between `default' label and `close braces'.
23550 Tue Jun 15 01:55:20 1999 David O'Brien <obrien@FreeBSD.org>
23552 * i386/freebsd-elf.h (LINK_SPEC): clean up the linking library
23553 specifications and make it realistic.
23554 (LIB_SPEC): Likewise.
23556 Mon Jun 14 15:38:43 1999 Jim Wilson <wilson@cygnus.com>
23558 * config/mips/mips.c (mips_secondary_reload_class): Check for
23559 (PLUS (SP) (REG)) and return appropriate register class.
23560 * config/mips/mips.md (reload_insi): Delete predicate for operand 1.
23561 Handle (PLUS (SP) (REG)).
23562 (tablejump): In mips16 code, use emit_insn instead of emit_jump_insn.
23563 (tablejump_mips161, tablejump_mips162): Use emit_jump_insn instead
23564 of emit_insn for tablejump.
23566 Mon Jun 14 17:26:40 1999 David Edelsohn <edelsohn@gnu.org>
23568 * rs6000.c (output_prolog): RS6000_CALL_GLUE must be
23569 asm_fprintf format string by itself.
23570 (output_function_profiler): Likewise.
23572 Mon Jun 14 12:57:38 1999 David Mosberger <davidm@hpl.hp.com>
23574 * combine.c (simplify_logical, case AND): Only call
23575 simplify_and_const_int if the mode is no wider than HOST_WIDE_INT
23576 or the constant is positive.
23578 Mon Jun 14 11:43:41 1999 Nick Clifton <nickc@cygnus.com>
23580 * configure.in: Fix typo in rs6000-ibm-aix4 case.
23581 * configure: Regenerate.
23583 Mon Jun 14 03:55:40 1999 Jeffrey A Law (law@cygnus.com)
23585 * configure.in (rs6000-ibm-aix4.3*, powerpc-ibm-aix4.3*): Do not
23586 require a sub-version #.
23587 * configure: Rebuilt.
23589 1999-06-14 Robert Lipe (robertlipe@usa.net)
23591 * svr4.h (DWARF2_DEBUGGING_INFO): Check for redefinition.
23593 Mon Jun 14 10:30:52 BST 1999 Nathan Sidwell <nathan@acm.org>
23595 * c-typeck.c (process_init_element): Detect excess elements in
23596 char array initializer.
23598 1999-06-14 Andreas Jaeger <aj@arthur.rhein-neckar.de>
23600 * gcc.texi: Mention gcc 2.96 instead of egcs 1.00.
23602 Sat Jun 12 22:29:48 EDT 1999 Jerry Quinn <jquinn@nortelnetworks.com>
23604 * invoke.texi (Option Summary): Add -fpermissive flag.
23606 Sat Jun 12 03:40:42 1999 Jeffrey A Law (law@cygnus.com)
23608 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Do nothing with operands
23609 that require PIC code sequences.
23611 Wed Jun 9 16:29:01 1999 Nick Clifton <nickc@cygnus.com>
23613 * configure.in: Add new target: thumb-elf.
23614 * configure: Regenerate.
23615 * config/arm/t-thumb-elf: New file: Makefile fragment for
23617 * config/arm/telf.h: New file: Header file for thumb-elf
23620 Fri Jun 11 03:17:51 1999 Jeffrey A Law (law@cygnus.com)
23622 * Makefile.in (libgcc2): Pass MAYBE_USE_COLLECT2 as an argument.
23623 * libgcc2.c (__CTOR_LIST, __DTOR_LIST); Do not provide
23624 initializers is some circumstances.
23626 * fixinc/inclhack.def (endif_label): Add additional selector for
23627 more bogus stuff after #endif statements.
23628 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
23630 Thu Jun 10 20:44:36 1999 Mumit Khan <khan@xraylith.wisc.edu>
23632 * i386/cygwin.h (SET_ASM_OP): Define.
23634 Thu Jun 10 20:37:57 1999 Mumit Khan <khan@xraylith.wisc.edu>
23636 * reg-stack.c (stack_reg_life_analysis): Find all the RETURN insns.
23638 Thu Jun 10 19:23:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23640 * sh.h (TARGET_HARWARD, TARGET_HARVARD): Changed the former to the
23643 * sh.md (ic_invalidate_line_i): Remove second alternative.
23645 Thu Jun 10 06:55 1999 Bruce Korb <ddsinc09@ix.netcom.com>
23647 *fixinc/inclhack.def(sun_auth_proto): We do not know how to
23648 test for the presence of valid prototypes. Delete bypass expr.
23649 (ioctl_fix_ctrl): Correct the selection expression.
23650 (no_double_slash): Correct quoting rules
23651 *fixinc/fixincl.x: regen
23652 *fixinc/inclhack.sh: regen
23654 Thu Jun 10 15:08:15 1999 Nick Clifton <nickc@cygnus.com>
23656 * config/arm/arm.c (struct all_cores): Add ARM920 and ARM920t.
23658 Wed Jun 9 15:57:57 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23660 * rs6000.md (movsi_got_internal_mem): Delete.
23661 * rs6000.h (CONDITIONAL_REGISTER_USAGE): Mark PIC_OFFSET_TABLE_REGNUM.
23662 (GOT_TOC_REGNUM): Delete.
23663 (PIC_OFFSET_TABLE_REGNUM): Define.
23664 (FINALIZE_PIC): Disable.
23665 * rs6000.c (rs6000_got_register): New code for fixed pic register.
23666 (rs6000_replace_regno): Delete.
23667 (rs6000_finalize_pic): Likewise.
23668 (output_prolog): Handle PIC_OFFSET_TABLE_REGNUM.
23670 Wed Jun 9 19:44:26 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23672 * loop.c (loop_insn_first_p): Don't compare LUIDs when P
23673 is a note; use <= for the compare; advance P while it is
23676 Wed Jun 9 13:12:24 1999 Jeffrey A Law (law@cygnus.com)
23678 * fixinc/inclhack.def (no_double_slash): Fix quoting for test.
23679 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh; Rebuilt.
23681 * varasm.c (remove_from_pending_weak_list): Verify t->name
23682 is non-NULL before passing it to strcmp.
23684 Wed Jun 9 06:50 1999 Bruce Korb <ddsinc09@ix.netcom.com>
23686 *fixinc/inclhack.def(sun_auth_proto): bypass the patch if
23687 the typed arguments are not part of a comment
23688 (ioctl_fix_ctrl): Added a purpose comment
23689 *fixinc/fixincl.x: regenerate
23690 *fixinc/inclhack.sh: regenerate
23692 Wed Jun 9 22:57:02 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23694 * invoke.texi: Add C4x invocation docs.
23696 Wed Jun 9 22:34:38 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23698 * config/c4x/c4x.h (TARGET_EXPOSE_LDP, LEGITIMIZE_RELOAD_ADDRESS):
23700 * config/c4x/c4x.c (c4x_emit_move_sequence, src_operand): Use
23702 (c4x_legitimize_reload_address): New function.
23703 * config/c4x/c4x.md: Update docs.
23705 Wed Jun 9 04:14:48 1999 Jeffrey A Law (law@cygnus.com)
23707 * fixincludes: Avoid removing '.'.
23708 * fixinc/fixinc.svr4: Likewise.
23709 * fixinc/fixinc.winnt: Likewise.
23710 * fixinc/inclhack.tpl: Likewise.
23711 * fixinc/fixincl.sh, fixinc/inclhack.sh: Rebuilt.
23713 1999-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23715 * fixinc/inclhack.def (sun_catmacro): Escape parens in the select
23717 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
23719 Wed Jun 9 03:10:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
23721 * c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
23724 Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
23726 * configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
23727 * configure: Regenerate.
23729 Tue Jun 8 05:47:48 1999 Richard Earnshaw (rearnsha@arm.com)
23731 * optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute
23734 Mon Jun 7 22:30:37 1999 Jeffrey A Law (law@cygnus.com)
23736 * fixinc/inclhack.def (avoid_bool): Also catch
23737 "typedef [unsigned] int bool".
23738 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
23740 * m68k/x-hp3bsd44: Delete obsolete and incorrect file.
23741 * configure.in (m68k-hp-bsd4.4): No longer use x-hp3bsd44.
23742 * configure: Rebuilt.
23744 Mon Jun 7 22:05:03 1999 Mark Kettenis <kettenis@gnu.org>
23746 * config/i386/gnu.h: Include <gnu.h> right after <i386/linux.h>,
23747 such that we can override its definitions if necessary.
23748 (CPP_SPEC): New define. Support processor specific predefines via
23750 (CC1_SPEC): New define. Support processor specific compiler
23751 options via %(cc1_cpu).
23752 (STARTFILE_SPEC): New define. Use crt0.o instead of crt1.o for
23755 1999-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23757 * fixinc/inclhack.def (math_gcc_ifndefs): Insert whitespace
23758 between sed's -e flag, and the open-quote following it.
23759 * fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
23761 Mon Jun 7 20:34:20 1999 Robert Lipe <robertlipe@usa.net>
23762 Jeffrey A Law (law@cygnus.com)
23764 * varasm.c (assemble_start_function): Remove the function
23765 from the pending weak decls list when we define a function.
23766 (assemble_variable): Similarly for variables.
23767 (weak_finish): Ignore items on the list with a NULL name.
23768 (remove_from_ending_weak_list); New function to "remove" an item
23769 from the pending weak declarations list.
23771 Mon Jun 7 19:27:07 1999 Jerry Quinn <jquinn@nortelnetworks.com>
23773 * pa.md (fmpyfadd, fmpynfadd, fnegabs): New patterns.
23775 Mon Jun 7 14:07:39 1999 Dave Brolley <brolley@cygnus.com>
23777 * c-lex.c (GETC): Redefine to call getch.
23778 (UNGETC): Redefine to call put_back.
23779 (putback_buffer): New structure type.
23780 (putback): New static structure.
23781 (getch): New function.
23782 (put_back): New function.
23783 (yylex): Replace unused bytes from bad multibyte character.
23785 Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com>
23787 * cpplib.c (do_define): Cast `alloca' return value.
23788 (do_include, do_undef, do_pragma): Likewise.
23789 * cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return
23791 * cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values.
23792 * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value.
23794 Sun Jun 6 11:58:34 1999 Jakub Jelinek <jj@ultra.linux.cz>
23796 * sparc.md (abstf2): This should be an expand.
23797 (split after abstf2_notv9): Fix mode.
23798 (abstf2_hq_v9): New pattern.
23799 (abstf2_v9): Only use when no hard quad.
23800 (absdf2_v9): Fix if target is not the same as source.
23801 (ashrsi3_extend, ashrsi3_extend2, lshrsi3_extend, lshrsi3_extend2):
23802 Add correct output constraints.
23804 Sat Jun 5 17:04:16 1999 Craig Burley <craig@jcb-sc.com>
23806 From Dave Love to egcs-patches on 20 May 1999 17:38:38 +0100:
23807 * invoke.texi: Clarify text vis-a-vis Intel CPUs.
23809 Sat Jun 5 12:11:24 1999 Mark Mitchell <mark@codesourcery.com>
23811 * mips.h (mips_output_conditional_branch): New function.
23812 (mips_adjust_insn_length): Likewise.
23813 (ASSEMBLER_SCRATCH_REGNUM): New macro.
23814 (ADJUST_INSN_LENGTH): Likewise.
23815 * mips.c (print_operand): Add `F' and `W' for floating-point
23816 comparison opcodes.
23817 (machine_dependent_reorg): Adjust MIPS16 code; instruction-lengths
23819 (mips_adjust_insn_length): New function.
23820 (mips_output_conditional_branch): New function.
23821 * mips.md (length): Adjust attribute definition to handle
23822 conditional branches. Change lengths to bytes, rather than
23823 instructions throughout. Remove length attribute from
23824 instructions whose length is four bytes, and rely on the default
23826 (dslot): Fix typo in comment.
23827 Reword conditional branch patterns to use
23828 mips_output_conditional_branch.
23830 Fri Jun 4 13:30:27 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23832 * alpha/osf.h (CPP_SUBTARGET_SPEC): Handle -threads.
23833 (LIB_SPEC): Likewise.
23834 Link with -lprof1_r for -g/-pg.
23836 1999-06-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
23838 * loop.c (check_dbra_loop): Fix change of Jan 19.
23840 Fri Jun 4 00:12:40 1999 Marc Espie <espie@cvs.openbsd.org>
23842 * freebsd-elf.h (SWITCH_TAKES_ARG): Redefine, not define.
23843 (STARTFILE_SPEC): Define, override the svr4.h version.
23844 (ENDFILE_SPEC): Likewise.
23846 Thu Jun 3 23:58:55 1999 Jeffrey A Law (law@cygnus.com)
23848 * fixinc/inclhack.def (limits_ifndefs): Also apply to sys/limits.h
23849 * fixinc/fixincl.x: Regenerated.
23850 * fixinc/inclhack.sh: Regenerated.
23852 Fri Jun 4 05:42:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23854 * sh.c (barrier_align): Don't return early for normal branch/barrier
23855 when optimizing for SH2.
23857 Thu Jun 3 22:27:50 1999 Robert Lipe <robertlipe@usa.net>
23859 * i386/udk.h (LINK_SPEC): Correct linker search path for
23862 Fri Jun 4 03:20:40 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23864 * sh.c (fixup_addr_diff_vecs): Emit braf reference label.
23865 (braf_label_ref_operand): Delete.
23866 * sh.h (PREDICATE_CODES): Remove braf_label_ref_operand.
23867 * sh.md (casesi_jump_2): Operand1 is now the inside of a
23868 label_ref, and has no predicate.
23869 The patten has a predicate to guard against invalid substitutions.
23870 (dummy_jump): Delete.
23871 (casesi): Update use of casesi_jump_2.
23873 Thu Jun 3 07:48 1999 Bruce Korb <ddsinc09@ix.netcom.com>
23875 *fixinc/inclhack.def(Io_Def_Quotes): corrected sed expression
23876 *fixinc/fixincl.x: regenerate
23877 *fixinc/inclhack.sh: regenerate
23879 Thu Jun 3 02:15:07 1999 Jason Merrill <jason@yorick.cygnus.com>
23881 * dwarf2out.c (add_incomplete_type): New fn.
23882 (gen_struct_or_union_type_die): Call it.
23883 (retry_incomplete_types): New fn.
23884 (dwarf2out_finish): Call it.
23886 Thu Jun 3 01:19:03 1999 Jeffrey A Law (law@cygnus.com)
23888 * gcse.c (insert_insn_end_bb): Correct placement of insns when the
23889 current block starts with a CODE_LABEL and ends with a CALL and
23890 we can not find all the argument setup instructions for the CALL.
23892 Wed Jun 2 15:44:15 1999 Mark Mitchell <mark@codesourcery.com>
23894 Revert this change:
23895 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
23896 something is a candidate for optimize_bit_field_compare.
23898 Wed Jun 2 21:53:05 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23900 * sh.h (CONST_OK_FOR_I, CONST_OK_FOR_L): Cast VALUE to HOST_WIDE_INT.
23902 Wed Jun 2 12:25:55 1999 Richard Henderson <rth@cygnus.com>
23904 * alpha.c (override_options): Thinko in last patch.
23906 * alpha/osf.h (CPP_SUBTARGET_SPEC): Define.
23907 (LIB_SPEC): Recognize -pthread.
23909 Wed Jun 2 08:42:55 1999 Nick Clifton <nickc@cygnus.com>
23911 * config/arm/tcoff.h (USER_LABEL_PREFIX): Synchronise with
23912 definition in config/arm/coff.h
23913 * config/arm/coff.h: Add comment about USER_LABEL_PREFIX.
23915 Wed Jun 2 07:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
23917 * fixinc/fixincl.c(global def): Add FD_SHELL_SCRIPT to mark
23918 fixes that need "file=xxx\n" prepended before invocation
23919 (start_fixer - new): starting the fixer process is complex enough
23920 to warrent its own routine. It prepends the "file=xxx\n" stuff.
23921 (process): uses the new routine; omit usage of putenv()
23922 * fixinc/fixincl.tpl: mark shell scripts with FD_SHELL_SCRIPT
23923 * fixinc/fixincl.x: regenerate
23925 Wed Jun 2 02:29:07 1999 Jeffrey A Law (law@cygnus.com)
23927 * README, configure.in, gcc.1, gcc.texi: Update name (egcs -> gcc)
23928 and version #s (1.1 -> 2.96) as needed.
23929 * README.g77: Kill way out of date file in the toplevel directory.
23931 Wed Jun 2 00:52:34 1999 David O'Brien <obrien@FreeBSD.org>
23933 * configure.in (i[34567]86-*-freebsdelf): Don't include linux.h,
23934 i386/freebsd-elf.h no longer requires it. Instead include svr4.h.
23935 * configure: Rebuilt.
23936 * i386/freebsd-elf.h (DEFAULT_VTABLE_THUNKS): Define.
23937 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, SET_ASM_OP): Likewise.
23938 (PREFERRED_DEBUGGING_TYPE, WCHAR_UNSIGNED): Likewise.
23939 (SWITCH_TAKES_ARG): Likewise.
23940 * i386/freebsd.h: Remove FREEBSD_NATIVE support.
23941 * config/t-freebsd: Moved from config/i386/ so it can used for all
23944 Mon May 31 02:22:55 1999 Philippe De Muyter <phdm@macqel.be>
23946 * m68k/x-mot3300 (XCFLAGS): Fixed to match stb.o, not f/stb.o.
23948 Wed Jun 2 00:08:34 1999 Robert Lipe <robertlipe@usa.net>
23950 * configure.in (i[34567]86-*-udk*): Install headers with cpio.
23951 * configure: Rebuilt.
23953 Tue Jun 1 19:06:22 1999 David Edelsohn <edelsohn@gnu.org>
23955 * rs6000/aix41.h (RS6000_CALL_GLUE): Define.
23956 * rs6000/aix43.h (RS6000_CALL_GLUE): Likewise.
23957 * rs6000/rs6000.c (rs6000_file_start): Use putc.
23958 (rs6000_output_load_toc_table): Same.
23959 (output_prolog, output_mi_thunk): Same.
23960 * rs6000/rs6000.h (SELECT_SECTION): Formatting.
23961 (ASM_GLOBALIZE_LABEL): Use putc.
23963 Mon May 31 15:23:23 1999 Richard Henderson <rth@cygnus.com>
23965 * alpha.md (reload_*_help): New patterns and splitters.
23966 (reload_*): Use them.
23967 (mov[qh]i): Likewise.
23969 Mon May 31 11:48:07 1999 Mark Mitchell <mark@codesourcery.com>
23971 * cccp.c (handle_directive): Handle backslash-newlines in quoted
23974 Mon May 31 09:36:11 1999 Cort Dougan <cort@cs.nmt.edu>
23976 * rs6000/linux.h (LINK_SPEC): Use emulation elf32ppclinux.
23978 Mon May 31 11:40:20 EDT 1999 John Wehle (john@feith.com)
23980 * flow.c (mark_regs_live_at_end, insn_dead_p,
23981 mark_set_1, mark_used_regs): Only give FRAME_POINTER_REGNUM
23982 and HARD_FRAME_POINTER_REGNUM special treatment if reload
23983 hasn't run or the frame pointer is needed.
23984 * haifa-sched.c (attach_deaths): Likewise.
23985 * sched.c (attach_deaths): Likewise.
23987 Mon May 31 00:46:17 1999 Jeffrey A Law (law@cygnus.com)
23989 * jump.c (jump_optimize_1): Only set CAN_REACH_END if
23990 calculate_can_reach_end returns nonzero.
23992 * configure.in (native gas tests): Search for an assembler in the
23993 same manner that the installed compiler will.
23994 * configure: Rebuilt.
23995 * tm.texi (MD_EXEC_PREFIX): Note need to update configure.in too.
23997 * alias.c (find_base_term): Improve handling of addresses
23998 constructed from binary operations.
24000 Sun May 30 14:29:17 1999 Eric Raskin (ehr@listworks.com)
24002 * dgux.h (STARTFILE_SPEC): Fix incorrectly matched curly-braces.
24004 Sun May 30 14:19:13 1999 Jeffrey A Law (law@cygnus.com)
24006 * function.h (cleanup_label, frame_offset): Declare.
24007 (tail_recursion_label, tail_recursion_reentry): Likewise.
24008 (arg_pointer_save_area, rtl_expr_chain): Likewise.
24009 * stmt.c (cleanup_label, frame_offset): Delete extern declarations.
24010 (tail_recursion_label, tail_recursion_reentry): Likewise.
24011 (arg_pointer_save_area, rtl_expr_chain): Likewise.
24013 Sat May 29 19:08:10 1999 Philip Blundell <philb@gnu.org>
24015 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Only define if not already
24017 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Define.
24018 (MAX_OFILE_ALIGNMENT): Define.
24020 Fri May 28 21:40 1999 Robert Lipe <robertlipe@usa.net>
24022 * fixincl.c: Replace local include scheme with #includes of
24023 gansidecl.h and system.h.
24024 * procopen.c: Likewise.
24025 * server.c: Likewise.
24027 Fri May 28 03:47:03 1999 Eric Raskin (ehr@listworks.com)
24029 * i386/t-dgux (EXTRA_PARTS): Add crti.o
24030 (crti.o): Add build rule and dependencies.
24031 * fixinc/fixinc.dgux: Use modified _int_varargs.h
24033 Fri May 28 03:41:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24035 * rs6000/sysv4.h (CC1_SPEC): Add support for -profile
24036 (LIB_LINUX_SPEC): Likewise.
24037 (LIB_LINUX_SPEC): Add support for -pthread
24038 (CPP_OS_LINUX_SPEC): Likewise.
24039 (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are
24042 Thu May 27 13:04:52 1999 H.J. Lu (hjl@gnu.org)
24044 * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for
24046 (notice_update_cc, output_float_compare): Enable TARGET_CMOVE support.
24047 (output_float_compare, output_fp_cc0_set): Fix the FLOAT comparison
24048 for IEEE math and CC_FCOMI.
24049 (put_jump_code): No IEEE if CC_FCOMI is set.
24051 1999-05-27 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
24053 * fold-const.c (fold_truthop): Make the field reference unsigned
24054 when converting a single bit compare.
24056 Thu May 27 02:40:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24058 * loop.c (strength_reduce): Don't do biv->giv conversion on constants.
24060 Thu May 27 02:09:27 1999 Jeffrey A Law (law@cygnus.com)
24062 * varasm.c (STRIP_NAME_ENCODING): Remove default definition.
24063 * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
24066 * reload.c (push_reload): Do not call remove_address_replacements
24067 when presented with identical optional reloads.
24069 Wed May 26 14:18:05 1999 Richard Henderson <rth@cygnus.com>
24071 * alpha.h (MASK_FIX, TARGET_FIX): New.
24072 (MASK_*): Reorganize constants.
24073 (CPP_AM_FIX_SPEC): New.
24074 (TARGET_SWITCHES): Add FIX.
24075 (EXTRA_SPECS): Likewise.
24076 (CPP_CPU_EV6_SPEC): Use FIX, not CIX.
24077 (SECONDARY_MEMORY_NEEDED): Likewise.
24078 (REGISTER_MOVE_COST): Likewise.
24079 * alpha.c (override_options): Add FIX support. Always use
24080 ALPHA_TP_PROG for ev6.
24081 * alpha.md (sqrt and mov[sd]i patterns): Use FIX, not CIX.
24082 * alpha/elf.h (ASM_FILE_START): Look at FIX too.
24083 * configure.in (target_cpu_default2) [ev6]: Use FIX, not CIX.
24085 Wed May 26 09:53:05 1999 Mark Mitchell <mark@codesourcery.com>
24087 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
24088 something is a candidate for optimize_bit_field_compare.
24090 Wed May 26 09:40:02 1999 Mark Mitchell <mark@codesourcery.com>
24092 * gcc.texi (Passes): Document branch-shortening.
24093 * invoke.texi (Debugging Options): Document the fact that `-dp'
24094 outputs length information for instructions.
24096 Wed May 26 08:49:31 1999 Nick Clifton <nickc@cygnus.com>
24098 * flow.c: Revert previous delta.
24100 Wed May 26 06:05:10 1999 Nick Clifton <nickc@cygnus.com>
24102 * flow.c (insn_dead_p): Check against frame_pointer_rtx not
24103 FRAME_POINTER_REGNUM.
24104 (mark_set_1): Ditto.
24105 (mark_used_regs): Ditto.
24107 Wed May 26 02:19:31 1999 Philip Blundell <pb@nexus.co.uk>
24109 * arm.h (NEED_PLT_GOT): Fix mistake in last change.
24110 (GOT_PCREL): New macro. Define to 1 if not already defined.
24111 * arm/elf.h (GOT_PCREL): Define to 0.
24112 * arm.c (arm_finalize_pic): Take into account the setting of
24115 Tue May 25 14:06:06 1999 Jeffrey A Law (law@cygnus.com)
24117 * output.h (STRIP_NAME_ENCODING): Provide default definition.
24118 * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.
24120 * flow.c (mark_set_1): Do not record BLKmode stores as dead
24121 store elimination candidates.
24123 Tue May 25 08:55:57 1999 Gavin Romig-Koch <gavin@cygnus.com>
24125 * config/mips/mips.h (ASM_OUTPUT_DOUBLE_INT) : Use 'dword' if
24128 Mon May 24 20:30:08 1999 Jim Wilson <wilson@cygnus.com>
24130 * configure.in (rs6000-ibm-aix4.[12]*): Delete use of aix41-gld.h.
24131 Add use of x-aix41-gld.
24133 Mon May 24 16:44:09 1999 Jakub Jelinek <jj@ultra.linux.cz>
24135 * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
24136 (ASM_OUTPUT_DESTRUCTOR): Define.
24138 Mon May 24 14:35:24 1999 Jeffrey A Law (law@cygnus.com)
24140 * loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
24141 last CODE_LABEL in a loop if we have previously passed a jump
24142 to the top of the loop.
24144 Mon May 24 07:56:29 1999 Nick Clifton <nickc@cygnus.com>
24146 * config/arm/arm.h (OUTPUT_INT_ADDR_CONST): Fix blunder made when
24147 applying Philip's patch.
24149 Mon May 24 01:02:12 1999 Mark Mitchell <mark@codesourcery.com>
24151 * stmt.c (expand_end_bindings): Ignore any elements of VARS that
24154 Sun May 23 20:31:16 1999 Jeffrey A Law (law@cygnus.com)
24156 * loop.c (strength_reduce): Grow reg_single_usage as needed.
24158 Sun May 23 10:13:20 1999 David O'Brien <obrien@FreeBSD.org>
24160 * i386/freebsd-elf.h (LINK_SPEC): Change -static to -Bstatic.
24161 Also remove a useless comment.
24163 Sun May 23 10:05:23 1999 Jerry Quinn <jquinn@nortelnetworks.com>
24165 * pa.md (negdf2,negsf2): Use fneg instead of fsub on pa 2.0.
24167 Sat May 22 21:02:06 1999 David Edelsohn <edelsohn@gnu.org>
24169 * collect2.c (main): Only generate import or export file and add
24170 to link arguments if non-empty. Use xmalloc not alloca.
24171 (write_{export,import}_file): Delete.
24172 (write_aix_file): New function.
24173 (locatelib): Use xmalloc not malloc.
24174 (GCC_OK_SYMBOL): Do not check type if aix64.
24176 Sat May 22 09:35:51 1999 Philip Blundell <pb@nexus.co.uk>
24178 Based on patch by Scott Bambrough and Pat Beirne:
24179 * config/arm/arm.c (making_const_table): New variable.
24180 * config/arm/arm.h (making_const_table): Declare.
24181 (OUTPUT_INT_ADDR_CONST): Mark symbols as position independent if
24183 * config/arm/arm.md (consttable_4, consttable_8, consttable_end):
24184 Keep track of when we are building the constant table.
24186 Sat May 22 09:34:22 1999 Philip Blundell <pb@nexus.co.uk>
24188 * config/arm/arm.c (arm_override_options): Fix erroneous warning
24191 Sat May 22 09:06:33 1999 Nick Clifton <nickc@cygnus.com>
24193 * config/arm/arm.h (NEED_PLT_GOT): Only define if not already
24196 Sat May 22 07:17:05 1999 Nick Clifton <nickc@cygnus.com>
24198 * tm.texi (FUNCTION_ARG): Correct description of a stack element
24201 Sat May 22 01:27:49 1999 Mark Mitchell <mark@codesourcery.com>
24203 * expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.
24205 Fri May 21 21:19:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24207 * rs6000.c (output_mi_thunk): Enable full support again.
24209 Fri May 21 20:09:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24211 * sh.h (BRANCH_COST): Define.
24213 Thu May 20 10:00:42 1999 Stephen L Moshier <moshier@world.std.com>
24215 * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
24217 Thu May 20 09:58:57 1999 Jan Hubicka <hubicka@freesoft.cz>
24219 * function.c (assign_stack_local): Align stack slot propertly.
24220 (assign_outer_stack_local): Likewise.
24222 Thu May 20 10:38:43 1999 Mark Mitchell <mark@codesourcery.com>
24224 * expr.h (lang_expand_constant): Declare.
24225 * toplev.c (lang_expand_constant): Define it.
24226 * varasm.c (output_constant): Use it.
24228 Thu May 20 11:28:53 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24230 * optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
24231 Change function definitions to K&R style.
24233 Thu May 20 08:16:39 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24235 * fixinc/fixincl.c: We must not ignore SIGCLD now.
24237 Thu May 20 07:06:39 1999 Alexandre Oliva <aoliva@acm.org>
24239 * fixinc/Makefile.in(gnu-regex.o): add $(INCLUDES) to compile options
24240 * fixinc/fixincl.c(wait_for_pid): K&R-ify arguments
24241 (several places): omit static initialization
24242 (process): use single fd, since only the read fd is used
24243 * fixinc/gnu-regex.c: define 'const' away, if not supported
24244 * fixinc/procopen.c(several places): omit static initialization
24245 * fixinc/server.c: define 'volitile' away, if not supported
24247 1999-05-20 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
24249 * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
24250 asm_fprintf and %L to generate the label name.
24251 * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
24252 (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.
24254 Thu May 20 01:40:55 1999 Jeffrey A Law (law@cygnus.com)
24256 * jump.c (can_reverse_comparison_p): Do not abort if the comparison
24257 insn for a conditional jump can not be found.
24259 Wed May 19 23:58:58 1999 Jeffrey A Law (law@cygnus.com)
24261 * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
24262 on variables in specific sections other than .sbss and .sdata.
24264 Wed May 19 03:56:56 1999 Mark Mitchell <mark@codesourcery.com>
24266 * stmt.c (expand_return): Call start_cleanup_deferral and
24267 end_cleanup_deferral around conditional code.
24269 Wed May 19 08:40:08 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24271 * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
24272 filename lists. Utilizes new "krstr" AutoGen function.
24273 * fixinc/fixincl.x: Rebuilt.
24275 Wed May 19 02:47:11 1999 Jan Hubicka (hubicka@freesoft.cz)
24277 * i386.c (output_float_compare): Avoid GNU-C extensions.
24279 Wed May 19 00:34:40 1999 Jeffrey A Law (law@cygnus.com)
24281 * version.c: Bump to distinguish mainline tree from the
24284 See ChangeLog.1 for earlier changes.