Commit Graph

47969 Commits

Author SHA1 Message Date
Kazu Hirata
2dd5df7cb1 * config/h8300/h8300.md (*iorsi3_w): New.
From-SVN: r63161
2003-02-20 12:52:14 +00:00
Alexandre Oliva
3343fdd21c configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to config.status.
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.

From-SVN: r63159
2003-02-20 09:08:45 +00:00
Josef Zlomek
8fa0831669 combine.c (distribute_notes): Kill REG_EXEC_COUNT.
* combine.c (distribute_notes): Kill REG_EXEC_COUNT.
	* rtl.c (reg_note_name): Likewise.
	* rtl.h (enum reg_note): Likewise.
	* doc/invoke.texi: Likewise.
	* doc/rtl.texi: Likewise.

From-SVN: r63157
2003-02-20 08:54:48 +00:00
Josef Zlomek
c8717368a7 * bb-reorder.c (find_traces_1_round): Fix comment typo.
From-SVN: r63156
2003-02-20 08:44:08 +00:00
Michael Koch
bb7dd383f0 natSocketChannelImpl.cc: Added support for platforms without network support.
2003-02-19  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/natSocketChannelImpl.cc:
	Added support for platforms without network support.

From-SVN: r63155
2003-02-20 07:24:37 +00:00
Alexandre Oliva
905280ac0c configure.in (multiosdir): Set to nothing if compiler is not GCC or if...
* configure.in (multiosdir): Set to nothing if compiler is not GCC
or if it doesn't support -print-multi-os-directory.
* configure: Rebuilt.

From-SVN: r63153
2003-02-20 02:34:26 +00:00
Alexandre Oliva
4063ae699c libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
* libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
* ltconfig: Handle it.
* ltcf-cxx.sh: Use with_gnu_ld passed as a shell variable instead of
auto-detecting it.

From-SVN: r63150
2003-02-20 02:09:45 +00:00
Alexandre Oliva
11856278b8 libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
* libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
* ltconfig: Handle it.
* ltcf-cxx.sh: Use with_gnu_ld passed as a shell variable instead of
auto-detecting it.

From-SVN: r63148
2003-02-20 01:11:51 +00:00
Paolo Carlini
c85dca2816 sstream.tcc (overflow): According to 27.7.1.3, p5, actual output is performed by sputc(c).
2003-02-19  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/sstream.tcc (overflow): According to
	27.7.1.3, p5, actual output is performed by sputc(c).

From-SVN: r63147
2003-02-20 00:55:45 +00:00
GCC Administrator
7b616a297c Daily bump.
From-SVN: r63144
2003-02-20 00:17:05 +00:00
Phil Edwards
41662dbb4e re PR libstdc++/9582 (ODR violation in std::allocator)
2003-02-19  Phil Edwards  <pme@gcc.gnu.org>

	PR libstdc++/9582
	* include/bits/stl_alloc.h:  Remove all traces of assert().

From-SVN: r63136
2003-02-20 00:11:43 +00:00
Alexandre Oliva
274aef32d9 ltcf-cxx.sh: Replace $linker_flags with $compiler_flags wherever it is used as argument to $CC.
* ltcf-cxx.sh: Replace $linker_flags with $compiler_flags wherever
it is used as argument to $CC.
* ltcf-gcj.sh: Likewise.

From-SVN: r63135
2003-02-19 23:50:23 +00:00
Alexandre Oliva
ee03dc5e15 configure.in: Introduce --enable-maintainer-mode.
* configure.in: Introduce --enable-maintainer-mode.
* configure: Rebuilt.
* Makefile.tpl (Makefile.in, configure): Enable dependencies only
for maintainer mode.
* Makefile.in: Rebuilt.

From-SVN: r63134
2003-02-19 23:37:24 +00:00
Roger Sayle
3bc400cdc1 fold-const.c (fold_real_zero_addition_p): Don't fold a zero addition in the presence of signaling NaNs.
* fold-const.c (fold_real_zero_addition_p): Don't fold a zero
	addition in the presence of signaling NaNs.

From-SVN: r63133
2003-02-19 22:59:33 +00:00
Krister Walfridsson
b5a49c0bc8 tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
2003-02-19  Krister Walfridsson  <cato@df.lth.se>

	* tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.

From-SVN: r63132
2003-02-19 21:55:22 +00:00
Kazu Hirata
472f272337 h8300.c (output_logical_op): Optimize or.l when ORing with 0xffff??00 with the highest bit of the ?? part set.
* config/h8300/h8300.c (output_logical_op): Optimize or.l when
	ORing with 0xffff??00 with the highest bit of the ?? part set.
	(compute_logical_op_length): Update.
	(compute_logical_op_cc): Likewise.

From-SVN: r63131
2003-02-19 21:21:21 +00:00
Josef Zlomek
6d9cc15b64 bb-reorder.c (find_traces_1_round): Fixed condition for small destination block with multiple predecessors.
* bb-reorder.c (find_traces_1_round): Fixed condition for small
	destination block with multiple predecessors.
	(connect_traces): Check whether the block is a start of trace.

From-SVN: r63127
2003-02-19 18:12:54 +00:00
Jan Hubicka
563a317a85 calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
* calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
	* function.c (assign_params): Likewise.
	* arm-protos.h (arm_init_cumulative_args): Update prototype.
	* arm.c (arm_init_cumulative_args): Update function.
	* arm.h (INIT_CUMULATIVE_ARGS): Update.
	* avr-protos.h (init_cumulative_args): Update prototype.
	* avr.c (init_cumulative_args): Update function.
	* avr.h (INIT_CUMULATIVE_ARGS): Update.
	* d30v-protos.h (d30v_init_cumulative_args): Update prototype.
	* d30v.c (d30v_init_cumulative_args): Update function.
	* d30v.h (INIT_CUMULATIVE_ARGS): Update.
	* frv-protos.h (frv_init_cumulative_args): Update prototype.
	* frv.c (frv_init_cumulative_args): Update function.
	* frv.h (INIT_CUMULATIVE_ARGS): Update.
	* mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
	* pa.h (INIT_CUMULATIVE_ARGS): Update.
	* sparc-protos.h (init_cumulative_args): Update prototype.
	* sparc.c (init_cumulative_args): Update function.
	* sparc.h (INIT_CUMULATIVE_ARGS): Update.
	* tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.

From-SVN: r63126
2003-02-19 18:03:11 +00:00
Kazu Hirata
be9d08c2ef h8300.md (*iorsi3_two_qi_sext): New.
* config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
	(*ashiftsi_sextqi_7): Likewise.

From-SVN: r63125
2003-02-19 17:47:18 +00:00
Jan Hubicka
cd48dadc12 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
From-SVN: r63124
2003-02-19 16:40:52 +00:00
Rainer Orth
f23147fefc re PR libgcj/9652 (libjava bootstrap failure on irix6.5.1[78])
* config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
	ISO C99 and C++.

	* fixinc/inclhack.def (irix___restrict): Don't change __restrict
	for C++ on IRIX 6.5.1[89].
	* fixinc/tests/base/internal/sgimacros.h: New file.

	* fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
	* fixinc/tests/base/internal/wchar_core.h: New file.

	* fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
	socklen_t definition.
	* fixinc/fixincl.x: Regenerate.
	* fixinc/tests/base/sys/socket.h: New file.
	Fixes PR libgcj/9652.

From-SVN: r63123
2003-02-19 16:39:05 +00:00
Rainer Orth
a191802c42 natStackTrace.cc: Include platform.h immediately after config.h.
* gnu/gcj/runtime/natStackTrace.cc: Include platform.h immediately
	after config.h.  Use <> for consistency.
	* java/lang/natObject.cc: Likewise.
	* java/lang/natRuntime.cc: Likewise.
	* java/lang/natSystem.cc: Likewise.
	* java/util/natTimeZone.cc: Likewise.
	* win32.cc: Likewise.
	* include/posix.h (fcntl, socket, connect, close, bind, accept,
	listen, write, read): Undef to avoid interference from OS macros.

From-SVN: r63122
2003-02-19 16:28:37 +00:00
Jan Hubicka
f380a0cedb * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
From-SVN: r63120
2003-02-19 16:23:18 +00:00
Jan Hubicka
30e4d9d421 i386.md (movsfcc_1, movdfcc_1): Fix constrains.
* i386.md (movsfcc_1, movdfcc_1): Fix constrains.

[[Split portion of a mixed commit.]]

From-SVN: r63119.2
2003-02-19 16:23:17 +00:00
David Edelsohn
2792d578a6 [multiple changes]
2003-02-19  David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/rs6000.c (rs6000_override_options): Initialize
        align_jumps_max_skip and align_loops_max_skip.

2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>

        * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
        test size if named section.

From-SVN: r63116
2003-02-19 10:54:30 -05:00
Daniel Jacobowitz
4ea0d487c2 * gcc.c-torture/compile/20030219-1.c: New test.
From-SVN: r63111
2003-02-19 14:47:37 +00:00
Daniel Jacobowitz
48a5f2fabb expr.c (expand_expr): Use gen_int_mode for the argument to gen_rtx_MULT.
* expr.c (expand_expr): Use gen_int_mode for the argument
	to gen_rtx_MULT.

From-SVN: r63110
2003-02-19 14:38:45 +00:00
Jan Hubicka
9e889775d4 * i386.md (cosxf2): Fix conditional.
From-SVN: r63105
2003-02-19 13:25:32 +00:00
Kazu Hirata
f4c07fbf58 h8300.md (extendqisi2): Change to an expander.
* config/h8300/h8300.md (extendqisi2): Change to an expander.
	(*extendqisi2_h8300): New.
	(*extendqisi2_h8300hs): Likewise.

From-SVN: r63104
2003-02-19 13:00:27 +00:00
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