gcc.git
19 years agore PR tree-optimization/19952 (ICE: tree check: expected class 'declaration', have...
Devang Patel [Wed, 23 Feb 2005 01:10:39 +0000 (17:10 -0800)]
re PR tree-optimization/19952 (ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709)

       PR 19952
       * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
       all labels
       * g++.dg/tree-ssa/pr19952.C: New test.

From-SVN: r95430

19 years agoAdd myself as write-after-approval
Doug Gregor [Wed, 23 Feb 2005 01:06:05 +0000 (01:06 +0000)]
Add myself as write-after-approval

From-SVN: r95429

19 years agore PR awt/20029 (Robot needs XTest)
Thomas Fitzsimmons [Wed, 23 Feb 2005 01:05:46 +0000 (01:05 +0000)]
re PR awt/20029 (Robot needs XTest)

2005-02-22  Thomas Fitzsimmons  <fitzsim@redhat.com>

PR libgcj/20029:
* Makefile.am (lib_gnu_java_awt_peer_gtk_la_CFLAGS): Add X_CFLAGS.
(lib_gnu_java_awt_peer_gtk_la_LDFLAGS): Add X_LIBS and -lXtst.
* Makefile.in: Regenerate.
* configure.ac: Check for libXtst.
* configure: Regenerate.

From-SVN: r95428

19 years agoDaily bump.
GCC Administrator [Wed, 23 Feb 2005 00:16:30 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95426

19 years ago* config/rs6000/aix.h (WINT_TYPE): Define.
David Edelsohn [Wed, 23 Feb 2005 00:00:43 +0000 (00:00 +0000)]
* config/rs6000/aix.h (WINT_TYPE): Define.

From-SVN: r95421

19 years agors6000.c (rs6000_override_options): Default to natural alignment for 64-bit Darwin.
Stan Shebs [Tue, 22 Feb 2005 23:38:02 +0000 (23:38 +0000)]
rs6000.c (rs6000_override_options): Default to natural alignment for 64-bit Darwin.

        * config/rs6000/rs6000.c (rs6000_override_options): Default to
        natural alignment for 64-bit Darwin.
        (rs6000_parse_alignment_option): Warn about uses of -malign-power
        on 64-bit Darwin.
        * doc/invoke.texi: Document this.

From-SVN: r95420

19 years agore PR libstdc++/20091 (18_support/14026.cc execution test fails)
Richard Henderson [Tue, 22 Feb 2005 23:17:14 +0000 (15:17 -0800)]
re PR libstdc++/20091 (18_support/14026.cc execution test fails)

        PR libstdc++/20091
        * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't special case
        decrement of uncaughtExceptions for rethrow.

From-SVN: r95419

19 years agoparser.c (cp_parser_direct_declarator): Always complain about non-constant array...
Mark Mitchell [Tue, 22 Feb 2005 21:43:55 +0000 (21:43 +0000)]
parser.c (cp_parser_direct_declarator): Always complain about non-constant array bounds when in a function scope.

* parser.c (cp_parser_direct_declarator): Always complain about
non-constant array bounds when in a function scope.
* semantics.c (finish_id_expression): Do not mark dependent names
as non-constant.

From-SVN: r95417

19 years agoAlgorithmParameterGenerator.java (getInstance): Mention provider when throwing NoSuch...
Mark Wielaard [Tue, 22 Feb 2005 21:35:04 +0000 (21:35 +0000)]
AlgorithmParameterGenerator.java (getInstance): Mention provider when throwing NoSuchProviderException.

2005-02-22  Mark Wielaard  <address@bogus.example.com>

* java/security/AlgorithmParameterGenerator.java (getInstance):
Mention provider when throwing NoSuchProviderException.
* java/security/AlgorithmParameters.java (getInstance): Likewise.
* java/security/KeyFactory.java (getInstance): Likewise.
* java/security/KeyStore.java (getInstance): Likewise.
* java/security/SecureRandom.java (getInstance): Likewise.
* java/security/cert/CertificateFactory.java (getInstance): Likewise.

From-SVN: r95416

19 years agoProxy.java, [...]: Don't catch java.lang.ThreadDeath.
Jeroen Frijters [Tue, 22 Feb 2005 21:11:29 +0000 (21:11 +0000)]
Proxy.java, [...]: Don't catch java.lang.ThreadDeath.

2005-02-22  Jeroen Frijters  <jeroen@frijters.net>

* java/lang/reflect/Proxy.java,
java/net/URL.java,
java/security/SecureRandom.java,
java/util/Timer.java,
java/util/prefs/AbstractPreferences.java:
Don't catch java.lang.ThreadDeath.

From-SVN: r95415

19 years agoc-common.c (c_common_type_for_mode): Pass the mode's precision to make_[un]signed_typ...
DJ Delorie [Tue, 22 Feb 2005 20:10:45 +0000 (15:10 -0500)]
c-common.c (c_common_type_for_mode): Pass the mode's precision to make_[un]signed_type, not the mode itself.

* c-common.c (c_common_type_for_mode): Pass the mode's precision
to make_[un]signed_type, not the mode itself.

From-SVN: r95412

19 years ago2005-02-22 David Gilbert <david.gilbert@object-refinery.com>
David Gilbert [Tue, 22 Feb 2005 19:07:40 +0000 (19:07 +0000)]
2005-02-22  David Gilbert  <david.gilbert@object-refinery.com>

* java/awt/font/TransformAttribute.java,
(TransformAttribute(AffineTransform)): throw
IllegalArgumentException for null transform.
(getTransform): return a copy of transform.
Added doc comments to all.

From-SVN: r95408

19 years ago2005-02-22 Jeroen Frijters <jeroen@frijters.net>
Jeroen Frijters [Tue, 22 Feb 2005 18:58:53 +0000 (18:58 +0000)]
2005-02-22  Jeroen Frijters  <jeroen@frijters.net>

* java/io/Externalizable.java,
java/io/Serializable.java
(serialVersionUID): Removed.
* java/rmi/server/RemoteObject.java,
java/rmi/server/UID.java
(serialVersionUID): Made private.
* java/rmi/server/RemoteRef.java,
java/rmi/server/ServerRef.java
(serialVersionUID): Set proper value.
* java/security/interfaces/DSAPrivateKey.java,
java/security/interfaces/DSAPublicKey.java,
java/security/interfaces/RSAMultiPrimePrivateCrtKey.java,
java/security/interfaces/RSAPrivateCrtKey.java,
java/security/interfaces/RSAPrivateKey.java,
java/security/interfaces/RSAPublicKey.java,
javax/crypto/SecretKey.java
(serialVersionUID): Added.

From-SVN: r95406

19 years ago* java/lang/Object.h (_JvObjectPrefix): Declare as extern "Java".
Tom Tromey [Tue, 22 Feb 2005 18:29:43 +0000 (18:29 +0000)]
* java/lang/Object.h (_JvObjectPrefix): Declare as extern "Java".

From-SVN: r95405

19 years agore PR java/20056 ('verification failed: incompatible type on stack' with --indirect...
Tom Tromey [Tue, 22 Feb 2005 18:14:37 +0000 (18:14 +0000)]
re PR java/20056 ('verification failed: incompatible type on stack' with --indirect-dispatch)

PR java/20056:
* verify-impl.c (EITHER): New define.
(types_compatible): Handle it.
(check_field_constant): Use it.

From-SVN: r95404

19 years agore PR java/20056 ('verification failed: incompatible type on stack' with --indirect...
Tom Tromey [Tue, 22 Feb 2005 18:14:04 +0000 (18:14 +0000)]
re PR java/20056 ('verification failed: incompatible type on stack' with --indirect-dispatch)

PR java/20056:
* verify.cc (type::EITHER): New constant.
(check_field_constant): Use it.
(type::compatible): Handle it.

From-SVN: r95403

19 years agoPolicyFile.java, [...]: Fixed copyright header.
Michael Koch [Tue, 22 Feb 2005 17:52:40 +0000 (17:52 +0000)]
PolicyFile.java, [...]: Fixed copyright header.

2005-02-22  Michael Koch  <konqueror@gmx.de>

* gnu/java/security/PolicyFile.java,
gnu/java/security/pkcs/PKCS7SignedData.java,
gnu/java/security/pkcs/SignerInfo.java:
Fixed copyright header.

From-SVN: r95399

19 years agofunctional: Fix License to GPL with exception.
Paolo Carlini [Tue, 22 Feb 2005 17:07:07 +0000 (17:07 +0000)]
functional: Fix License to GPL with exception.

2005-02-22  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/functional: Fix License to GPL with exception.
* include/tr1/hashtable: Likewise.
* include/tr1/tuple: Likewise.
* include/tr1/type_traits: Likewise.
* include/tr1/type_traits_fwd.h: Likewise.
* include/tr1/unordered_map: Likewise.
* include/tr1/unordered_set: Likewise.
* include/tr1/utility: Likewise.

From-SVN: r95398

19 years agotree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
Kazu Hirata [Tue, 22 Feb 2005 16:48:34 +0000 (16:48 +0000)]
tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.

* tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
(coalesce_ssa_name): Don't check for
SSANORM_USE_COALESCE_LIST.
(rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.

From-SVN: r95397

19 years agocfg.c (cached_make_edge): Call make_edge if edge cache is not available.
Kazu Hirata [Tue, 22 Feb 2005 15:42:25 +0000 (15:42 +0000)]
cfg.c (cached_make_edge): Call make_edge if edge cache is not available.

* cfg.c (cached_make_edge): Call make_edge if edge cache is
not available.  Use tail calls wherever possible.
(make_edge): Call unchecked_make_edge to create an edge.

From-SVN: r95396

19 years agotree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
Diego Novillo [Tue, 22 Feb 2005 15:11:06 +0000 (15:11 +0000)]
tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...

* tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
(rewrite_into_ssa): ... here.

From-SVN: r95395

19 years ago2005-02-22 Jeroen Frijters <jeroen@frijters.net>
Jeroen Frijters [Tue, 22 Feb 2005 14:06:53 +0000 (14:06 +0000)]
2005-02-22  Jeroen Frijters  <jeroen@frijters.net>

* java/beans/PropertyDescriptor.java
(PropertyDescriptor,setReadMethod): Set propertyType.

From-SVN: r95393

19 years ago2005-02-22 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 22 Feb 2005 13:02:11 +0000 (13:02 +0000)]
2005-02-22  Michael Koch  <konqueror@gmx.de>

* java/nio/DirectByteBufferImpl.java
(owner): Fixed formatting of javadoc.
* java/text/DateFormat.java
(getAvailableLocales): Fixed formatting.
* java/text/SimpleDateFormat.java:
Fixed formatting and import statement order.
* java/util/Calendar.java
(Calendar): Fixed javadoc to be HTML compliant.
* java/util/SimpleTimeZone.java:
Fixed javadocs.

From-SVN: r95392

19 years agoauto_ptr_neg.cc: Add missing dg-do compile directive.
Paolo Carlini [Tue, 22 Feb 2005 12:50:56 +0000 (12:50 +0000)]
auto_ptr_neg.cc: Add missing dg-do compile directive.

2005-02-22  Paolo Carlini  <pcarlini@suse.de>

* testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
auto_ptr_neg.cc: Add missing dg-do compile directive.
* testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
auto_ptr_rvalue_neg.cc: Likewise.
* testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
shared_ptr_neg.cc: Likewise.
* testsuite/tr1/2_general_utilities/memory/shared_ptr/cons/
auto_ptr_neg.cc: Likewise.
* testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
reset_neg.cc: Likewise.
* testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
swap_neg.cc: Likewise.

From-SVN: r95391

19 years ago2005-02-22 Roman Kennke <roman@ontographics.com>
Roman Kennke [Tue, 22 Feb 2005 12:16:00 +0000 (12:16 +0000)]
2005-02-22  Roman Kennke <roman@ontographics.com>

* javax/swing/plaf/basic/BasicLookAndFeel.java
(initComponentDefaults): Fixed Button left and right margin.

From-SVN: r95389

19 years agoasm1.c: Check for IBM1047 code set, not IBM-1047.
Uros Bizjak [Tue, 22 Feb 2005 11:36:36 +0000 (12:36 +0100)]
asm1.c: Check for IBM1047 code set, not IBM-1047.

* g++.dg/charset/asm1.c: Check for IBM1047 code set, not IBM-1047.
* g++.dg/charset/asm2.c: Likewise.
* g++.dg/charset/asm3.c: Likewise.
* g++.dg/charset/asm4.c: Likewise.
* g++.dg/charset/asm5.c: Likewise.
* g++.dg/charset/attribute1.c: Likewise.
* g++.dg/charset/attribute2.c: Likewise.
* g++.dg/charset/extern1.cc: Likewise.
* g++.dg/charset/extern2.cc: Likewise.
* g++.dg/charset/extern3.cc: Likewise.
* g++.dg/charset/function.cc: Likewise.
* g++.dg/charset/string.c: Likewise.
* g++.dg/charset/charset.exp: Likewise.
* lib/target-supports.exp (check_iconv_available): Fix comment.

From-SVN: r95388

19 years agobuiltin1.c: Use dg-require-iconv "IBM1047".
Uros Bizjak [Tue, 22 Feb 2005 06:57:03 +0000 (07:57 +0100)]
builtin1.c: Use dg-require-iconv "IBM1047".

* gcc.dg/charset/builtin1.c: Use dg-require-iconv "IBM1047".
* gcc.dg/charset/asm1.c: Check for IBM1047 code set, not IBM-1047.
* gcc.dg/charset/asm2.c: Likewise.
* gcc.dg/charset/asm3.c: Likewise.
* gcc.dg/charset/asm4.c: Likewise.
* gcc.dg/charset/asm5.c: Likewise.
* gcc.dg/charset/asm6.c: Likewise.
* gcc.dg/charset/attribute1.c: Likewise.
* gcc.dg/charset/attribute2.c: Likewise.
* gcc.dg/charset/builtin1.c: Likewise.
* gcc.dg/charset/extern.c: Likewise.
* gcc.dg/charset/function.c: Likewise.
* gcc.dg/charset/string.c: Likewise.
* gcc.dg/charset/charset.exp:Likewise.

From-SVN: r95385

19 years agoRobot.java (waitForIdle): Call invokeAndWait on an empty Runnable.
Thomas Fitzsimmons [Tue, 22 Feb 2005 06:18:59 +0000 (06:18 +0000)]
Robot.java (waitForIdle): Call invokeAndWait on an empty Runnable.

2005-02-22  Thomas Fitzsimmons  <fitzsim@redhat.com>

* java/awt/Robot.java (waitForIdle): Call invokeAndWait on an
empty Runnable.

From-SVN: r95384

19 years agore PR awt/17952 (Windows don't show with window manager that supports _NET_REQUEST_FR...
Thomas Fitzsimmons [Tue, 22 Feb 2005 06:13:04 +0000 (06:13 +0000)]
re PR awt/17952 (Windows don't show with window manager that supports _NET_REQUEST_FRAME_EXTENTS)

2005-02-22  Thomas Fitzsimmons  <fitzsim@redhat.com>

PR libgcj/17952:
* gnu/java/awt/peer/gtk/GtkWindowPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(getWidth): New method.
(getHeight): Likewise.
(create): Remove width, height and insets parameters.  Move size
setup ...
(realize_cb): ... here.  New function.
(connectSignals): Connect realize_cb.
(request_frame_extents): Remove FIXME.  Move
postInsetsChangedEvent lookup ...
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c (gtkInit):
... here.  Look up GtkWindowPeer getWidth and getHeight methods.
* jni/gtk-peer/gtkpeer.h (postInsetsChangedEventID): Declare
jmethodID.
(windowGetWidthID): Likewise.
(windowGetHeightID): Likewise.

From-SVN: r95383

19 years agore PR awt/19842 (MouseEvent ignores Button2 and Button3)
Thomas Fitzsimmons [Tue, 22 Feb 2005 04:50:29 +0000 (04:50 +0000)]
re PR awt/19842 (MouseEvent ignores Button2 and Button3)

2005-02-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

PR libgcj/19842
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(button_to_awt_mods): Return BUTTON masks, not BUTTON_DOWN masks.

From-SVN: r95382

19 years agoCheck in missed file from last commit.
Bryce McKinlay [Tue, 22 Feb 2005 03:45:18 +0000 (03:45 +0000)]
Check in missed file from last commit.

From-SVN: r95381

19 years ago[multiple changes]
Bud Davis [Tue, 22 Feb 2005 03:26:25 +0000 (03:26 +0000)]
[multiple changes]

2004-02-21  Bud Davis  <bdavis@gfortran.org>

        PR fortran/20086
        * io/transfer.c (write_constant_string): accept an 'h' as
        the start of a hollerith format string.

2005-02-21  Bud Davis  <bdavis9659@comcast.net>

        PR fortran/20086
        * gfortran.dg/pr20086.f90: New test.

From-SVN: r95379

19 years ago[multiple changes]
Bryce McKinlay [Tue, 22 Feb 2005 03:13:35 +0000 (03:13 +0000)]
[multiple changes]

2005-02-21  Bryce McKinlay  <mckinlay@redhat.com>

Merge serialization from GNU Classpath.
* gcj/method.h: Add missing #includes.
* java/io/ObjectInputStream.java (readClassDescriptor): Check for
primitive class IDs on the stream here...
(resolveClass): ...not here.
* java/io/ObjectStreamField.java: Use VMObjectStream class calls to set
fields.
* java/io/VMObjectStreamClass.java (setDoubleNative, setFloatNative,
setLongNative, setIntNative, setShortNative, setCharNative,
setByteNative, setBooleanNative, setObjectNative): New native methods.
* java/io/natVMObjectStreamClass.java (setDoubleNative, setFloatNative,
setLongNative, setIntNative, setShortNative, setCharNative,
setByteNative, setBooleanNative, setObjectNative): Implement them.
* java/io/natObjectInputStream.cc (allocateObject): Add new parameters
from Classpath's version. Use _Jv_FromReflectedConstructor(). Call
the constructor here.
(callConstructor): Removed.
(getCallersClassLoader): Removed.
* java/lang/reflect/Field.java (setByte, setShort, setInt, setLong,
setFloat, setDouble, setChar, setBoolean): Add 'checkFinal' parameter
to control whether setting final field values is permitted. Call
getAddr() with checkFinal parameter instead of setAddr().
* java/lang/reflect/natField.cc (getType): Lookup and resolve field
only if not done already.
(getAddr): Add checkFinal parameter. Do the final field check only if
checkFinal is set.
(setAddr): Removed.

2005-02-21  Mark Wielaard  <mark@klomp.org>

# Fixes bug #11957
* java/io/ObjectInputStream.java (resolveClass): Don't check "void"
twice.

2005-02-21  Mark Wielaard  <mark@klomp.org>

Fixes bug #11618.
* java/io/ObjectInputStream.java (readClassDescriptor): Handle classes
without a super class and us ObjectStreamClass.lookupForClassObject().
(resolveClass): Check for primitive types.
(lookupClass): Return null when argument is null.

2005-02-21  Jeroen Frijters  <jeroen@frijters.net>

* java/io/ObjectInputStream.java
(readObject): Fix to consume TC_ENDBLOCKDATA after readExternal.

2005-02-21  Jeroen Frijters  <jeroen@frijters.net>

* java/io/ObjectOutputStream.java
(writeObject, callWriteMethod): Replaced reflection with accessing
cached info in ObjectStreamClass.
(getMethod): Removed.
* java/io/ObjectStreamClass.java
(findMethod): Added check to make sure the method found has the
right modifiers.
(cacheMethods): Added writeReplace and writeObject methods.
(setFlags): Look at new writeObjectMethod field instead of doing
reflection again.
(writeReplaceMethod): New field.
(writeObjectMethod): New field.

2005-02-21  Guilhem Lavaux  <guilhem@kaffe.org>
Jeroen Frijters  <jeroen@frijters.net>

* java/io/ObjectInputStream.java
(newObject): Changed prototype. Get a constructor reflect object
directly.
(callConstructor): Removed.
(allocateObject): Changed prototype.
(readClassDescriptor): Build the constructor reflection directly.
(readObject): Invoke newObject using the new prototype.

* java/io/ObjectStreamClass.java
(firstNonSerializableParent): Removed.
(firstNonSerializableParentConstructor): Added.

From-SVN: r95378

19 years agore PR tree-optimization/19786 (Aliasing optimisation bug)
Alexandre Oliva [Tue, 22 Feb 2005 02:27:37 +0000 (02:27 +0000)]
re PR tree-optimization/19786 (Aliasing optimisation bug)

gcc/ChangeLog:
PR tree-optimization/19786
* tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
tag to another's may-alias bitmap when adding to the other's list.
gcc/testsuite/ChangeLog:
PR tree-optimization/19786
* g++.dg/tree-ssa/pr19786.C: New.

From-SVN: r95377

19 years agotree-ssa-loop-ivopts.c (computation_cost): Start register numbering at LAST_VIRTUAL_R...
DJ Delorie [Tue, 22 Feb 2005 02:00:56 +0000 (21:00 -0500)]
tree-ssa-loop-ivopts.c (computation_cost): Start register numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using...

* tree-ssa-loop-ivopts.c (computation_cost): Start register
numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
registers in unsupported ways.
* expmed.c (init_expmed): Likewise.

From-SVN: r95373

19 years ago[multiple changes]
Mark Wielaard [Tue, 22 Feb 2005 00:58:36 +0000 (00:58 +0000)]
[multiple changes]

2005-02-21  Mark Wielaard  <mark@klomp.org>

* gnu/java/locale/LocaleInformation_en.java: Extend
localPatternChars to "GyMdkHmsSEDFwWahKzYeugAZ".

2005-02-21  Mark Wielaard  <mark@klomp.org>

* java/text/SimpleDateFormat.java
(SimpleDateFormat(String, DateFormatSymbols)): Throw
NullPointerException when formatData is null.

2005-02-21  Mark Wielaard  <mark@klomp.org>

* java/util/SimpleTimeZone.java (getOffset): Calculate beforeEnd by
taking dstSavings into account.

2005-02-21  Sven de Marothy <sven@physto.se>

* java/text/SimpleDateFormat.java,
(parse): Set correct DST_OFFSET to the correct value.

2005-02-21  Mark Wielaard  <mark@klomp.org>

* java/util/SimpleTimeZone.java (checkRule): Throw
IllegalArgumentException when month out of range.

2005-02-21  Sven de Marothy  <sven@physto.se>

* java/util/GregorianCalendar.java,
(add): Don't set fields directly anymore. Use set()

2005-02-21  Mark Wielaard  <mark@klomp.org>

* java/text/SimpleDateFormat.java (CompiledField.toString):
Use StringBuffer, not StringBuilder.
(toString): Likewise.

2005-02-21  Sven de Marothy  <sven@physto.se>

* java/util/Calendar.java
(clear): Dates should clear to local time.
* java/util/GregorianCalendar.java
(computeTime): Fix priority problem with DAY_OF_WEEK,
Handle non-sunday-startig weeks and minimumDaysInFirstWeek.

2005-02-21  Sven de Marothy  <sven@physto.se>

* java/util/Calendar.java
(Calendar): Constructor should clear fields.

2005-02-21  Sven de Marothy  <sven@physto.se>

* java/text/SimpleDateFormat.java
(parse): Tweak handling of 2-year dates
* java/util/Calendar.java
(clear): Clear fields to correct value.
* java/util/GregorianCalendar.java
(computeTime): Correct handling of time zones.
Correct field minimum values.

2005-02-21  Sven de Marothy  <sven@physto.se>

* java/util/Calendar.java
(set) Invalidate all fields on first call to set().

2005-02-21  Sven de Marothy  <sven@physto.se>

* java/util/GregorianCalendar.java
(computeTime): Fixed handling of time zones.

2005-02-21  Sven de Marothy  <sven@physto.se>

* java/util/Calendar.java
(clear): Set values to Epoch instead of zero.
(set): Set isSet to the relevant field pattern instead of just
the field.
* java/util/GregorianCalendar.java
(getBundle): Removed.
(getDayOfYear): Removed.
(getFirstDayOfMonth): New private method.
(nonLeniencyCheck): New private method.
(computeTime): Correct handling of insufficient data.

2005-02-21  Sven de Marothy <sven@physto.se>

* java/util/Calendar.java: Invalidate ERA field on setting
the YEAR.
* java/util/SimpleTimeZone.java:
(getDaysInMonth): Reimplemented.
* java/util/GregorianCalendar.java:
(getLinearTime): Removed.
(isLeapYear(int,boolean)): Removed.
(before(), after()): Removed.
(computeTime): Reimplemented.

2005-02-21  Sven de Marothy <sven@physto.se>

* java/util/Calendar.java: Reformatted.
* java/util/GregorianCalendar.java: Reformatted.
* java/util/SimpleTimeZone.java: Reformatted.

2005-02-21  Sven de Marothy <sven@physto.se>

        * java/util/GregorianCalendar.java
        (GregorianCalendar): Update fields in the constructor

2005-02-21  Noa Resare  <noa@resare.com>

        * java/util/Calendar.java (explicitDSTOffset): New instance field.
        (set(int,int)): Set and use new field.
        (set(int,int,int)): Check new field.

2005-02-21  Noa Resare  <address@hidden>

* java/util/Calendar.java(set):
Fix for DST related regression.

2005-02-21  Jeroen Frijters  <jeroen@frijters.net>

* java/util/Calendar.java
(setTimeInMillis): Added call to clear, removed computeFields call.
* java/util/Date.java
(Date(int,int,int,int,int,int)): Removed workaround for
GregorianCalendar bug.
* java/util/GregorianCalendar.java
(GregorianCalendar): Chained all constructors to a (new)
common constructor.
(computeTime): Fixed support for lenient month treatment.
(getLinearDay): Return long instead of int.
(calculateDay): Added fields argument and changed day argument
to long.

2005-02-21  Andrew John Hughes  <gnu_andrew@member.fsf.org>

* java/text/SimpleDateFormat.java
Lots of documentation updates.
(readObject(java.io.ObjectInputStream)): Wraps
IllegalArgumentException as specified.
(compileFormat(String)): Uses standardChars
rather than the local pattern characters.
Throws IllegalArgumentException rather than
storing a -1 field.
(toString()): Extended to include all variables
in a better format.
(translateLocalizedPattern(String, String, String)):
Renamed to better define the use of this method.

2005-02-21  Andrew John Hughes  <gnu_andrew@member.fsf.org>

* java/text/DateFormat.java:
Documented pattern character offset constants and
added new ones.
(Field): Added new static fields for new pattern chars.
* java/text/SimpleDateFormat.java:
(CompiledField): Changed name of FieldSizePair class
to CompiledField after adding the character as an
attribute.  Changed fields to private and added
accessors to give encapsulation.
(CompiledField.CompiledField(int,int,char)): Extended
with character field.
(CompiledField.getField()): New accessor method.
(CompiledField.getSize()): New acceessor method.
(CompiledField.getCharacter()): New accessor method.
(CompiledField.toString()): Added primarily for debugging.
(standardChars): Now uses extended 24 character sequence.
(compileFormat(String)): Changed to use CompiledField.
(formatWithAttribute(java.util.Date, gnu.java.text.FormatBuffer,
java.text.FieldPosition)): Changed to use CompiledField.
New handler for RFC 822 timezones added.

2005-02-21  Andrew John Hughes  <gnu_andrew@member.fsf.org>

* java/text/SimpleDateFormat.java:
(parse(String, java.text.ParsePosition)):
Changed 'E' and 'M' cases to use both
short and long names.  Extended 'z'
case to also handle 'Z', and deal
with simple GMT offsets such as +0100.
(computeOffset(String)): New private method,
which converts a GMT offset specification,
such as GMT-0500 to a numeric offset in
milliseconds.
* java/util/TimeZone.java:
(timezones()): Added "CEST", the daylight
savings time version of "CET", or Central
European Time.

2005-02-21  Ito Kazumitsu  <kaz@maczuka.gcd.org>

* java/text/SimpleDateFormat.java:
(parse): Set the DST offset to 0 when parsing
GMT offset timezones.

2005-02-21  Ito Kazumitsu  <kaz@maczuka.gcd.org>

* java/text/SimpleDateFormat.java:
(parse): Use offset to set ZONE_OFFSET
rather than the DST_OFFSET, so that
GMT offset timezones change the right
one.

2005-02-21  Andrew John Hughes  <gnu_andrew@member.fsf.org>

* java/text/SimpleDateFormat.java:
(getDateFormatSymbols()): return a copy
(setDateFormatSymbols(java.text.DateFormatSymbols)):
throw exception on null input
(clone()): implemented to clone
internal fields

2005-02-21  Sven de Marothy <sven@physto.se>

* java/text/SimpleDateFormat.java
(parse): comparison should be case-insensitive, ignore null
strings.

From-SVN: r95368

19 years agoMakefile.am, [...]: Fix accidental extra change from previous commit.
Jonathan Wakely [Tue, 22 Feb 2005 00:17:16 +0000 (00:17 +0000)]
Makefile.am, [...]: Fix accidental extra change from previous commit.

* include/Makefile.am, include/Makefile.in: Fix accidental extra
change from previous commit.

From-SVN: r95366

19 years agoDaily bump.
GCC Administrator [Tue, 22 Feb 2005 00:16:15 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95364

19 years agomemory: New file.
Jonathan Wakely [Tue, 22 Feb 2005 00:10:22 +0000 (00:10 +0000)]
memory: New file.

* include/tr1/memory: New file.
* include/Makefile.am, include/Makefile.in: Add new TR1 header.
* testsuite/tr1/2_general_utilities/memory/
enable_shared_from_this/not_shared.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
enable_shared_from_this/not_shared2.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
enable_shared_from_this/not_shared3.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
enable_shared_from_this/shared.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
enable_shared_from_this/still_shared.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/assign/assign.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/assign/auto_ptr.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/assign/auto_ptr_neg.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/assign/auto_ptr_rvalue_neg.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/assign/shared_ptr.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/assign/shared_ptr_neg.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/comparison/cmp.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/cons/auto_ptr.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/cons/auto_ptr_neg.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/cons/copy.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/cons/default.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/cons/pointer.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/cons/weak_ptr.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/cons/weak_ptr_expired.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/dest/dest.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/misc/io.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/misc/swap.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/modifiers/reset.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/modifiers/reset_neg.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/modifiers/swap.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/modifiers/swap_neg.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/observers/bool_conv.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/observers/get.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/observers/unique.cc: New test.
* testsuite/tr1/2_general_utilities/memory/
shared_ptr/observers/use_count.cc: New test.

From-SVN: r95361

19 years agotype_traits (is_member_function_pointer): Remove ugly workaround for c++/19076.
Paolo Carlini [Mon, 21 Feb 2005 23:51:51 +0000 (23:51 +0000)]
type_traits (is_member_function_pointer): Remove ugly workaround for c++/19076.

2005-02-21  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/type_traits (is_member_function_pointer):
Remove ugly workaround for c++/19076.

From-SVN: r95360

19 years agobasic_string.tcc (_Rep::_M_destroy): Don't check for this == &_S_empty_rep, it's...
Paolo Carlini [Mon, 21 Feb 2005 23:25:08 +0000 (23:25 +0000)]
basic_string.tcc (_Rep::_M_destroy): Don't check for this == &_S_empty_rep, it's always false, here.

2005-02-21  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.tcc (_Rep::_M_destroy): Don't
check for this == &_S_empty_rep, it's always false, here.

From-SVN: r95358

19 years agocv_func.C: New test.
Douglas Gregor [Mon, 21 Feb 2005 23:15:35 +0000 (23:15 +0000)]
cv_func.C: New test.

2005-02-21  Douglas Gregor  <dgregor@cs.indiana.edu>

        * g++.dg/other/cv_func.C: New test.
        * g++.dg/template/mem_func_ptr.C: New test.
        * g++.dg/template/qualttp20.C: We now get the xfail'd warning
        when we are being pedantic; we expect this test to pass now.
        * g++.old-deja/g++.pt/ptrmem5.C: We no longer receive a bogus
        error here.

From-SVN: r95357

19 years agore PR c++/19076 (Pointer to member function not matched to pointer to member template)
Douglas Gregor [Mon, 21 Feb 2005 23:12:27 +0000 (23:12 +0000)]
re PR c++/19076 (Pointer to member function not matched to pointer to member template)

2005-02-21  Douglas Gregor  <dgregor@cs.indiana.edu>

PR c++/19076
PR c++/6628
* cp-tree.h (cp_apply_type_quals_to_decl): Declared.
* decl.c (grokdeclarator): Pedwarn about qualifying a function
type.
Add qualifiers when declaring a typedef of a function type.
Member function pointers pick up the qualifiers of the typedef
used to declare them.
        Don't complain about creating cv-qualified function types.
Complain about qualified function typedefs that are used to
declare non-static member functions or free functions.
Use cp_apply_type_quals_to_decl.
(start_preparsed_function): Use cp_apply_type_quals_to_decl.
(grokclassfn): Use cp_apply_type_quals_to_decl.
* error.c (dump_type_suffix): Print qualifiers for function
types.
* pt.c (tsubst_decl): Use cp_apply_type_quals_to_decl.
(tsubst): When substituting a function type into a member
pointer type, pass along the qualifiers.
(unify): Unify member pointers to member function pointers.
* tree.c (cp_build_qualified_type_real): Function types may be
qualified. This includes restrict qualifiers.
* typeck.c (cp_apply_type_quals_to_decl): New function to replace
use of c_apply_type_quals_to_decl. Drops qualifiers that are being
added to function types.

From-SVN: r95356

19 years ago2005-02-21 Robert Schuster <theBohemian@gmx.net>
Robert Schuster [Mon, 21 Feb 2005 22:40:35 +0000 (22:40 +0000)]
2005-02-21  Robert Schuster  <theBohemian@gmx.net>

* gnu/java/beans/IntrospectionIncubator.java
(addMethod) Reverts the patch that ntroduced a regression (see bug
https://savannah.gnu.org/bugs/?func=detailitem&item_id=10938).

From-SVN: r95355

19 years ago2005-02-21 Michael Koch <konqueror@gmx.de>
Michael Koch [Mon, 21 Feb 2005 21:41:28 +0000 (21:41 +0000)]
2005-02-21  Michael Koch  <konqueror@gmx.de>

* java/awt/Checkbox.java
(next_checkbox_number): New static variable.
(generateName): New method.
(getUniqueLong): Likewise.
* java/awt/Window.java
(next_window_number): New static variable.
(generateName): New method.
(getUniqueLong): Likewise.

From-SVN: r95354

19 years agore PR libfortran/19302 (intrinsic_nearest.f90 fails)
Eric Botcazou [Mon, 21 Feb 2005 21:39:33 +0000 (22:39 +0100)]
re PR libfortran/19302 (intrinsic_nearest.f90 fails)

PR libfortran/19302
* intrinsics/c99_functions.c (nextafterf): Special-case infinite
numbers.

From-SVN: r95353

19 years ago* config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
Stan Cox [Mon, 21 Feb 2005 20:32:05 +0000 (20:32 +0000)]
* config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.

From-SVN: r95348

19 years agoJarFile.java (verifyHashes): Check whether ZipEntry exists.
Mark Wielaard [Mon, 21 Feb 2005 20:29:00 +0000 (20:29 +0000)]
JarFile.java (verifyHashes): Check whether ZipEntry exists.

       * java/util/jar/JarFile.java (verifyHashes): Check whether ZipEntry
       exists.

From-SVN: r95347

19 years ago* io/write.c(output_float): Typo in error message.
Steven G. Kargl [Mon, 21 Feb 2005 19:59:58 +0000 (19:59 +0000)]
* io/write.c(output_float):  Typo in error message.

From-SVN: r95343

19 years agoflow.c (delete_dead_jumptables): Speed up by scanning insns that do not belong to...
Kazu Hirata [Mon, 21 Feb 2005 19:47:40 +0000 (19:47 +0000)]
flow.c (delete_dead_jumptables): Speed up by scanning insns that do not belong to any basic block.

* flow.c (delete_dead_jumptables): Speed up by scanning insns
that do not belong to any basic block.

From-SVN: r95342

19 years agotree-cfg.c (fold_cond_expr_cond): New.
Kazu Hirata [Mon, 21 Feb 2005 18:38:05 +0000 (18:38 +0000)]
tree-cfg.c (fold_cond_expr_cond): New.

* tree-cfg.c (fold_cond_expr_cond): New.
(make_edges): Call fold_cond_expr_cond.
(find_taken_edge): Accept nothing but INTEGER_CST.
(find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
and 1.
(find_taken_edge_switch_expr): Remove a check for INTEGER_CST.

From-SVN: r95339

19 years agoMakefile.in: Rebuilt.
Andrew Haley [Mon, 21 Feb 2005 18:19:01 +0000 (18:19 +0000)]
Makefile.in: Rebuilt.

2005-02-21  Andrew Haley  <aph@redhat.com>

* Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Added natLogger.cc.
* java/util/logging/natLogger.cc: New file.
* java/util/logging/Logger.java (getCallerStackFrame): Now
native.

From-SVN: r95338

19 years agoMakefile.am (all_property_files): Remove left over.
Andreas Tobler [Mon, 21 Feb 2005 17:42:20 +0000 (18:42 +0100)]
Makefile.am (all_property_files): Remove left over.

2005-02-21  Andreas Tobler  <a.tobler@schweiz.ch>

* Makefile.am (all_property_files): Remove left over.
(classes.stamp): Add stamp for the ONESTEP build, also known as
--enable-libgcj-multifile.
* Makefile.in: Regenerated.

From-SVN: r95337

19 years agoFix law's ChangeLog date, and
Tobias Schlüter [Mon, 21 Feb 2005 16:31:42 +0000 (17:31 +0100)]
Fix law's ChangeLog date, and

Fix law's ChangeLog date, and
* lib/gfortran-dg.exp (gfortran-dg-test): Split long regexps.

From-SVN: r95335

19 years agocfganal.c (find_unreachable_blocks): Manually CSE load of e->dest.
Jeff Law [Mon, 21 Feb 2005 16:21:00 +0000 (09:21 -0700)]
cfganal.c (find_unreachable_blocks): Manually CSE load of e->dest.

        * cfganal.c (find_unreachable_blocks): Manually CSE load of
        e->dest.

From-SVN: r95334

19 years agoButton.java, [...]: Fixed formatting issues all over.
Michael Koch [Mon, 21 Feb 2005 16:12:17 +0000 (16:12 +0000)]
Button.java, [...]: Fixed formatting issues all over.

2005-02-21  Michael Koch  <konqueror@gmx.de>

* java/awt/Button.java,
java/awt/Container.java,
java/awt/Font.java,
java/awt/Frame.java,
java/text/CollationElementIterator.java,
java/text/RuleBasedCollator.java,
java/util/PropertyPermission.java:
Fixed formatting issues all over.

From-SVN: r95333

19 years ago* gcc.dg/tree-ssa/20041122-1.c: New test for missing optimization.
Jeff Law [Mon, 21 Feb 2005 14:55:38 +0000 (07:55 -0700)]
* gcc.dg/tree-ssa/20041122-1.c: New test for missing optimization.

From-SVN: r95332

19 years agoc-objc-common.h, [...]: Update copyright.
Kazu Hirata [Mon, 21 Feb 2005 14:39:52 +0000 (14:39 +0000)]
c-objc-common.h, [...]: Update copyright.

* c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
genautomata.c, langhooks.c, langhooks.h, system.h,
config/arm/lib1funcs.asm: Update copyright.

From-SVN: r95331

19 years agotree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
Kazu Hirata [Mon, 21 Feb 2005 14:33:36 +0000 (14:33 +0000)]
tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.

* tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
(SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
Adjust their definitions.
(remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
(rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.

From-SVN: r95330

19 years agodo_iterator: Split loop, markup all lines for which an error locus is printed.
Tobias Schlüter [Mon, 21 Feb 2005 13:03:06 +0000 (14:03 +0100)]
do_iterator: Split loop, markup all lines for which an error locus is printed.

* gfortran.dg/do_iterator: Split loop, markup all lines for
which an error locus is printed.
* gfortran.dg/pr17708.f90: Markup all lines for which an error
locus is printed.
* gfortran.dg/select_4.f90: Likewise.
* lib/gfortran-dg.exp (gfortran-dg-test): Handle gfortran error
locuses in the various permutations.

From-SVN: r95329

19 years ago* dbxout.c (dbxout_function_end): Emit Lscope label always.
Ulrich Weigand [Mon, 21 Feb 2005 10:06:20 +0000 (10:06 +0000)]
* dbxout.c (dbxout_function_end): Emit Lscope label always.

From-SVN: r95326

19 years agore PR bootstrap/13770 ([doc] --with-gc not documented)
Richard Guenther [Mon, 21 Feb 2005 10:03:07 +0000 (10:03 +0000)]
re PR bootstrap/13770 ([doc] --with-gc not documented)

2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>

PR bootstrap/13770
* doc/install.texi: Document --with-gc.

From-SVN: r95325

19 years agoFileDescriptor.java (sync): Add real exception to SyncFailedException.
Mark Wielaard [Mon, 21 Feb 2005 08:31:01 +0000 (08:31 +0000)]
FileDescriptor.java (sync): Add real exception to SyncFailedException.

2005-02-21  Mark Wielaard  <mark@klomp.org>

* java/io/FileDescriptor.java (sync): Add real exception to
SyncFailedException.

From-SVN: r95324

19 years agoInputStreamReader.java: Fixed @author tag.
Michael Koch [Mon, 21 Feb 2005 08:27:00 +0000 (08:27 +0000)]
InputStreamReader.java: Fixed @author tag.

2005-02-21  Michael Koch  <konqueror@gmx.de>

* java/io/InputStreamReader.java:
Fixed @author tag.

From-SVN: r95323

19 years agore PR libgcj/10353 (Java testsuite failures)
Eric Botcazou [Mon, 21 Feb 2005 08:12:36 +0000 (09:12 +0100)]
re PR libgcj/10353 (Java testsuite failures)

PR libgcj/10353
* configure.in (noconfigdirs) <sparc-*-solaris2.[0-6]>: Add libgcj.
* configure: Regenerate.

From-SVN: r95322

19 years agosimplify-rtx.c (simplify_unary_operation): Add a missing "break" statement.
Paolo Bonzini [Mon, 21 Feb 2005 07:37:51 +0000 (07:37 +0000)]
simplify-rtx.c (simplify_unary_operation): Add a missing "break" statement.

2005-02-21  Paolo Bonzini  <bonzini@gnu.org>

* simplify-rtx.c (simplify_unary_operation): Add a missing
"break" statement.

From-SVN: r95321

19 years agore PR tree-optimization/18663 (ACATS ICE cc1221d expected integer_cst, have nop_expr...
Eric Botcazou [Mon, 21 Feb 2005 07:27:14 +0000 (08:27 +0100)]
re PR tree-optimization/18663 (ACATS ICE cc1221d expected integer_cst, have nop_expr in tree_int_cst_lt, at tree.c:3779)

PR tree-optimization/18663
* tree-ssa-dom.c (extract_range_from_cond): Return 0
if the type has variable bounds.

From-SVN: r95320

19 years ago* gcse.c: Remove an obsolete comment.
Kazu Hirata [Mon, 21 Feb 2005 02:02:19 +0000 (02:02 +0000)]
* gcse.c: Remove an obsolete comment.

From-SVN: r95319

19 years ago* gcse.c: Remove an obsolete comment.
Kazu Hirata [Mon, 21 Feb 2005 00:23:50 +0000 (00:23 +0000)]
* gcse.c: Remove an obsolete comment.

From-SVN: r95318

19 years agoDaily bump.
GCC Administrator [Mon, 21 Feb 2005 00:16:24 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95315

19 years agore PR libgcj/19728 (libgcj Gnu.java missing SHA-160)
Rutger Ovidius [Sun, 20 Feb 2005 22:30:49 +0000 (22:30 +0000)]
re PR libgcj/19728 (libgcj Gnu.java missing SHA-160)

2005-02-20  Rutger Ovidius  <ovidr@users.sourceforge.net>

PR libgcj/19728:
* gnu/java/security/provider/Gnu.java (Gnu): Add SHA-160 alias.

From-SVN: r95312

19 years ago* symbol.c: Typos in comments.
Steven G. Kargl [Sun, 20 Feb 2005 21:59:12 +0000 (21:59 +0000)]
* symbol.c: Typos in comments.

From-SVN: r95311

19 years agoRE.java, [...]: Made 'inner' classes real public static inner classes...
Dalibor Topic [Sun, 20 Feb 2005 21:18:30 +0000 (21:18 +0000)]
RE.java, [...]: Made 'inner' classes real public static inner classes...

2005-02-20  Dalibor Topic  <robilad@kaffe.org>

* libraries/javalib/gnu/regexp/RE.java,
libraries/javalib/java/io/ObjectInputStream.java,
libraries/javalib/java/security/AllPermission.java,
libraries/javalib/java/security/BasicPermission.java,
libraries/javalib/java/security/Permissions.java,
libraries/javalib/java/text/MessageFormat.java:
Made 'inner' classes real public static inner classes,
and made them final where possible, or removed them
where unused.

From-SVN: r95310

19 years agore PR tree-optimization/19951 (ICE in tree_split_edge, at tree-cfg.c:3199 with -ftree...
Dorit Naishlos [Sun, 20 Feb 2005 20:32:41 +0000 (20:32 +0000)]
re PR tree-optimization/19951 (ICE in tree_split_edge, at tree-cfg.c:3199 with -ftree-vectorize)

        PR tree-optimization/19951
        * g++.dg/vect: New directory.
        * g++.dg/vect/vect.exp: New file.
        * g++.dg/vect/pr19951.cc: New testcase.
        * g++.dg/dg.exp: Also prune vectorizer tests.

From-SVN: r95309

19 years agoextend.texi (Function Attributes): The attribute "pure" is below this text, not above.
Hans-Peter Nilsson [Sun, 20 Feb 2005 19:16:10 +0000 (19:16 +0000)]
extend.texi (Function Attributes): The attribute "pure" is below this text, not above.

* doc/extend.texi (Function Attributes) <Attribute const>: The
attribute "pure" is below this text, not above.

From-SVN: r95308

19 years ago* expr.c (gfc_type_convert_binary): Typo in comment.
Steven G. Kargl [Sun, 20 Feb 2005 18:26:19 +0000 (18:26 +0000)]
* expr.c (gfc_type_convert_binary): Typo in comment.

From-SVN: r95307

19 years agopa.c (pa_assemble_integer, get_plabel): Small cleanups.
John David Anglin [Sun, 20 Feb 2005 17:37:37 +0000 (17:37 +0000)]
pa.c (pa_assemble_integer, get_plabel): Small cleanups.

* pa.c (pa_assemble_integer, get_plabel): Small cleanups.
(pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
* som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.

From-SVN: r95306

19 years agore PR middle-end/18785 (isdigit builtin function fails with EBCDIC character sets)
Zack Weinberg [Sun, 20 Feb 2005 17:01:32 +0000 (17:01 +0000)]
re PR middle-end/18785 (isdigit builtin function fails with EBCDIC character sets)

PR 18785
libcpp:
* charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
(cpp_host_to_exec_charset): New function.
* include/cpplib.h: Declare cpp_host_to_exec_charset.

gcc:
* langhooks.h (struct lang_hooks): Add to_target_charset.
* langhooks.c (lhd_to_target_charset): New function.
* langhooks-def.h: Declare lhd_to_target_charset.
(LANG_HOOKS_TO_TARGET_CHARSET): New macro.
(LANG_HOOKS_INITIALIZER): Update.
* c-common.c (c_common_to_target_charset): New function.
* c-common.h: Declare it.
* c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
c_common_to_target_charset.

* defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
(TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
Delete definitions.
* system.h: Poison them.
* doc/tm.texi: Don't discuss them.
* builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
* c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
(pp_c_char): Do not attempt to generate letter escapes for
newline, tab, etc.
* config/arm/arm.c (output_ascii_pseudo_op): Likewise.
* config/mips/mips.c (mips_output_ascii): Likewise.
gcc/cp:
* cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
c_common_to_target_charset.  Delete bogus comment.
gcc/testsuite:
* gcc.dg/charset/builtin1.c: New test.

From-SVN: r95304

19 years agore PR libfortran/20085 (iargc returns wrong count for number of program arguments)
Steven G. Kargl [Sun, 20 Feb 2005 15:24:02 +0000 (15:24 +0000)]
re PR libfortran/20085 (iargc returns wrong count for number of program arguments)

PR 20085
* intrinsic/args.c (iargc): Off by 1.

From-SVN: r95302

19 years agore PR tree-optimization/19951 (ICE in tree_split_edge, at tree-cfg.c:3199 with -ftree...
Dorit Naishlos [Sun, 20 Feb 2005 13:47:28 +0000 (13:47 +0000)]
re PR tree-optimization/19951 (ICE in tree_split_edge, at tree-cfg.c:3199 with -ftree-vectorize)

        PR tree-optimization/19951
        * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
        is abnormal.

From-SVN: r95301

19 years agoFormatCharacterIterator.java: Removed redundant modifiers.
Michael Koch [Sun, 20 Feb 2005 11:26:49 +0000 (11:26 +0000)]
FormatCharacterIterator.java: Removed redundant modifiers.

2005-02-20  Michael Koch  <konqueror@gmx.de>

* gnu/java/text/FormatCharacterIterator.java:
Removed redundant modifiers.

From-SVN: r95300

19 years agore PR middle-end/19698 (Infinite loop in update_life_info)
Steven Bosscher [Sun, 20 Feb 2005 11:09:16 +0000 (11:09 +0000)]
re PR middle-end/19698 (Infinite loop in update_life_info)

PR middle-end/19698
* function.h (struct function): New field `max_loop_depth'.
* cfgloop.c (establish_preds): Update maximum loop depth seen so far.
(flow_loops_find): Reset the max loop depth count before finding loops.
* flow.c (MAX_LIVENESS_ROUNDS): New constant.
(update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
(calculate_global_regs_live): Make sure the loop will terminate
when the initial sets are not empty.

From-SVN: r95299

19 years agogthread-jni.c (throw): Call g_snprintf instead of snprintf.
Thomas Fitzsimmons [Sun, 20 Feb 2005 04:14:24 +0000 (04:14 +0000)]
gthread-jni.c (throw): Call g_snprintf instead of snprintf.

2005-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>

* jni/gtk-peer/gthread-jni.c (throw): Call g_snprintf instead of
snprintf.

From-SVN: r95298

19 years agoDaily bump.
GCC Administrator [Sun, 20 Feb 2005 00:16:19 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95296

19 years agofunctional (tr1_hashtable_define_trivial_hash): Make hash<T>::operator() a const...
Matt Austern [Sat, 19 Feb 2005 23:57:23 +0000 (23:57 +0000)]
functional (tr1_hashtable_define_trivial_hash): Make hash<T>::operator() a const member function for T a fundamental type

* include/tr1/functional (tr1_hashtable_define_trivial_hash): Make
hash<T>::operator() a const member function for T a fundamental type
* include/tr1/hashtable (extract1st::operator()): Declare const.
(hash_code_base): Declare all member functions const
(hashtable::find): fix call to this->bucket_count()
(hashtable::count): Likewise.
(hashtable::equal_range): m_incr_bucket applies to iterator, not node.
* testsuite/tr1/6_containers/unordered/find/set1.cc: New test.
* testsuite/tr1/6_containers/unordered/find/map1.cc: New test.
* testsuite/tr1/6_containers/unordered/find/multimap1.cc: New test.
* testsuite/tr1/6_containers/unordered/find/multiset1.cc: New test.

From-SVN: r95293

19 years agore PR c++/19299 (ICE with volatile non-PODs pointers)
Volker Reichelt [Sat, 19 Feb 2005 20:36:56 +0000 (20:36 +0000)]
re PR c++/19299 (ICE with volatile non-PODs pointers)

PR c++/19299
* g++.dg/inherit/volatile1.C: New test.

PR c++/19440
* g++.dg/template/dtor4.C: New test.

From-SVN: r95292

19 years agocheck.c (gfc_check_selected_int_kind): New function.
Steven G. Kargl [Sat, 19 Feb 2005 20:29:05 +0000 (20:29 +0000)]
check.c (gfc_check_selected_int_kind): New function.

* check.c (gfc_check_selected_int_kind): New function.
* intrinsic.h: Prototype it.
* intrinsic.c (add_function): Use it.
* simplify (gfc_simplify_ceiling,gfc_simplify_floor): Change
  BT_REAL to BT_INTEGER and use gfc_default_integer_kind.

From-SVN: r95291

19 years agocheck.c (gfc_check_int): improve checking of optional kind
Steven G. Kargl [Sat, 19 Feb 2005 20:07:47 +0000 (20:07 +0000)]
check.c (gfc_check_int): improve checking of optional kind

* check.c (gfc_check_int): improve checking of optional kind
* simplify.c (gfc_simplify_int): Change BT_REAL to BT_INTEGER

* gfortran.dg/int_1.f90: New test.

From-SVN: r95290

19 years agocharset.c (_cpp_convert_input): Check '\r' before inserting '\n' at the end.
Devang Patel [Sat, 19 Feb 2005 19:48:02 +0000 (11:48 -0800)]
charset.c (_cpp_convert_input): Check '\r' before inserting '\n' at the end.

      * charset.c (_cpp_convert_input): Check '\r' before inserting
      '\n' at the end.
      * gcc.dg/cpp/mac-eol-at-eof.c: New test.

From-SVN: r95289

19 years agocheck.c (gfc_check_achar): New function
Steven G. Kargl [Sat, 19 Feb 2005 19:16:09 +0000 (19:16 +0000)]
check.c (gfc_check_achar): New function

* check.c (gfc_check_achar): New function
* intrinsic.h: Prototype it.
* intrinsic.c (add_function): Use it.

* gfortran.dg/achar_1.f90: New test.

From-SVN: r95288

19 years ago[multiple changes]
Michael Koch [Sat, 19 Feb 2005 18:47:29 +0000 (18:47 +0000)]
[multiple changes]

2005-02-19  Michael Koch  <konqueror@gmx.de>

* Makefile.am: Added new files in gnu/java/beans and
java/beans/XMLDecoder.java.
* Makefile.in: Regenerated.

2005-02-19  Robert Schuster  <thebohemian@gmx.net>

* gnu/java/beans/decoder/GrowableArrayContext.java: Fixed
assignment behavior by using java.lang.reflect.Array.set()
directly.

2005-02-19  Dalibor Topic  <robilad@kaffe.org>

* gnu/java/beans/EmptyBeanInfo.java,
gnu/java/beans/info/ComponentBeanInfo.java:
Removed unused files.

2005-02-19  Robert Schuster <thebohemian@gmx.net>

* gnu/java/beans/DummyAppletStub.java: Add dummy implementation
of AppletStub for java.beans.Beans.instantiate.
* gnu/java/beans/DummyAppletContext.java: Add dummy implementation
of AppletContext.
* java/beans/Beans: Added 1.4 functionality, fixed user documentation
to be conformant with Javadoc guidelines.
(instantiate): Added two more overloaded variants, reworked user
documentation, fixed exception behavior, fixed behavior when
deserializing null.

2005-02-19  Mark Wielaard  <mark@klomp.org>

* gnu/java/beans/decoder/DummyHandler.java: Add return statements for
failing methods.
* gnu/java/beans/decoder/DummyContext.java: Likewise.

2005-02-19  Robert Schuster  <theBohemian@gmx.net>

* gnu/java/beans/decoder/AbstractContext.java,
gnu/java/beans/decoder/AbstractCreatableContext.java,
gnu/java/beans/decoder/AbstractElementHandler.java,
gnu/java/beans/decoder/AbstractObjectContext.java,
gnu/java/beans/decoder/ArrayContext.java,
gnu/java/beans/decoder/ArrayHandler.java,
gnu/java/beans/decoder/AssemblyException.java,
gnu/java/beans/decoder/BooleanHandler.java,
gnu/java/beans/decoder/ByteHandler.java,
gnu/java/beans/decoder/CharHandler.java,
gnu/java/beans/decoder/ClassHandler.java,
gnu/java/beans/decoder/ConstructorContext.java,
gnu/java/beans/decoder/Context.java,
gnu/java/beans/decoder/DecoderContext.java,
gnu/java/beans/decoder/DefaultExceptionListener.java,
gnu/java/beans/decoder/DoubleHandler.java,
gnu/java/beans/decoder/DummyContext.java,
gnu/java/beans/decoder/DummyHandler.java,
gnu/java/beans/decoder/ElementHandler.java,
gnu/java/beans/decoder/FloatHandler.java,
gnu/java/beans/decoder/GrowableArrayContext.java,
gnu/java/beans/decoder/IndexContext.java,
gnu/java/beans/decoder/IntHandler.java,
gnu/java/beans/decoder/JavaHandler.java,
gnu/java/beans/decoder/LongHandler.java,
gnu/java/beans/decoder/MethodContext.java,
gnu/java/beans/decoder/MethodFinder.java,
gnu/java/beans/decoder/NullHandler.java,
gnu/java/beans/decoder/ObjectContext.java,
gnu/java/beans/decoder/ObjectHandler.java,
gnu/java/beans/decoder/PersistenceParser.java,
gnu/java/beans/decoder/PropertyContext.java,
gnu/java/beans/decoder/ShortHandler.java,
gnu/java/beans/decoder/SimpleHandler.java,
gnu/java/beans/decoder/StaticMethodContext.java,
gnu/java/beans/decoder/StringHandler.java,
gnu/java/beans/decoder/VoidHandler.java: New class
implementing java.beans.XMLDecoder decoding functionality.
* java/beans/XMLDecoder.java: New class.

From-SVN: r95287

19 years agomklibgcc.in: If libgcc_eh.a would be empty, put a dummy object inside.
Zack Weinberg [Sat, 19 Feb 2005 18:18:31 +0000 (18:18 +0000)]
mklibgcc.in: If libgcc_eh.a would be empty, put a dummy object inside.

* mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
object inside.
* config/ia64/hpux.h: Don't define LIBGCC_SPEC.

From-SVN: r95286

19 years ago* intrinsic/date_and_time.c: Fix conformance problems.
Steven G. Kargl [Sat, 19 Feb 2005 18:06:00 +0000 (18:06 +0000)]
*  intrinsic/date_and_time.c: Fix conformance problems.

From-SVN: r95284

19 years agoMAINTAINERS (Write After Approval): Add myself.
Steven G. Kargl [Sat, 19 Feb 2005 17:29:42 +0000 (17:29 +0000)]
MAINTAINERS (Write After Approval): Add myself.

2005-02-18  Steven G. Kargl  <kargl@gcc.gnu.org>

        * MAINTAINERS (Write After Approval): Add myself.

From-SVN: r95282

19 years agore PR libstdc++/20071 (newlib target testsuite regressions: libstdc++: tr1/6_containe...
Hans-Peter Nilsson [Sat, 19 Feb 2005 15:33:59 +0000 (15:33 +0000)]
re PR libstdc++/20071 (newlib target testsuite regressions: libstdc++: tr1/6_containers/tuple)

PR libstdc++/20071
* include/tr1/functional (hash<std::wstring>): Wrap in #ifdef
_GLIBCXX_USE_WCHAR_T.

From-SVN: r95279

19 years ago* gcc.c-torture/execute/20020720-1.x: Don't XFAIL cris-*-*.
Hans-Peter Nilsson [Sat, 19 Feb 2005 15:19:08 +0000 (15:19 +0000)]
* gcc.c-torture/execute/20020720-1.x: Don't XFAIL cris-*-*.

From-SVN: r95278

19 years agore PR other/19525 (In-build-directory multilib testing broken)
Richard Sandiford [Sat, 19 Feb 2005 11:44:10 +0000 (11:44 +0000)]
re PR other/19525 (In-build-directory multilib testing broken)

PR other/19525
* doc/invoke.texi: Remove documentation of %M spec.
* gcc.c: Likewise.
(init_spec): Remove %M suffix from -lgcc_s.
(do_spec_1): Remove 'M' case.
* mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
to put shared libraries in the multilib directory.  Remove the
shlib_so_soname substitution variable.  Don't add a multilib encoding
to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
reported by -print-multi-os-directory.  Pass @multilib_dir@ to
SHLIB_INSTALL as well as SHLIB_LINK.
* config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
(SHLIB_NAME): Delete.
(SHLIB_DIR): New macro.
(SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
(SHLIB_INSTALL): Adjust accordingly.
* config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
* config/t-slibgcc-sld: Likewise.
* config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
(SHLIBUNWIND_SONAME): Use @shlib_base_name@.
(SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
in $(SHLIB_DIR).
(SHLIBUNWIND_INSTALL): Adjust accordingly.
* config/i386/t-nwld (SHLIB_SONAME): Delete.
(SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
Use @shlib_base_name@ instead of @shlib_so_name@.
* config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
and @shlib_base_name@.so in @multilib_dir@.
(SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
to the install path.
* config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
(SHLIB_LINK): Remove previous workaround.
* config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
(SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
(SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
the install path.
* config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
@multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
(SHLIB_INSTALL): Adjust accordingly.
(SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
* config/rs6000/t-aix52: As for config/rs6000/t-aix43.
* config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
config/t-slibgcc-elf-ver.

From-SVN: r95277

19 years ago2005-02-19 Michael Koch <konqueror@gmx.de>
Michael Koch [Sat, 19 Feb 2005 09:30:03 +0000 (09:30 +0000)]
2005-02-19  Michael Koch  <konqueror@gmx.de>

* javax/swing/JTextField.java
(notfiyAction): Added javadoc.

From-SVN: r95276

19 years agore PR tree-optimization/19828 (LIM is pulling out a pure function even though there...
Zdenek Dvorak [Sat, 19 Feb 2005 09:26:09 +0000 (10:26 +0100)]
re PR tree-optimization/19828 (LIM is pulling out a pure function even though there is something which can modify global memory)

PR tree-optimization/19828
* tree-ssa-loop-im.c: Add a TODO comment.
(movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
without side-effects.

* gcc.dg/tree-ssa/loop-7.c: New test.
* gcc.c-torture/execute/20050218-1.c: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r95275

19 years ago[multiple changes]
Michael Koch [Sat, 19 Feb 2005 09:22:39 +0000 (09:22 +0000)]
[multiple changes]

2005-02-19  Sven de Marothy  <sven@physto.se>

* javax/swing/SpinnerDateModel.java: Implemented.

2005-02-19  Michael Koch  <konqueror@gmx.de>

* Makefile.am: Added javax/swing/SpinnerDateModel.java.
* Makefile.in: Regenerated.

From-SVN: r95274