Commit Graph

32634 Commits

Author SHA1 Message Date
Tom Tromey
5472d1951a MenuContainer.java: Fixed typo.
* java/awt/MenuContainer.java: Fixed typo.

	* Makefile.in: Rebuilt.
	* Makefile.am (awt_java_source_files): Added SystemColor.java.
	* java/awt/SystemColor.java: New file.

	* java/awt/Color.java (rgba): Now package-private.

	* java/awt/event/InputEvent.java (isAltGraphDown): New method.

	* java/awt/event/ContainerEvent.java (getContainer): Renamed from
	getComponent.

	* java/awt/MenuItem.java (addNotify): New method.
	(MenuItem(String,MenuShortcut)): New constructor.
	(setLabel): Notify peer of change.
	(setEnabled): Likewise.

	* java/awt/GridLayout.java (toString): New method.

	* java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
	(FlowLayout): Check for LEADING and TRAILING.
	(setAlignment): Likewise.
	(layoutContainer): Handle component orientation.

	* java/awt/Component.java (orientatin): New field.
	(setComponentOrientation): Wrote.
	(getComponentOrientation): Wrote.

	* java/awt/Event.java (Event): Implements Serializable.
	(consumed): New field for serialization.
	* java/awt/Dimension.java (Dimension): Implements Serializable.
	* java/awt/Cursor.java (Cursor): Implements Serializable.
	* java/awt/Container.java (Container): No longer abstract.

	* java/awt/Choice.java: Wrote.
	* java/awt/Checkbox.java: Wrote.
	* java/awt/ItemSelectable.java: Documented.
	* java/awt/CheckboxGroup.java: Wrote.

	* java/awt/CardLayout.java (layoutContainer): Directly use fields
	in other classes.
	(getSize): Likewise.

From-SVN: r38486
2000-12-26 00:25:13 +00:00
Jeff Sturm
83050e0d93 FileDescriptor.java: Initialize fd to -1.
2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>

	* java/io/FileDescriptor.java: Initialize fd to -1.
	Remove default constructor.

From-SVN: r38485
2000-12-26 00:24:01 +00:00
Jeff Law
9a1a15c926 Daily bump.
From-SVN: r38484
2000-12-25 01:45:07 -07:00
Jeff Law
88d1747717 Daily bump.
From-SVN: r38483
2000-12-24 01:45:08 -07:00
Bryce McKinlay
d27fd99a03 Shorten primitive array allocation path:
* decl.c (init_decl_processing): Use _Jv_NewPrimArray not _Jv_NewArray
        to create new primitive arrays.
        * expr.c (build_newarray): If generating native code, call
        soft_newarray_node with a reference to the primitive TYPE identifier
        instead of type_value.

From-SVN: r38482
2000-12-24 00:43:40 +00:00
Joseph Myers
93b0dee779 * java/lang/mprec.h: Change C9X reference to refer to C99.
From-SVN: r38481
2000-12-23 23:38:51 +00:00
Marek Michalkiewicz
33d5e2dcda avr.c (out_movqi_r_mr, [...]): Use %o instead of %4 in output templates...
* config/avr/avr.c (out_movqi_r_mr, out_movhi_r_mr, out_movsi_r_mr,
	out_movsi_mr_r, out_movqi_mr_r, out_movhi_mr_r): Use %o instead of
	%4 in output templates, do not modify operands passed by the caller.

From-SVN: r38480
2000-12-23 22:58:17 +03:00
Jason Merrill
dee75dd556 xfail
From-SVN: r38479
2000-12-23 05:32:15 -05:00
Jeff Law
c60162c91d Daily bump.
From-SVN: r38478
2000-12-23 01:45:11 -07:00
Benjamin Kosnik
a40ba78e55 Makefile.am (CSTD_INCLUDES): Change from CSHADOW_INCLUDES.
2000-12-23  Benjamin Kosnik  <bkoz@redhat.com>

	* src/Makefile.am (CSTD_INCLUDES): Change from CSHADOW_INCLUDES.
	(strstream.cc): Add special rule for deprecated files.
	* libsupc++/Makefile.am (INCLUDES): Sync.
	* acinclude.m4 (GLIBCPP_EXPORT_INCLUDES): And here.

	Reported by Fred Fish  <fnf@ninemoons.com>
	* include/backward/iomanip.h: Remove backward from include
	* include/backward/strstream.h: Same.
	* include/backward/stream.h: Same.
	* include/backward/ostream.h: Same.
	* include/backward/istream.h: Same.
	* src/strstream.cc: And here.

	Reported by  Brad Garcia  <bgarcia@laurelnetworks.com>
	* src/string-inst.cc (_S_find): Use generic template.
	* include/bits/string.tcc (_S_find): Remove specializations

From-SVN: r38477
2000-12-23 07:13:57 +00:00
Hans Boehm
ca5fc74676 gcj_mlc.c (GC_gcj_malloc): Don't release allocation lock twice.
2000-12-23  Hans Boehm  <Hans_Boehm@hp.com>

	* gcj_mlc.c (GC_gcj_malloc): Don't release allocation lock twice.

From-SVN: r38476
2000-12-23 02:23:27 +00:00
Joseph Myers
29b5ca410a builtins.def (BUILT_IN_LABS, [...]): Don't define.
* builtins.def (BUILT_IN_LABS, BUILT_IN_LLABS, BUILT_IN_IMAXABS):
	Don't define.
	* builtins.c (expand_builtin): Don't handle BUILT_IN_LABS,
	BUILT_IN_LLABS and BUILT_IN_IMAXABS.
	* c-common.c (c_common_nodes_and_builtins): Use BUILT_IN_ABS for
	builtin labs, llabs and imaxabs.
	(expand_tree_builtin): Don't handle BUILT_IN_LABS, BUILT_IN_LLABS
	and BUILT_IN_IMAXABS.

From-SVN: r38475
2000-12-23 00:51:20 +00:00
Joseph Myers
fc2aaf309f c-common.c (builtin_function_2): New function.
* c-common.c (builtin_function_2): New function.
	(c_common_nodes_and_builtins): Use it to define each pair (foo,
	__builtin_foo) of builtins in one place.

From-SVN: r38474
2000-12-23 00:48:08 +00:00
Jason Merrill
7e2851abe8 * typeck.c (build_binary_op): Fix pmf comparison logic.
From-SVN: r38473
2000-12-22 19:33:26 -05:00
Jason Merrill
16e42e7cff pt.c (more_specialized): Don't optimize len==0.
* pt.c (more_specialized): Don't optimize len==0.
        (fn_type_unification): If we're adding the return type, increase len.

From-SVN: r38472
2000-12-22 19:05:44 -05:00
Jason Merrill
ebb1abc3e4 * typeck.c (build_binary_op): Fix pmf comparison logic.
From-SVN: r38471
2000-12-22 18:31:55 -05:00
Joseph Myers
0692b39c5b * gccbug.in: Add libgcj and preprocessor categories.
From-SVN: r38470
2000-12-22 21:21:29 +00:00
Joseph Myers
ab461298d7 20001222-1.c: New test.
* gcc.c-torture/compile/20001222-1.c: New test.
	* gcc.c-torture/compile/20001222-1.x: Xfail.

From-SVN: r38469
2000-12-22 20:05:09 +00:00
Bernd Schmidt
394411d593 Fix error in last change
From-SVN: r38468
2000-12-22 18:40:33 +00:00
Nick Clifton
6f7ebcbb50 Prevent LR from being used by 2nd cond exec pass.
From-SVN: r38467
2000-12-22 18:22:03 +00:00
Nick Clifton
b53ef1a25f Allow the (scratch) frame pointer to be initialised from the stack pointer
plus a constant.

From-SVN: r38466
2000-12-22 17:55:09 +00:00
Jason Merrill
8230f5e236 oops
From-SVN: r38465
2000-12-22 12:05:50 -05:00
Jason Merrill
c939ca5f58 call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not DECL_STATIC_FUNCTION_P.
* call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
        DECL_STATIC_FUNCTION_P.

From-SVN: r38464
2000-12-22 11:44:22 -05:00
Bernd Schmidt
fe08a886b2 Renamer improvements.
From-SVN: r38463
2000-12-22 15:44:42 +00:00
Jason Merrill
e6fe680d2e semantics.c (genrtl_finish_function): Don't try to jump to return_label unless it exists.
* semantics.c (genrtl_finish_function): Don't try to jump to
        return_label unless it exists.

From-SVN: r38461
2000-12-22 09:51:22 -05:00
Jason Merrill
e5214479a7 In partial ordering for a call, ignore parms for which we don't have a real argument.
In partial ordering for a call, ignore parms for which we don't have
        a real argument.
        * call.c (joust): Pass len to more_specialized.
        (add_template_candidate_real): Strip 'this', pass len.
        * pt.c (more_specialized): Pass len down.  Lose explicit_args parm.
        (get_bindings_order): New fn.  Pass len down.
        (get_bindings_real): Strip 'this', pass len.
        (fn_type_unification): Likewise.
        (type_unification_real): Succeed after checking 'len' args.
        (most_specialized_instantiation): Lose explicit_args parm.
        * class.c (resolve_address_of_overloaded_function): Strip 'this',
        pass len.

From-SVN: r38460
2000-12-22 09:47:23 -05:00
Kaveh Ghazi
83ab39071b Fix typo in ChangeLog.
From-SVN: r38453
2000-12-22 12:44:28 +00:00
Kaveh R. Ghazi
fc608b0321 Makefile.in (sched-deps.o, [...]): Fix dependency typo.
* Makefile.in (sched-deps.o, sched-rgn.o): Fix dependency typo.

	* fp-bit.h (usi_to_float): Add prototype.

	* i386.c (file_info_cmp): Likewise.
	(dwarf2out_line): Hide variable `old_in_use'.

	* objc-act.c (objc_fatal): Delete.

	* sched-vis.c (visualize_stall_cycles): Remove unused variable.

	* system.h (getopt): Fix error in last change.

	* varasm.c (assemble_trampoline_template): Constify.

From-SVN: r38452
2000-12-22 12:27:36 +00:00
Jason Merrill
a545190e1f * collect2.c (main): Use auto_demangling.
From-SVN: r38451
2000-12-22 06:42:51 -05:00
Benjamin Kosnik
e63a5d07ad 000-12-22 Benjamin Kosnik <bkoz@fillmore.redhat.com>
Attempt to make locale visible in gdb.
	* include/bits/std_locale.h: Remove codecvt.h include.
	* include/bits/locale_facets.h: Add here, after ctype decls.
	* include/bits/codecvt.h: Remove std namespace, as assumed to be
	in std now.

	* include/bits/locale_facets.h: Consistently move generic static
	member definitions directly after generic facet declarations.
	* include/bits/locale_facets.tcc: From here.

	* src/locale.cc: Organize locale::id static definitions for
	required facets.
	* src/codecvt.cc (codecvt<char...>): Remove locale::id definition.
	(codecvt<wchar_t...>): Same.
	* src/localename: And here.

	* include/bits/localefwd.h (_Count_ones): Change _S_count to _M_count.
	Same for _M_halfcount.

From-SVN: r38450
2000-12-22 11:06:17 +00:00
Benjamin Kosnik
0a31609b5a Attempt to make locale visible in gdb.
2000-12-22  Benjamin Kosnik  <bkoz@fillmore.redhat.com>

	Attempt to make locale visible in gdb.
	* include/bits/std_locale.h: Remove codecvt.h include.
	* include/bits/locale_facets.h: Add here, after ctype decls.
	* include/bits/codecvt.h: Remove std namespace, as assumed to be
	in std now.

	* include/bits/locale_facets.h: Consistently move generic static
	member definitions directly after generic facet declarations.
	* include/bits/locale_facets.tcc: From here.

	* src/locale.cc: Organize locale::id static definitions for
	required facets.
	* src/codecvt.cc (codecvt<char...>): Remove locale::id definition.
	(codecvt<wchar_t...>): Same.
	* src/localename: And here.

	* include/bits/localefwd.h (_Count_ones): Change _S_count to _M_count.
	Same for _M_halfcount.
	(std): make locale::_Impl protected. CHANGE BACK

From-SVN: r38449
2000-12-22 11:03:33 +00:00
Joseph Myers
2d6fd5fd06 * release: Change some EGCS references to GCC.
From-SVN: r38448
2000-12-22 09:30:15 +00:00
Alexandre Oliva
292b48db28 * gcc.c-torture/execute/comp-goto-2.c: New test.
From-SVN: r38447
2000-12-22 08:50:26 +00:00
Jeff Law
4f50715ce0 Daily bump.
From-SVN: r38446
2000-12-22 01:45:08 -07:00
Alexandre Oliva
56b828c22c Fix typo in previous patch
From-SVN: r38445
2000-12-22 08:15:27 +00:00
Alexandre Oliva
fd81f5f608 function.c (assign_parms): Update parm's DECL_INCOMING_RTL when optimizing PARALLEL to REG.
* function.c (assign_parms): Update parm's DECL_INCOMING_RTL
when optimizing PARALLEL to REG.

From-SVN: r38444
2000-12-22 08:10:53 +00:00
Alexandre Oliva
c2651d6650 mknumeric_limits: Output to temporary files, and rename them at the end.
* mknumeric_limits: Output to temporary files, and rename them at
the end.

From-SVN: r38443
2000-12-22 08:00:00 +00:00
Bryce McKinlay
86a42a5f24 Throwable.java (trace_enabled): New static field.
* java/lang/Throwable.java (trace_enabled): New static field.
	* java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
	trace_enabled not set.
	* prims.cc (main_init): Turn off trace_enabled while creating
	default exception objects.

From-SVN: r38442
2000-12-22 06:19:24 +00:00
Graham Stott
98c17df26e reload.c (update_auto_inc_notes): New, broken out from ...
* reload.c (update_auto_inc_notes): New, broken out from ...
        (find_reloads_address_1): ... use here, also correct possible
        use of uninitialised reloadnum.

From-SVN: r38441
2000-12-22 01:25:23 +00:00
Benjamin Kosnik
98e6e789f6 configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
2000-12-21  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in: Change GLIBCPP_ENABLE_SHADOW to
	GLIBCPP_ENABLE_CHEADERS.
	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
	ENABLE_CHEADERS.  C_INCLUDE_DIR defaults to c_std from c.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* include/c: Move to ...
	* include/c_std: ...here.
	* include/c_std: Move to ...
	* include/c_shadow: ...here.
	* include/c: Repopulate, with simple headers.
	* docs/html/configopts.html: Adjust docs.

From-SVN: r38440
2000-12-22 00:27:01 +00:00
Benjamin Kosnik
74da183aea configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
2000-12-21  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in: Change GLIBCPP_ENABLE_SHADOW to
	GLIBCPP_ENABLE_CHEADERS.
	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
	ENABLE_CHEADERS.  C_INCLUDE_DIR defaults to c_std from c.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* include/c: Move to ...
	* include/c_std: ...here.
	* include/c_std: Move to ...
	* include/c_shadow: ...here.
	* include/c: Repopulate, with simple headers.
	* docs/html/configopts.html: Adjust docs.

From-SVN: r38439
2000-12-22 00:14:08 +00:00
Benjamin Kosnik
fb9affe790 configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
2000-12-21  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in: Change GLIBCPP_ENABLE_SHADOW to
	GLIBCPP_ENABLE_CHEADERS.
	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
	ENABLE_CHEADERS.  C_INCLUDE_DIR defaults to c_std from c.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* include/c: Move to ...
	* include/c_std: ...here.
	* include/c_std: Move to ...
	* include/c_shadow: ...here.
	* include/c: Repopulate, with simple headers.
	* docs/html/configopts.html: Adjust docs.

From-SVN: r38438
2000-12-22 00:04:33 +00:00
Benjamin Kosnik
1aa040fc77 configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
2000-12-21  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in: Change GLIBCPP_ENABLE_SHADOW to
	GLIBCPP_ENABLE_CHEADERS.
	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
	ENABLE_CHEADERS.  C_INCLUDE_DIR defaults to c_std from c.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* include/c: Move to ...
	* include/c_std: ...here.
	* include/c_std: Move to ...
	* include/c_shadow: ...here.
	* include/c: Repopulate, with simple headers.
	* docs/html/configopts.html: Adjust docs.

From-SVN: r38437
2000-12-21 23:58:35 +00:00
Benjamin Kosnik
2b8c76ef65 configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
2000-12-21  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in: Change GLIBCPP_ENABLE_SHADOW to
	GLIBCPP_ENABLE_CHEADERS.
	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
	ENABLE_CHEADERS.  C_INCLUDE_DIR defaults to c_std from c.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* include/c: Move to ...
	* include/c_std: ...here.
	* include/c_std: Move to ...
	* include/c_shadow: ...here.
	* include/c: Repopulate, with simple headers.
	* docs/html/configopts.html: Adjust docs.

From-SVN: r38436
2000-12-21 23:54:19 +00:00
David O'Brien
78abb7b151 freebsd.h (LIB_SPEC): remove -kthread option.
2000-12-21  David O'Brien  <obrien@FreeBSD.org>

	* config/freebsd.h (LIB_SPEC): remove -kthread option.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20001220004807.C20358@redhat.com>

From-SVN: r38435
2000-12-21 23:18:56 +00:00
Benjamin Kosnik
8358c2c297 configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
2000-12-21  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in: Change GLIBCPP_ENABLE_SHADOW to
	GLIBCPP_ENABLE_CHEADERS.
	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
	ENABLE_CHEADERS.  C_INCLUDE_DIR defaults to c_std from c.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* include/c: Move to ...
	* include/c_std: ...here.
	* include/c_std: Move to ...
	* include/c_shadow: ...here.
	* include/c: Repopulate, with simple headers.
	* docs/html/configopts.html: Adjust docs.

From-SVN: r38434
2000-12-21 23:15:18 +00:00
J"orn Rennecke
ee4fca5842 * gcc.c-torture/execute/20000822-1.c: Check for NO_TRAMPOLINES.
From-SVN: r38433
2000-12-21 23:05:55 +00:00
Benjamin Kosnik
e3123ab3ba configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
2000-12-21  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in: Change GLIBCPP_ENABLE_SHADOW to
	GLIBCPP_ENABLE_CHEADERS.
	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
	ENABLE_CHEADERS.  C_INCLUDE_DIR defaults to c_std from c.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* include/c: Move to ...
	* include/c_std: ...here.
	* include/c_std: Move to ...
	* include/c_shadow: ...here.
	* include/c: Repopulate, with simple headers.
	* docs/html/configopts.html: Adjust docs.

From-SVN: r38432
2000-12-21 22:52:51 +00:00
J"orn Rennecke
3546ef587f comp-goto-1.c (uint32, sint32): Use long types if __INT_MAX__ is 32767.
* gcc.c-torture/execute/comp-goto-1.c (uint32, sint32):
	Use long types if __INT_MAX__ is 32767.
	(main): Use cast to (sint32 *) when poking 88 into a_page.

From-SVN: r38431
2000-12-21 22:50:12 +00:00
Benjamin Kosnik
d8147b1eb1 configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
2000-12-21  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in: Change GLIBCPP_ENABLE_SHADOW to
	GLIBCPP_ENABLE_CHEADERS.
	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
	ENABLE_CHEADERS.  C_INCLUDE_DIR defaults to c_std from c.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* include/c: Move to ...
	* include/c_std: ...here.
	* include/c_std: Move to ...
	* include/c_shadow: ...here.
	* include/c: Repopulate, with simple headers.
	* docs/html/configopts.html: Adjust docs.

From-SVN: r38430
2000-12-21 22:46:27 +00:00