Jeff Law [Mon, 1 May 2000 17:17:55 +0000 (11:17 -0600)]
Update copyright.
From-SVN: r33574
Alexandre Oliva [Mon, 1 May 2000 17:09:05 +0000 (17:09 +0000)]
mn10300.c (expand_epilogue): If SP is to be adjusted by less than 256 bytes...
* config/mn10300/mn10300.c (expand_epilogue): If SP is to be
adjusted by less than 256 bytes, use ret regardless of having any
callee-saved register to restore.
From-SVN: r33573
Laurynas Biveinis [Mon, 1 May 2000 16:53:03 +0000 (16:53 +0000)]
* tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
From-SVN: r33572
Mark Mitchell [Mon, 1 May 2000 16:51:17 +0000 (16:51 +0000)]
cp-tree.h (same_type_ignoring_top_level_qualifiers_p): New macro.
* cp-tree.h (same_type_ignoring_top_level_qualifiers_p): New
macro.
* call.c (standard_conversion): Use it.
(direct_reference_binding): Likewise.
(build_over_call): Likewise.
(is_properly_derived_from): Likewise.
(compare_ics): Likewise.
* class.c (resolves_to_fixed_type_p): Likewise.
* optimize.c (declare_return_variable): Likewise.
* pt.c (is_specialization_of): Likewise.
(unify): Likewise.
* typeck.c (comp_target_parms): Likeiwse.
(build_static_cast): Likewise.
(build_reinterpret_cast): Likewise.
(build_const_cast): Likewise.
(comp_ptr_ttypes_real): Likewise.
(comp_ptr_ttypes_const): Likewise.
* typeck2.c (process_init_constructor): Likewise.
From-SVN: r33571
Mark Elbrecht [Mon, 1 May 2000 16:50:49 +0000 (16:50 +0000)]
djgpp.h (INT_ASM_OP): Define.
* config/i386/djgpp.h (INT_ASM_OP): Define.
(CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
(ASM_WEAKEN_LABEL): Define.
(MASK_BNU210): Define.
(SUBTARGET_SWITCHES): Define.
(SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
(MAKE_DECL_ONE_ONLY): Define.
(UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
From-SVN: r33570
Mumit Khan [Mon, 1 May 2000 16:47:22 +0000 (16:47 +0000)]
* i386/cygwin.h (INT_ASM_OP): Define.
From-SVN: r33569
Denis Chertykov [Mon, 1 May 2000 14:37:11 +0000 (14:37 +0000)]
avr.c (address_cost): renamed to avr_address_cost.
* config/avr/avr.c (address_cost): renamed to avr_address_cost.
* config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
From-SVN: r33568
Denis Chertykov [Mon, 1 May 2000 14:11:51 +0000 (14:11 +0000)]
avr.c (asm_file_start): output 0 as r0 and 1 as r1 in __tmp_reg__ and __zero_reg__ initialization.
* config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
__tmp_reg__ and __zero_reg__ initialization.
From-SVN: r33567
Martin v. Löwis [Mon, 1 May 2000 11:15:22 +0000 (11:15 +0000)]
New file
From-SVN: r33566
Jeff Law [Mon, 1 May 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r33565
Richard Henderson [Mon, 1 May 2000 07:21:29 +0000 (00:21 -0700)]
* flow.c (propagate_one_insn): Mark sets even when the insn is dead.
From-SVN: r33564
Richard Henderson [Mon, 1 May 2000 06:55:44 +0000 (23:55 -0700)]
ifcvt.c (noce_process_if_block): Fail the conversion if X is referenced bewteen the condition and the jump.
* ifcvt.c (noce_process_if_block): Fail the conversion if X is
referenced bewteen the condition and the jump. Don't delete
anything but the jump.
From-SVN: r33563
Scott Snyder [Mon, 1 May 2000 06:01:33 +0000 (06:01 +0000)]
decl.c (finish_destructor_body): Use the base destructor when destroying virtual bases.
* decl.c (finish_destructor_body): Use the base destructor when
destroying virtual bases.
From-SVN: r33562
Mark Mitchell [Mon, 1 May 2000 05:50:40 +0000 (05:50 +0000)]
expr.c (cplus_expand_expr): Preserve temporaries when expanding STMT_EXPRs.
* expr.c (cplus_expand_expr): Preserve temporaries when expanding
STMT_EXPRs.
* optimize.c (struct inline_data): Add target_exprs field.
(declare_return_variable): When a function returns an aggregate,
use the variable declared in the TARGET_EXPR as the remapped
DECL_RESULT.
(expand_call_inline): Update the pending target_exprs stack.
(optimize_function): Initialize the stack.
From-SVN: r33561
Jason Eckhardt [Mon, 1 May 2000 03:46:21 +0000 (03:46 +0000)]
bb-reorder.c (scope_def): New struct.
Sun Apr 30 22:48:24 2000 Jason Eckhardt <jle@cygnus.com>
* bb-reorder.c (scope_def): New struct.
(scope_forest_info): New struct.
(struct reorder_block_def): New member "scope".
(REORDER_BLOCK_SCOPE): New macro.
(relate_bbs_with_scopes): New function and prototype.
(make_new_scope): Likewise.
(build_scope_forest): Likewise.
(remove_scope_notes): Likewise.
(insert_intra_1): Likewise.
(insert_intra_bb_scope_notes): Likewise.
(insert_inter_bb_scope_notes): Likewise.
(rebuild_scope_notes): Likewise.
(free_scope_forest_1): Likewise.
(free_scope_forest): Likewise.
(dump_scope_forest): Likewise.
(dump_scope_forest_1): Likewise.
(chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
block.
(reorder_basic_blocks): Added calls to build_scope_scope_forest
and remove_scope_notes before reordering is done. Added calls to
rebuild_scope_notes, free_scope_forest, and reorder_blocks after
after reordering is done.
From-SVN: r33560
Mark Mitchell [Mon, 1 May 2000 01:43:24 +0000 (01:43 +0000)]
* decl2.c (finish_file): Fix typo in comment.
From-SVN: r33559
Benjamin Kosnik [Mon, 1 May 2000 00:14:10 +0000 (00:14 +0000)]
mknumeric_limits (trait_name): Fix copyright notice.
2000-04-30 Benjamin Kosnik <bkoz@gnu.org>
* mknumeric_limits (trait_name): Fix copyright notice.
* src/gen-num-limits.cc: Explicitly instantiate epsilon and
round_error data members of struct value. This works around
weak-linking issues on AIX, HPUX.
From-SVN: r33558
Bruce Korb [Sun, 30 Apr 2000 23:59:45 +0000 (23:59 +0000)]
removed two stale entries
From-SVN: r33557
Bruce Korb [Sun, 30 Apr 2000 23:30:15 +0000 (23:30 +0000)]
Added definitions needed by OSR5
From-SVN: r33556
Richard Henderson [Sun, 30 Apr 2000 18:41:37 +0000 (11:41 -0700)]
ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes from the last insn in the sequence.
* ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
from the last insn in the sequence.
From-SVN: r33555
Mark Mitchell [Sun, 30 Apr 2000 18:03:36 +0000 (18:03 +0000)]
* method.c (emit_thunk): Don't try to return a `void' value.
From-SVN: r33554
Mark Mitchell [Sun, 30 Apr 2000 18:02:10 +0000 (18:02 +0000)]
optimize.c (initialize_inlined_parameters): If the parameter is addressable...
* optimize.c (initialize_inlined_parameters): If the parameter is
addressable, we need to make a new VAR_DECL, even if the
initializer is constant.
From-SVN: r33553
Zack Weinberg [Sun, 30 Apr 2000 17:30:25 +0000 (17:30 +0000)]
cpplex.c (cpp_idcmp): New function.
* cpplex.c (cpp_idcmp): New function.
* cpplib.h: Prototype it.
* scan_decls.c (scan_decls): Use it to inspect token names.
* fix-header.c (read_scan_file): Likewise. Set system_header_p on
the file being run through the preprocessor.
(check_macro_names): Provide length of token to cpp_defined.
* Makefile.in: Remove stale warning message.
From-SVN: r33552
Zack Weinberg [Sun, 30 Apr 2000 17:11:25 +0000 (17:11 +0000)]
cppfiles.c (redundant_include_p): Provide length of token to cpp_defined.
* cppfiles.c (redundant_include_p): Provide length of token to
cpp_defined.
* cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
values are unsigned int.
(_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
(_cpp_lookup_slot): Do not calculate the hash, either.
* cpphash.h: Update prototypes.
* cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
Hashes are unsigned int. Calculate hash here, pass by value
to _cpp_lookup_slot.
From-SVN: r33551
Benjamin Kosnik [Sun, 30 Apr 2000 16:12:56 +0000 (16:12 +0000)]
mkcheck.in: Rely on exit status instead of the presence of a core file.
2000-04-28 Loren J. Rittle <ljrittle@acm.org>
* mkcheck.in: Rely on exit status instead of the presence of a
core file. Added comments on how/where to save core and exe
files. Move shell wildcards outside quotes and fix core path.
From-SVN: r33550
Bernd Schmidt [Sun, 30 Apr 2000 13:37:15 +0000 (13:37 +0000)]
Fix memory corruption bug
From-SVN: r33549
Richard Henderson [Sun, 30 Apr 2000 11:17:13 +0000 (04:17 -0700)]
d30v: New port.
* config/d30v: New port.
* configure.in (d30v-*): Set fp format.
* configure: Rebuild.
From-SVN: r33548
Richard Henderson [Sun, 30 Apr 2000 11:01:53 +0000 (04:01 -0700)]
ifcvt.c: New file.
* ifcvt.c: New file.
* Makefile.in (OBJS): Add it.
(ifcvt.o): New target.
* jump.c (jump_optimize_1): Remove all code related to if-conversion,
and conditional arithmetic.
(find_insert_position): Remove.
* timevar.def (TV_IFCVT, TV_IFCVT2): New.
* toplev.c (DFI_ce, DFI_ce2): New.
(dump_file): Add ce and ce2 dumps.
(rest_of_compilation): Run if_convert a couple o times. Set
cse_not_expected after cse2. Don't set no_new_pseudos until
after sched1 or recompute_reg_usage.
From-SVN: r33547
Richard Henderson [Sun, 30 Apr 2000 10:56:21 +0000 (03:56 -0700)]
t-crtbe (crtbegin.o): Add "-I.".
* config/alpha/t-crtbe (crtbegin.o): Add "-I.".
(crtend.o, crtbeginS.o, crtendS.o): Likewise.
From-SVN: r33546
Richard Henderson [Sun, 30 Apr 2000 10:50:57 +0000 (03:50 -0700)]
Remove ifnottex block confusing makeinfo 3.12.
From-SVN: r33545
Richard Henderson [Sun, 30 Apr 2000 10:37:57 +0000 (03:37 -0700)]
flow.c (struct reg_cond_life_info): New.
* flow.c (struct reg_cond_life_info): New.
(struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
(init_propagate_block_info): Initialize them.
(free_propagate_block_info): Destruct them.
(mark_set_1): Consider conditional life before killing a register.
(mark_regno_cond_dead): New.
(free_reg_cond_life_info): New.
(flush_reg_cond_reg_1, flush_reg_cond_reg): New.
(ior_reg_cond, not_reg_cond, nand_reg_cond): New.
(mark_used_reg): Record conditional life.
* haifa-sched.c (schedule_insns): Disable death counting
sanity check for HAVE_conditional_execution.
From-SVN: r33544
Richard Henderson [Sun, 30 Apr 2000 10:31:01 +0000 (03:31 -0700)]
Makefile.in (TIMEVAR_H): New.
* Makefile.in (TIMEVAR_H): New.
(ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
(timevar.h): Remove rule.
From-SVN: r33543
Richard Henderson [Sun, 30 Apr 2000 10:15:05 +0000 (03:15 -0700)]
Missed last config/alpha update.
From-SVN: r33540
Jeff Law [Sun, 30 Apr 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r33539
Zack Weinberg [Sun, 30 Apr 2000 01:34:00 +0000 (01:34 +0000)]
cpphash.h (enum node_type): Take out T_MCONST.
* cpphash.h (enum node_type: Take out T_MCONST.
(union hashval): Move into struct hashnode.
(struct hashnode): Pack tighter. Remove file, line, col
members.
* cpphash.c: Constify most of the macro-definition structures.
(struct definition): Replace by struct object_defn
and struct funct_defn. Put file, line, column information
here. All users updated to match.
(_cpp_create_definition, _cpp_macroexpand): Remove special
case for #define WORD OTHERWORD.
* cpplib.c (do_undef): Remove T_MCONST case.
From-SVN: r33538
Richard Henderson [Sat, 29 Apr 2000 21:12:45 +0000 (14:12 -0700)]
crtend.asm: Use C comments instead of #.
* config/alpha/crtend.asm: Use C comments instead of #.
* config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
* config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
From-SVN: r33537
Zack Weinberg [Sat, 29 Apr 2000 20:58:12 +0000 (20:58 +0000)]
cpphash.h: Move struct reflist, struct definition, and the DEFINITION typedef to cpphash.c.
* cpphash.h: Move struct reflist, struct definition, and the
DEFINITION typedef to cpphash.c. Use 'struct definition *' in
union hashval. _cpp_free_definition takes a HASHNODE pointer.
* cpphash.c (_cpp_free_definition): Free data pointed to by
MCONST, XCONST, MACRO, and FMACRO nodes properly.
(_cpp_create_definition, del_HASHNODE): Just call
_cpp_free_definition to clear out a hashnode.
* cpplib.c (do_pragma_poison): Likewise.
From-SVN: r33536
Phil Edwards [Sat, 29 Apr 2000 20:41:19 +0000 (20:41 +0000)]
download.html: Add link to list of mirror sites.
2000-04-29 Phil Edwards <pme@sourceware.cygnus.com>
* docs/download.html: Add link to list of mirror sites.
From-SVN: r33535
Alexandre Oliva [Sat, 29 Apr 2000 15:28:42 +0000 (15:28 +0000)]
mn10300.h (FIRST_DATA_REGNUM, [...]): New macros.
* config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
(REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
(REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
REGNO_AM33_P): Redefine in terms of the new macros.
(CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
(FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
STRUCT_VALUE): Likewise.
(STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
From-SVN: r33534
Alexandre Oliva [Sat, 29 Apr 2000 14:25:12 +0000 (14:25 +0000)]
Makefile.in (maintainer-clean-subdir): Fix handling of empty SUBDIRS.
* Makefile.in (maintainer-clean-subdir): Fix handling of empty
SUBDIRS.
From-SVN: r33533
Jeff Law [Sat, 29 Apr 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r33532
Jason Merrill [Sat, 29 Apr 2000 00:17:06 +0000 (20:17 -0400)]
revert
From-SVN: r33531
Jan Hubicka [Fri, 28 Apr 2000 23:27:40 +0000 (23:27 +0000)]
regmove.c (struct record_stack_memrefs_data): New.
* regmove.c (struct record_stack_memrefs_data): New.
(record_stack_memrefs): New function.
(combine_stack_adjustments_for_block): Use it.
From-SVN: r33529
Jan Hubicka [Fri, 28 Apr 2000 23:17:41 +0000 (23:17 +0000)]
calls.c (calls_function_1): Propertly handle TREE_LIST expressions; use special_function_p to detect alloca.
* calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
use special_function_p to detect alloca.
From-SVN: r33528
Marc Espie [Fri, 28 Apr 2000 22:31:40 +0000 (22:31 +0000)]
* gcc.texi: Fixes for makeinfo 4.0 --html.
From-SVN: r33526
Kenneth Block [Fri, 28 Apr 2000 22:22:22 +0000 (22:22 +0000)]
* libiberty/cplus-dem.c
(libiberty_demanglers): new table for demangle styles
(cplus_demangle_set_style): New function for setting style
(cplus_demangle_name_to_style): New function to translate name
* include/demangle.h
(libiberty_demanglers): new table for different styles
(cplus_demangle_set_style): New function for setting style
(cplus_demangle_name_to_style): New function to translate name
Co-Authored-By: Jason Merrill <jason@casey.cygnus.com>
From-SVN: r33525
Cosmin Truta [Fri, 28 Apr 2000 22:10:24 +0000 (01:10 +0300)]
* decl.c (grok_op_properties): Add an extra check of argtypes.
From-SVN: r33524
Jason Merrill [Fri, 28 Apr 2000 22:06:30 +0000 (18:06 -0400)]
index-prop: Use a single pattern.
* index-prop: Use a single pattern. Also support *** cdiffs.
* index-prop: Don't change /dev/null.
From-SVN: r33523
Zack Weinberg [Fri, 28 Apr 2000 22:03:48 +0000 (22:03 +0000)]
pcp.h: Delete file.
* pcp.h: Delete file.
* po/POTFILES.in: Update.
From-SVN: r33522
Kazu Hirata [Fri, 28 Apr 2000 21:51:42 +0000 (21:51 +0000)]
h8300.c (function_epilogue): Clean up flags when the last insn in a function is a barrier.
* h8300.c (function_epilogue): Clean up flags when the last insn
in a function is a barrier.
From-SVN: r33521
Chris Demetriou [Fri, 28 Apr 2000 21:46:33 +0000 (21:46 +0000)]
configure.in (sparc-hal-solaris2*): protect [] glob from my expansion.
* configure.in (sparc-hal-solaris2*): protect [] glob from
my expansion.
(mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
rather than hard-coded constants in target_cpu_default2.
* configure: Regenerate.
From-SVN: r33520
Jason Merrill [Fri, 28 Apr 2000 20:52:31 +0000 (20:52 +0000)]
tree.c (get_callee_fndecl): Extract the initial value from a readonly decl.
* tree.c (get_callee_fndecl): Extract the initial value from
a readonly decl.
* cp/optimize.c (initialize_inlined_parameters): Call
c_apply_type_quals_to_decl. Set DECL_INITIAL.
From-SVN: r33518
Richard Henderson [Fri, 28 Apr 2000 20:25:38 +0000 (13:25 -0700)]
varasm.c (record_constant_1): Record the CODE_LABEL when taking the address of a LABEL_REF.
* varasm.c (record_constant_1): Record the CODE_LABEL when
taking the address of a LABEL_REF.
From-SVN: r33517
Richard Henderson [Fri, 28 Apr 2000 18:25:23 +0000 (11:25 -0700)]
calls.c (combine_pending_stack_adjustment_and_call): Return the adjustment; don't do the stack adjust.
* calls.c (combine_pending_stack_adjustment_and_call): Return the
adjustment; don't do the stack adjust.
(expand_call): Call compute_argument_block_size right before
allocating the block; update comment; don't do alignment sanity
checking for sibling call; use args_size instead of
unadjusted_args_size before args_size is adjusted. Use
combine_pending_stack_adjustment_and_call to compute stack adjust
for must_preallocate case.
* expr.c (push_block): Remove shadow `temp' in inner scope.
Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r33516
Jason Merrill [Fri, 28 Apr 2000 18:22:33 +0000 (14:22 -0400)]
toplev.c (rest_of_compilation): Call note_deferral_of_defined_inline_function even if the function can't be inlined.
* toplev.c (rest_of_compilation): Call
note_deferral_of_defined_inline_function even if the function
can't be inlined.
From-SVN: r33515
Scott Bambrough [Fri, 28 Apr 2000 18:17:54 +0000 (18:17 +0000)]
cpplex.c (_cpp_scan_line): Fix buffer overwrite.
2000-04-28 Scott Bambrough <scottb@netwinder.org>
* cpplex.c (_cpp_scan_line): Fix buffer overwrite.
From-SVN: r33514
Richard Henderson [Fri, 28 Apr 2000 18:05:39 +0000 (11:05 -0700)]
* toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
From-SVN: r33513
Tom Tromey [Fri, 28 Apr 2000 16:29:30 +0000 (16:29 +0000)]
Removed mistakenly-committed ChangeLog entry
From-SVN: r33512
Tom Tromey [Fri, 28 Apr 2000 16:11:56 +0000 (16:11 +0000)]
re GNATS gcj/218 (Java executables can abort trying to access a null pointer in a leaf function)
* libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
Fix for PR gcj/218.
From-SVN: r33511
Kaveh R. Ghazi [Fri, 28 Apr 2000 13:51:55 +0000 (13:51 +0000)]
* timevar.c (init_timevar): DeANSIfy function definition.
From-SVN: r33509
Bryce McKinlay [Fri, 28 Apr 2000 07:56:34 +0000 (07:56 +0000)]
String.java (toString): Remove `final' hack.
2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
* libjava/java/lang/String.java (toString): Remove `final' hack.
From-SVN: r33508
Jeff Law [Fri, 28 Apr 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r33507
Bryce McKinlay [Fri, 28 Apr 2000 07:42:27 +0000 (07:42 +0000)]
Test for PR gcj/218:
2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
Test for PR gcj/218:
* libjava.lang/PR218.java: New file.
* libjava.lang/PR218.out: New file.
From-SVN: r33506
Mark Mitchell [Fri, 28 Apr 2000 06:40:28 +0000 (06:40 +0000)]
optimize.c (copy_body_r): Use STRIP_TYPE_NOPS when copying variables.
* optimize.c (copy_body_r): Use STRIP_TYPE_NOPS when copying
variables.
(initialize_inlined_parameters): Try to avoid creating new
VAR_DECLs.
From-SVN: r33505
Alex Samuel [Fri, 28 Apr 2000 06:18:14 +0000 (06:18 +0000)]
Makefile.in (timevar.o): Depend on flags.h.
* Makefile.in (timevar.o): Depend on flags.h.
* timevar.c (unused_stack_instances): New variable.
(timevar_push): Take a timevar_stack_def from
unused_stack_instances if available.
(timevar_pop): Push the popped timevar_stack_def onto
unused_stack_instances.
(TIMEVAR_ENABLE): New macro.
(timevar_def): Make standalone a 1-bit field. Add field used.
(get_time): Rename parameter to now. Return after clearing it if
not TIMEVAR_ENABLE.
(init_timevar): Do nothing if not TIMEVAR_ENABLE.
(timevar_pop): Likewise.
(timevar_stop): Likewise.
(timevar_push): Likewise. Mark the timing variable as used.
(timevar_start): Likewise.
(timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
timevars that were never used.
From-SVN: r33504
Nathan C. Myers [Fri, 28 Apr 2000 03:00:58 +0000 (03:00 +0000)]
basic_string.h: include <bits/atomicity.h> instead of <atomicity.h>, and use the uglified names.
2000-04-26 Nathan C. Myers <ncm@cantrip.org>
* bits/basic_string.h: include <bits/atomicity.h> instead
of <atomicity.h>, and use the uglified names.
* config/cpu/*/atomicity.h: replace with bits/atomicity.h;
uglify names, eliminate dependence on <inttypes.h>.
* src/Makefile.in, src/Makefile.am: refer to correct place
for atomicity.h header.
From-SVN: r33503
Scott Snyder [Fri, 28 Apr 2000 02:53:12 +0000 (02:53 +0000)]
misc-inst.cc: Explicitly instantiate ifstream and ofstream classes.
2000-04-27 scott snyder <snyder@fnal.gov>
* src/misc-inst.cc: Explicitly instantiate ifstream and ofstream
classes.
From-SVN: r33502
Benjamin Kosnik [Fri, 28 Apr 2000 02:50:55 +0000 (02:50 +0000)]
[multiple changes]
2000-04-26 Nathan C. Myers <ncm@cantrip.org>
* bits/basic_string.h: include <bits/atomicity.h> instead
of <atomicity.h>, and use the uglified names.
* config/cpu/*/atomicity.h: replace with bits/atomicity.h;
uglify names, eliminate dependence on <inttypes.h>.
* src/Makefile.in, src/Makefile.am: refer to correct place
for atomicity.h header.
2000-04-25 Steven King <sxking@uswest.net>
* bits/basic_string.h: Fix syntax error.
2000-04-25 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Improve checks for
USE_LONG_DOUBLE.
(GLIBCPP_ENABLE_DEBUG): If alpha, use -gdwarf-2.
* math/Makefile.am (EXTRA_LONG_DOUBLE_yes): Add all the long
versions to this as copysignl is needed anyway for these targets.
* math/Makefile.in: Regenerate.
* bits/streambuf.tcc (streambuf::xsgetn): Tweak.
* bits/fstream.tcc (underflow): Cast to libio types.
* bits/basic_file.h (seekoff): Fixes for alpha: use __c_streamoff.
* config/c_io_libio.cc (seekoff): And here.
From-SVN: r33501
Mark Mitchell [Fri, 28 Apr 2000 02:04:00 +0000 (02:04 +0000)]
c-commom.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are always TREE_READONLY.
* c-commom.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
always TREE_READONLY.
From-SVN: r33500
Ulrich Drepper [Fri, 28 Apr 2000 01:54:53 +0000 (01:54 +0000)]
i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference for call instruction with mode QImode.
* i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
for call instruction with mode QImode.
From-SVN: r33499
Kaveh R. Ghazi [Fri, 28 Apr 2000 01:42:43 +0000 (01:42 +0000)]
aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
* aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
* configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
(libiberty_AC_FUNC_STRNCMP): Invoke.
* strncmp.c: New file.
From-SVN: r33498
Gerald Pfeifer [Fri, 28 Apr 2000 01:23:47 +0000 (01:23 +0000)]
gcc_update: Refer to GCC and gcc_update instead of egcs and egcs_update.
* gcc_update: Refer to GCC and gcc_update instead of egcs and
egcs_update.
From-SVN: r33497
Alex Samuel [Fri, 28 Apr 2000 00:59:40 +0000 (00:59 +0000)]
Makefile.in (OBJS): Add timevar.o.
hangeLog:
* Makefile.in (OBJS): Add timevar.o.
(toplev.o): Depend on timevar.h.
(ggc-simple.o): Likewise.
(ggc-page.o): Likewise.
(timevar.o): New rule.
(timevar.h): New rule.
* timevar.h: New file.
* timevar.c: Likewise.
* timevar.def: Likewise.
* toplev.h (gc_time, parse_time, varconst_time): Remove.
* toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
throughout.
(TIMEVAR): Remove macro.
(gc_time, parse_time, varconst_time, integration_time, jump_time,
cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
flow_time, combine_time, regmove_time, sched_time,
local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
sched2_time, dbr_sched_time, reorder_blocks_time,
rename_registers_time, shorten_branch_time, stack_reg_time,
to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
all_time): Remove.
(compile_file): Don't initialize time variables. Call
init_timevar and start TV_TOTAL timer. Call timevar_print instead
of many calls to print_time.
(rest_of_compilation): Add timing for reload_cse_regs.
(get_run_time): Removed to timevar.c.
(print_time): Likewise.
(get_run_time): Implement using TV_TOTAL time variable.
(print_time): Get total run time from get_run_time.
* ggc-page.c (ggc_collect): Push and pop TV_GC instead of
computing elapsed time explicitly.
* ggc-simple.c (ggc_collect): Likewise.
(gc_time): Remove declaration.
cp/ChangeLog:
* lex.c (my_get_run_time): Remove.
(init_filename_times): Use get_run_time instead of my_get_run_time.
(check_newline): Likewise.
(dump_time_statistics): Likewise.
* decl2.c (finish_file): Push and pop timevar TV_VARCONST instead
of computing elapsed time explicitly.
From-SVN: r33496
Tom Tromey [Fri, 28 Apr 2000 00:21:06 +0000 (00:21 +0000)]
re GNATS gcj/2 (Method call on null instance should throw NullPointerException)
Fix for PR gcj/2:
* expr.c (expand_invoke): Generate check to see if object pointer
is null in nonvirtual invocation case.
* java-tree.h (soft_nullpointer_node): Declare.
* decl.c (soft_nullpointer_node): New global.
(init_decl_processing): Initialize soft_nullpointer_node.
* parse.y (invocation_mode): Return INVOKE_NONVIRTUAL for `final'
or `private' methods.
(patch_invoke): Handle INVOKE_NONVIRTUAL case.
From-SVN: r33495
Jonathan Larmour [Fri, 28 Apr 2000 00:15:34 +0000 (00:15 +0000)]
* index-prop: Fix occasional problem when using cvs diff -p
From-SVN: r33494
Alexandre Petit-Bianco [Thu, 27 Apr 2000 23:25:18 +0000 (23:25 +0000)]
decl.c (complete_start_java_method): Don't call _Jv_InitClass from <clinit>
Wed Apr 26 14:29:33 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* decl.c (complete_start_java_method): Don't call _Jv_InitClass
from <clinit>
From-SVN: r33493
Tom Tromey [Thu, 27 Apr 2000 23:13:31 +0000 (23:13 +0000)]
Runtime support for PR gcj/2:
* prims.cc (_Jv_ThrowNullPointerException): New function.
* include/jvm.h (_Jv_ThrowNullPointerException): Declare.
From-SVN: r33492
Mark Mitchell [Thu, 27 Apr 2000 16:44:23 +0000 (16:44 +0000)]
calls.c (combine_pending_stack_adjustment_and_call): New function.
* calls.c (combine_pending_stack_adjustment_and_call): New function.
(expand_call): Use it.
From-SVN: r33491
Jan Hubicka [Thu, 27 Apr 2000 16:28:56 +0000 (09:28 -0700)]
Jan Hubicka <jh@suse.cz>
* flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
fields.
From-SVN: r33490
Alexandre Oliva [Thu, 27 Apr 2000 15:49:20 +0000 (15:49 +0000)]
mn10300.md (movhi): Simplify.
* config/mn10300/mn10300.md (movhi): Simplify. Prefer data
registers.
From-SVN: r33489
Jan Hubicka [Thu, 27 Apr 2000 15:34:16 +0000 (15:34 +0000)]
* function.c (epilogue_done): Pass whole insn to record_insns.
From-SVN: r33488
Jan Hubicka [Thu, 27 Apr 2000 14:59:55 +0000 (14:59 +0000)]
hashtab.c (htab_expand): Add prototype.
* hashtab.c (htab_expand): Add prototype.
(find_empty_slot_for_expand): Likewise.
From-SVN: r33487
Jan Hubicka [Thu, 27 Apr 2000 14:56:47 +0000 (14:56 +0000)]
cse.c (CSE_ADDRESS_COST): Remove.
* cse.c (CSE_ADDRESS_COST): Remove.
(find_best_addr): Add new parameter "MODE", use address_cost instead
of CSE_ADDRESS_COST
(address_cost): New.
(fold_rtx): Update call of find_best_addr.
* rtl.h (address_cost): Declare.
* loop.c (general_induction_var): Add new parameter "MODE", use
address_cost instead of ADDRESS_COST
(init_loop): Use address_cost instead of ADDRESS_COST.
(check_insn_for_givs): Update call of general_induction_var.
(find_mem_givs): Likewise.
(consec_sets_giv): Likewise.
* config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
* i386.c (ix86_address_cost): New.
* i386-protos.h (ix86_address_cost): Declare.
From-SVN: r33486
Alexandre Oliva [Thu, 27 Apr 2000 14:46:55 +0000 (14:46 +0000)]
mn10300.md (movqi): Simplify.
* config/mn10300/mn10300.md (movqi): Simplify. Prefer data
registers.
From-SVN: r33485
Jan Hubicka [Thu, 27 Apr 2000 14:13:48 +0000 (14:13 +0000)]
expr.c (store_expr): Use clear_storage instead of direct memset libcall.
* expr.c (store_expr): Use clear_storage instead of direct memset
libcall.
From-SVN: r33484
Jan Hubicka [Thu, 27 Apr 2000 14:05:09 +0000 (14:05 +0000)]
20000427-1.c: New test for loop hoisting code and hard registers.
* compile/
20000427-1.c: New test for loop hoisting code
and hard registers.
From-SVN: r33483
Alexandre Oliva [Thu, 27 Apr 2000 13:39:09 +0000 (13:39 +0000)]
mn10300.c (mn10300_address_cost): Test ASHIFT, AND and LABEL_REF.
* config/mn10300/mn10300.c (mn10300_address_cost): Test
ASHIFT, AND and LABEL_REF.
From-SVN: r33482
Jan Hubicka [Thu, 27 Apr 2000 13:14:10 +0000 (13:14 +0000)]
* invoke.texi (-foptimize-sibling-calls): Fix.
From-SVN: r33481
Jan Hubicka [Thu, 27 Apr 2000 12:57:35 +0000 (12:57 +0000)]
* loop.c (load_mems) Don't use hard registers for the hoisting.
* unroll.c (unroll_loop): Avoid overflow in the n_iterations
calculation; rename const_equiv array in the preconditioning code
from loop_unroll to loop_unroll_precondition
From-SVN: r33480
Bryce McKinlay [Thu, 27 Apr 2000 11:47:13 +0000 (11:47 +0000)]
prims.cc (_Jv_NewObjectArray): Fix typo.
2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
* prims.cc (_Jv_NewObjectArray): Fix typo.
From-SVN: r33479
Richard Henderson [Thu, 27 Apr 2000 11:17:04 +0000 (04:17 -0700)]
flow.c (struct propagate_block_info): Remove new_dead, new_live; add new_set.
* flow.c (struct propagate_block_info): Remove new_dead, new_live;
add new_set.
(propagate_one_insn): Clear it. Don't update reg_live here.
(init_propagate_block_info): Update for pbi member changes.
(free_propagate_block_info): Likewise.
(mark_set_1): Know that zero_extract, sign_extract, and
strict_low_part don't kill their argument. Alter hard subregs.
Update new_set for non-CLOBBER sets. Update reg_live.
(find_auto_inc): Update reg_live, not new_dead.
(mark_used_reg): Update reg_live, not new_live. Examine new_set
to determine if the reg in question was set this insn. Only update
reg info with PROP_REG_INFO.
From-SVN: r33478
Jeff Law [Thu, 27 Apr 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r33477
Richard Henderson [Thu, 27 Apr 2000 07:39:51 +0000 (00:39 -0700)]
flow.c (calculate_global_regs_live): Force stack pointer live at end.
* flow.c (calculate_global_regs_live): Force stack pointer
live at end.
From-SVN: r33476
Richard Henderson [Thu, 27 Apr 2000 07:38:40 +0000 (00:38 -0700)]
flow.c (allocate_reg_life_data): Set max_regno here ...
* flow.c (allocate_reg_life_data): Set max_regno here ...
(life_analysis): ... not here.
From-SVN: r33475
Richard Henderson [Thu, 27 Apr 2000 07:20:29 +0000 (00:20 -0700)]
jump.c (redirect_exp_1): Rework from old redirect_exp.
* jump.c (redirect_exp_1): Rework from old redirect_exp. Never
commit change group changes.
(invert_exp_1): Similarly.
(redirect_exp, invert_exp): Use them.
(redirect_jump_1): New.
(invert_jump_1): New.
(jump_optimize_1): Remove code subsumed by condexec.c.
* rtl.h (invert_jump_1, redirect_jump_1): Declare.
From-SVN: r33474
Richard Henderson [Thu, 27 Apr 2000 07:18:08 +0000 (00:18 -0700)]
rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
* rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
* genconfig.c (main): Set all HAVE_foo to 1.
* graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
From-SVN: r33473
Richard Henderson [Thu, 27 Apr 2000 07:14:46 +0000 (00:14 -0700)]
Fix commentary.
From-SVN: r33472
Alex Samuel [Thu, 27 Apr 2000 07:10:55 +0000 (07:10 +0000)]
* invoke.texi: Document -fssa flag.
From-SVN: r33471
Richard Henderson [Thu, 27 Apr 2000 07:07:34 +0000 (00:07 -0700)]
flow.c (count_reg_sets_1): Remove.
* flow.c (count_reg_sets_1): Remove.
(count_reg_sets, count_reg_references): Remove.
(recompute_reg_usage): Implement with update_life_info.
Reallocate life data.
From-SVN: r33470
Richard Henderson [Thu, 27 Apr 2000 07:01:04 +0000 (00:01 -0700)]
flow.c (update_life_info): Consider blocks null to mean the universal set.
* flow.c (update_life_info): Consider blocks null to mean the
universal set.
(calculate_global_regs_live): Likewise.
(life_analysis): Do that instead of collecting all_blocks.
From-SVN: r33469