OSDN Git Service

pf3gnuchains/gcc-fork.git
24 years ago2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
m.hayes [Sat, 29 Jan 2000 03:11:21 +0000 (03:11 +0000)]
2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

        * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
* c4x.c: Define the optab rtx values.
(c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
(c4x_emit_libcall): Use new optab rtx values.
(c4x_emit_libcall3): Likewise.
(c4x_emit_libcall_mulhi): Likewise.
* c4x-protos.h: Add prototypes for optab rtx values and change
prototypes for above c4x_emit_libcall functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31683 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
m.hayes [Sat, 29 Jan 2000 03:07:37 +0000 (03:07 +0000)]
2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

        * c4x.c (c4x_output_ascii): Restrict line length of output when TI
syntax is used.
(c4x_function_prologue): Use regnames intead of float_reg_names when
TI syntax is used.
(c4x_function_epilogue): Likewise.
(c4x_print_operand): Likewise.
* c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
* c4x.md (set_high): Disable for TARGET_TI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31682 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-27 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
m.hayes [Sat, 29 Jan 2000 03:01:24 +0000 (03:01 +0000)]
2000-01-27 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

* c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
of framepointer + constant to ADDR_REGS class.
* c4x.md (addqi3, addqi3_noclobber_reload): Update.
* c4x.c (std_or_reg_operand): New function.
* c4x-protos.h (std_or_reg_operand): Prototype it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31681 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
m.hayes [Sat, 29 Jan 2000 02:50:17 +0000 (02:50 +0000)]
2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

* t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
object names as libgcc2.c.
* libgcc.S: Use newly defined names.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31680 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoFri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
jle [Sat, 29 Jan 2000 01:41:22 +0000 (01:41 +0000)]
Fri Jan  7 19:48:04 CET 2000  Jan Hubicka  <jh@suse.cz>
* sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
function.
* sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
* basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
(FLOW_LOOP_LAST_BLOCK): Likewise.

2000-01-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

* basic-block.h (struct loop): New fields 'first' and 'last'.
* flow.c (flow_loops_find): Compute loop->first and loop->last.
(flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
and loop->last to check for NOTE_INSN_LOOP_END.

Fri Jan 28 10:57:58 2000  Jason Eckhardt  <jle@cygnus.com>

* predict.c (estimate_probability): Use the new FIRST and LAST fields
of the loop descriptor rather than HEADER and LATCH. Also added
missing break statements as well making some coding style modifications
as suggested by Michael Hayes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31679 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * gcconfig.h (DATASTART): Add missing extern declaration
green [Sat, 29 Jan 2000 01:17:03 +0000 (01:17 +0000)]
* gcconfig.h (DATASTART): Add missing extern declaration
for data_start on powerpc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31677 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * flow.c (find_basic_blocks): Remove do_cleanup argument.
rth [Fri, 28 Jan 2000 22:22:50 +0000 (22:22 +0000)]
    * flow.c (find_basic_blocks): Remove do_cleanup argument.
        Break out that code ...
        (cleanup_cfg): ... here.
        (commit_one_edge_insertion): Detect a return instruction being
        emitted to an edge.  Emit a barrier following; clear fallthru.
        (commit_edge_insertions): Verify CFG consistency.
        * function.c (expand_function_start): Kill unused variable.
        (expand_function_end): Likewise.
        (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
        to insert the epilogue.

        * gcse.c (gcse_main): Adjust for find_basic_blocks change.
        (delete_null_pointer_checks): Likewise.
        * output.h: Likewise.
        * reg-stack.c (reg_to_stack): Likewise.
        * toplev.c (rest_of_compilation): Likewise.  Run
        thread_prologue_and_epilogue_insns after rebuilding the CFG.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31676 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * haifa-sched.c (schedule_insns): Don't recompute reg info
rth [Fri, 28 Jan 2000 21:54:39 +0000 (21:54 +0000)]
    * haifa-sched.c (schedule_insns): Don't recompute reg info
        after reload.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31675 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * Makefile.in (flow.o): Revert 24 Jan change.
rth [Fri, 28 Jan 2000 21:21:49 +0000 (21:21 +0000)]
    * Makefile.in (flow.o): Revert 24 Jan change.
        * flow.c (mark_regs_live_at_end): Likewise.  Force BLKmode
        FUNCTION_VALUE result to DECL_RESULT's mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31674 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * configure.in: Make --enable-cpplib the default.
zack [Fri, 28 Jan 2000 20:49:17 +0000 (20:49 +0000)]
* configure.in: Make --enable-cpplib the default.
* configure: Regenerate.
* gcc.dg/990119-1.c: No longer expected to fail.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31673 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * Makefile.in: Rebuilt.
tromey [Fri, 28 Jan 2000 20:00:21 +0000 (20:00 +0000)]
* Makefile.in: Rebuilt.
* Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31672 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoFix recent small bug
mrs [Fri, 28 Jan 2000 19:44:45 +0000 (19:44 +0000)]
Fix recent small bug

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31671 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDelete a superfluous and buggy optimization
crux [Fri, 28 Jan 2000 18:00:04 +0000 (18:00 +0000)]
Delete a superfluous and buggy optimization

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31670 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * diagnostic.c (build_message_string, output_printf,
ghazi [Fri, 28 Jan 2000 16:34:00 +0000 (16:34 +0000)]
    * diagnostic.c (build_message_string, output_printf,
        line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
        (build_location_prefix): Fix non-literal format string.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31669 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago Compiler side new abi rtti (not enabled).
nathan [Fri, 28 Jan 2000 13:30:13 +0000 (13:30 +0000)]
Compiler side new abi rtti (not enabled).
* cp-tree.h (new_abi_rtti_p): New macro.
(emit_support_tinfos): Prototype new function.
(tinfo_decl_p): Likewise.
(emit_tinfo_decl): Likwise.
* rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL): New accessor
macros.
(doing_runtime): New local static.
(init_rtti_processing): Add new-abi initializer.
(get_tinfo_decl): Add new-abi logic.
(tinfo_from_decl): Likewise.
(build_dynamic_cast_1): Likewise.
(qualifier_flags): New static function.
(tinfo_base_init): Likewise.
(generic_initializer): Likewise.
(ptr_ref_initializer): Likewise.
(ptmd_initializer): Likewise.
(class_hint_flags): Likewise.
(class_initializer): Likewise.
(synthesize_tinfo_var): Likewise.
(create_real_tinfo_var): Likewise.
(create_pseudo_type_info): Likewise.
(get_vmi_pseudo_type_info): Likewise.
(create_tinfo_types): Likewise.
(emit_support_tinfos): New global function.
(tinfo_decl_p): New global predicate.
(emit_tinfo_decl): New global function.
* class.c (set_rtti_entry): Generalize for old and new rtti.
(build_vtbl_initializer): Likewise.
* decl2.c (finish_file): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31668 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * compile/20000127-1.c: New test.
jakub [Fri, 28 Jan 2000 11:54:37 +0000 (11:54 +0000)]
* compile/20000127-1.c: New test.
* execute/991228-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31667 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * fstream.h (ifstream::ifstream): Add ios::in to mode.
loewis [Fri, 28 Jan 2000 09:55:33 +0000 (09:55 +0000)]
* fstream.h (ifstream::ifstream): Add ios::in to mode.
(ifstream::open): Likewise.
(ofstream::ofstream): Add ios::out to mode.
(ofstream::open): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31666 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Fri, 28 Jan 2000 08:45:07 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31664 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoFix winsup (cygwin) build failure with VLAs and inline functions.
wilson [Fri, 28 Jan 2000 04:56:59 +0000 (04:56 +0000)]
Fix winsup (cygwin) build failure with VLAs and inline functions.
* cp/optimize.c (remap_decl): Add walk_tree calls for DECL_SIZE (t)
and TYPE_MAX_VALUE (TYPE_DOMAIN (TREE_TYPE (t))).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31663 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * alpha.md (trunctfsf2): New.
rth [Fri, 28 Jan 2000 04:36:43 +0000 (04:36 +0000)]
    * alpha.md (trunctfsf2): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31662 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoFix whitespace
mrs [Fri, 28 Jan 2000 04:09:29 +0000 (04:09 +0000)]
Fix whitespace

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31661 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
rth [Fri, 28 Jan 2000 03:00:01 +0000 (03:00 +0000)]
    * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31660 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * dbz/dbz.c, dbz/dbzmain.c: Include stdlib.h. Don't declare
zack [Fri, 28 Jan 2000 01:21:49 +0000 (01:21 +0000)]
* dbz/dbz.c, dbz/dbzmain.c: Include stdlib.h.  Don't declare
malloc, calloc, free, atol, atoi, or errno.  (errno.h was
already being included.)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31659 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoNew test - core dump in cccp
zack [Fri, 28 Jan 2000 01:10:53 +0000 (01:10 +0000)]
New test - core dump in cccp

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31658 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agotestcase for recent checkin
mrs [Thu, 27 Jan 2000 23:19:47 +0000 (23:19 +0000)]
testcase for recent checkin

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31656 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * decl.c (pushdecl): Fix up shadow warnings with respect to implicit
mrs [Thu, 27 Jan 2000 23:15:38 +0000 (23:15 +0000)]
* decl.c (pushdecl): Fix up shadow warnings with respect to implicit
for scopes.
Fixes for3.C

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31655 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cppinit.c (cpp_handle_option): Recognize C++ comments under
zack [Thu, 27 Jan 2000 22:29:07 +0000 (22:29 +0000)]
* cppinit.c (cpp_handle_option): Recognize C++ comments under
-std=gnu89.
* cpplib.c (skip_block_comment, skip_line_comment): Split code
out of...
(skip_comment) ... here.  Permit C++ comments in system
headers always.  Warn about C++ comments in user code under
-std=gnu89 -pedantic.
(copy_comment): Use skip_comment.
(cpp_skip_hspace, cpp_get_token): skip_comment can no longer
return EOF.
(consider_directive_while_skipping, do_else, do_endif): Call
validate_else unconditionally.
(validate_else): Check CPP_PEDANTIC here.  Accept non-comment
text after the conditional in a system header.
* cpplib.h (struct cpp_buffer): Add flag
warned_cplusplus_comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31654 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoTest cases for c++ comments and endif labels in system headers.
zack [Thu, 27 Jan 2000 22:27:24 +0000 (22:27 +0000)]
Test cases for c++ comments and endif labels in system headers.
I made them up all by myself.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31653 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoUse __inline not inline since test is compiled with -ansi
zack [Thu, 27 Jan 2000 21:42:03 +0000 (21:42 +0000)]
Use __inline not inline since test is compiled with -ansi

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31652 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago* emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
geoffk [Thu, 27 Jan 2000 20:46:26 +0000 (20:46 +0000)]
* emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
Use unshare_all_rtl_1.
(unshare_all_rtl_again): New function.
(unshare_all_rtl_1): New function split out of unshare_all_rtl.

* function.c (purge_addressof_1): Use unshare_all_rtl_again
rather than resetting the 'used' flags ourself.

* toplev.c (rest_of_compilation): Add current_function_decl
to the unshare_all_rtl call.
* tree.h: Prototype unshare_all_rtl.
* rtl.h: Prototype unshare_all_rtl_again here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31651 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * genoutput.c (output_prologue): Include ggc.h in generated
geoffk [Thu, 27 Jan 2000 20:40:24 +0000 (20:40 +0000)]
* genoutput.c (output_prologue): Include ggc.h in generated
files.
* Makefile.in (insn-output.o): Depends on ggc.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31650 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agons32k update from Ian Dall and Hans-Peter Nilsson.
rth [Thu, 27 Jan 2000 19:20:51 +0000 (19:20 +0000)]
ns32k update from Ian Dall and Hans-Peter Nilsson.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31648 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-27 Andrew Haley <aph@cygnus.com>
aph [Thu, 27 Jan 2000 19:09:14 +0000 (19:09 +0000)]
2000-01-27  Andrew Haley  <aph@cygnus.com>

        * jcf-write.c (emit_goto): RESERVE 3 bytes for insn.
        (emit_if): Ditto.
        (emit_jsr): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31647 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * gthr-posix.h: Fix typo; compatibily -> compatibility.
rth [Thu, 27 Jan 2000 18:49:12 +0000 (18:49 +0000)]
    * gthr-posix.h: Fix typo; compatibily -> compatibility.
        * gthr-single.h: Likewise.
        * gthr-solaris.h: Likewise.
        * gthr-vxworks.h: Likewise.
        * gthr-win32.h: Likewise.
        * gthr.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31646 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cppinit.c: Add " (cpplib)" to end of string printed by
zack [Thu, 27 Jan 2000 18:37:50 +0000 (18:37 +0000)]
* cppinit.c: Add " (cpplib)" to end of string printed by
-v / --version.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31645 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoReflect renaming of invariant_p to loop_invariant_p in comment.
amylaar [Thu, 27 Jan 2000 17:45:12 +0000 (17:45 +0000)]
Reflect renaming of invariant_p to loop_invariant_p in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31644 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
rth [Thu, 27 Jan 2000 10:17:37 +0000 (10:17 +0000)]
    * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
        testing for a signed comparison.
        (alpha_emit_floatuns): New.
        * alpha-protos.h: Declare it.
        * alpha.md (floatunsdisf2, floatunsdidf2): New.
        (extendsfdf2): Tidy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31643 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Thu, 27 Jan 2000 08:45:07 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31642 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
jakub [Thu, 27 Jan 2000 08:42:56 +0000 (08:42 +0000)]
* config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
no -g option specifying debugging format, default to -gstabs+.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31641 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * pt.c (unify): Use fold, not maybe_fold_nontype_arg.
jason [Thu, 27 Jan 2000 02:01:36 +0000 (02:01 +0000)]
    * pt.c (unify): Use fold, not maybe_fold_nontype_arg.
--------------------------------------------------------------------

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31640 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoCorrect warning string to grep for
zack [Thu, 27 Jan 2000 01:14:53 +0000 (01:14 +0000)]
Correct warning string to grep for

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31639 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * gcj/method.h (JvNumMethods): Moved from Class.h.
tromey [Wed, 26 Jan 2000 23:56:36 +0000 (23:56 +0000)]
* gcj/method.h (JvNumMethods): Moved from Class.h.
(JvGetFirstMethod): Likewise.
* java/lang/Class.h (Object): Updated decl of
_Jv_JNI_ToReflectedField.
(Object): Added _Jv_JNI_ToReflectedMethod as a friend.
* Makefile.in: Rebuilt.
* Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
argument of _Jv_JNI_ToReflectedField.
(java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
as a friend.
(java/lang/reflect/Method.h): Likewise.
* include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
__GCJ_JNI_IMPL__.
(jweak): New typedef.
(struct JNINativeInterface): Correctly declare remaining entries.
* jni.cc: Include Class.h, ClassLoader.h.
(_Jv_JNI_FindClass): New function.
(_Jv_JNI_DefineClass): New function.
(_Jv_JNI_conversion_call): New function.
(_Jv_JNI_FindClass): Use current class loader to find class.
(_Jv_JNI_ExceptionCheck): New function.
(_Jv_JNI_FromReflectedField): Now static.
(MethodClass): New define.
(_Jv_JNI_FromReflectedMethod): New function.
(_Jv_JNI_ToReflectedMethod): Likewise.
Include Method.h.
(_Jv_JNI_IsAssignableFrom): Renamed.
(_Jv_JNI_GetStringRegion): New function.
Include StringIndexOutOfBoundsException.h.
(_Jv_JNI_GetStringUTFRegion): New function.
(_Jv_JNIFunctions): Updated for new functions.
(_Jv_JNI_GetPrimitiveArrayCritical): New function
(_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
(_Jv_JNI_GetStringCritical): New function.
(_Jv_JNI_ReleaseStringCritical): Likewise.
(get_throwable): Removed.
(GCJ_JV_JNIENV_FRIEND): Removed.
(__GCJ_JNI_IMPL__): Define.
Include method.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31638 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * resolve.cc (get_ffi_type_from_signature): Handle case where
tromey [Wed, 26 Jan 2000 23:44:40 +0000 (23:44 +0000)]
* resolve.cc (get_ffi_type_from_signature): Handle case where
boolean is an int.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31637 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * calls.c (special_function_p): New argument fork_or_exec.
amylaar [Wed, 26 Jan 2000 23:38:20 +0000 (23:38 +0000)]
* calls.c (special_function_p): New argument fork_or_exec.
(expand_call): When profile_arc_flag is set and the function
is in the fork_or_exec group, call __bb_fork_func first.
* libgcc2.c, _bb module (__bb_fork_func): New function.
(__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
output file.
* config/svr4.h (TARGET_HAS_F_SETLKW): Define.
* tree.h (special_function_p): Update prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31636 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agogcc:
amylaar [Wed, 26 Jan 2000 22:27:31 +0000 (22:27 +0000)]
gcc:
* calls.c (special_function_p): New argument fork_or_exec.
(expand_call): When profile_arc_flag is set and the function
is in the fork_or_exec group, call __bb_fork_func first.
* libgcc2.c, _bb module (__bb_fork_func): New function.
(__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
output file.
* config/svr4.h (TARGET_HAS_F_SETLKW): Define.
* tree.h (special_function_p): Update prototype.

gcc/cp:
* cp/optimize.c (calls_setjmp_r): Supply new argument
to special_function_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31635 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * alpha.c (alpha_split_tfmode_pair): New.
rth [Wed, 26 Jan 2000 22:08:59 +0000 (22:08 +0000)]
    * alpha.c (alpha_split_tfmode_pair): New.
        * alpha-protos.h: Declare it.
        * alpha.md (abstf2, negtf2): New.
        (movtf insn): Add input G constraint.
        (movtf splitter): Use alpha_split_tfmode_pair.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31634 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * i386/cygwin.h: PROTO -> PARAMS.
ghazi [Wed, 26 Jan 2000 21:22:58 +0000 (21:22 +0000)]
    * i386/cygwin.h: PROTO -> PARAMS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31633 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * call.c: PROTO -> PARAMS.
ghazi [Wed, 26 Jan 2000 20:51:37 +0000 (20:51 +0000)]
    * call.c: PROTO -> PARAMS.
        * class.c: Likewise.
        * cp-tree.h: Likewise.
        * cvt.c: Likewise.
        * decl.c: Likewise.
        * decl.h: Likewise.
        * decl2.c: Likewise.
        * dump.c: Likewise.
        * errfn.c: Likewise.
        * error.c: Likewise.
        * except.c: Likewise.
        * expr.c: Likewise.
        * init.c: Likewise.
        * input.c: Likewise.
        * lex.c: Likewise.
        * lex.h: Likewise.
        * method.c: Likewise.
        * optimize.c: Likewise.
        * parse.y: Likewise.
        * pt.c: Likewise.
        * repo.c: Likewise.
        * rtti.c: Likewise.
        * search.c: Likewise.
        * semantics.c: Likewise.
        * spew.c: Likewise.
        * tree.c: Likewise.
        * typeck.c: Likewise.
        * typeck2.c: Likewise.
        * xref.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31632 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
jakub [Wed, 26 Jan 2000 20:14:10 +0000 (20:14 +0000)]
* config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
using _Qp_cmp/_Q_cmp and testing the return value.
(print_operand): Call reverse_condition_maybe_unordered if
we are handling CCFPmode or CCFPEmode.
Handle ORDERED, UN* and LTGT comparisons.
* config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
if not TARGET_HARD_QUAD.
(seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
Adjust gen_b* calls so that they reflect return comparison of
sparc_emit_float_lib_cmp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31631 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Wed, 26 Jan 2000 08:45:06 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31630 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago* config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
oliva [Wed, 26 Jan 2000 07:57:28 +0000 (07:57 +0000)]
* config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
incoming operands array is large enough for one more operand.
(alpha_emit_xfloating_arith): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31629 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
zack [Wed, 26 Jan 2000 07:37:30 +0000 (07:37 +0000)]
* fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
file with one line and no trailing newline.
Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
* fixinc/fixtests.c (machine_name_test): Fix fencepost error
checking if the match is on the line.
* fixinc/gnu-regex.c: Provide regerror not __regerror.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31628 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago* gcc.dg/unused-2.c: New test.
oliva [Wed, 26 Jan 2000 07:15:01 +0000 (07:15 +0000)]
* gcc.dg/unused-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31627 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago* gcc.dg/conv-1.c: New test.
oliva [Wed, 26 Jan 2000 07:14:06 +0000 (07:14 +0000)]
* gcc.dg/conv-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31626 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * sparc.c (output_cbranch): Fix accidental squashing of the
rth [Wed, 26 Jan 2000 03:13:13 +0000 (03:13 +0000)]
    * sparc.c (output_cbranch): Fix accidental squashing of the
        fp branch pre-delay nop.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31625 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * tree.def (UNNE_EXPR): Remove.
rth [Wed, 26 Jan 2000 02:06:21 +0000 (02:06 +0000)]
    * tree.def (UNNE_EXPR): Remove.
        * c-typeck.c (build_binary_op): Don't handle it.
        * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
        * cp/typeck.c (build_binary_op_nodefault): Likewise.

        * rtl.def (UNNE): Remove.
        (LTGT): Add.
        * jump.c (reverse_condition): Update accordingly.
        (swap_condition): Likewise.
        (comparison_dominates_p): Handle unordered comparisons.
        (reverse_condition_maybe_unordered): New.
        * rtl.h (reverse_condition_maybe_unordered): Declare.

        * sparc.c (select_cc_mode): Update for UNNE/LTGT.
        (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
        * sparc.h (REVERSIBLE_CC_MODE): Always true.  Update docs.
        * sparc.md (bltgt): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31624 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoOnly check machine class insns for improper emission of a RETURN
nickc [Wed, 26 Jan 2000 01:23:26 +0000 (01:23 +0000)]
Only check machine class insns for improper emission of a RETURN

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31623 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * interpret.cc (run): Don't call println.
tromey [Wed, 26 Jan 2000 00:56:36 +0000 (00:56 +0000)]
* interpret.cc (run): Don't call println.
Don't include PrintStream.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31622 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
tromey [Wed, 26 Jan 2000 00:55:50 +0000 (00:55 +0000)]
* gcj/field.h (struct _Jv_Field): Use "jshort" as type for
nameIndex.  Use "jint" as type for boffset.
* java/lang/Class.h (struct _Jv_Method): Made accflags a
_Jv_ushort.
(Class): Likewise.  Also changed type of method_count,
vtable_method_count, size_in_bytes, field_count,
static_field_count, interface_count.
* gcj/array.h (__JArray): Made `length' a const jsize, not an
int.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31621 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * Makefile.in (flow.o): Depend on $(EXPR_H).
rth [Wed, 26 Jan 2000 00:54:44 +0000 (00:54 +0000)]
    * Makefile.in (flow.o): Depend on $(EXPR_H).
        * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
        duplicate the structure of diddle_return_value for keeping regs live.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31620 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cp-tree.h (vcall_offset_in_vtable_p): New macro.
mmitchel [Tue, 25 Jan 2000 23:26:21 +0000 (23:26 +0000)]
* cp-tree.h (vcall_offset_in_vtable_p): New macro.
* class.c (build_vbase_offset_vtbl_entries): Fix typo in commment.
(struct vcall_offset_data_s): New type.
(dfs_vcall_offset_queue_p): New function.
(dfs_build_vcall_offset_vtbl_entries): Likewise.
(build_vcall_offset_vtbl_entries): Likewise.
(layout_vtable_decl): Likewise.
(num_vfun_entries): Likewise.
(num_extra_vtbl_entries): Add the entries for vcall offsets.
(build_vtbl_initializer): Likewise.
(dfs_finish_vtabls): Use layout_vtable_decl.
(modify_one_vtables): Always duplicate vtables under the new ABI.
(finish_struct_1): Use layout_vtable_decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31619 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
m.hayes [Tue, 25 Jan 2000 22:49:56 +0000 (22:49 +0000)]
2000-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

* loop.c (current_loop_info): Delete.
(consec_sets_invariant_p): Add loop argument, update callers.
(get_condition_for_loop): Likewise.
(count_nonfixed_reads, update_giv_derive): Likewise.
(simplify_giv_expr, general_induction_var): Likewise.
(consec_sets_giv, recombine_givs): Likewise.
(move_movables): Delete loop_start and loop_end arguments,
add loop argument, and update callers.
(find_mem_givs, check_final_value): Likewise.
(record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
(loop_invariant_p): Rename from invariant_p, add loop argument, and
update callers.
(basic_induction_var): Add loop argument, delete loop_level argument,
and update callers.
* unroll.c (iteration_info): Delete loop_start and loop_end arguments,
add loop argument, and update callers.
(find_splittable_regs, find_splittable_givs): Likewise.
(reg_dead_after_loop, loop_find_equiv_value): Likewise.
(final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
(biv_total_increment): Delete loop_start and loop_end arguments;
update callers.
(precondition_loop_p): Delete loop_start and loop_info arguments;
update callers.
* loop.h (get_condition_for_loop): Add loop argument.
(biv_total_increment): Delete loop_start and loop_end arguments.
(precondition_loop_p): Delete loop_start and loop_info arguments;
add loop argument.
(final_biv_value): Delete loop_start and loop_end arguments;
add loop argument.
(final_giv_value, back_branch_in_range_p): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31618 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
gavin [Tue, 25 Jan 2000 22:18:59 +0000 (22:18 +0000)]
* config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31617 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
gavin [Tue, 25 Jan 2000 20:16:06 +0000 (20:16 +0000)]
2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>

* Makefile.in (c-gperf.h) : Change the "See" pointer to
point to the new "generated_files" doc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31616 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * decl.c (member_function_or_else): Change third arg from a format
ghazi [Tue, 25 Jan 2000 18:40:05 +0000 (18:40 +0000)]
* decl.c (member_function_or_else): Change third arg from a format
specifier to an `enum overload_flags'.  Callers changed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31615 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string
ghazi [Tue, 25 Jan 2000 18:29:02 +0000 (18:29 +0000)]
* parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string
concatenation.
(OBSOLETE_MODIFIER_WARNING2): New macro allowing two args.

* parse.y (register_fields): Don't pass a format specifier to
OBSOLETE_MODIFIER_WARNING.
(check_abstract_method_header): Use OBSOLETE_MODIFIER_WARNING2
instead of OBSOLETE_MODIFIER_WARNING, and don't pass a format
specifier.
(check_modifiers): Change function into a macro.
(check_class_interface_creation): Pass a literal format string.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31614 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * config/fp-bit.c (_unord_f2): Fix typo.
cpopetz [Tue, 25 Jan 2000 17:25:26 +0000 (17:25 +0000)]
* config/fp-bit.c (_unord_f2): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31613 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agonew
jason [Tue, 25 Jan 2000 17:15:58 +0000 (17:15 +0000)]
new

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31612 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
zack [Tue, 25 Jan 2000 17:13:14 +0000 (17:13 +0000)]
* c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
c-typeck.c, objc/objc-act.c: Remove all references to obstack
functions obsoleted by GC, such as push_obstacks_nochange,
end_temporary_allocation, savealloc, saveable_tree_cons, etc.
and code which existed only to decide whether or not to call
them.  Remove now-unused NESTED argument from start_function;
all callers changed.  Do not change behavior based on ggc_p.
The use of the ixp_obstack in c-iterate.c and the util_obstack
in objc/objc-act.c remain; these are not obsoleted by garbage
collection.
* c-tree.h: Update prototype for start_function.

* c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31611 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * config/mips/mips.md (zero_extendsidi2_internal): Disable for
cpopetz [Tue, 25 Jan 2000 15:51:20 +0000 (15:51 +0000)]
* config/mips/mips.md (zero_extendsidi2_internal): Disable for
mips16.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31610 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * sparc-protos.h (select_cc_mode): Declare.
rth [Tue, 25 Jan 2000 12:42:25 +0000 (12:42 +0000)]
    * sparc-protos.h (select_cc_mode): Declare.
        * sparc.c (select_cc_mode): New.  Handle unordered compares.
        (output_cbranch): Always reverse via code change.  Handle
        unordered compares.  Factor tests and string updates.
        * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
        (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
        * sparc.md (bunordered, bordered): New.
        (bungt, bunlt, buneq, bunge, bunle): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31609 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-25 Gabriel Dos Reis <gdr@codesourcery.com>
gdr [Tue, 25 Jan 2000 10:56:54 +0000 (10:56 +0000)]
2000-01-25  Gabriel Dos Reis  <gdr@codesourcery.com>

        * typeck.c (composite_pointer_type, c_sizeof, expr_sizeof,
        build_binary_op_nodefault, build_unary_op, build_reinterpret_cast,
        build_const_cast, get_delta_difference, check_return_expr): Avoid
        ANSI string concatenation usage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31608 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
rth [Tue, 25 Jan 2000 10:47:46 +0000 (10:47 +0000)]
    * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
        * ggc-common.c (ggc_add_rtx_varray_root): New.
        (ggc_mark_rtx_varray): New.
        (ggc_mark_rtx_varray_ptr): New.  Shift all ggc_mark_foo_ptr
        functions down below ggc_mark_foo.
        * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31607 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * alpha.c (secondary_reload_class): Don't allocate a secondary
rth [Tue, 25 Jan 2000 10:38:41 +0000 (10:38 +0000)]
    * alpha.c (secondary_reload_class): Don't allocate a secondary
        for integral mode memories into FLOAT_REGS.  Rearrange the more
        complicated memory expression inward.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31606 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Tue, 25 Jan 2000 08:45:06 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31605 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
zack [Tue, 25 Jan 2000 08:06:23 +0000 (08:06 +0000)]
2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>

* inclhack.def: Fixes to play nicer with FreeBSD, and
corrections to comments.
(cxx_unready): Add select expression.
(irix_sockaddr): Add bypass expression.
(machine_ansi_h_va_list): New fix.
(stdio_va_list): No need to edit _BSD_VA_LIST_.
Split out addition of "#include <stdarg.h>" to...
(stdio_stdarg_h): ... here.
(systypes_for_aix): Rename to systypes_stdlib_size_t.  Apply
to stdlib.h also.  Do not munge _BSD_SIZE_T_.
(sysz_stdlib_for_sun): Delete duplicate fix for unprotected
size_t.
(ultrix_ifdef): Tighten up select expression.

* fixincl.tpl: Exorcise 'exesel'.  Rewrite calculations of
re_ct and max_mach to avoid use of shell.  Make printed names
match names in inclhack.def.  Use static copyright date.
Don't count c_test and test expressions as requiring regex_t
slots.  Add some commentary.
* inclhack.tpl: Do not include the 'This script contains N
fixup scripts' line if PROGRAM is defined.  Use static
copyright date.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31604 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * class.c (layout_class_type): Put the fields required to make a
mmitchel [Tue, 25 Jan 2000 06:33:06 +0000 (06:33 +0000)]
* class.c (layout_class_type): Put the fields required to make a
class non-empty at the end, not the beginning, of the TYPE_FIELDs
list.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31603 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * dwarf2out.c: include "varray.h", not dyn-string.h.
jason [Tue, 25 Jan 2000 05:59:18 +0000 (05:59 +0000)]
    * dwarf2out.c: include "varray.h", not dyn-string.h.
        (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
        (addr_const_to_string, addr_to_string): Lose.
        (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
        (struct dw_val_struct): val_addr is now an rtx.
        (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
        (used_rtx_varray): New varray.
        (dwarf2out_init): Initialize it.
        (save_rtx): New fn.
        (mem_loc_descriptor, add_const_value_attribute): Call it instead of
        addr_to_string.
        * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
        sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
        * Makefile.in (dwarf2out.o): Update dependencies.

        * i386.c (i386_dwarf_output_addr_const): New.
        * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.

        * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
        if defined.
        * dwarfout.c (output_mem_loc_descriptor): Likewise.
        * i386.c (i386_simplify_dwarf_addr): New.
        * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31602 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * pt.c (maybe_fold_nontype_arg): Do nothing if we're not in a
jason [Tue, 25 Jan 2000 05:53:12 +0000 (05:53 +0000)]
    * pt.c (maybe_fold_nontype_arg): Do nothing if we're not in a
        template.

        * decl2.c (mark_used): Do instantiate inlines that have been
        explicitly instantiated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31601 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agotypo
jason [Tue, 25 Jan 2000 02:53:54 +0000 (02:53 +0000)]
typo

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31600 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoFix mips EABI/dwarf2 segfault while compiling newlib.
wilson [Tue, 25 Jan 2000 00:58:58 +0000 (00:58 +0000)]
Fix mips EABI/dwarf2 segfault while compiling newlib.
* dwarf2out.c (gen_struct_or_union_type_die): Set complete if
TYPE_STUB_DECL is NULL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31599 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * builtins.c (expand_tree_builtin): Move ...
rth [Tue, 25 Jan 2000 00:45:14 +0000 (00:45 +0000)]
    * builtins.c (expand_tree_builtin): Move ...
        * c-common.c (expand_tree_builtin): ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31598 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
m.hayes [Tue, 25 Jan 2000 00:38:09 +0000 (00:38 +0000)]
2000-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

* loop.h (LOOP_INFO): New accessor macro.
* basic-block.h (struct loop): Rename field `info' to `aux'.
* loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
(prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
* unroll.c (loop_iterations, unroll_loop): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31596 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoInclude new cygwin include directories
meissner [Mon, 24 Jan 2000 22:46:11 +0000 (22:46 +0000)]
Include new cygwin include directories

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31595 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * Makefile.in (CXX_FOR_TARGET): Use g++, not xgcc, to invoke
mmitchel [Mon, 24 Jan 2000 21:02:27 +0000 (21:02 +0000)]
* Makefile.in (CXX_FOR_TARGET): Use g++, not xgcc, to invoke
the C++ compiler.

* lib/g++.exp (g++init): Use g++, not xgcc, to invoke the C++
compiler.
(tool_option_proc): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31593 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago* gcc.dg/special/ecos.exp (gcsec-1.c): Check the version
geoffk [Mon, 24 Jan 2000 20:56:33 +0000 (20:56 +0000)]
* gcc.dg/special/ecos.exp (gcsec-1.c): Check the version
of the ld on the host, not on the build machine.
Also, don't crash if '--help' is not a supported option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31592 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * rtl.def: Add unordered fp comparisions.
rth [Mon, 24 Jan 2000 20:10:04 +0000 (20:10 +0000)]
    * rtl.def: Add unordered fp comparisions.
        * tree.def: Likewise.
* tree.h: Add ISO C 9x unordered fp comparision builtins.

* builtins.c (expand_tree_builtin): New function.
* c-typeck.c (build_function_call): Use it.
(build_binary_op): Support unordered compares.
* c-common.c (c_common_nodes_and_builtins): Add unordered compares.

* combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
(reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
* cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
(record_jump_equiv): Handle reverse_condition returning UNKNOWN.
* jump.c (reverse_condition): Don't abort for UNLE etc, but
return UNKNOWN.
(swap_condition): Handle unordered compares.
(thread_jumps): Check can_reverse before reversing.
* loop.c (get_condition): Likewise.  Allow UNORERED/ORDERED to be
reversed for FP.

* optabs.c (can_compare_p): New argument CODE.  Verify branch or
setcc is present before acking for cmp_optab.  Update all callers.
(prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
* expmed.c (do_cmp_and_jump): Update for can_compare_p.
* expr.c (expand_expr): Likewise.  Support unordered compares.
(do_jump, do_store_flag): Likewise.
* expr.h (enum libfunc_index): Add unordered compares.

* Makefile.in (FPBIT_FUNCS): Add _unord_sf.
(DPBIT_FUNCS): Add _unord_df.
* config/fp-bit.c (_unord_f2): New.
* fp-test.c (main): Try unordered compare builtins.

* alpha-protos.h (alpha_fp_comparison_operator): Declare.
* alpha.c (alpha_comparison_operator): Check mode properly.
(alpha_swapped_comparison_operator): Likewise.
(signed_comparison_operator): Likewise.
(alpha_fp_comparison_operator): New.
(alpha_emit_conditional_branch): Handle unordered compares.
* alpha.h (PREDICATE_CODES): Update.
* alpha.md (fp compares): Use alpha_fp_comparison_operator.
(bunordered, bordered): New.

* cp/call.c (build_over_call): Use expand_tree_builtin.
* cp/typeck.c (build_function_call_real): Likewise.
(build_binary_op_nodefault): Handle unordered compares.

* gcc.c-torture/execute/ieee/fp-cmp-4.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31591 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
rth [Mon, 24 Jan 2000 19:51:09 +0000 (19:51 +0000)]
    * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
        * alpha.md (movtf): New expander, insn, and splitter.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31589 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
hubicka [Mon, 24 Jan 2000 18:58:32 +0000 (18:58 +0000)]
* reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
dead registers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31588 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
hubicka [Mon, 24 Jan 2000 16:39:07 +0000 (16:39 +0000)]
* i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
(FIXED_REGISTERS, CALL_USED_REGISTERS,
 REG_ALLOC_ORDER): Add frame pointer
(FRAME_POINTER_REGNUM): Set to 20
(HARD_FRAME_POINTER_REGNUM): New macro.
(ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
to HARD_FRAME_POINTER.
(REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
(REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
(REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
(HI_REGISTER_NAMES): Add "frame".
(CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
(debug_reg): Handle FRAME_POINTER_REGNUM.
(reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
GENERAL_REGS and INDEX_REGS.
* i386.c (SAVED_REGS_FIRST): new macro.
(AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
(ix86_decompose_address, memory_address_length): Likewise.
(regclass_map): Add frame pointer.
(call_insn_operand): Handle frame_pointer_rtx.
(reg_no_sp_operand): Likewise.
(ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
(print_operand, legitimize_pic_address): Fix formating.
(ix86_compute_frame_size): Make static, update prototype, new
parameters padding1, padding2, use ix86_nsaved_regs, use
stack_alignment_needed.
(ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
to HARD_FRAME_POINTER_REGNUM conversions.
(ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
(ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
(print_reg): Abort on FRAME_POINTER_REGNUM

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31587 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * i386.h (PREDICATE_CODES): Add aligned_operand.
hubicka [Mon, 24 Jan 2000 15:54:35 +0000 (15:54 +0000)]
* i386.h (PREDICATE_CODES): Add aligned_operand.
* i386.c (aligned_operand): New function.
(ix86_aligned_p): Kill.
* i386.md (movhi_1): Emit mov for aligned operands.
(promoting peep2s): Use aligned_operand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31586 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cp-tree.h (CPTI_BAD_CAST, CPTI_BAD_TYPEID, CPTI_DCAST): New
nathan [Mon, 24 Jan 2000 12:16:59 +0000 (12:16 +0000)]
* cp-tree.h (CPTI_BAD_CAST, CPTI_BAD_TYPEID, CPTI_DCAST): New
cp_tree_index values.
(throw_bad_cast_node, throw_bad_typeid_node, dynamic_cast_node):
New global node #defines for them.
* rtti.c (call_void_fn): Replace with ...
(build_runtime_decl): ... new static function.
(throw_bad_cast): Use throw_bad_cast_node and build_runtime_decl.
(throw_bad_typeid): Use throw_bad_typeid_node and build_runtime_decl.
(build_dynamic_cast_1): Always produce correctly typed result.
Explicitly produce type_info addresses. Use dynamic_cast_node.
* exception.cc (__throw_bad_cast): Return `void *'.
(__throw_bad_typeid): Return `const type_info &'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31585 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-19 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
gdr [Mon, 24 Jan 2000 11:25:23 +0000 (11:25 +0000)]
2000-01-19  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>

        * stl_iterator.h: Make it possible to use standard class
        `iterator'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31584 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cp-tree.h (get_vtable_decl): Prototype new function.
nathan [Mon, 24 Jan 2000 10:59:02 +0000 (10:59 +0000)]
* cp-tree.h (get_vtable_decl): Prototype new function.
* class.c (get_vtable_decl): New function. Broken out from ...
(build_vtable): ... here. Use it.
* decl2.c (finish_vtable_vardecl): Ignore dummy vtables created
by get_vtable_decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31583 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cp-tree.h (CPTI_TP_DESC_TYPE, CPTI_ACCESS_MODE_TYPE,
nathan [Mon, 24 Jan 2000 10:23:26 +0000 (10:23 +0000)]
* cp-tree.h (CPTI_TP_DESC_TYPE, CPTI_ACCESS_MODE_TYPE,
CPTI_USER_DESC_TYPE, CPTI_CLASS_DESC_TYPE, CPTI_ATTR_DESC_TYPE,
CPTI_PTMF_DESC_TYPE): Remove cp_tree_index enumerations.
(CPTI_TI_DESC_TYPE, CPTI_REF_DESC_TYPE, CPTI_ARY_DESC_TYPE,
CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE, CPTI_SI_CLASS_DESC_TYPE,
CPTI_VMI_CLASS_DESC_TYPE, CPTI_BASE_DESC_TYPE): New enumerations.
(CPTI_TINFO_FN_ID, CPTI_TINFO_FN_TYPE): Rename to ...
(CPTI_TINFO_DECL_ID, CPTI_TINFO_DECL_TYPE): ... here.
(CPTI_TINFO_VAR_ID): New enumeration.
(__tp_desc_type_node, __access_mode_type_node,
__bltn_desc_type_node, __user_desc_type_node,
__class_desc_type_node, __ptr_desc_type_node,
__attr_desc_type_node, __func_desc_type_node,
__ptmf_desc_type_node, __ptmd_desc_type_node): Remove #defines.
(ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
ref_desc_type_node, ary_desc_type_node, func_desc_type_node,
enum_desc_type_node, class_desc_type_node,
si_class_desc_type_node, vmi_class_desc_type_node,
ptmd_desc_type_node, base_desc_type_node): New #defines.
(tinfo_fn_id, tinfo_fn_type): Rename to ...
(tinfo_decl_id, tinfo_decl_type): ... here. Adjust.
(tinfo_var_id): New enumeration.
(DECL_TINFO_FN_P): Augment comment.
* decl.c (cp_global_trees): Adjust documentation.
* rtti.c (init_rtti_processing): Adjust for tinfo_decl_id,
tinfo_decl_type and tinfo_var_id.
(get_tinfo_decl_dynamic): Adjust for tinfo_decl_type.
(build_typeid): Remove unused variable.
(get_tinfo_var): Use tinfo_var_id.
(tinfo_name): New static function.
(get_tinfo_decl): Adjust for tinfo_decl_id and tinfo_decl_type.
(tinfo_from_decl): Likewise.
(get_base_offset): New static function, broken out of
expand_class_desc.
(expand_si_desc): Use tinfo_name.
(expand_class_desc): Likewise. Lose local static variable.
Use base_desc_type_node. Use get_base_offset.
(expand_ptr_desc): Use tinfo_name.
(expand_attr_desc): Likewise.
(expand_generic_desc): Likewise.

* tinfo.cc (__GXX_ABI_VERSION): Test value and existance.
* tinfo.h (__GXX_ABI_VERSION): Test value and existance.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31582 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Mon, 24 Jan 2000 08:45:07 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31581 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
zack [Mon, 24 Jan 2000 04:53:58 +0000 (04:53 +0000)]
* fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
expression to allow underscores in macro names.
(fix_char_macro_defines): Increment scanning pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31580 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
rth [Mon, 24 Jan 2000 04:02:40 +0000 (04:02 +0000)]
    * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
        * alpha/osf5.h: New file.
        * configure.in (alpha-*-osf5): Add it to tm_file.

        * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.

        * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
        (alpha_emit_xfloating_cvt, function_arg): Declare.
        * alpha.c (alpha_emit_conditional_branch): Call
        alpha_emit_xfloating_compare for TFmode compares.
        (alpha_lookup_xfloating_lib_func): New.
        (alpha_compute_xfloating_mode_arg): New.
        (alpha_emit_xfloating_libcall): New.
        (alpha_emit_xfloating_arith): New.
        (alpha_emit_xfloating_compare): New.
        (alpha_emit_xfloating_cvt): New.
        (print_operand): Add default abort case.
        (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
        * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
        (BIGGEST_ALIGNMENT): Increase to 128 bits.
        (RETURN_IN_MEMORY): True for TF/TCmode.
        (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
        (FUNCTION_ARG): Move to function_arg.
        (FUNCTION_ARG_PASS_BY_REFERENCE): New.
        (ASM_OUTPUT_LONG_DOUBLE): New.
        (ASM_OUTPUT_DOUBLE): Always output bits.
        * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
        (fix_trunctfdi2, floatditf2, floatunsditf2): New.
        (extenddftf2, trunctfdf2): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31579 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago* config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
oliva [Mon, 24 Jan 2000 00:47:38 +0000 (00:47 +0000)]
* config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
* config/sparc/sol2.h: ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31578 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
m.hayes [Sun, 23 Jan 2000 23:10:09 +0000 (23:10 +0000)]
2000-01-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

* basic-block.h (struct loops): New field `levels'.
* flow.c (flow_loops_level_compute): Traverse all outer loops.
(flow_loop_level_compute): Initialise level to 1.
(flow_loops_find): Set loops->levels.
(flow_loops_dump): Print loops->levels.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31577 138bc75d-0d04-0410-961f-82ee72b054a4