Commit Graph

47940 Commits

Author SHA1 Message Date
Kazu Hirata 590734b654 h8300-protos.h: Update the prototype for split_adds_subs.
* config/h8300/h8300-protos.h: Update the prototype for
	split_adds_subs.  Remove the prototypes for
	const_int_le_2_operand and const_int_le_6_operand.
	* config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
	(const_int_le_2_operand): Remove.
	(const_int_le_6_operand): Likewise.
	* config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
	for const_int_le_2_operand and const_int_le_6_operand.
	* config/h8300/h8300.md: Update all uses of split_adds_subs.
	(a peephole2): New.

From-SVN: r63103
2003-02-19 12:53:32 +00:00
Michael Koch 681979f075 2003-02-19 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/ByteBufferImpl.java
	(ByteBufferImpl): Renamed two variables.
	* gnu/java/nio/CharBufferImpl.java
	(CharBufferImpl): Renamed two variables.
	* gnu/java/nio/DoubleBufferImpl.java
	(DoubleBufferImpl): Renamed two variables.
	* gnu/java/nio/FloatBufferImpl.java
	(FloatBufferImpl): Renamed two variables.
	* gnu/java/nio/IntBufferImpl.java
	(IntBufferImpl): Renamed two variables.
	* gnu/java/nio/LongBufferImpl.java
	(LongBufferImpl): Renamed two variables.
	* gnu/java/nio/ShortBufferImpl.java
	(ShortBufferImpl): Renamed two variables.
	* java/nio/CharBuffer.java
	(wrap): Fixed arguments to CharBufferImpl constructor.
	(hasArray): Only not read-only buffers have backing arrays.
	(length): Documentation added.
	(subSequence): Documentation added.
	* java/nio/DoubleBuffer.java
	(hasArray): Only not read-only buffers have backing arrays.
	* java/nio/FloatBuffer.java
	(hasArray): Only not read-only buffers have backing arrays.
	* java/nio/IntBuffer.java
	(hasArray): Only not read-only buffers have backing arrays.
	* java/nio/LongBuffer.java
	(hasArray): Only not read-only buffers have backing arrays.
	* java/nio/ShortBuffer.java
	(hasArray): Only not read-only buffers have backing arrays.

From-SVN: r63101
2003-02-19 11:47:49 +00:00
Michael Koch 0887aae1eb 2003-02-19 Michael Koch <konqueror@gmx.de>
* javax/accessibility/AccessibleContext.java
	(ACCESSIBLE_DESCRIPTION_PROPERTY): Fixed typo.

From-SVN: r63100
2003-02-19 11:44:23 +00:00
Michael Koch d8193b851c ScrollPaneAdjustable.java: Reformated.
2003-02-19  Michael Koch  <konqueror@gmx.de>

	* java/awt/ScrollPaneAdjustable.java: Reformated.

From-SVN: r63099
2003-02-19 11:41:16 +00:00
Jan Hubicka c001c39bbb cgraph.c (NPREDECESORC, [...]): Kill.
* cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
	(cgraph_expand_function): Rewrite.

	* gcc.dg/funcorder.c: New test.

From-SVN: r63098
2003-02-19 10:24:56 +00:00
Michael Koch 8d928fb140 2003-02-19 Michael Koch <konqueror@gmx.de>
* gnu/awt/j2d/Graphics2DImpl.java
	(getFontRenderContext): New method.
	(drawGlyphVector): New method.
	* java/awt/Graphics2D.java
	(getFontRenderContext): New abstract method.
	(drawGlyphVector): New abstract method.

From-SVN: r63097
2003-02-19 09:46:43 +00:00
Matt Austern 2f51bb1d5a toplev.c, [...]: Move write_global_declarations from toplev.c to langhooks.c.
* toplev.c, langhooks.c, langhooks-def.h: Move
	write_global_declarations from toplev.c to langhooks.c.

From-SVN: r63094
2003-02-19 05:39:06 +00:00
Kazu Hirata ff6e1a2f26 h8300.c (general_operand_src): Always check MODE.
* config/h8300/h8300.c (general_operand_src): Always check
	MODE.
	(general_operand_dst): Likewise.
	* gcc.c-torture/execute/20030218-1.c: New.

From-SVN: r63091
2003-02-19 04:36:44 +00:00
Aldy Hernandez 2104fa743d fix stupidity on previous commit.
From-SVN: r63090
2003-02-19 04:32:44 +00:00
Aldy Hernandez 67aa8289e8 * gcc.dg/20030218-1.c: New.
From-SVN: r63089
2003-02-19 04:30:10 +00:00
Zack Weinberg 860c9ea661 search.c (grow_bfs_bases): New subroutine of bfs_walk.
* cp/search.c (grow_bfs_bases): New subroutine of bfs_walk.
	(bfs_walk): Rewritten using circular queue of BINFO_BASETYPES
	vectors, for speed.

From-SVN: r63088
2003-02-19 04:27:47 +00:00
Roger Sayle 78bd5210e7 convert.c (convert_to_real): Also optimize (float)log(x) into logf(x) where x is a float, i.e.
* convert.c (convert_to_real): Also optimize (float)log(x) into
	logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.

From-SVN: r63087
2003-02-19 03:39:30 +00:00
Bruce Korb 34fcb7c802 mark the fixes that fail testing with BSD based sed-s
From-SVN: r63086
2003-02-19 02:38:22 +00:00
Bruce Korb afc41460c2 reordered fixes
From-SVN: r63085
2003-02-19 02:37:29 +00:00
Kaz Kojima 9f3a9a0809 sh.c (unspec_caller_rtx_p): New.
* config/sh/sh.c (unspec_caller_rtx_p): New.
	(sh_cannot_copy_insn_p): New.
        (TARGET_CANNOT_COPY_INSN_P): New.

From-SVN: r63084
2003-02-19 02:15:04 +00:00
Richard Henderson d7ddbe241a c-common.c (handle_used_attribute): Accept static data too.
* c-common.c (handle_used_attribute): Accept static data too.

        * gcc.dg/attr-invalid.c: Allow __used__ on static data.
        * gcc.dg/attr-used-2.c: New.

From-SVN: r63082
2003-02-18 18:07:06 -08:00
Bruce Korb 05e9e0a570 Sort the fixes by fix name
From-SVN: r63081
2003-02-19 02:06:11 +00:00
Nick Clifton 62e1dfcf2f 20030218-1.c: New.
2003-02-18  Nick Clifton  <nickc@redhat.com>
            Aldy Hernandez  <aldyh@redhat.com>

        * testsuite/gcc.dg/20030218-1.c: New.

        * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.

        * target-def.h (TARGET_INITIALIZER): Add
        TARGET_VECTOR_TYPES_COMPATIBLE.
        (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.

        * target.h (struct gcc_target): Add field vector_types_compatible.

        * c-typeck.c (comptypes): Take into account
        TARGET_VECTOR_TYPES_COMPATIBLE.
        (convert_for_assignment): Same.

        * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
        (rs6000_spe_vector_types_compatible): New.
        (TARGET_VECTOR_TYPES_COMPATIBLE): Define.

From-SVN: r63080
2003-02-19 00:51:16 +00:00
Nick Clifton 5e93e88adf 20030218-1.c: New.
2003-02-18  Nick Clifton  <nickc@redhat.com>
            Aldy Hernandez  <aldyh@redhat.com>

        * testsuite/gcc.dg/20030218-1.c: New.

        * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.

        * target-def.h (TARGET_INITIALIZER): Add
        TARGET_VECTOR_TYPES_COMPATIBLE.
        (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.

        * target.h (struct gcc_target): Add field vector_types_compatible.

        * c-typeck.c (comptypes): Take into account
        TARGET_VECTOR_TYPES_COMPATIBLE.
        (convert_for_assignment): Same.

        * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
        (rs6000_spe_vector_types_compatible): New.
        (TARGET_VECTOR_TYPES_COMPATIBLE): Define.

From-SVN: r63079
2003-02-19 00:44:34 +00:00
Nick Clifton 22d324c166 003-02-18 Nick Clifton <nickc@redhat.com>
Aldy Hernandez  <aldyh@redhat.com>

        * testsuite/gcc.dg/20030218-1.c: New.

        * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.

        * target-def.h (TARGET_INITIALIZER): Add
        TARGET_VECTOR_TYPES_COMPATIBLE.
        (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.

        * target.h (struct gcc_target): Add field vector_types_compatible.

        * c-typeck.c (comptypes): Take into account
        TARGET_VECTOR_TYPES_COMPATIBLE.
        (convert_for_assignment): Same.
        (really_start_incremental_init): Disallow initialization of
        ev64_opaque types.

        * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
        (rs6000_spe_vector_types_compatible): New.
        (TARGET_VECTOR_TYPES_COMPATIBLE): Define.

From-SVN: r63078
2003-02-19 00:41:44 +00:00
Hans Boehm 56bba8cf57 XToolkit.java (getFontMetrics): initialize if necessary.
2003-02-18  Hans Boehm  <Hans.Boehm@hp.com>

	* gnu/awt/xlib/XToolkit.java (getFontMetrics): initialize
	if necessary.

	* gnu/java/awt/peer/gtk/GtkButtonPeer.java,
	gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
	gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
	(setFont, gtkSetFont): add.
	gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer):
	Propagate font to peer.  (setFont): add FIXME comment.

	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
	(gtkTextGetSize): fix height, width computation.

	* gnu/java/awt/peer/gtk/GtkFontPeer.java (GtkFontPeer):
	Make X font name a bit less bogus.

	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
	(post_adjustment_event): Pass on GTK_SCROLL_NONE.

	* java/awt/Scrollbar.java (setValues): Fix visibleAmount range check.
	(processAdjustmentEvent): Adjust value.

	* java/awt/FlowLayout.java (layoutContainer) Fix 2 indexing and one
	logic errors.

	* java/awt/Component.java (setVisible, show, hide): Call show and
	hide methods in subclasses.
	(getPreferredSize): don't set prefSize before we have peer.

	* java/awt/TextArea.java, java/awt/TextField.java (getPreferredSize):
	Guess (0,0) if we don't have peer.

From-SVN: r63077
2003-02-19 00:35:35 +00:00
GCC Administrator 35bd551997 Daily bump.
From-SVN: r63076
2003-02-19 00:17:34 +00:00
Andreas Schwab e5378e8dac Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
* Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
	* toplev.c: Include langhooks-def.h.

From-SVN: r63067
2003-02-18 23:32:28 +00:00
Paolo Carlini de59bd27dc std_sstream.h (str()): the size of the current string may be different from the initial one whenever...
2003-02-18  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_sstream.h (str()): the size of the
	current string may be different from the initial one
	whenever _M_out_end > _M_out_beg.
	* testsuite/27_io/stringbuf_members.cc (test07): Add.

From-SVN: r63066
2003-02-18 23:26:32 +00:00
Chris Demetriou fcc11c35b7 mips.h (enum processor_type): Sort entries alphabetically.
2003-02-18  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.h (enum processor_type): Sort entries
        alphabetically.
        * config/mips/mips.md (define_attr cpu): Sync with processor_type
        enum values, including adding entries that were missing.

From-SVN: r63065
2003-02-18 15:24:23 -08:00
J"orn Rennecke 29db2a1e1c sh.c (calc_live_regs): Also check GET_CODE when checking if initial value for PR_REG is still the...
* sh.c (calc_live_regs): Also check GET_CODE when checking if initial value
	for PR_REG is still the PR_REG register.

From-SVN: r63064
2003-02-18 20:20:11 +00:00
Jim Wilson 582d11e6ac Patch for PR 9617.
* config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
	instruction in output template.
	(bsp_value): Change output template from string to C code, add %,
	before actual instruction.
	(flushrs): Mark as not predicable.

From-SVN: r63062
2003-02-18 12:12:11 -08:00
Krister Walfridsson 3edc4b23d8 inclhack.def (netbsd_bogus_semicolon): New fix.
2003-02-18  Krister Walfridsson  <cato@df.lth.se>

	* inclhack.def (netbsd_bogus_semicolon): New fix.
	* fixincl.x: Rebuilt.
	* tests/base/ctype.h: Update.

From-SVN: r63061
2003-02-18 20:05:02 +00:00
Roger Sayle 080ea642c0 fold-const.c (negate_expr_p): New function to determine whether an expression can be negated cheaply.
* fold-const.c (negate_expr_p): New function to determine whether
	an expression can be negated cheaply.
	(fold) [MINUS_EXPR]: Use it to determine whether to transform
	-A - B into -B - A for floating point types.

From-SVN: r63059
2003-02-18 19:37:01 +00:00
Roger Sayle e360ab394f sbitmap.c (sbitmap_resize): New function.
* sbitmap.c (sbitmap_resize): New function.
	* sbitmap.h (sbitmap_resize): Prototype here.
	* recog.c (split_all_insns): Use sbitmap_resize.

From-SVN: r63058
2003-02-18 19:35:08 +00:00
Kazu Hirata 6b00cbc7f4 h8300.md (*zero_extendhisi2_h8300): Fix the insn length.
* config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
	insn length.
	(extendqisi2): Likewise.
	(*extendhisi2_h8300): Likewise.

From-SVN: r63056
2003-02-18 19:17:36 +00:00
Mark Mitchell 6b99d1c036 re PR c++/9704 (miscompilation of classes with bit fields)
PR c++/9704
	* class.c (layout_class_type): In the 3.2 ABI, take into account
	trailing bit fields when computing CLASSTYPE_SIZE_UNIT.

	PR c++/9704
	* g++.dg/init/copy5.C: New test.

From-SVN: r63055
2003-02-18 19:17:29 +00:00
Mark Mitchell 2e120205b3 re PR c++/9704 (miscompilation of classes with bit fields)
PR c++/9704
	* class.c (layout_class_type): In the 3.2 ABI, take into account
	trailing bit fields when computing CLASSTYPE_SIZE_UNIT.

	PR c++/9704
	* g++.dg/init/copy5.C: New test.

[[Split portion of a mixed commit.]]

From-SVN: r63054.2
2003-02-18 19:17:28 +00:00
Jason Merrill 30db8e17e5 * Makefile.tpl (check-c++): Allow parallelism.
From-SVN: r63053
2003-02-18 14:15:17 -05:00
Matt Austern 2b59501bf6 langhooks.h, [...]: introduce new langhook...
* langhooks.h, langhooks-def.h: introduce new langhook,
       final_write_globals, with write_global_declarations as default.
       * toplev.c: Move invocation of wrapup_global_declarations from
       compile_file to new function, write_global_declarations.  Change
       compile_file to use final_write_globals hook.  Change
       wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
       conditional.

       * cp/cp-lang.c: Change lang hooks so that final_write_globals does
       nothing for C++.
       * cp/decl.c (wrapup_globals_for_namespace): Remove special
       handling of global namespace.

From-SVN: r63051
2003-02-18 18:50:05 +00:00
John David Anglin 131efcd8e0 * pa.md: Correct and enhance comment.
From-SVN: r63049
2003-02-18 18:27:13 +00:00
Geoffrey Keating dce53c70a4 Remove conflict marker
From-SVN: r63048
2003-02-18 18:26:43 +00:00
Geoffrey Keating 59d22bc54e pch.exp: Delete $bname.h before copying into it.
* gcc.dg/pch/pch.exp: Delete $bname.h before copying into it.
	* g++.dg/pch/pch.exp: Likewise.

From-SVN: r63047
2003-02-18 18:26:06 +00:00
Geoffrey Keating e17aafd170 * gcc.c (validate_switches): Don't scan past closing '}'.
From-SVN: r63046
2003-02-18 18:24:05 +00:00
Jason Merrill 04b0308574 re PR c++/9623 (named initializer regression)
PR c++/9623
        * decl.c (reshape_init): Don't mess with initializer labels.

From-SVN: r63045
2003-02-18 13:16:40 -05:00
Jason Merrill a6bd211dbf re PR c++/9623 (named initializer regression)
PR c++/9623
        * decl.c (reshape_init): Don't mess with initializer labels.

[[Split portion of a mixed commit.]]

From-SVN: r63044.2
2003-02-18 13:16:19 -05:00
Kazu Hirata bc102c4bd5 20030209-1.c: Enable the test if STACK_SIZE is not defined.
* gcc.c-torture/execute/20030209-1.c: Enable the test if
	STACK_SIZE is not defined.

From-SVN: r63042
2003-02-18 17:48:54 +00:00
Ben Elliston bf7c02ddfe re PR other/7350 ('shoud' typos)
* Fix for PR other/7350

[cp]
	* decl.c (duplicate_decls): Fix typo in comment.
[ada]
	* 5qtaprop.adb (Sleep): Fix typo in comment.

From-SVN: r63037
2003-02-19 00:40:56 +11:00
Paolo Carlini 14a65f50b0 re PR libstdc++/9582 (ODR violation in std::allocator)
2003-02-18  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/9582
	* include/bits/stl_alloc.h (__pool_alloc::allocate):
	Remove assert.

From-SVN: r63031
2003-02-18 10:54:37 +00:00
Ben Elliston f57a2e3a8a re PR c++/1607 ([3.3 only] Format attributes on methods undocumented)
PR c++/1607
	* doc/extend.texi (Function Attributes): Document the effect of
	the C++ "this" parameter on the counting of arguments for the
	"format" and "format_arg" attributes.

From-SVN: r63030
2003-02-18 21:51:57 +11:00
Michael Koch 69c107efe4 2003-02-18 Michael Koch <konqueror@gmx.de>
* java/nio/channels/FileChannel.java
	(toString): New implementation, added documentation.
	(map): Added exception documentation.
	(size): Added exception documentation.
	(write): New methods, documentation work.
	(read): New methods, documentation work.
	(implCloseChannel): Rewrote exception documentation.
	(force): Throws IOException, added documentation.
	(lock): New methods.
	(tryLock): New methods.
	(position): New methods.
	(transferTo): New method.
	(transferFrom): New method.
	(truncate): New method.
	* java/nio/channels/spi/SelectorProvider.java
	(provider): Implemented.
	* Makefile.am
	(ordinary_java_source_files): Added the following files:
	gnu/java/nio/DatagramChannelImpl.java
	gnu/java/nio/FileChannelImpl.java
	gnu/java/nio/PipeImpl.java
	gnu/java/nio/SelectionKeyImpl.java
	gnu/java/nio/SelectorImpl.java
	gnu/java/nio/SelectorProviderImpl.java
	gnu/java/nio/ServerSocketChannelImpl.java
	gnu/java/nio/SocketChannelImpl.java
	java/nio/channels/FileLock.java
	(nat_java_source_files): Added the following files:
	gnu/java/nio/natFileChannelImpl.cc
	gnu/java/nio/natSelectorImpl.cc
	gnu/java/nio/natSocketChannelImpl.cc
	* Makefile.in: Regenerated.

From-SVN: r63028
2003-02-18 07:26:20 +00:00
Mark Mitchell c7adfa0192 Add PR number
From-SVN: r63027
2003-02-18 07:25:48 +00:00
Michael Elizabeth Chastain 0f3a821963 class.c (build_base_field): Mark fields for base classes with DECL_IGNORED_P.
* class.c (build_base_field): Mark fields for base classes with
	DECL_IGNORED_P.

From-SVN: r63026
2003-02-18 07:24:44 +00:00
Benjamin Kosnik 6067bea410 [multiple changes]
2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
	* testsuite/27_io/ios_members.cc (test03): New.

2003-02-17  Jerry Quinn  <jlquinn@optonline.net>

	* include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
	(basic_ios::_M_cache_facets): Move into above.
	* include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
	cache.
	(basic_ios::imbue): Force locale cache to be built.
	(basic_ios::_M_init): Create and initialize locale cache.
	* include/bits/ios_base.h (__locale_cache_base): Declare.
	(ios_base::_M_locale_cache): New.
	(ios_base::_M_cache): Define.
	* include/bits/locale_facets.h:	(__num_base): Fix comment.  Add
	_S_end.
        (__locale_cache_base,__locale_cache<_CharT>):  New classes.
	(__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
	* include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
	cache literal string, grouping flag, thousands separator.
	(__locale_cache<_CharT>::__locale_cache): New.
	(__locale_cache<_CharT>::_M_init): New.
	(__locale_cache<_CharT>::_M_populate): New.
	* src/ios.cc: Clear _M_locale_cache in constructor.
	* src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
	New.

From-SVN: r63025
2003-02-18 05:45:07 +00:00
Tom Tromey 59ac5a1725 ColorModel.java: Re-merged with Classpath.
* java/awt/image/ColorModel.java: Re-merged with Classpath.
	* java/awt/image/ImageFilter.java: Likewise.

From-SVN: r63024
2003-02-18 00:57:26 +00:00