platform/upstream/gcc.git
20 years agoFix uses of old-style date format in ChangeLog (Jan Hubicka, twice).
Nathanael Nerode [Fri, 10 Oct 2003 17:46:47 +0000 (17:46 +0000)]
Fix uses of old-style date format in ChangeLog (Jan Hubicka, twice).

From-SVN: r72306

20 years ago* pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
John David Anglin [Fri, 10 Oct 2003 17:39:21 +0000 (17:39 +0000)]
* pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.

From-SVN: r72305

20 years agoconfig.gcc (mips*-*-netbsd*): Remove content-free line.
Nathanael Nerode [Fri, 10 Oct 2003 17:37:26 +0000 (17:37 +0000)]
config.gcc (mips*-*-netbsd*): Remove content-free line.

* config.gcc (mips*-*-netbsd*): Remove content-free line.

Also fixed old-style ChangeLog date to be new-style.

From-SVN: r72304

20 years ago2003-10-10 Paolo Carlini <pcarlini@unitus.it>
Paolo Carlini [Fri, 10 Oct 2003 17:10:47 +0000 (19:10 +0200)]
2003-10-10  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
Avoid unnecessarily calling __builtin_alloca and dealing
explicitly with width() smaller than zero.
(operator<<(basic_ostream&, char), operator<<(basic_ostream&,
const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
const char*), operator<<(basic_ostream<char, _Traits>&,
const char*), operator<<(basic_ostream, const basic_string&)):
Likewise.

From-SVN: r72302

20 years agoFri Oct 10 18:54:39 CEST 2003 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
Herman A.J. ten Brugge [Fri, 10 Oct 2003 17:04:46 +0000 (19:04 +0200)]
Fri Oct 10 18:54:39 CEST 2003  Herman A.J. ten Brugge <hermantenbrugge@home.nl>

* gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
gcov_position_t and gcov_type.

From-SVN: r72301

20 years agoconfigure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
Kaz Kojima [Fri, 10 Oct 2003 06:03:08 +0000 (06:03 +0000)]
configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.

* configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
* configure: Regenerate.

From-SVN: r72294

20 years agoDaily bump.
GCC Administrator [Fri, 10 Oct 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72291

20 years agoh8300.md (define_asm_attributes): Specify the length of an asm insn more precisely.
Kazu Hirata [Thu, 9 Oct 2003 23:50:46 +0000 (23:50 +0000)]
h8300.md (define_asm_attributes): Specify the length of an asm insn more precisely.

* config/h8300/h8300.md (define_asm_attributes): Specify
the length of an asm insn more precisely.

From-SVN: r72289

20 years ago* config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
Rainer Orth [Thu, 9 Oct 2003 22:58:20 +0000 (22:58 +0000)]
* config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.

From-SVN: r72288

20 years agolinker-map.gnu: Make more *_type_info bits visible.
Benjamin Kosnik [Thu, 9 Oct 2003 21:17:11 +0000 (21:17 +0000)]
linker-map.gnu: Make more *_type_info bits visible.

2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>

* config/linker-map.gnu: Make more *_type_info bits visible.
Move new/delete bits back into GLIBCXX space.

* include/bits/locale_classes.h: Move _M_id out of line, so that
locale::id::_S_highwater can be removed from the export list.
* src/locale.cc (locale::id::_M_id): Define.

From-SVN: r72287

20 years agoxtensa.c (xtensa_dbx_register_number): Change first FP register number to 48 and...
Bob Wilson [Thu, 9 Oct 2003 20:21:11 +0000 (20:21 +0000)]
xtensa.c (xtensa_dbx_register_number): Change first FP register number to 48 and MAC16 accumulator to 0x210.

* config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
FP register number to 48 and MAC16 accumulator to 0x210.

From-SVN: r72283

20 years agolibstdc++.exp: Set LD_LIBRARY_PATH_64 for SPARC64.
Andreas Tobler [Thu, 9 Oct 2003 19:22:38 +0000 (21:22 +0200)]
libstdc++.exp: Set LD_LIBRARY_PATH_64 for SPARC64.

2003-10-09  Andreas Tobler  <a.tobler@schweiz.ch>

* testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
SPARC64.

From-SVN: r72282

20 years agore PR libstdc++/11844 (Incorrect values of ctype_base::alnum and ctype_base::graph)
Paolo Carlini [Thu, 9 Oct 2003 19:10:56 +0000 (21:10 +0200)]
re PR libstdc++/11844 (Incorrect values of ctype_base::alnum and ctype_base::graph)

2003-10-09  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11844
* config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
to conform to the requirements of 22.2.1.
* config/os/bsd/freebsd/ctype_base.h: Likewise.
* config/os/djgpp/ctype_base.h: Likewise.
* config/os/generic/ctype_base.h: Likewise.
* config/os/gnu-linux/ctype_base.h: Likewise.
* config/os/hpux/ctype_base.h: Likewise.
* config/os/irix/irix6.5/ctype_base.h: Likewise.
* config/os/solaris/solaris2.6/ctype_base.h: Likewise.
* config/os/solaris/solaris2.7/ctype_base.h: Likewise.
* testsuite/22_locale/ctype/11844.cc: New.

* config/locale/generic/ctype_members.cc (do_is):
Generically, use a bitmasksize of 15 (instead of 10), since
we don't know the numerical encoding of the various categories
in the underlying /usr/include/ctype.h.

From-SVN: r72281

20 years ago* g++.dg/ext/attrib8.C: Only run it on x86 targets.
Mark Mitchell [Thu, 9 Oct 2003 18:08:50 +0000 (18:08 +0000)]
* g++.dg/ext/attrib8.C: Only run it on x86 targets.

From-SVN: r72280

20 years agoSelectorImpl.java (register): Use ServerSocketChannelSelectionKey for server socket...
Michael Koch [Thu, 9 Oct 2003 18:01:08 +0000 (18:01 +0000)]
SelectorImpl.java (register): Use ServerSocketChannelSelectionKey for server socket channels...

2003-10-09  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/SelectorImpl.java (register):
Use ServerSocketChannelSelectionKey for server socket channels,
removed unneeded comments.
* gnu/java/nio/ServerSocketChannelImpl.java
(ServerSocketChannelImpl): Made class public final.
(impl): New member variable.
(ServerSocketChannelImpl): Initialize member variables correctly.
(initServerSocket): New method.
(getNativeFD): Likewise.
* gnu/java/nio/ServerSocketChannelSelectionKey.java,
gnu/java/nio/natServerSocketChannelImpl.cc: New files.
* Makefile.am (ordinary_java_source_files):
Added gnu/java/nio/ServerSocketChannelSelectionKey.java.
(nat_source_files): Added gnu/java/nio/natServerSocketChannelImpl.cc.
* Makefile.in: Regenrated.

From-SVN: r72277

20 years ago2003-10-09 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 9 Oct 2003 17:34:10 +0000 (17:34 +0000)]
2003-10-09  Michael Koch  <konqueror@gmx.de>

* java/nio/channels/spi/AbstractSelectableChannel.java
(registered): Made private.
(blocking): Likewise.
(LOCK): Likewise.
(provider): Likewise.
(keys): Made it a private LinkedList.
(AbstractSelectableChannel): Initialize keys.
(isRegistered): New implementation.
(locate): Rewritten.
(register): Rewritten.
* java/nio/channels/spi/AbstractSelectionKey.java
(ok): Removed.
(cancelled): New member variable.
(cancel): Rewritten.
(isValid): Rewritten.
* java/nio/channels/spi/AbstractSelector.java:
Some methods moved.
(closed): Make private.
(provider): Likewise.
(cancelledKeys): New member variable.
(AbstractSelector): Initialize cancelledKeys.
(cancelKey): New method.

From-SVN: r72275

20 years ago[multiple changes]
Benjamin Kosnik [Thu, 9 Oct 2003 16:53:54 +0000 (16:53 +0000)]
[multiple changes]

2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>

* src/string-inst.cc: Prune.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.

2003-10-09  Petur Runolfsson  <peturr02@ru.is>

* src/io-inst.cc: Don't include iostream.
* include/bits/ios_base.h (ios_base::failure): Use string.
* src/Makefile.am: Add ios_failure.cc.
* src/Makefile.in: Regenerate.
* src/ios.cc: Move ios_base::failure definitions to...
* src/ios_failure.cc: ...here. New.

From-SVN: r72272

20 years agoClassLoader.java (setSigners): Implemented.
Tom Tromey [Thu, 9 Oct 2003 16:24:55 +0000 (16:24 +0000)]
ClassLoader.java (setSigners): Implemented.

* java/lang/ClassLoader.java (setSigners): Implemented.
* boehm.cc (_Jv_MarkObj): Mark `signers' field.
* java/lang/natClassLoader.cc (_Jv_InitNewClassFields):
Initialize new fields.
* java/lang/Class.java (getSigners): Now native.
(setSigners): Declare.
* java/lang/natClass.cc (getSigners): New method.
(getSigners): Likewise.
* java/lang/Class.h (Class::signers): New field.
(Class::setSigners): New method.

From-SVN: r72271

20 years agodecl.c (java_init_decl_processing): Declare signers field.
Tom Tromey [Thu, 9 Oct 2003 16:21:56 +0000 (16:21 +0000)]
decl.c (java_init_decl_processing): Declare signers field.

* decl.c (java_init_decl_processing): Declare signers field.
* class.c (make_class_data): Set signers field.

From-SVN: r72270

20 years agoconfig.gcc: Remove redundant thread_file setting clauses for various *-*-linux* targets.
Nathanael Nerode [Thu, 9 Oct 2003 16:17:46 +0000 (16:17 +0000)]
config.gcc: Remove redundant thread_file setting clauses for various *-*-linux* targets.

* config.gcc: Remove redundant thread_file setting clauses for
various *-*-linux* targets.

From-SVN: r72269

20 years agore PR libstdc++/9874 (filebuf::seekpos fails if codecvt::encoding() <= 0)
Petur Runolfsson [Thu, 9 Oct 2003 16:11:40 +0000 (16:11 +0000)]
re PR libstdc++/9874 (filebuf::seekpos fails if codecvt::encoding() <= 0)

2003-10-09  Petur Runolfsson  <peturr02@ru.is>

        PR libstdc++/9874
        * include/bits/fstream.tcc (basic_filebuf::seekoff):
        Move code needed for both seekoff and seekpos...
        (basic_filebuf::_M_seek): ...here. New function.
        (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
        * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
        * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.

        * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.

From-SVN: r72268

20 years agoRMIClassLoader.java: Removed unused imports, little reformatings.
Michael Koch [Thu, 9 Oct 2003 15:20:25 +0000 (15:20 +0000)]
RMIClassLoader.java: Removed unused imports, little reformatings.

2003-10-09  Michael Koch  <konqueror@gmx.de>

* java/rmi/server/RMIClassLoader.java:
Removed unused imports, little reformatings.
(getClassLoader): New method, implementation was part of old loadCLass
method.
(loadClass): Simplified by moving functionality to new method and
reworking the code a bit.
(getClassAnnotation): Merged documentation from classpath.

From-SVN: r72267

20 years ago* config/h8300/h8300.md (define_asm_attributes): New.
Kazu Hirata [Thu, 9 Oct 2003 13:13:52 +0000 (13:13 +0000)]
* config/h8300/h8300.md (define_asm_attributes): New.

From-SVN: r72264

20 years ago2003-10-09 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 9 Oct 2003 13:13:05 +0000 (13:13 +0000)]
2003-10-09  Michael Koch  <konqueror@gmx.de>

* java/math/BigInteger.java
(add): Removed unused local variable len.

From-SVN: r72263

20 years agooptabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note to the comparison...
Roger Sayle [Thu, 9 Oct 2003 12:57:30 +0000 (12:57 +0000)]
optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note to the comparison...

* optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
to the comparison, as emit_libcall_block calls copy_rtx on equiv.

From-SVN: r72262

20 years agohaifa-sched.c (ok_for_early_schedule): New function.
Dorit Naishlos [Thu, 9 Oct 2003 09:08:37 +0000 (09:08 +0000)]
haifa-sched.c (ok_for_early_schedule): New function.

        * haifa-sched.c (ok_for_early_schedule): New function.
        (early_queue_to_ready): New function.
        (schedule_block): Allow early removal of insns from Q.
        (schedule_insn): Update INSN_TICK in case of premature
        issue.
        * common.opt (sched_stalled_insns): New flag.
        (sched_stalled_insns_dep): New flag.
        * flags.h: Same above flags.
        * opts.c: Same as above.
        * toplev.c: Same as above.
        * target.h (targetm.sched.is_costly_dependence): New
        hook.
        * target-def.h: Same as above.
        * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
        Support new flag -msched-costly-dep.
        (DEFAULT_SCHED_COSTLY_DEP): Define.
        * config/rs6000/rs6000.c:
        (rs6000_is_costly_dependence): New function.
        (is_load_insn, is_store_insn): New functions.
        (is_load_insn1, is_store_insn1, is_mem_ref): New
        functions.
        * doc/invoke.texi (-fsched-stalled-insns-dep)
        (-fsched-stalled-insns, -msched-costly-dep): Document
        options.
        * doc/tm.texi (is_costly_dependence): Define new
        scheduler target hook.

From-SVN: r72261

20 years agore PR middle-end/6392 (Problems with __restrict__ type qualifier (array))
Jason Merrill [Thu, 9 Oct 2003 08:39:34 +0000 (04:39 -0400)]
re PR middle-end/6392 (Problems with __restrict__ type qualifier (array))

        PR c++/6392
        * cp/tree.c (build_cplus_array_type): Handle all quals the same.
        (cp_build_qualified_type_real): Look through arrays first.
        * c-common.c (c_build_qualified_type): Look through arrays first.
        (c_apply_type_quals_to_decl): Look through arrays.

From-SVN: r72260

20 years agore PR middle-end/6392 (Problems with __restrict__ type qualifier (array))
Jason Merrill [Thu, 9 Oct 2003 08:38:46 +0000 (04:38 -0400)]
re PR middle-end/6392 (Problems with __restrict__ type qualifier (array))

        PR c++/6392
        * cp/tree.c (build_cplus_array_type): Handle all quals the same.
        (cp_build_qualified_type_real): Look through arrays first.
        * c-common.c (c_build_qualified_type): Look through arrays first.
        (c_apply_type_quals_to_decl): Look through arrays.

        * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
        types with constructors.

From-SVN: r72259

20 years agotweak whitespace
Jason Merrill [Thu, 9 Oct 2003 07:16:14 +0000 (03:16 -0400)]
tweak whitespace

From-SVN: r72256

20 years agostmt.c (resolve_asm_operand_names): Call check_unique_operand_names here.
Jason Merrill [Thu, 9 Oct 2003 05:44:57 +0000 (01:44 -0400)]
stmt.c (resolve_asm_operand_names): Call check_unique_operand_names here.

        * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
        here.
        (expand_asm_operands): Not here.
        (parse_input_constraint): No longer static.
        * tree.h: Declare it.

        * coverage.c (build_ctr_info_value): Use build_decl to make a
        VAR_DECL.
        (create_coverage): Likewise.
java/
        * parse.y (patch_assignment): Use make_node to create a BLOCK.
        * parse.h (BUILD_PTR_FROM_NAME): Use make_node to create a
        POINTER_TYPE.
cp/
        * tree.c (build_cplus_new): Use build_decl to create a VAR_DECL.
        (build_target_expr_with_type): Likewise.

        * pt.c (instantiate_class_template): Sanity check that our
        enclosing class has been instantiated.

From-SVN: r72255

20 years agot-linux (SHLIB_LINK): Override to use a linker script libgcc_s.so.
Kaz Kojima [Thu, 9 Oct 2003 04:21:51 +0000 (04:21 +0000)]
t-linux (SHLIB_LINK): Override to use a linker script libgcc_s.so.

* config/sh/t-linux (SHLIB_LINK): Override to use a linker script
libgcc_s.so.
(SHLIB_INSTALL): Likewise.

From-SVN: r72254

20 years agoinstall.texi: Remove reference to removed 'pthreads' thread option.
Nathanael Nerode [Thu, 9 Oct 2003 03:24:16 +0000 (03:24 +0000)]
install.texi: Remove reference to removed 'pthreads' thread option.

* doc/install.texi: Remove reference to removed 'pthreads' thread
option.

From-SVN: r72253

20 years agoGtkButtonPeer.java (handleEvent): Remove modality check.
Thomas Fitzsimmons [Thu, 9 Oct 2003 00:26:29 +0000 (00:26 +0000)]
GtkButtonPeer.java (handleEvent): Remove modality check.

2003-10-08  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkButtonPeer.java (handleEvent): Remove
modality check.
* gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
Initialize insets to use latest insets.
* gnu/java/awt/peer/gtk/GtkFramePeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java (latestInsets): New
field.
(postConfigureEvent): Update latestInsets field when insets
change.  Remove call to setSize.  Move validate call outside of
if blocks.
(setVisible): Call setBounds before showing window.
(nativeSetVisible): New native method.
* java/awt/Window.java (show): Show visible owned windows.
(hide): Hide visible owned windows.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(awt_event_handler): Implement modality using GTK grabs.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
(global_gtk_window_group): New global variable.
(gtkInit): Initialize global_gtk_window_group.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create):
Clamp width and height values to at least 1.  Add this window to
the global GTK window group.
(setVisible): Rename to nativeSetVisible.
(setup_window): Remove function.
(setSize): Clamp width and height values to at least 1.
(nativeSetBounds): Likewise.
(gdk_window_get_root_geometry): Remove function.
* jni/gtk-peer/gtkpeer.h: Remove gdk_window_get_root_geometry
and setup_window declarations.  Declare global_gtk_window_group.

From-SVN: r72252

20 years agoDaily bump.
GCC Administrator [Thu, 9 Oct 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72250

20 years agors6000.md ("abssi2_isel"): Add early clobber to operand 2.
Aldy Hernandez [Wed, 8 Oct 2003 23:55:55 +0000 (23:55 +0000)]
rs6000.md ("abssi2_isel"): Add early clobber to operand 2.

2003-10-08  Aldy Hernandez  <aldyh@redhat.com>

* config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
operand 2.

From-SVN: r72247

20 years ago2003-10-08 Thomas Fitzsimmons <fitzsim@redhat.com>
Thomas Fitzsimmons [Wed, 8 Oct 2003 23:38:45 +0000 (23:38 +0000)]
2003-10-08  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkButtonPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
(gtkSetFont): Handle BOLD and ITALIC style specifiers.
(gtkWidgetSetForeground): New method.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(gtkWidgetSetBackground, gtkWidgetSetForeground): New methods.
(setBackground, setForeground): Implement.
* gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
(gtkSetFont): Handle BOLD and ITALIC style specifiers.
* gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
Position PangoLayout relative to text's baseline.
* jni/gtk-peer/gtkpeer.h: Define AWT font style constants.

* java/awt/FlowLayout.java (layoutContainer): Fix offset problem
for CENTER and RIGHT alignments.

From-SVN: r72246

20 years agoconfig.gcc: Don't accept --enable-threads=pthreads.
Nathanael Nerode [Wed, 8 Oct 2003 21:32:50 +0000 (21:32 +0000)]
config.gcc: Don't accept --enable-threads=pthreads.

* config.gcc: Don't accept --enable-threads=pthreads.  Clean
up related case statements.
* configure.in: Don't accept --enable-threads=pthreads,
decosf1, mach, or os2 (none of which work anyway).  Alphabetize
supported thread files in case clause.
* configure: Regenerate.

From-SVN: r72244

20 years agoMove ChangeLog entries for config/ subdir into config/ChangeLog, where they belong.
Nathanael Nerode [Wed, 8 Oct 2003 21:28:40 +0000 (21:28 +0000)]
Move ChangeLog entries for config/ subdir into config/ChangeLog, where they belong.

Move ChangeLog entries for config/ subdir into config/ChangeLog, where
they belong.  Thanks to Kelley Cook <kcook34@ford.com>.

From-SVN: r72243

20 years ago* libjava.mauve/xfails: Removed some tests.
Tom Tromey [Wed, 8 Oct 2003 21:16:01 +0000 (21:16 +0000)]
* libjava.mauve/xfails: Removed some tests.

From-SVN: r72242

20 years agofunction.c (pad_to_arg_alignment): Move 'boundary_in_bytes' definition to above SPARC...
Geoffrey Keating [Wed, 8 Oct 2003 21:09:18 +0000 (21:09 +0000)]
function.c (pad_to_arg_alignment): Move 'boundary_in_bytes' definition to above SPARC_STACK_BOUNDARY_HACK.

* function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
definition to above SPARC_STACK_BOUNDARY_HACK.

From-SVN: r72241

20 years agoSecurity.java: Reformated.
Michael Koch [Wed, 8 Oct 2003 21:01:50 +0000 (21:01 +0000)]
Security.java: Reformated.

2003-10-08  Michael Koch  <konqueror@gmx.de>

* java/security/Security.java: Reformated.

From-SVN: r72240

20 years ago2003-10-08 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 8 Oct 2003 20:48:11 +0000 (20:48 +0000)]
2003-10-08  Michael Koch  <konqueror@gmx.de>

* java/text/SimpleDateFormat.java
(compileFormat): Replace Character.isLetter() test with
Character.isLowerCase() || Character.isUpperCase().

From-SVN: r72239

20 years agoStrictMath.java (toDegrees): Multiply before dividing.
Tom Tromey [Wed, 8 Oct 2003 19:00:21 +0000 (19:00 +0000)]
StrictMath.java (toDegrees): Multiply before dividing.

* java/lang/StrictMath.java (toDegrees): Multiply before
dividing.
(toRadians): Likewise.

2003-10-08  C. Brian Jones  <cbj@gnu.org>

* java/lang/Math.java
(toRadians): multiply before dividing to reduce decimal error
(toDegrees): ditto

From-SVN: r72238

20 years agoc-pretty-print.c (pp_c_postfix_expression): Fix thinko.
Jason Merrill [Wed, 8 Oct 2003 18:13:53 +0000 (14:13 -0400)]
c-pretty-print.c (pp_c_postfix_expression): Fix thinko.

        * c-pretty-print.c (pp_c_postfix_expression)
        <COMPOUND_LITERAL_EXPR>: Fix thinko.

From-SVN: r72236

20 years ago* mklibgcc.in: Don't hide undefined or typeless symbols.
Rainer Orth [Wed, 8 Oct 2003 18:12:36 +0000 (18:12 +0000)]
* mklibgcc.in: Don't hide undefined or typeless symbols.

From-SVN: r72235

20 years agore PR rtl-optimization/12142 (-fnon-call-exceptions generates incorrect code)
John David Anglin [Wed, 8 Oct 2003 17:55:41 +0000 (17:55 +0000)]
re PR rtl-optimization/12142 (-fnon-call-exceptions generates incorrect code)

PR optimization/12142
* cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
uses of the register in the SET_SRC.  Remove unnecessary argument.
* pa.c (legitimize_pic_address): Before reload, use a scratch register
for the intermediate result in loading the address of a SYMBOL_REF.
Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
which loads the SYMBOL_REF address.

From-SVN: r72234

20 years agoConnection.java, [...]: Moved to gnu/java/net/protocol.
Michael Koch [Wed, 8 Oct 2003 16:28:30 +0000 (16:28 +0000)]
Connection.java, [...]: Moved to gnu/java/net/protocol.

2003-10-08  Michael Koch  <konqueror@gmx.de>

* gnu/gcj/protocol/core/Connection.java,
gnu/gcj/protocol/core/CoreInputStream.java,
gnu/gcj/protocol/core/Handler.java,
gnu/gcj/protocol/core/natCoreInputStream.cc,
gnu/gcj/protocol/file/Connection.java,
gnu/gcj/protocol/file/Handler.java,
gnu/gcj/protocol/gcjlib/Connection.java,
gnu/gcj/protocol/gcjlib/Handler.java,
gnu/gcj/protocol/http/Connection.java,
gnu/gcj/protocol/http/Handler.java,
gnu/gcj/protocol/jar/Connection.java,
gnu/gcj/protocol/jar/Handler.java: Moved to gnu/java/net/protocol.
* gnu/java/net/protocol/core/Connection.java,
gnu/java/net/protocol/core/CoreInputStream.java,
gnu/java/net/protocol/core/Handler.java,
gnu/java/net/protocol/core/natCoreInputStream.cc,
gnu/java/net/protocol/file/Connection.java,
gnu/java/net/protocol/file/Handler.java,
gnu/java/net/protocol/gcjlib/Connection.java,
gnu/java/net/protocol/gcjlib/Handler.java,
gnu/java/net/protocol/http/Connection.java,
gnu/java/net/protocol/http/Handler.java,
gnu/java/net/protocol/jar/Connection.java,
gnu/java/net/protocol/jar/Handler.java: Moved from gnu/gcj/protocol.
* gnu/gcj/runtime/FirstThread.java,
java/net/URL.java: Use moved protocol handlers.
* Makefile.am
(ordinary_java_source_files): Moved files.
(nat_source_files): Likewise.
* Makefile.in: Regenerated.

From-SVN: r72233

20 years ago2003-10-08 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 8 Oct 2003 16:03:06 +0000 (16:03 +0000)]
2003-10-08  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/SocketChannelImpl.java
(read): Write only read data to buffer.

From-SVN: r72232

20 years agoGtkMenuItemPeer.java (setEnabled): Stub out.
Thomas Fitzsimmons [Wed, 8 Oct 2003 15:49:33 +0000 (15:49 +0000)]
GtkMenuItemPeer.java (setEnabled): Stub out.

2003-10-08  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkMenuItemPeer.java (setEnabled): Stub
out.
* jni/classpath/jcl.c [!__GNUC__]: Elide __attribute__.
(JCL_free): Attach "unused" attribute to env parameter.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c,
jni/gtk-peer/gthread-jni.c: Attach "unused" attribute to unused
parameters.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c:
(initNativeState): Pass 0 as info argument to
gtk_selection_add_target.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
(setVisible, gtkFixedNew, gtkFixedPut, gtkFixedMove): Remove
unused method implementations.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(awt_event_handler): Add break statement after default label.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
(drawPixels): Remove unused variable i.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
(setEnabled): Remove method implementation.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
(accel_attach): Call _gtk_accel_group_attach with G_OBJECT
argument.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (sr): Remove
unused function.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
(menu_pos): Assign TRUE to push_in.
(setupAccelGroup): Call _gtk_accel_group_attach with G_OBJECT
argument.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
(create): Remove unused variable layout.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create):
Pass window_widget, rather than window, to
gtk_widget_set_size_request.
* jni/gtk-peer/gthread-jni.c (g_thread_jni_functions): Fill out
structure initialization with NULL values.
* jni/gtk-peer/gtkpeer.h [!__GNUC__]: Elide __attribute__.

From-SVN: r72231

20 years agoLinkedList.java: Removed whitespace to match classpath's version again.
Michael Koch [Wed, 8 Oct 2003 15:30:44 +0000 (15:30 +0000)]
LinkedList.java: Removed whitespace to match classpath's version again.

2003-10-08  Michael Koch  <konqueror@gmx.de>

* java/util/LinkedList.java:
Removed whitespace to match classpath's version again.

From-SVN: r72230

20 years ago2003-10-08 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 8 Oct 2003 15:30:21 +0000 (15:30 +0000)]
2003-10-08  Michael Koch  <konqueror@gmx.de>

* java/util/prefs/Preferences.java
(defaultFactoryClass): Fixed class name.
(getFactory): Create instance of class returned by Class.forName(),
reformated code.

From-SVN: r72229

20 years ago2003-10-08 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
Arnaud Vandyck [Wed, 8 Oct 2003 15:29:52 +0000 (17:29 +0200)]
2003-10-08  Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>

* javax/swing/table/AbstractTableModel.java
(getColumnName): Simplified code much. Thanks to Yannick Boogaerts who
helped stop pulling my hair on this +1 then -1 tricky thing!

From-SVN: r72228

20 years agolocale_facets.tcc: More minor cosmetic changes and const-ifications of some variables.
Paolo Carlini [Wed, 8 Oct 2003 14:20:42 +0000 (16:20 +0200)]
locale_facets.tcc: More minor cosmetic changes and const-ifications of some variables.

2003-10-08  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc: More minor cosmetic
changes and const-ifications of some variables.

From-SVN: r72226

20 years agore PR bootstrap/12490 (buffer overflow in scan-decls.c)
Timo Kokkonen [Wed, 8 Oct 2003 12:29:27 +0000 (15:29 +0300)]
re PR bootstrap/12490 (buffer overflow in scan-decls.c)

PR bootstrap/12490
* scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
to define the size of the extern_C_braces array.  Set it to 200.
(scan_decls): Abort when extern_C_braces_length is out-of-bounds.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
From-SVN: r72224

20 years agoMakefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand a space after the...
Carlo Wood [Wed, 8 Oct 2003 12:24:08 +0000 (12:24 +0000)]
Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand a space after the -o option.

* Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
a space after the -o option.  flex 2.5.31 understands both, with
and without the space. Removed that space.

From-SVN: r72223

20 years agomips.c (mips_frame_info): Add cprestore_size field.
Richard Sandiford [Wed, 8 Oct 2003 08:27:29 +0000 (08:27 +0000)]
mips.c (mips_frame_info): Add cprestore_size field.

* config/mips/mips.c (mips_frame_info): Add cprestore_size field.
(compute_frame_size): Initialize it.  Remove the .cprestore slot
from args_size.
(mips_output_function_prologue): Simplify accordingly.
(mips_debugger_offset): Change the mips16 frame pointer offset from
current_function_outgoing_args to cfun->machine->frame.args_size.
(mips_initial_elimination_offset): Likewise.
(mips_expand_prologue): Likewise.
(mips_expand_epilogue): Likewise.

From-SVN: r72222

20 years agomips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
Richard Sandiford [Wed, 8 Oct 2003 08:26:10 +0000 (08:26 +0000)]
mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.

* config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
(EXTRA_MEMORY_CONSTRAINT): Define.
(CAN_ELIMINATE): Remove lwu workaround.
* config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
Use a 'W' constraint for the source operand.

From-SVN: r72221

20 years agogenopinit.c (main): Output code to declare undefined variables.
Kazu Hirata [Wed, 8 Oct 2003 08:01:50 +0000 (08:01 +0000)]
genopinit.c (main): Output code to declare undefined variables.

* genopinit.c (main): Output code to declare undefined
variables.

From-SVN: r72220

20 years agoFix pathname in last delta.
Richard Sandiford [Wed, 8 Oct 2003 07:22:50 +0000 (07:22 +0000)]
Fix pathname in last delta.

From-SVN: r72219

20 years ago* testsuite/gcc.c-torture/compile/mipscop-[1-4].c: Disable for mips16.
Richard Sandiford [Wed, 8 Oct 2003 07:20:22 +0000 (07:20 +0000)]
* testsuite/gcc.c-torture/compile/mipscop-[1-4].c: Disable for mips16.

From-SVN: r72218

20 years agoerror2.C: New test.
Giovanni Bajo [Wed, 8 Oct 2003 01:06:13 +0000 (03:06 +0200)]
error2.C: New test.

2003-10-08  Giovanni Bajo  <giovannibajo@libero.it>

* g++.dg/parse/error2.C: New test.

From-SVN: r72216

20 years agocp_tree.h: Added TFF_NO_FUNCTION_ARGUMENTS.
Giovanni Bajo [Wed, 8 Oct 2003 00:42:56 +0000 (02:42 +0200)]
cp_tree.h: Added TFF_NO_FUNCTION_ARGUMENTS.

* cp_tree.h: Added TFF_NO_FUNCTION_ARGUMENTS.
* error.c (dump_function_decl): Use it to skip the dump of the
arguments.
(dump_expr): When dumping a declaration found within an
expression, always set TFF_NO_FUNCTION_ARGUMENTS
in the flags.

From-SVN: r72215

20 years agoDaily bump.
GCC Administrator [Wed, 8 Oct 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72213

20 years agore PR c++/11097 (using template operator is broken)
Giovanni Bajo [Tue, 7 Oct 2003 23:54:11 +0000 (01:54 +0200)]
re PR c++/11097 (using template operator is broken)

PR c++/11097
* g++.dg/other/error5.C: Modify the error message.
* g++.dg/lookup/using8.C: New test.

From-SVN: r72211

20 years agogengtype-lex.l: Remove -Wtraditional cruft.
Kelley Cook [Tue, 7 Oct 2003 23:54:10 +0000 (23:54 +0000)]
gengtype-lex.l: Remove -Wtraditional cruft.

2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>

* gengtype-lex.l: Remove -Wtraditional cruft.
* Makefile.in (gengtype-lex.c): Likewise.

From-SVN: r72210

20 years agoRemove accidentally committed piece of patch.
Geoffrey Keating [Tue, 7 Oct 2003 23:39:32 +0000 (23:39 +0000)]
Remove accidentally committed piece of patch.

From-SVN: r72209

20 years agore PR c++/11097 (using template operator is broken)
Giovanni Bajo [Tue, 7 Oct 2003 22:39:21 +0000 (00:39 +0200)]
re PR c++/11097 (using template operator is broken)

PR c++/11097
* pt.c (tsubst_decl): Substitute also the DECL_NAME node of
USING_DECL.

From-SVN: r72208

20 years ago* cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
Zdenek Dvorak [Tue, 7 Oct 2003 22:14:07 +0000 (00:14 +0200)]
* cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.

From-SVN: r72207

20 years agore PR c++/12519 (ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761)
Jason Merrill [Tue, 7 Oct 2003 22:10:37 +0000 (18:10 -0400)]
re PR c++/12519 (ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761)

        PR c++/12519
        * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
        it isn't a decl.

From-SVN: r72206

20 years agoGtkTextAreaPeer.java (gtkTextGetSize): Remove unused parameters.
Thomas Fitzsimmons [Tue, 7 Oct 2003 21:33:29 +0000 (21:33 +0000)]
GtkTextAreaPeer.java (gtkTextGetSize): Remove unused parameters.

2003-10-07  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (gtkTextGetSize):
Remove unused parameters.
* gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (gtkEntryGetSize):
Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(keyevent_state_to_awt_mods): Export function.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
(getCaretPosition): Fix TextArea case.
(textcomponent_commit_cb): Get exact event time and modifier
state.
* jni/gtk-peer/gtkpeer.h: Declare keyevent_state_to_awt_mods.

From-SVN: r72202

20 years agore PR bootstrap/12173 (IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning)
Alexandre Oliva [Tue, 7 Oct 2003 21:14:14 +0000 (21:14 +0000)]
re PR bootstrap/12173 (IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning)

2003-10-07  Alexandre Oliva  <aoliva@redhat.com>

* gcc.c (cpp_options): Only pass -fworking-directory for -g* if
not overridden.
Fixes PR bootstrap/12173.

From-SVN: r72201

20 years agoerrors.c: Don't include coretypes.h or tm.h.
Zack Weinberg [Tue, 7 Oct 2003 20:06:37 +0000 (20:06 +0000)]
errors.c: Don't include coretypes.h or tm.h.

* errors.c: Don't include coretypes.h or tm.h.
(trim_filename): Use IS_DIR_SEPARATOR.
* Makefile.in: Update dependencies of errors.o and
$(BUILD_PREFIX_1)errors.o.

From-SVN: r72200

20 years agofunction.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into account when aligni...
Geoffrey Keating [Tue, 7 Oct 2003 19:48:23 +0000 (19:48 +0000)]
function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into account when aligning arguments.

2003-10-07  Geoffrey Keating  <geoffk@apple.com>

* function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
account when aligning arguments.
* calls.c (STACK_POINTER_OFFSET): Move default from here ...
* defaults.h (STACK_POINTER_OFFSET): ... to here.
* config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
(SPARC_STACK_BOUNDARY_HACK): Define.
* config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
arrange for vector parameters to varargs functions to be passed
in both memory and GPRs when appropriate.
(rs6000_va_arg): Vector arguments passed in memory are 16-byte
aligned.

Index: testsuite/ChangeLog
2003-10-07  Geoffrey Keating  <geoffk@apple.com>

* gcc.dg/darwin-abi-2.c: New file.
* gcc.c-torture/execute/va-arg-24.c: New file.

From-SVN: r72199

20 years agoCorrect ChangeLog entry for last change
Geoffrey Keating [Tue, 7 Oct 2003 19:24:53 +0000 (19:24 +0000)]
Correct ChangeLog entry for last change

From-SVN: r72198

20 years agohooks.c (hook_bool_tree_true): New.
Geoffrey Keating [Tue, 7 Oct 2003 19:23:08 +0000 (19:23 +0000)]
hooks.c (hook_bool_tree_true): New.

* hooks.c (hook_bool_tree_true): New.
(hook_rtx_tree_int_null): New.
(hook_rtx_rtx_null): Use NULL, not 0.
* hooks.h: Add 'extern' to everything.
(hook_bool_tree_true): New.
(hook_rtx_tree_int_null): New.
* targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
* targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
* config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
prototype.
* config/rs6000/rs6000.c (rs6000_return_in_memory): New.
(setup_incoming_varargs): Prototype.
(TARGET_PROMOTE_FUNCTION_ARGS): Define.
(TARGET_PROMOTE_FUNCTION_RETURN): Define.
(TARGET_STRUCT_VALUE_RTX): Define.
(TARGET_RETURN_IN_MEMORY): Define.
(TARGET_SETUP_INCOMING_VARARGS): Define.
(TARGET_STRICT_ARGUMENT_NAMING): Define.
(TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
(init_cumulative_args): Use rs6000_return_in_memory.
(setup_incoming_varargs): Make 'static'.
* config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
(PROMOTE_FUNCTION_RETURN): Delete.
(STRUCT_VALUE): Delete.
(RETURN_IN_MEMORY): Delete.
(SETUP_INCOMING_VARARGS): Delete.

From-SVN: r72197

20 years agospec10.C: Set exit value to zero on success.
Bob Wilson [Tue, 7 Oct 2003 16:56:47 +0000 (16:56 +0000)]
spec10.C: Set exit value to zero on success.

* g++.dg/template/spec10.C: Set exit value to zero on success.  Fix
indentation.

From-SVN: r72195

20 years agoinvoke.texi (Warning Options): Simplify and clarify the descriptions of -Wnonnull...
Gerald Pfeifer [Tue, 7 Oct 2003 16:28:37 +0000 (16:28 +0000)]
invoke.texi (Warning Options): Simplify and clarify the descriptions of -Wnonnull and -Winit-self.

* doc/invoke.texi (Warning Options): Simplify and clarify the
descriptions of -Wnonnull and -Winit-self.

From-SVN: r72194

20 years agooptabs.c (init_intraclass_conv_libfuncs): Fix order of array indicees for floating...
Richard Earnshaw [Tue, 7 Oct 2003 16:07:28 +0000 (16:07 +0000)]
optabs.c (init_intraclass_conv_libfuncs): Fix order of array indicees for floating-point conversersion libcalls.

* optabs.c (init_intraclass_conv_libfuncs): Fix order of array
indicees for floating-point conversersion libcalls.

From-SVN: r72193

20 years agoMakefile.in: Add more comments separating large conceptually separate sections.
Nathanael Nerode [Tue, 7 Oct 2003 13:30:00 +0000 (13:30 +0000)]
Makefile.in: Add more comments separating large conceptually separate sections.

* Makefile.in: Add more comments separating large conceptually
separate sections.

From-SVN: r72192

20 years agoconfigure.in: Clean up thread file logic.
Nathanael Nerode [Tue, 7 Oct 2003 12:32:07 +0000 (12:32 +0000)]
configure.in: Clean up thread file logic.

* configure.in: Clean up thread file logic.
* configure: Regenerate.

From-SVN: r72191

20 years agolocale_facets.tcc: Minor cosmetic changes and const-ifications of some variables.
Paolo Carlini [Tue, 7 Oct 2003 10:34:47 +0000 (12:34 +0200)]
locale_facets.tcc: Minor cosmetic changes and const-ifications of some variables.

2003-10-07  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc: Minor cosmetic changes
and const-ifications of some variables.

* include/bits/locale_facets.tcc
(money_get::do_get(..., string_type&)): Simplify an if-else.

From-SVN: r72190

20 years agocygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
Danny Smith [Tue, 7 Oct 2003 09:36:34 +0000 (09:36 +0000)]
cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.

* config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
(switch_to_section): Handle in_readonly_data.
* config/i386/winnt.c (i386_pe_asm_named_section): Handle
readonly data.

From-SVN: r72189

20 years agoarm.md (cmpsi2_addneg): New ARM pattern.
Richard Earnshaw [Tue, 7 Oct 2003 08:49:36 +0000 (08:49 +0000)]
arm.md (cmpsi2_addneg): New ARM pattern.

* arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
it.
(cbranchne_decr1): New Thumb pattern.
* arm.c (arm_addimm_operand): New insn predicate.
* arm-protos.h: Add a prototype for it.
* arm.h (PREDICATE_CODES): Add it.

From-SVN: r72188

20 years agosched-int.h (sched_info): New field sched_max_insns_priority.
Dorit Naishlos [Tue, 7 Oct 2003 08:18:42 +0000 (08:18 +0000)]
sched-int.h (sched_info): New field sched_max_insns_priority.

        * sched-int.h (sched_info): New field
        sched_max_insns_priority.
        * sched-rgn.c (init_ready_list): Add invocations to
        targetm.sched.adjust_priority.
        (sched_max_insns_priority): Init new field.
        * sched-ebb.c (sched_max_insns_priority): Init new field.
        * haifa-sched.c (set_priorities): Set
        sched_info->sched_max_insns_priority.
        * config/rs6000/rs6000.h:
        (rs6000_sched_restricted_insns_priority_str): Support new
        flag -mprioritize-restricted-insns.
        (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
        * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
        function.
        (rs6000_adjust_priority): Change priority of restricted
        insns, using above new function and new flag.
        * doc/invoke.texi (-mprioritize-restricted-insns): Document
        new option.

From-SVN: r72186

20 years agoexpr.c (cmpstr_optab, [...]): New.
Zack Weinberg [Tue, 7 Oct 2003 07:25:32 +0000 (07:25 +0000)]
expr.c (cmpstr_optab, [...]): New.

* expr.c (cmpstr_optab, cmpmem_optab): New.
* genopinit.c: Initialize them.
* optabs.h: Declare them.
* optabs.c (init_optabs): Clear them.
(prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
block memory compare insns, not conditional chains.  Restructure
the fallback generation of a call to memcmp/bcmp for better
readability.

From-SVN: r72185

20 years agore PR c++/10147 (Confusing error message for invalid template function argument)
Mark Mitchell [Tue, 7 Oct 2003 07:07:07 +0000 (07:07 +0000)]
re PR c++/10147 (Confusing error message for invalid template function argument)

PR c++/10147
* call.c (initialize_reference): Tweak error message.

PR c++/12337
* init.c (build_new_1): Make sure that the expression returned is
not an lvalue.

PR c++/12344, c++/12236, c++/8656
* decl.c (start_function): Do not ignore attributes embedded in a
function declarator.

PR c++/12337
* g++.dg/init/new9.C: New test.

PR c++/12334, c++/12236, c++/8656
* g++.dg/ext/attrib8.C: New test.

From-SVN: r72183

20 years agomips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
Richard Sandiford [Tue, 7 Oct 2003 06:38:15 +0000 (06:38 +0000)]
mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.

* config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
(mips_save_restore_fn): New typedef.
(mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
(mips_set_frame_expr, mips_frame_set): Move above prologue code.
(save_restore_insns): Remove, replacing with...
(mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
(mips_save_reg, mips_restore_reg): New function.
(mips_expand_prologue, mips_expand_epilogue): Rework.
* config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
(MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
(MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.

From-SVN: r72182

20 years agomips.c (mips_expand_prologue): Remove unused traversal of function arguments.
Richard Sandiford [Tue, 7 Oct 2003 06:34:46 +0000 (06:34 +0000)]
mips.c (mips_expand_prologue): Remove unused traversal of function arguments.

* config/mips/mips.c (mips_expand_prologue): Remove unused
traversal of function arguments.

From-SVN: r72181

20 years agoinvoke.texi: Remove documentation of -mentry.
Richard Sandiford [Tue, 7 Oct 2003 06:33:25 +0000 (06:33 +0000)]
invoke.texi: Remove documentation of -mentry.

* doc/invoke.texi: Remove documentation of -mentry.
* config/mips/mips.c (mips_entry_string, mips_entry): Remove.
(override_options, mips_save_reg_p): Remove handling.
(compute_frame_size, mips_output_function_prologue): Likewise.
(mips_expand_prologue, mips_expand_epilogue): Likewise.
* config/mips/mips.h (mips_entry_string): Remove declaration.
(TARGET_OPTIONS): Remove -mentry.
* config/mips/mips16.S: Remove mention of -mentry.

From-SVN: r72180

20 years ago* libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
Zack Weinberg [Tue, 7 Oct 2003 02:23:42 +0000 (02:23 +0000)]
* libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
(LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
(LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
(LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
(LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
(LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
(LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
(LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
(LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
(LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
(LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
(extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
(extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
(truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
(trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
(floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
(floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
(floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
(floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
(fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
(fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
(fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
(fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
(fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
(fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
(fixunstfti_libfunc): Delete.
* optabs.h (struct optab_handlers): Break out of struct optab.
(struct convert_optab, convert_optab, enum convert_optab_index,
convert_optab_table, sext_optab, zext_optab, trunc_optab,
sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
sfloat_optab, ufloat_optab): New.
(set_conv_libfunc): Prototype.
(GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
(trunc_optab): Renamed btrunc_optab.
* builtins.c (expand_builtin_mathfn): Update to match.
* optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
(convert_optab_table, new_convert_optab, init_convert_optab)
(init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
(set_conv_libfunc): New.
(can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
(expand_float, expand_fix): Use new conversion optabs,
not old insn code tables or long chains of ifs.
(init_optabs): No need to clear old insn code tables.
Initialize the new optabs, not the old libfunc array entries.
Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
* genopinit.c: Initialize conversion optabs, not the
former insn code tables.  Remove unnecessary casts.
Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
* expr.c (convert_move): Remove redundant check that
to_real==from_real.  Use the conversion optabs instead
of long chains of tests of modes.  Move partial-integer-mode
interconversion above all integer conversion.  Do not recurse
on a value forced into a register in the original mode.

* config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
* config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
* config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
in new conversion optabs; do not reference the old libfunc
array entries.  No need to include libfuncs.h.

From-SVN: r72178

20 years agoDaily bump.
GCC Administrator [Tue, 7 Oct 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72176

20 years agoi386.c (ix86_expand_setcc): Annotate the floating point comparison sequence with...
Roger Sayle [Mon, 6 Oct 2003 23:18:31 +0000 (23:18 +0000)]
i386.c (ix86_expand_setcc): Annotate the floating point comparison sequence with a REG_EQUAL note that...

* config/i386/i386.c (ix86_expand_setcc): Annotate the floating
point comparison sequence with a REG_EQUAL note that describes
the comparison's semantics.

From-SVN: r72173

20 years agoexpr.c (expand_expr <COND_EXPR>): Handle the void type semantics of COND_EXPR when...
Roger Sayle [Mon, 6 Oct 2003 23:11:21 +0000 (23:11 +0000)]
expr.c (expand_expr <COND_EXPR>): Handle the void type semantics of COND_EXPR when expanding the "A op 0 ? FOO ...

* expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.

From-SVN: r72172

20 years agooptabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL instruction by using...
Roger Sayle [Mon, 6 Oct 2003 23:09:28 +0000 (23:09 +0000)]
optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL instruction by using LCT_CONST and then calling...

* optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
instruction by using LCT_CONST and then calling emit_libcall_block
ourselves.

Co-Authored-By: Zack Weinberg <zack@codesourcery.com>
From-SVN: r72171

20 years agore PR rtl-optimization/11974 (ICE building alpha glibc: in emit_move_insn, at expr...
Falk Hueffner [Mon, 6 Oct 2003 23:06:09 +0000 (23:06 +0000)]
re PR rtl-optimization/11974 (ICE building alpha glibc: in emit_move_insn, at expr.c:3206)

PR optimization/11974
* optabs.c (expand_unop): Promote libcall outmode according to
hard_libcall_value.

From-SVN: r72170

20 years agoreal.h (REAL_MODE_FORMAT): New macro.
Zack Weinberg [Mon, 6 Oct 2003 22:47:32 +0000 (22:47 +0000)]
real.h (REAL_MODE_FORMAT): New macro.

* real.h (REAL_MODE_FORMAT): New macro.
* c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
* config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
* config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
* config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
* config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
directly to real_format_for_mode array, wherever possible.

From-SVN: r72168

20 years agore PR libstdc++/11740 (ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple...
Paolo Carlini [Mon, 6 Oct 2003 22:32:59 +0000 (00:32 +0200)]
re PR libstdc++/11740 (ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.)

2003-10-06  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11740
* config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
* config/locale/generic/ctype_members.cc: Same.
* testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.

From-SVN: r72167

20 years agoFix -feliminate-dwarf2-dups ICE.
Devang Patel [Mon, 6 Oct 2003 22:25:19 +0000 (15:25 -0700)]
Fix -feliminate-dwarf2-dups ICE.

       gcc
       * dwarf2out.c (is_main_source): Remove variable.
       (dwarf2out_start_source_file): Do not check is_main_source.
       Do not reset is_main_source.
       (dwarf2out_init): Do not initialize is_main_source.

       testsuite
       * gcc.dg/debug/dwarf2-3.h: New test.
       * gcc.dg/debug/dwarf2-3.c: New test case for -feliminate-dwarf2-dups.

From-SVN: r72166

20 years agoinclhack.def (stdio_va_list): Removed _ap fix.
Rainer Orth [Mon, 6 Oct 2003 20:49:24 +0000 (20:49 +0000)]
inclhack.def (stdio_va_list): Removed _ap fix.

* fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
(irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
introduced some multi-line prototypes.
* fixinc/fixincl.x: Regenerate.

From-SVN: r72165

20 years agolocale_facets.tcc (__pad<>::_S_pad): Improve performance-wise...
Paolo Carlini [Mon, 6 Oct 2003 19:46:21 +0000 (21:46 +0200)]
locale_facets.tcc (__pad<>::_S_pad): Improve performance-wise...

2003-10-06  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (__pad<>::_S_pad):
Improve performance-wise: avoid one traits::copy, avoid
the __builtin_alloca, streamline.

From-SVN: r72164