aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2005-02-23re PR c++/19991 (Enum not accepted in array-size)Mark Mitchell13-48/+109
PR c++/19991 * init.c (integral_constant_value): Iterate if the value of a decl is itself a constant. PR c++/20152 * parser.c (cp_parser_class_head): Check for redefintions here. * semantics.c (begin_class_definition): Not here. PR c++/20153 * decl2.c (build_anon_union_vars): Add type parameter. (finish_anon_union): Pass it. PR c++/20148 * error.c (dump_expr): Do not print the body of a BIND_EXPR. Handle STATEMENT_LIST. PR c++/19991 * g++.dg/parse/constant7.C: New test. PR c++/20152 * g++.dg/parse/error27.C: New test. * g++.dg/template/qualttp15.C: Adjust error markers. * g++.old-deja/g++.other/struct1.C: Likewise. PR c++/20153 * g++.dg/template/error17.C: New test. PR c++/20148 * g++.dg/parser/error26.C: New test. From-SVN: r95438
2005-02-23re PR tree-optimization/20100 (LIM is pulling out a pure function even ↵Diego Novillo11-88/+193
though there is something which can modify global memory) PR tree-optimization/20100 PR tree-optimization/20115 * tree-optimize.c (init_tree_optimization_passes): Remove pass_maybe_create_global_var. * tree-pass.h (pass_maybe_create_global_var): Remove. * tree-ssa-alias.c (aliases_computed_p): Declare. (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND. (count_calls_and_maybe_create_global_var): Remove. (pass_maybe_create_global_var): Remove. (init_alias_info): Do not declare aliases_computed_p. (maybe_create_global_var): If the function contains no call-clobbered variables and a mix of pure/const and regular function calls, create .GLOBAL_VAR. Mark all call-clobbered variables for renaming. (merge_pointed_to_info): Update comment. (add_pointed_to_var): Likewise. (is_escape_site): Likewise. Accept struct alias_info * instead of size_t *. Update all users. Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND as necessary. * tree-ssa-operands.c (get_call_expr_operands): If ALIASES_COMPUTED_P is false, do not add call-clobbering operands. * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false. (delete_tree_ssa): Likewise. testsuite/ChangeLog PR tree-optimization/20100 PR tree-optimization/20115 * gcc.dg/pr20115.c: New test. * gcc.dg/pr20115-1.c: New test. * gcc.dg/pr20100.c: New test. * gcc.dg/tree-ssa/20040517-1.c: Expect virtual operands for call-clobbered variables after alias1. From-SVN: r95437
2005-02-23[multiple changes]Bud Davis4-4/+66
2004-02-22 Paul Thomas <paulthomas2@wannado.fr> Bud Davis <bdavis@gfortran.org> * io/list_read.c (read_real): Handle separators properly in list directed read. 2005-02-22 Bud Davis <bdavis@gfortran.org> * gfortran.dg/list_read_4.f90: new test. From-SVN: r95436
2005-02-22Fix FreeBSD __LDBL_MAX__ -pedantic -save-temps bug.James E Wilson2-2/+10
* toplev.c (backend_init): Don't call init_adjust_machine_modes here. (do_compile): Do call it here. From-SVN: r95432
2005-02-23re PR rtl-optimization/20017 (internal compiler error: in ↵Kazu Hirata4-0/+59
rtl_verify_flow_info, at cfgrtl.c:2212) gcc/ PR rtl-optimization/20017. * passes.c (rest_of_handle_combine, rest_of_handle_cse, rest_of_handle_cse2, rest_of_handle_gcse): Call delete_dead_jumptables immediately before calling cleanup_cfg. testsuite/ PR rtl-optimization/20017. * gcc.dg/pr20017.c: New. From-SVN: r95431
2005-02-22re PR tree-optimization/19952 (ICE: tree check: expected class ↵Devang Patel4-1/+36
'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
2005-02-23Add myself as write-after-approvalDoug Gregor1-0/+1
From-SVN: r95429
2005-02-23re PR awt/20029 (Robot needs XTest)Thomas Fitzsimmons5-4/+97
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
2005-02-23Daily bump.GCC Administrator2-2/+2
From-SVN: r95426
2005-02-22* config/rs6000/aix.h (WINT_TYPE): Define.David Edelsohn2-0/+7
From-SVN: r95421
2005-02-22rs6000.c (rs6000_override_options): Default to natural alignment for 64-bit ↵Stan Shebs3-2/+24
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
2005-02-22re PR libstdc++/20091 (18_support/14026.cc execution test fails)Richard Henderson2-5/+10
PR libstdc++/20091 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't special case decrement of uncaughtExceptions for rethrow. From-SVN: r95419
2005-02-22parser.c (cp_parser_direct_declarator): Always complain about non-constant ↵Mark Mitchell5-14/+38
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
2005-02-22AlgorithmParameterGenerator.java (getInstance): Mention provider when ↵Mark Wielaard7-6/+16
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
2005-02-22Proxy.java, [...]: Don't catch java.lang.ThreadDeath.Jeroen Frijters6-2/+27
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
2005-02-22c-common.c (c_common_type_for_mode): Pass the mode's precision to ↵DJ Delorie2-2/+11
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
2005-02-222005-02-22 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2-5/+40
* 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
2005-02-222005-02-22 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters12-5/+40
* 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
2005-02-22* java/lang/Object.h (_JvObjectPrefix): Declare as extern "Java".Tom Tromey2-1/+8
From-SVN: r95405
2005-02-22re PR java/20056 ('verification failed: incompatible type on stack' with ↵Tom Tromey2-17/+45
--indirect-dispatch) PR java/20056: * verify-impl.c (EITHER): New define. (types_compatible): Handle it. (check_field_constant): Use it. From-SVN: r95404
2005-02-22re PR java/20056 ('verification failed: incompatible type on stack' with ↵Tom Tromey2-14/+42
--indirect-dispatch) PR java/20056: * verify.cc (type::EITHER): New constant. (check_field_constant): Use it. (type::compatible): Handle it. From-SVN: r95403
2005-02-22PolicyFile.java, [...]: Fixed copyright header.Michael Koch4-19/+30
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
2005-02-22functional: Fix License to GPL with exception.Paolo Carlini9-1/+84
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
2005-02-22tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.Kazu Hirata2-49/+44
* 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
2005-02-22cfg.c (cached_make_edge): Call make_edge if edge cache is not available.Kazu Hirata2-33/+34
* 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
2005-02-22tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...Diego Novillo2-7/+13
* tree-into-ssa.c (rewrite_blocks): Move debug dumps from ... (rewrite_into_ssa): ... here. From-SVN: r95395
2005-02-222005-02-22 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2-14/+9
* java/beans/PropertyDescriptor.java (PropertyDescriptor,setReadMethod): Set propertyType. From-SVN: r95393
2005-02-222005-02-22 Michael Koch <konqueror@gmx.de>Michael Koch6-21/+37
* 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
2005-02-22auto_ptr_neg.cc: Add missing dg-do compile directive.Paolo Carlini7-0/+27
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
2005-02-222005-02-22 Roman Kennke <roman@ontographics.com>Roman Kennke2-1/+6
* javax/swing/plaf/basic/BasicLookAndFeel.java (initComponentDefaults): Fixed Button left and right margin. From-SVN: r95389
2005-02-22asm1.c: Check for IBM1047 code set, not IBM-1047.Uros Bizjak14-14/+31
* 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
2005-02-22builtin1.c: Use dg-require-iconv "IBM1047".Uros Bizjak14-13/+31
* 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
2005-02-22Robot.java (waitForIdle): Call invokeAndWait on an empty Runnable.Thomas Fitzsimmons2-13/+18
2005-02-22 Thomas Fitzsimmons <fitzsim@redhat.com> * java/awt/Robot.java (waitForIdle): Call invokeAndWait on an empty Runnable. From-SVN: r95384
2005-02-22re PR awt/17952 (Windows don't show with window manager that supports ↵Thomas Fitzsimmons5-66/+88
_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
2005-02-22re PR awt/19842 (MouseEvent ignores Button2 and Button3)Thomas Fitzsimmons2-3/+9
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
2005-02-22Check in missed file from last commit.Bryce McKinlay1-51/+51
From-SVN: r95381
2005-02-22[multiple changes]Bud Davis4-1/+26
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
2005-02-22[multiple changes]Bryce McKinlay10-252/+451
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
2005-02-22re PR tree-optimization/19786 (Aliasing optimisation bug)Alexandre Oliva4-0/+60
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
2005-02-21tree-ssa-loop-ivopts.c (computation_cost): Start register numbering at ↵DJ Delorie3-2/+11
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
2005-02-22[multiple changes]Mark Wielaard8-903/+1839
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
2005-02-22Makefile.am, [...]: Fix accidental extra change from previous commit.Jonathan Wakely3-2/+7
* include/Makefile.am, include/Makefile.in: Fix accidental extra change from previous commit. From-SVN: r95366
2005-02-22Daily bump.GCC Administrator2-2/+2
From-SVN: r95364
2005-02-22memory: New file.Jonathan Wakely34-2/+3061
* 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
2005-02-21type_traits (is_member_function_pointer): Remove ugly workaround for c++/19076.Paolo Carlini2-210/+8
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
2005-02-21basic_string.tcc (_Rep::_M_destroy): Don't check for this == &_S_empty_rep, ↵Paolo Carlini2-5/+6
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
2005-02-21cv_func.C: New test.Douglas Gregor4-2/+92
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
2005-02-21re PR c++/19076 (Pointer to member function not matched to pointer to member ↵Douglas Gregor8-27/+155
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
2005-02-212005-02-21 Robert Schuster <theBohemian@gmx.net>Robert Schuster2-2/+7
* 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
2005-02-212005-02-21 Michael Koch <konqueror@gmx.de>Michael Koch3-3/+52
* 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