Commit Graph

42100 Commits

Author SHA1 Message Date
Stephane Carrez
e8766a3973 larith.asm (__map_data_section): Fix condition and optimize for size.
* config/m68hc11/larith.asm (__map_data_section): Fix condition
	and optimize for size.
	(__do_global_ctors): Fix pointer comparison.
	(__do_global_dtors): Likewise.

From-SVN: r52086
2002-04-09 20:53:50 +02:00
Tom Tromey
42aacdfbb8 * win32.cc (_Jv_platform_initProperties): Use GetTempPath.
From-SVN: r52084
2002-04-09 17:44:32 +00:00
Jason Merrill
02f136ee0d re PR rtl-optimization/6189 (Regression from 3.0.x: g++ -O3 generates wrong code)
PR optimization/6189
        * semantics.c (genrtl_start_function): Don't free
        DECL_SAVED_FUNCTION_DATA for inline functions.

[[Split portion of a mixed commit.]]

From-SVN: r52083.2
2002-04-09 13:02:43 -04:00
Jason Merrill
edf5cd1d1d re PR rtl-optimization/6189 (Regression from 3.0.x: g++ -O3 generates wrong code)
PR optimization/6189
        * semantics.c (genrtl_start_function): Don't free
        DECL_SAVED_FUNCTION_DATA for inline functions.

From-SVN: r52082
2002-04-09 13:01:59 -04:00
David S. Miller
f451b552cf sparc.c (sparc_extra_constraint_check): New function, implementing EXTRA_CONSTRAINTS.
2002-04-09  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.c (sparc_extra_constraint_check): New
	function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
	allow reloading pseudos.
	* config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
	* config/sparc/sparc-protos.h: Declare it.

	* config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
	unsigned comparison warning.
	(output_restore_regs): Mark leaf_function as unused.

From-SVN: r52080
2002-04-09 07:52:03 -07:00
Jason Merrill
cd6af0c13a init.c (build_member_call): For now, don't convert to intermediate base if it would cause an error.
* init.c (build_member_call): For now, don't convert to
        intermediate base if it would cause an error.

From-SVN: r52078
2002-04-09 09:59:59 -04:00
Richard Kenner
1ce7f3c2ab expr.c (is_aligning_offset): New function.
* expr.c (is_aligning_offset): New function.
	(expand_expr, case COMPONENT_EXPR): Call it.

From-SVN: r52077
2002-04-09 09:41:58 -04:00
Benjamin Kosnik
dcf5a5dec8 sstream.tcc: Clean up bit ops.
2002-04-09  Benjamin Kosnik  <bkoz@redhat.com>
	    Richard Henderson  <rth@redhat.com>

	* include/bits/sstream.tcc: Clean up bit ops.
	* include/bits/fstream.tcc: Same.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r52070
2002-04-09 08:48:33 +00:00
Jakub Jelinek
b0396e3b6c locale_facets.h (__num_base::_S_scale_hex): Remove.
2002-04-09  Jakub Jelinek  <jakub@redhat.com>

	* include/bits/locale_facets.h (__num_base::_S_scale_hex): Remove.
	(__num_base::_S_scale_oct): Remove.
	* src/locale.cc (__num_base::_S_scale_hex): Remove.
	(__num_base::_S_scale_oct): Remove.

From-SVN: r52068
2002-04-09 08:00:08 +00:00
Benjamin Kosnik
1cb7f91f86 bitset_members.cc: New test.
2002-04-09  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/6124
	* testsuite/23_containers/bitset_members.cc: New test.
	* include/std/std_bitset.h (_Bit_count::_S_bit_count): Move..
	(_S_bit_count): Here.
	(_First_one::_S_first_one): Move...
	(_S_first_one): Here.
	Format.
	* src/bitset.cc: Adjust.
	* config/linker-map.gnu: Export.

From-SVN: r52066
2002-04-09 07:35:31 +00:00
GCC Administrator
e70ed0d9a5 Daily bump.
From-SVN: r52064
2002-04-09 07:17:26 +00:00
Hans-Peter Nilsson
ed426a38ad Fix ChangeLog date
From-SVN: r52059
2002-04-09 07:08:23 +00:00
Hans-Peter Nilsson
0bd9dd55a7 re PR objc/6107 (sparc-sun-solaris2.7 gcc-3.1 extra objc testsuite failures w/-m64)
PR objc/6107
	* objc/objc-api.h (struct objc_protocol_list): Change type of
	member count from int to size_t.

From-SVN: r52058
2002-04-09 07:06:18 +00:00
Benjamin Kosnik
b988dfc58f fstream.tcc (filebuf::seekpos): Fix.
2002-04-08  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/5180
	* include/bits/fstream.tcc (filebuf::seekpos): Fix.
	* include/std/std_fstream.h: Clean.
	* include/bits/ostream.tcc: Remove extraneous variables.
	* include/bits/sstream.tcc (stringbuf::seekoff): Be strict about
	open modes and which modes.
	(stringbuf::seekpos): Same.
	* testsuite/27_io/stringbuf_virtuals.cc: New tests.

From-SVN: r52057
2002-04-09 06:14:32 +00:00
Bryce McKinlay
973348ec02 re PR java/6204 (gcj generates invalid byte code)
* libjava.lang/PR6204.java, libjava.lang/PR6204.out: New test case.
	* libjava.lang/PR6085.java, libjava.lang/PR6085.out: Likewise.

From-SVN: r52056
2002-04-09 06:25:11 +01:00
Loren J. Rittle
e285b25952 * include/private/gcconfig.h (DATAEND): Clarify comment.
From-SVN: r52054
2002-04-09 01:35:21 +00:00
Hans Boehm
787bf7e377 gc_priv.h (WARN macro): Add "GC warning:" prefix.
* include/private/gc_priv.h (WARN macro): Add "GC warning:" prefix.
	(GC_large_alloc_warn_interval, GC_large_alloc_warn_suppressed):
	declare.
	* allchblk.c (GC_allchblk_nth): Change text and support reduced
	frequency for blacklist warning message.
	* misc.c (GC_large_alloc_warn_interval,
	GC_large_alloc_warn_suppressed): define.
	(GC_init_inner): Check GC_NO_BLACKLIST_WARNING and
	GC_LARGE_ALLOC_WARN_INTERVAL environment variables.
	* doc/README.environment (GC_NO_BLACKLIST_WARNING): Deprecate.
	(GC_LARGE_ALLOC_WARN_INTERVAL): Add documentation.

	* dyn_load.c (_DYNAMIC): Move declaration to file scope.

From-SVN: r52053
2002-04-09 00:39:16 +00:00
Hans Boehm
cc382e5c1a java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE correctly.
* src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
	correctly.
	* src/ia64/unix.S: Add unwind information. Fix comments.
	Save sp in a way that's compatible with unwind info.
	(ffi_call_unix): Correctly restore sp in all cases.
	* src/ia64/ffi.c: Add, fix comments.

From-SVN: r52048
2002-04-08 23:59:13 +00:00
Hans-Peter Nilsson
613bacac4a Fix commit goof: s/istarget/ishost/ for host
From-SVN: r52047
2002-04-08 23:16:17 +00:00
Hans-Peter Nilsson
a19caa8896 980628-4.x, [...]: New, xfail cross-endian tests.
* g77.f-torture/execute/980628-4.x,
	g77.f-torture/execute/980628-5.x,
	g77.f-torture/execute/980628-6.x, g77.f-torture/execute/alpha2.x,
	g77.f-torture/execute/auto0.x, g77.f-torture/execute/auto1.x,
	g77.f-torture/compile/alpha1.x: New, xfail cross-endian tests.

From-SVN: r52046
2002-04-08 22:49:02 +00:00
Hans-Peter Nilsson
adb563c471 Make-lang.in (f/target.o): Depend on diagnostic.h.
* Make-lang.in (f/target.o): Depend on diagnostic.h.
	* target.c: Include diagnostic.h.
 	(ffetarget_memcpy_): Call sorry if host and target endians are
	not matching.

From-SVN: r52043
2002-04-08 22:20:39 +00:00
Jakub Jelinek
dc79864588 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
From-SVN: r52041
2002-04-08 22:24:17 +02:00
Tom Tromey
90def2b26c re PR libgcj/6068 (libgcj build picks up libgcj.spec from install tree)
* configure.in: Add FLAGS_FOR_TARGET to GCJ_FOR_TARGET.
	Fixes PR libgcj/6068.

From-SVN: r52038
2002-04-08 18:57:57 +00:00
Tom Tromey
6613372140 For PR libgcj/5303:
* .cvsignore: Added rmic.1 and rmiregistry.1.
	* gcj.texi (Top): Link to new nodes.
	(Invoking rmic): New node.
	(Invoking rmiregistry): Likewise.
	* Make-lang.in (java.generated-manpages): Added rmic.1 and
	rmiregistry.1.
	(java.maintainer-clean): Likewise.
	($(srcdir)/java/rmic.1): New target.
	($(srcdir)/java/rmiregistry.1): Likewise.
	(java.install-man): Handle rmic.1 and rmiregistry.1.

From-SVN: r52035
2002-04-08 18:32:23 +00:00
David S. Miller
7a31a340a1 re PR target/6082 (memory model wrong for FreeBSD/sparc64)
2002-04-08  David S. Miller  <davem@redhat.com>

	PR target/6082
	* config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW

	Make init_priority work on Sparc when using GNU ld.
	* config/sparc/linux.h, config/sparc/linux64.h,
	config/sparc/netbsd-elf.h, config/sparc/freebsd.h
	(CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
	* config/sparc/sol2-gld.h: New file to do the same.
	* config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
	sparc/sol2-gld.h to tm_file.

	PR optimization/4328
	* config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
	* doc/md.texi: Document it.
	* config/sparc/sparc.md (movdi_insn_sp64_novis,
	movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
	movdf_insn_v9only_vis, movdf_insn_sp64_novis,
	movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
	* config/sparc/sparc.c (mem_min_alignment): Fix comment.

From-SVN: r52031
2002-04-08 10:20:48 -07:00
Andreas Jaeger
11579f33b9 Revert last patch from Richard Henderson.
From-SVN: r52029
2002-04-08 19:09:50 +02:00
Alberto Biancardi
62afca269c re PR libgcj/6187 (method distance of class java.awt.geom.Point2D causes infinite recursion)
2002-04-08  Alberto Biancardi  <alberto.biancardi@unipv.it>

	Fix for PR libgcj/6187:
	* java/awt/geom/Point2D.java (distance): Call distanceSq, not
	distance.

From-SVN: r52027
2002-04-08 14:43:35 +00:00
Paolo Carlini
224e6091b4 parse.y (namespace_qualifier, [...]): Add ending ';', in accordance with POSIX.
2002-04-08  Paolo Carlini  <pcarlini@unitus.it>

	* parse.y (namespace_qualifier, maybe_identifier,
	begin_explicit_instantiation, end_explicit_instantiation,
	apparent_template_type, .finish_template_type,
	do_id, maybe_init, defarg_again, component_decl_1):
	Add ending ';', in accordance with POSIX.

From-SVN: r52026
2002-04-08 12:29:38 +00:00
Gerald Pfeifer
b57215d9bd contrib.texi (Contributors): Add John David Anglin and Loren J. Rittle (the latter also to Testers).
* doc/contrib.texi (Contributors): Add John David Anglin and Loren
	J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
	* doc/contrib.texi (Contributors): Add David O'Brien.

From-SVN: r52024
2002-04-08 12:07:37 +00:00
Bryce McKinlay
00b224f8b1 gcj.texi (Invocation): Update JvAttachCurrentThread documentation.
* gcj.texi (Invocation): Update JvAttachCurrentThread documentation.
	Add note about handling uncaught exceptions. Add an exception handler
	to example.

From-SVN: r52022
2002-04-08 13:03:02 +01:00
Alan Modra
fc06c4b207 Oops, commit right file.
From-SVN: r52021
2002-04-08 18:24:50 +09:30
Alan Modra
534d0cc0d4 configure.in (auto-build.h): Use target_alias and build_alias when running configure.
* configure.in (auto-build.h): Use target_alias and build_alias
	when running configure.
	(gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
	(gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
	* configure: Regenerate.

From-SVN: r52020
2002-04-08 18:23:48 +09:30
GCC Administrator
3f7fe9b9cf Daily bump.
From-SVN: r52019
2002-04-08 07:17:01 +00:00
Bryce McKinlay
0b055ea1d8 parse.y (resolve_qualified_expression_name): Clear "from_super" flag after using it to patch CALL_EXPR.
* parse.y (resolve_qualified_expression_name): Clear "from_super" flag
	after using it to patch CALL_EXPR.

From-SVN: r52015
2002-04-08 07:41:36 +01:00
Bryce McKinlay
92c76eba66 * gcj.texi (Invocation): Document CNI invocation API.
From-SVN: r52012
2002-04-08 07:37:26 +01:00
David S. Miller
19fe522aa3 config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2002-04-07  David S. Miller  <davem@redhat.com>

	* config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.

From-SVN: r52011
2002-04-07 17:30:07 -07:00
Mark Wielaard
ecc2337579 AbstractMap.java (putAll): Use entrySet size.
* java/util/AbstractMap.java (putAll): Use entrySet size.
	(toString): Explicitly use getKey() and getValue().

From-SVN: r52008
2002-04-08 00:23:28 +00:00
Mark Wielaard
298f6e4bdc xfails: Add CASE_INSENSITIVE_ORDER...
* libjava.mauve/xfails: Add CASE_INSENSITIVE_ORDER, result was
    unspecified and test should be updated to match latest spec.
    Add AcuniaPropertiesTest, known bug #6219. Add test_getClassLoader,
    what we do seems to be not really right or wrong.

From-SVN: r52006
2002-04-07 22:33:09 +00:00
John David Anglin
bf2d0b8e62 re PR c++/5933 (HP-UX: broken MI of virtual classes)
PR 5933
	* pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
	generating 32-bit pic code.

From-SVN: r52004
2002-04-07 21:29:01 +00:00
Franz Sirl
eeec38a804 re PR rtl-optimization/6086 (Reload misoptimizes DImode PREINC on PPC)
2002-04-07  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	PR optimization/6086
	* g++.dg/opt/preinc1.C: New test.

From-SVN: r52001
2002-04-07 18:23:19 +00:00
Mark Wielaard
0dccd146ba Hashtable.java (contains): Remove NullPointer check.
* java/util/Hashtable.java (contains): Remove NullPointer check.
        (containsValue): Add NullPointer check.
        (remove): Always throw NullPointerException when key is null.

From-SVN: r51994
2002-04-07 12:18:58 +00:00
Bryce McKinlay
3b1d8b3be3 typo
From-SVN: r51991
2002-04-07 12:30:35 +01:00
Adam King
455cd615c2 natSystem.cc (init_properties): Call new function _Jv_platform_initProperties.
2002-04-07  Adam King <aking@dreammechanics.com>

	* java/lang/natSystem.cc (init_properties): Call new function
	_Jv_platform_initProperties.
	* win32 (_Jv_platform_initProperties): New function that adds Win32
	support for the System properties os.name, os.arch, os.version,
	user.name, user.home, and user.dir.
	* include/posix.h, include/win32.h, posix.cc: New function
	_Jv_platform_initProperties.

From-SVN: r51989
2002-04-07 12:27:00 +01:00
Mark Wielaard
1abbe5b516 mauve.exp: Use libgcj.jar not libgcj.zip.
* libjava.mauve/mauve.exp: Use libgcj.jar not libgcj.zip.
	* libjava.mauve/xfails: add Character.classify12 (number 1),
	Character.getType (number 11), Character.getType (number 20) and
	Character.getType (number 22). We implement 1.4 Character.

From-SVN: r51987
2002-04-07 09:21:27 +00:00
GCC Administrator
197e436aea Daily bump.
From-SVN: r51986
2002-04-07 08:16:51 +00:00
Mark Wielaard
e45a3a5910 * java/lang/Character,java (isDefined): getType() != UNASSIGNED.
From-SVN: r51982
2002-04-07 07:45:06 +00:00
Mark Wielaard
236fc6a041 ArrayList.java (addAll(int,Collection)): System.arraycopy all of the remaining elements.
* java/util/ArrayList.java (addAll(int,Collection)): System.arraycopy
        all of the remaining elements.
        * java/util/Vector.java (addAll(int,Collection)): Likewise.
        (removeRange): If toIndex == fromIndex do
        nothing, if toIndex < fromIndex throw IndexOutIfBoundsException.
        (removeAll): Always throw NullPointerException when collection is
        null.
        (retrainAll): Likewise.

From-SVN: r51979
2002-04-07 07:40:49 +00:00
Mark Mitchell
0154eaa812 re PR c++/5571 (crash in initialization of a static variable)
PR c++/5571
	* stor-layout.c (layout_decl): Reset the RTL for the decl.

	* class.c (layout_class_type): Remember incomplete static
	variables.
	(finish_struct_1): Call complete_vars, not
	hack_incomplete_structures.
	* cp-tree.h (hack_incomplete_structures): Rename to ...
	(complete_vars): ... this.
	(struct saved_scope): Remove incomplete.
	(namespace_scope_incomplete): Remove.
	* decl.c (struct binding_level): Remove incomplete.
	(incomplete_vars): New variable.
	(mark_binding_level): Don't mark incomplete.
	(print_binding_level): Don't print it.
	(mark_saved_scope): Don't mark incomplete.
	(pushdecl): Use maybe_register_incopmlete_var.
	(cxx_init_decl_processing): Register incomplete_vars for GC.
	(start_decl_1): Clarify error message.
	(hack_incomplete_vars): Remove.
	(maybe_register_incomplete_var): New function.
	(complete_vars): Likewise.

	* g++.dg/opt/static2.C: New test.

From-SVN: r51978
2002-04-07 06:09:27 +00:00
Jason Thorpe
da00eaab0b configure.in (alpha*-*-netbsd*): Add target.
* configure.in (alpha*-*-netbsd*): Add target.
* configure: Regenerate.

From-SVN: r51976
2002-04-07 04:19:31 +00:00
Jason Thorpe
477cdac754 cppinit.c (cpp_create_reader): Initialize discard_comments_in_macro_exp.
* cppinit.c (cpp_create_reader): Initialize
discard_comments_in_macro_exp.
(COMMAND_LINE_OPTIONS): Add "-CC" option.
(cpp_handle_option): Handle "-CC" option.
* cpplex.c (save_comment): If saving a C++ comment in
a directive, convert it to a C comment.
(_cpp_lex_direct): Pass second comment start character to
save_comment to indicate comment type.
* cpplib.c (_cpp_handle_directive): If processing
a "#define" directive and discard_comments_in_macro_exp
is false,  re-enable saving of comments.
(lex_macro_node): If discard_comments_in_macro_exp is false,
discard any comments before the macro identifier.
* cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
member.
* cppmacro.c (cpp_get_token): If expanding a macro while
processing a directive, discard any comments we might encounter.
(parse_params): If discard_comments_in_macro_exp is false,
ignore comments in the macro parameter list.
* gcc.c (cpp_unique_options): Add "-CC" option.
(option_map): Map "--comments-in-macros" to "-CC".
* doc/cppopts.texi: Document "-CC" option.
* f/lang-specs.h: Add "-CC" option.
* testsuite/gcc.dg/cpp/maccom1.c: New test.
* testsuite/gcc.dg/cpp/maccom2.c: New test.
* testsuite/gcc.dg/cpp/maccom3.c: New test.
* testsuite/gcc.dg/cpp/maccom4.c: New test.
* testsuite/gcc.dg/cpp/maccom5.c: New test.
* testsuite/gcc.dg/cpp/maccom6.c: New test.

From-SVN: r51975
2002-04-07 03:12:23 +00:00