Commit Graph

48140 Commits

Author SHA1 Message Date
Ranjit Mathew
c79d770273 jni.cc (_Jv_LookupJNIMethod): Modify to accept the size of the arguments for a JNI function.
2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>

	* jni.cc (_Jv_LookupJNIMethod): Modify to accept the
	size of the arguments for a JNI function. For Win32,
	modify to search for all forms of possible exported
	names of an stdcall JNI function.
	(_Jv_JNIMethod::call): Modify to calculate the size
	of the arguments passed to a JNI function and pass
	it to _Jv_LookupJNIMethod.

From-SVN: r62796
2003-02-12 23:40:31 +00:00
Ranjit Mathew
697ec3260d decl.c (java_init_decl_processing): Change soft_lookupjnimethod_node to reflect the change in signature of...
2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>

	* decl.c (java_init_decl_processing): Change
	soft_lookupjnimethod_node to reflect the change in
	signature of _Jv_LookupJNIMethod in libjava/jni.cc
	* expr.c (build_jni_stub): Calculate and pass the size
	on the stack of the arguments to a JNI function. Use
	new target macro MODIFY_JNI_METHOD_CALL to allow a
	target to modify the call to a JNI method.

From-SVN: r62795
2003-02-12 23:39:50 +00:00
Kazu Hirata
2bbfc54272 * config/h8300/h8300.md (a peephole2): New.
From-SVN: r62792
2003-02-12 23:32:21 +00:00
Jan Hubicka
e72fcfe8e4 Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
* Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
	(OBJS): Add callgraph.o
	(callgraph.o): New.
	* c-decl.c (expand_body_1): Break out from ...
	(expand_body): This one;  change calling convention
	(finish_function): Move some of expand_body logic here.
	(c_expand_deferred_function): Update call of expand_body
	(c_expand_stmt): Use c_expand_body_1.
	* c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
	* c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
	* c-tree.h (c_expand_body): Declare.
	* callgraph.c: New file.
	* flags.h (flag_unit_at_a_time): Declare.
	* langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
	LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
	LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
	* langhooks.h (struct lang_hooks_for_callgraph): New.
	(struct lang_hooks): Add callgraph field.
	* toplev.c (flag_unit_at_a_time): New.
	(lang_independent_options): Add flag_unit_at_a_time.
	(process_options): Disable unit-at-a-time mode for frontends not
	supporting callgraph.
	* tree-inline.c (typedef struct inline_data): Add "decl"
	(expand_call_inline): Update callgraph.
	(optimize_inline_calls): Set id.decl.
	* tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
	cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
	cgraph_calls_p): Declare.
	* invoke.texi (-funit-at-a-time): Document

From-SVN: r62789
2003-02-12 21:48:59 +00:00
Aldy Hernandez
9037b0c71e spe.h: Fix misc formatting.
2003-02-12  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/spe.h: Fix misc formatting.
        (__ev_create_ufix32_fs): Cast ev argument.
        (__ev_create_sfix32_fs): Same.
        (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
        (__ev_get_ufix32_fs_internal): Same.

From-SVN: r62788
2003-02-12 20:25:38 +00:00
Jason Merrill
30dca1c87e parser.c (cp_parser_postfix_expression): Set idk properly for object->scope::member.
* parser.c (cp_parser_postfix_expression): Set idk properly for
        object->scope::member.

From-SVN: r62784
2003-02-12 15:02:40 -05:00
Paolo Carlini
ff5d863fc2 re PR libstdc++/9563 (ostream::sentry returns true after a failed preparation)
2003-02-12  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/9563
	* include/bits/ostream.tcc (sentry::sentry): Check
	the state of the stream after the preparation.
	* testsuite/27_io/ostream_sentry.cc (test02): Add.

From-SVN: r62779
2003-02-12 19:39:19 +00:00
Ranjit Mathew
55ae46b15f tm.texi (MODIFY_JNI_METHOD_CALL): Document.
2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>

	* doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
	* config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.

From-SVN: r62776
2003-02-12 18:39:35 +00:00
Zack Weinberg
3963c2e00e cpplib.c (do_include_common): Move warnings for #include_next and #import out to callers.
* cpplib.c (do_include_common): Move warnings for
	#include_next and #import out to callers.  Use early-return
	instead of nested ifs.  Don't do check_eol here.
	(parse_include): Do check_eol here with the rest of the
	parsing stuff.
	(do_include_next, do_import): Now handle warnings.

From-SVN: r62772
2003-02-12 17:01:53 +00:00
Gerald Pfeifer
d1a86812fa * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
From-SVN: r62767
2003-02-12 15:06:40 +00:00
Kazu Hirata
5c4d5a15cc 20030209-1.c: Disable the test if STACK_SIZE is too small.
* gcc.c-torture/execute/20030209-1.c: Disable the test if
	STACK_SIZE is too small.

From-SVN: r62766
2003-02-12 14:33:24 +00:00
Jan Hubicka
6efcd26809 * predict.c (estimate_probability): Fix roundoff error.
From-SVN: r62765
2003-02-12 14:23:20 +00:00
Kazu Hirata
9083b5dab9 h8300.md (a peephole2): Don't handle 65535.
* config/h8300/h8300.md (a peephole2): Don't handle 65535.
	(two peephole2): New.

From-SVN: r62764
2003-02-12 14:10:21 +00:00
Kazu Hirata
86bc9b196b h8300.md (several peephole2): Replace find_regno_note with peep2_reg_dead_p.
* config/h8300/h8300.md (several peephole2): Replace
	find_regno_note with peep2_reg_dead_p.

From-SVN: r62763
2003-02-12 13:57:56 +00:00
Michael Koch
0e0335e36a Channels.java: New file.
2003-02-12  Michael Koch  <konqueror@gmx.de>

	* java/nio/channels/Channels.java: New file.
	* Makefile.am
	(ordinary_java_source_files): Added java/nio/channels/Channels.java.
	* Makefile.in: Regenerated.

From-SVN: r62762
2003-02-12 10:10:28 +00:00
Michael Koch
ad2e63d5df 2003-02-12 Michael Koch <konqueror@gmx.de>
* java/nio/ByteBuffer.java
	(allocate): Implemented.
	(wrap): Implemented.
	* java/nio/CharBuffer.java:
	Some documentation added and reworked.
	(endian): Removed.
	(allocate): Implemented.
	(wrap): Implemented.
	(array): Throw exceptions.
	(arrayOffset): Throw exceptions.
	(toString): Implemented.
	(length): Implemented.
	(put): Implemented.
	(charAt): Implemented.

From-SVN: r62760
2003-02-12 08:01:10 +00:00
Richard Henderson
ceda50e9d5 gcse.c (lookup_set): Remove unused argument PAT.
* gcse.c (lookup_set): Remove unused argument PAT.  Update
        both callers.

From-SVN: r62759
2003-02-11 22:14:12 -08:00
Tom Tromey
cc687dae1d Wrote better ChangeLog entry
From-SVN: r62757
2003-02-12 01:26:49 +00:00
John Leuner
8f561af784 ZipInputStream.java: idem
2003-02-11  John Leuner  <jewel@debian.org>

	* java/util/zip/ZipInputStream.java: idem

From-SVN: r62754
2003-02-12 01:25:08 +00:00
Geoffrey Keating
886e08657e diagnostic.c (real_abort): New.
* diagnostic.c (real_abort): New.
	(diagnostic_report_diagnostic): Call real_abort on error.
	* diagnostic.h (diagnostic_abort_on_error): New.
	(struct diagnostic_context): Add abort_on_error field.
	* toplev.c (setup_core_dumping): New.
	(decode_d_option): Handle 'H' case.
	* doc/invoke.texi (Debugging Options): Document -dH.

From-SVN: r62753
2003-02-12 01:05:47 +00:00
Benjamin Kosnik
ab77073fd7 Makefile.am (stamp-std-precompile): Add rule.
2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>

	* include/Makefile.am (stamp-std-precompile): Add rule.
	* include/Makefile.in: Regenerated.

From-SVN: r62752
2003-02-12 00:54:39 +00:00
GCC Administrator
e7478fa2aa Daily bump.
From-SVN: r62751
2003-02-12 00:17:06 +00:00
Nathanael Nerode
76438597dd Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu which refers to obsolete...
* Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
	which refers to obsolete directories.

From-SVN: r62738
2003-02-11 22:24:40 +00:00
Richard Henderson
09b568fcb3 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
From-SVN: r62736
2003-02-11 14:15:20 -08:00
Richard Henderson
a0777b6205 i386.c (override_options): Define c3-2 as a 686 with SSE.
* config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
        * doc/invoke.texi: Extra alias.

From-SVN: r62735
2003-02-11 14:13:57 -08:00
Jan Hubicka
8b978a57fa i386.c (contains_128bit_aligned_vector_p): New function.
* i386.c (contains_128bit_aligned_vector_p): New function.
	(ix86_function_arg_boundary): Properly align vector modes.

From-SVN: r62732
2003-02-11 21:58:09 +00:00
Jerry Quinn
ce3039af7d locale_facets.h (__num_base): Add _S_atoms_out.
2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
           Benjamin Kosnik  <benjamin@redhat.com>

	* include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
	Add indexes into this array.
	(__num_base::_S_atoms): To _S_atoms_in.
	(num_put::_M_insert): Rename to _M_pad.
	(num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
	(num_put::_M_widen_int): Rename to _M_group_int.
	(num_put::_M_widen_float): Rename to _M_group_float.
	* include/bits/locale_facets.tcc (__int_to_char): New inline
	function and adapter functions.
	(num_put::_M_group_int): Streamline.
	(num_put::_M_group_float): Streamline.
	(num_put::_M_convert_int): Remove unused parameter names. Choose
	large enough buffer for text.  Use __int_to_char instead of
	__convert_from_v.  Formatted text is now at the end of the buffer.
	(num_put::_M_convert_float): Preliminary fixups.
	* src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
	(__int_to_char<unsigned long long>): Same.
	(__int_to_char<char, unsigned long>): New.
	(__int_to_char<char, unsigned long long>): New.
	(__int_to_char<wchar_t, unsigned long>): New.
	(__int_to_char<wchar_t, unsigned long long>): New.

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>

From-SVN: r62731
2003-02-11 21:55:49 +00:00
Bob Wilson
a3259be8e3 xtensa.md (set_frame_ptr): Change rtl to set reg a7.
* config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
        * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
        as a SET pattern.

From-SVN: r62730
2003-02-11 21:42:31 +00:00
John David Anglin
16ddb59931 Add missing log entry from commit.
From-SVN: r62729
2003-02-11 21:28:29 +00:00
Richard Henderson
a81f80bc9c Fix double applied patch.
From-SVN: r62728
2003-02-11 13:26:48 -08:00
Roger Sayle
da52a0694b * builtins.c: Fix failures caused by commit of the wrong patch.
From-SVN: r62727
2003-02-11 21:15:26 +00:00
Dale Johannesen
d58f65843b ra-build.c (compare_and_free_webs): Relax checking.
2003-02-11  Dale Johannesen  <dalej@apple.com>
        * ra-build.c (compare_and_free_webs):  Relax checking.
        * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
        (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.

From-SVN: r62724
2003-02-11 20:58:36 +00:00
Ranjit Mathew
668ec08303 2003-02-11 Ranjit Mathew <rmathew@hotmail.com>
* java/io/natFileDescriptorWin32.cc
	(java::io::FileDescriptor::read): Return -1 (EOF) if ReadFile( )
	returns with Win32 error code ERROR_BROKEN_PIPE.

From-SVN: r62722
2003-02-11 20:55:26 +00:00
John David Anglin
2026dcf90a inclhack.def (hpux_long_double, [...]): New hacks.
* inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
	hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
	* fixincl.x: Rebuilt.
	* tests/base/stdlib.h: Update.
	* tests/base/ctype.h: New file.

From-SVN: r62718
2003-02-11 20:43:41 +00:00
Falk Hueffner
22fd5743d9 re PR rtl-optimization/9651 ([Alpha] FPE with NAN in spite of isnan protection)
PR optimization/9651
        * rtlanal.c (may_trap_p): Handle FIX.

From-SVN: r62717
2003-02-11 12:43:06 -08:00
Dave Jones
3462df6282 i386.c (override_options): Define c3-2 as a 686 with SSE.
* config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
        * doc/invoke.texi: Extra alias.

From-SVN: r62716
2003-02-11 12:41:13 -08:00
Geoffrey Keating
a693fbb9f7 * config/rs6000/host-darwin.c: Fix comment.
From-SVN: r62715
2003-02-11 20:39:07 +00:00
David Edelsohn
bb157ff4ee rs6000.md (divmodsi4): Use register_operand predicate for mod result.
* config/rs6000/rs6000.md (divmodsi4): Use register_operand
        predicate for mod result.

From-SVN: r62714
2003-02-11 15:38:28 -05:00
Scott Snyder
74db146134 re PR libstdc++/9659 (3.3/3.4 seekoff overload problem with optimization)
2003-02-11  Scott Snyder  <snyder@fnal.gov>

	PR libstdc++/9659
	* include/bits/fstream.tcc (seekoff): Avoid operator+
	for pos_type.

From-SVN: r62712
2003-02-11 19:53:51 +00:00
Jan Hubicka
6f0d35660b * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
From-SVN: r62711
2003-02-11 19:47:30 +00:00
Richard Henderson
d0a5295aa6 i386.c (ix86_expand_movstr): Fail if esi or edi appropriated as globals.
* config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
        appropriated as globals.
        (ix86_expand_clrstr): Similarly.
        * config/i386/i386.md (cmpstrsi): Similarly.

From-SVN: r62710
2003-02-11 11:44:46 -08:00
Kazu Hirata
9672132ffd * config/h8300/h8300.md (a peephole2): Add a case of 255.
From-SVN: r62709
2003-02-11 19:36:49 +00:00
Roger Sayle
b5e01d4bec optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
* optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
	(pow_optab, atan2_optab): Define corresponding macros.
	* optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
	* genopinit.c (optabs): Implement pow_optab and atan2_optab
	using pow?f3 and atan2?f3 patterns.
	* builtins.c (expand_errno_check): New function to update errno
	if necessary, split out from expand_builtin_mathfn.
	(expand_builtin_mathfn): Use expand_errno_check.
	(expand_builtin_mathfn_2): New function to handle expanding binary
	math functions, reusing the code in expand_errno_check.
	(expand_builtin): Handle the pow and atan2 math built-ins,
	BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
	expand_builtin_mathfn_2.

	* doc/md.texi: Document new pow?f3 and atan2?f3 patterns.

From-SVN: r62708
2003-02-11 19:34:11 +00:00
Andreas Tobler
290a4db981 gcconfig.h: undefine MPROTECT_VDB for MACOSX
2003-02-11  Andreas Tobler  <a.tobler@schweiz.ch>

        * include/private/gcconfig.h: undefine MPROTECT_VDB for MACOSX

From-SVN: r62705
2003-02-11 19:22:08 +01:00
Jan Hubicka
cb119f8263 combine.c (combine_simplify_rtx): Fix folding of nested float_truncates.
* combine.c (combine_simplify_rtx): Fix folding of
	nested float_truncates.

From-SVN: r62702
2003-02-11 18:05:55 +00:00
Kazu Hirata
a05566a31a * config/h8300/h8300.md (a peephole2): Fix a typo.
From-SVN: r62701
2003-02-11 17:41:33 +00:00
Michael Koch
68441a3b53 2003-02-11 Michael Koch <konqueror@gmx.de>
* Makefile.in
       (libgcj_la_OBJECTS): Removed natSelctorImpl.la.

From-SVN: r62700
2003-02-11 15:41:31 +00:00
Richard Earnshaw
20ae45006f arm.mc (return_address_mask): Use CC_REGNUM for the condition code register number.
* arm.mc (return_address_mask): Use CC_REGNUM for the condition code
register number.

From-SVN: r62699
2003-02-11 14:44:35 +00:00
Kazu Hirata
717d8b714b h8300-protos.h: Add a prototype for gtuleu_operator.
* config/h8300/h8300-protos.h: Add a prototype for
	gtuleu_operator.
	* config/h8300/h8300.c (gtuleu_operator): New.
	* config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
	* config/h8300/h8300.md (a peephole2): New.

From-SVN: r62696
2003-02-11 13:43:20 +00:00
Jan Hubicka
e36e8f526d * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
From-SVN: r62694
2003-02-11 12:33:52 +00:00