- 19 Mar, 2004 27 commits
-
-
2004-03-19 Mark Wielaard <mark@klomp.org> Reported by Stephen Crawley * java/io/FilePermission.java (implies): Use String.length() -1 to access last char of String. From-SVN: r79701
Mark Wielaard committed -
From-SVN: r79700
Richard Kenner committed -
* java/awt/image/AffineTransformOp.java (AffineTransformOp): Made public. * javax/swing/JComponent.java (listenerList): Made protected. (accessibleContext): Likewise. * javax/swing/JList.java (valueChanged): Dont use internal fields of ListSelectionEvent. * javax/swing/JViewport.java (getView): Dont use internal fields of Component. (addImpl): Likewise. * javax/swing/Timer.java (isRunning): Made public. (start): Likewise. (stop): Likewise. * javax/swing/UIDefaults.java (getInt): Made public. * javax/swing/plaf/basic/BasicListUI.java (mousePressed): Dont use internal fields of MouseEvent. (propertyChanged): Dont use internal fields of PropertyChangeEvent. * javax/swing/plaf/basic/BasicScrollBarUI.java (arrowIcon): Made static. * javax/swing/plaf/basic/BasicViewportUI.java (stateChanged): Dont use internal field on ChangeEvent. * javax/swing/text/JTextComponent.java (getUI): Call UIManager.getUI(). (updateUI): Use getUI(). From-SVN: r79699
Michael Koch committed -
2004-03-19 Paolo Carlini <pcarlini@suse.de> * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant static_cast-s. * testsuite/22_locale/num_get/get/char/12.cc: Likewise. * testsuite/22_locale/num_get/get/char/13.cc: Likewise. * testsuite/22_locale/num_get/get/char/14.cc: Likewise. * testsuite/22_locale/num_get/get/char/15.cc: Likewise. * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise. * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise. * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise. * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise. * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise. From-SVN: r79698
Paolo Carlini committed -
* config/avr/avr.md ("call_insn"): Handle explicit integer specially. (call_value_insn): Likewise. From-SVN: r79697
Denis Chertykov committed -
From-SVN: r79696
Richard Kenner committed -
2004-03-19 Paolo Carlini <pcarlini@suse.de> Petur Runolfsson <peturr02@ru.is> PR libstdc++/12077 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's no way to find out the conversion used by the underlying FILE*. * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New. * testsuite/27_io/objects/char/9.cc: Tweak. Co-Authored-By: Petur Runolfsson <peturr02@ru.is> From-SVN: r79695
Paolo Carlini committed -
* fold-const.c (negate_expr): Move the handling of constants ... (fold_negate_const): ... here. From-SVN: r79693
Kazu Hirata committed -
From-SVN: r79690
Rainer Orth committed -
2004-03-19 Paolo Carlini <pcarlini@suse.de> PR libstdc++/14648 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix memory allocation/deallocation calls. * testsuite/ext/14648.cc: New. From-SVN: r79687
Paolo Carlini committed -
2004-03-19 Arnaud Charlet <charlet@act-europe.fr> * ada-tree.h: Update copyright notice. Minor reformatting. 2004-03-19 Olivier Hainque <hainque@act-europe.fr> * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions as regular exception objects and not as mere integers representing the condition code. The latter approach required some dynamics to mask off severity bits, which did not fit well into the GCC table based model. (gnat_to_gnu_entity, objects): Don't supply an external name for VMS exception data objects. We don't it and it would conflict with the other external symbol we have to generate for such exceptions. * trans.c (tree_transform, case N_Exception_Handler): Remove part of the special code for VMS exceptions, since these are now represented as regular exceptions objects. From-SVN: r79686
Arnaud Charlet committed -
2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> PR libstdc++/14647 * include/backward/bvector.h (bit_vector): Allocator is in std namespace. From-SVN: r79685
Peter Schmid committed -
* langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook. * langhooks.h (struct lang_hooks_for_types): New field hash_types. * tree.c (debug_no_type_hash): Deleted. (type_hash_canon): Abort if passed a variant. Check lang_hooks.types.hash_types. (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE. (build_array_type): Remove unnecessary allocation of pointer type. (build_complex_type): Properly qualify resulting type. * ada/decl.c (debug_no_type_hash): Remove. (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it. * ada/misc.c (LANG_HOOK_HASH_TYPE): Redefine. From-SVN: r79684
Richard Kenner committed -
* cxx-pretty-print.c (pp_cxx_unqualified_id): Use TEMPLATE_TYPE_PARM_INDEX instead of TYPE_FIELDS. * search.c (dfs_unuse_fields): Add two more TREE_CODES that mean the field is named TEMPLATE_TYPE_PARM_INDEX. From-SVN: r79683
Richard Kenner committed -
2004-03-19 Paolo Bonzini <bonzini@gnu.org> * gcc.dg/altivec-6.c: Use vector_size attribute, not mode. * gcc.dg/ppc64-abi-3.c: Likewise. From-SVN: r79682
Paolo Bonzini committed -
2004-03-19 Paolo Bonzini <bonzini@gnu.org> * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo. From-SVN: r79681
Paolo Bonzini committed -
2004-03-19 Phil Edwards <phil@codesourcery.com> * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV, not libiconv. SUBST this variable as well. * testsuite/Makefile.am (site.exp): New target, based on that created by automake. Also set libiconv. * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in, testsuite/Makefile.in: Regenerate. From-SVN: r79678
Phil Edwards committed -
sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of aggregate, allows bootstrap from 3.3 on powerpc-darwin. 2004-03-19 Laurent GUERBY <laurent@guerby.net> * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of aggregate, allows bootstrap from 3.3 on powerpc-darwin. From-SVN: r79677
Laurent GUERBY committed -
* expmed.c (choose_mult_variant, expand_mult_const): New, split from... (expand_mult): ...here. (extract_high_half): New, split out from expand_mult_highpart. (expand_highpart_optab): Likewise. Don't clobber target prematurely. (expand_highpart): Evaluate the cost of a shift/add sequence, then see if any of the specialized optabs are cheaper. From-SVN: r79673
Richard Sandiford committed -
PR c++/14545 * parser.c (cp_parser_functional_cast): A cast to anything but integral or enumaration type is not an integral constant expression. * pt.c (value_dependent_expression_p): Handle cast expressions without operands (such as "int()"). PR c++/14545 * g++.dg/parse/template15.C: New test. From-SVN: r79672
Giovanni Bajo committed -
semantics.c (finish_pseudo_destructor_expr): Allow differing cv-qualification between the type named by the... * semantics.c (finish_pseudo_destructor_expr): Allow differing cv-qualification between the type named by the pseudo-destructor-name and the object-type. * search.c (accessible_base_p): Handle non-proper bases. * name-lookup.c (do_nonmember_using_decl): If a using declaration refers to a single overloaded function, set the type of the function. * tree.c (lvalue_type): Simplify. * typeck.c (type_unknown_p): Do not assume all OVERLOADs have an unknown type. (build_unary_op): Handle OVERLOADs with known types. * decl.c (duplicate_decls): Do not destroy DECL_ARGUMENTS for function templates. * parser.c (cp_parser_postfix_expression): Handle the use of "typename" in non-dependent contexts. Convert appropriately when when using a qualified name after "->" or ".". * call.c (conditional_conversion): Honor the requirement that some conversions refer to the original object. * g++.dg/expr/dtor2.C: New test. * g++.dg/lookup/anon4.C: New test. * g++.dg/overload/using1.C: New test. * g++.dg/template/lookup7.C: New test. * g++.dg/template/typename6.C: New test. * g++.dg/expr/cond6.C: New test. From-SVN: r79671
Mark Mitchell committed -
From-SVN: r79669
Ian Lance Taylor committed -
* convert.c (convert_to_real): Add more math builtins. testsuite: * gcc.dg/torture/builtin-convert-1.c: Test more math builtins. From-SVN: r79668
Kaveh R. Ghazi committed -
From-SVN: r79667
Kaveh R. Ghazi committed -
* c-common.c (pointer_int_sum): Do not complain about using pointers to pointers-to-members. * call.c (build_conditional_expr): Do not call force_rvalue for operands of void_type when the conditional expression itself has void type. * name-lookup.c (pushdecl): Don't consider a declaration of a function named "main" to be an overload of a type named "main". * parser.c (cp_parser_template_name): Perform name lookup when the template name is proceeded by "template" if the qualifying scope is non-dependent. * typeck.c (composite_pointer_type_r): Correctly handle pointer-to-member types. (build_const_cast): Likewise. * g++.dg/expr/cond5.C: New test. * g++.dg/expr/constcast1.C: Likewise. * g++.dg/expr/ptrmem2.C: Likewise. * g++.dg/expr/ptrmem3.C: Likewise. * g++.dg/lookup/main1.C: Likewise. * g++.dg/template/lookup6.C: Likewise. From-SVN: r79663
Mark Mitchell committed -
system.h (MD_ASM_CLOBBERS): Move to "Old target macros that have moved to the target hooks structure". * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that have moved to the target hooks structure". From-SVN: r79656
Kazu Hirata committed -
From-SVN: r79653
GCC Administrator committed
-
- 18 Mar, 2004 13 commits
-
-
* config/mips/mips.md (type): Split move into arith and fmove. Split hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses. * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs): Likewise. * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs): Likewise. * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo, rm7_fp_quick): Likewise. * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo, rm9k_fquick): Likewise. * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs): Likewise. (ir_sr70_icmp): Delete. From-SVN: r79650
James E Wilson committed -
* cp-tree.def (TEMPLATE_TYPE_PARM, TYPEOF_TYPE): Update comments. * cp-tree.h (NEW_EXPR_USE_GLOBAL, DELETE_EXPR_USE_GLOBAL): Add check. (DELETE_EXPR_USE_VEC, COMPOUND_EXPR_OVERLOADED): Likewise. (KOENIG_LOOKUP_P, PTRMEM_OK_P, TEMPLATE_TYPE_PARM_INDEX): Likewise. (TYPENAME_TYPE_FULLNAME): Add check and use type.values. (TYPEOF_TYPE_EXPR): New macro. From-SVN: r79645
Richard Kenner committed -
From-SVN: r79642
Richard Kenner committed -
* java/nio/channels/spi/AbstractSelectableChannel.java (keys): Initialize at declaration. (locate): keys cant be null. (add): Removed. (addSelectionKey): New method. (removeSelectionKey): New method. * java/nio/channels/spi/AbstractSelectionKey.java (cancel): Call AbstractSelector.cancelKey(SelectionKey key). * java/nio/channels/spi/AbstractSelector.java (provider): Javadoc added. (cancelledKeys): Javadoc added. (cancelKey): Javadoc added, add key to cancelledKeys. (deregister): Implemented. From-SVN: r79640
Michael Koch committed -
From-SVN: r79639
Richard Kenner committed -
* tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros. (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl. (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros. (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise. (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Protect with proper check. (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise. (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise. * tree.c (type_hash_eq): Rewrite to access proper fields for each type. (tree_check2_failed, tree_check3_failed, tree_check5_failed): New. * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES. * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES, not TYPE_FIELDS. * cp/class.c (finish_struct_bits): Use TYPE_VFIELD and TYPE_METHODS. * cp/error.c (dump_type): Use TYPEOF_TYPE_EXPR. * cp/pt.c (tsubst): Likewise. * cp/semantics.c (finish_typeof): Likewise. * cp/search.c (dfs_unuse_fields): Handle TYPENAME_TYPE, TYPEOF_TYPE, and TEMPLATE_TYPE_PARM. * cp/typeck.c (comptypes): Use TYPE_ORIG_SIZE_TYPE, not TYPE_DOMAIN. (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES. * java/java-tree.h: Changes throughout to add checking to macros and numerous whitespace changes. (VAR_OR_FIELD_CHECK): New macro. * java/jcf-write.c (get_access_flags): Use FIELD_PUBLIC, METHOD_PUBLIC, FIELD_FINAL, and METHOD_FINAL instead of CLASS_PUBLIC and CLASS_FINAL. * ada/ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking. (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise. (TYPE_RM_SIZE_INT): Directly use type.values. (TREE_LOOP_ID): Clean up check. * ada/decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use TYPE_VALUES, not TYPE_FIELDS. * ada/trans.c (convert_with_check): Delay access of bounds of basetype until sure is numeric. From-SVN: r79638
Richard Kenner committed -
gcse.c (eliminate_partially_redundant_loads): Reject change if dest is set between beginning and current insn. 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com> * gcse.c (eliminate_partially_redundant_loads): Reject change if dest is set between beginning and current insn. From-SVN: r79636
Mostafa Hagog committed -
From-SVN: r79635
Graydon Hoare committed -
c-decl.c (grokdeclarator): Do not complain about redeclaring visible "static" identifiers "extern" in a... * c-decl.c (grokdeclarator): Do not complain about redeclaring visible "static" identifiers "extern" in a local scope. * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and post-increments/decrements. * gcc.dg/local1.c: New test. * gcc.dg/debug/dwarf2/c99-typedef1.c: New test. From-SVN: r79634
Mark Mitchell committed -
* config/xtensa/xtensa.c (current_function_arg_words): Delete. (xtensa_builtin_saveregs): Use current_function_args_info.arg_words. (xtensa_va_start): Remove assignment to current_function_arg_words. From-SVN: r79632
Bob Wilson committed -
From-SVN: r79630
Joseph Myers committed -
alias.c (record_set): Detect the case where a register is assigned a new value that has the same base... * alias.c (record_set): Detect the case where a register is assigned a new value that has the same base term as the old one. From-SVN: r79629
Richard Sandiford committed -
* gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast MAP_FAILED to void *. From-SVN: r79627
Rainer Orth committed
-