OSDN Git Service

pf3gnuchains/gcc-fork.git
17 years ago * c-typeck.c (convert_for_assignment): Tightened up pointer converstions
mrs [Sat, 24 Jul 2004 07:32:15 +0000 (07:32 +0000)]
    * c-typeck.c (convert_for_assignment): Tightened up pointer converstions
        that differ in signedness.
Apple Radar 2535328.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85114 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
zack [Sat, 24 Jul 2004 06:26:50 +0000 (06:26 +0000)]
* genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85113 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
kenner [Sat, 24 Jul 2004 01:35:04 +0000 (01:35 +0000)]
* tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
* tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85111 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * gimplify.c (gimplify_compound_lval): Check for no handled
kenner [Sat, 24 Jul 2004 01:29:11 +0000 (01:29 +0000)]
* gimplify.c (gimplify_compound_lval): Check for no handled
operations, rather than checking for explicit list of nodes.
(is_gimple_addr_expr_arg_or_indirect): New function.
(gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
redundant setting of TREE_INVARIANT.
(gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
* tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85110 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
bryce [Sat, 24 Jul 2004 01:17:29 +0000 (01:17 +0000)]
2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>

* prims.cc (_Jv_InitPrimClass): Don't create an array class.
(_Jv_CreateJavaVM): Don't pass array vtable parameter to
_Jv_InitPrimClass.
(DECLARE_PRIM_TYPE): Don't declare array vtables.
* include/jvm.h (struct _Jv_ArrayVTable): Removed.
* java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85109 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR tree-optimization/16688
dnovillo [Sat, 24 Jul 2004 01:05:45 +0000 (01:05 +0000)]
PR tree-optimization/16688
PR tree-optimization/16689
* tree-ssa-alias.c (setup_pointers_and_addressables): Remove
unnecessary initialization of 'tag'.
(get_tmt_for): Check that the new type tag has the same alias
set as the pointed-to type.
(group_aliases): Only regular variables need to be removed
from the alias set of a name tag.
* tree-ssa-copy.c (may_propagate_copy): Do not allow copy
propagation if the two types are not compatible.
(merge_alias_info): Rename from replace_ssa_names_ann.
Add more checking.
(replace_exp_1): If both arguments are SSA_NAMEs, check that
the propagation can be done.
Only call merge_alias_info on pointers.
(propagate_value): Likewise.
* tree-ssa-copyrename.c: Include langhooks.h.
(copy_rename_partition_coalesce): Call replace_ssa_name_symbol
to do the merging.
Do not coalesce variables with incompatible types.
(rename_ssa_copies): Call replace_ssa_name_symbol.
* tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
the same type as the underlying _DECL.
* tree-ssanames.c (replace_ssa_name_symbol): New function.
* tree.h (replace_ssa_name_symbol): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85108 138bc75d-0d04-0410-961f-82ee72b054a4

17 years agoDaily bump.
gccadmin [Sat, 24 Jul 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85106 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Sat, 24 Jul 2004 00:10:09 +0000 (00:10 +0000)]
2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/16678
* include/bits/locale_facets.tcc: Fix for -Werror.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85103 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * boehm.c (set_bit): Improve type safety wrt unsignedness.
mrs [Sat, 24 Jul 2004 00:03:28 +0000 (00:03 +0000)]
    * boehm.c (set_bit): Improve type safety wrt unsignedness.
        * gjavah.c (throwable_p, decode_signature_piece,
        print_full_cxx_name, print_include, add_namelet, add_class_decl,
        process_file): Likewise.
        * jcf-dump.c (main): Likewise.
        * jcf-io.c (read_zip_member): Likewise.
        * jcf-parse.c (HANDLE_CONSTANT_Utf8, get_constant,
        give_name_to_class, get_class_constant): Likewise.
        * jcf-write.c (find_constant_wide, push_long_const,
        generate_classfile): Likewise.
        * lex.c (java_new_lexer, java_read_char, cxx_keyword_p): Likewise.
        * parse.y (read_import_dir): Likewise.
        * typeck.c (parse_signature_type): Likewise.
        * verify.c (verify_jvm_instructions): Likewise.
        * zextract.c (find_zip_file_start, read_zip_archive): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85102 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
fitzsim [Fri, 23 Jul 2004 23:34:17 +0000 (23:34 +0000)]
2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

* Makefile.am: Rename jar binary to fastjar.
* Makefile.in: Regenerate.
* fastjar.texi: Rename references to jar binary with fastjar.

2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

* Make-lang.in: Replace rmic and rmiregistry references with
grmic and grmiregistry.
* gcj.texi: Likewise.

2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

* Makefile.am: Replace jar, rmic and rmiregistry references with
gjar, grmic and grmiregistry.
* configure.in: Likewise.
* Makefile.in: Regenerate.
* configure: Likewise.
* gcj/Makefile.in: Likewise.
* include/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85101 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR c++/16277
rth [Fri, 23 Jul 2004 22:48:14 +0000 (22:48 +0000)]
    PR c++/16277
        * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
        unshare it properly.
        (gimplify_modify_expr_rhs): Push assignment from a conditional into
        the conditional for all non-register types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85100 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * expr.c (expand_expr_real_1): Don't handle non-local variables.
rth [Fri, 23 Jul 2004 22:37:23 +0000 (22:37 +0000)]
    * expr.c (expand_expr_real_1): Don't handle non-local variables.
        * expr.h (fix_lexical_addr): Remove.
        * function.c (NEED_SEPARATE_AP): Remove.
        (fix_lexical_addr): Remove.
        * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
        not null decl_function_context.
        (create_alias_vars): Likewise.
        * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
        (simple_goto_p): Likewise.
        * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
        * tree-ssa-ccp.c (get_default_value): Likewise.
        * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
        * tree.c (needs_to_live_in_memory): Likewise.
        * tree-flow-inline.h (may_be_aliased): Move...
        * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
        when TREE_STATIC variables may be addressable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85099 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
jakub [Fri, 23 Jul 2004 22:36:47 +0000 (22:36 +0000)]
* Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
testsuite/
* README.compat: Add RUN_ALL_COMPAT_TESTS documentation.
* lib/compat.exp: Replace ^$tmpdir/? in testcase names with tmpdir-.
* gcc.dg/compat/struct-layout-1.exp: New testsuite driver.
* gcc.dg/compat/struct-layout-1_generate.c: New testcase generator.
* gcc.dg/compat/generate-random.c: New file.
* gcc.dg/compat/generate-random.h: Likewise.
* gcc.dg/compat/generate-random_r.c: Likewise.
* gcc.dg/compat/struct-layout-1.h: Likewise.
* gcc.dg/compat/struct-layout-1_x1.h: Likewise.
* gcc.dg/compat/struct-layout-1_x2.h: Likewise.
* gcc.dg/compat/struct-layout-1_y1.h: Likewise.
* gcc.dg/compat/struct-layout-1_y2.h: Likewise.
* gcc.dg/compat/struct-layout-1_main.c: New test.
* gcc.dg/compat/struct-layout-1_x.c: New file.
* gcc.dg/compat/struct-layout-1_y.c: New file.
* gcc.dg/compat/struct-layout-1_test.h: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85098 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
bryce [Fri, 23 Jul 2004 22:20:14 +0000 (22:20 +0000)]
2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>

* gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
for privileged getProperty calls.
* java/io/ObjectOutputStream.java (getField): No longer static. Use
SetAccessibleAction instead of anonymous class for doPrivileged
call.
(getMethod): Likewise.
(setAccessible): New field. PrivilegedAction object to use when
calling setAccessible.
* java/io/ObjectStreamClass.java (calculateOffsets): Use
SetAccessibleAction instead of anonymous class for diPrivileged
call.
(setFields): Likewise.
(getClassUID): Likewise.
(findMethod): Likewise.
* gnu/java/security/action/GetPropertyAction.java: New class.
* gnu/java/security/action/SetAccessibleAction.java: New class.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85097 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
bryce [Fri, 23 Jul 2004 21:46:09 +0000 (21:46 +0000)]
2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>

* java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
for final fields.
* testsuite/libjava.lang/Serialization.java: New test.
* testsuite/libjava.lang/Serialization.out: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85096 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
zack [Fri, 23 Jul 2004 21:15:45 +0000 (21:15 +0000)]
* print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
bitmap contents if GENERATOR_FILE is defined.
* Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
($(BUILD_PREFIX_1)bitmap.o): Delete rule.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85095 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * c-decl.c (start_function): Form composite type of function types
jsm28 [Fri, 23 Jul 2004 19:22:13 +0000 (19:22 +0000)]
* c-decl.c (start_function): Form composite type of function types
rather than copying type from previous prototype declaration.

testsuite:
* gcc.dg/comp-return-1.c: New test

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85093 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Janis Johnson <janis187@us.ibm.com>
janis [Fri, 23 Jul 2004 18:34:36 +0000 (18:34 +0000)]
2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
the const qualifier for the second argument in the C++ functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85092 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Janis Johnson <janis187@us.ibm.com>
janis [Fri, 23 Jul 2004 18:33:19 +0000 (18:33 +0000)]
2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
specific pointer types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85091 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Janis Johnson <janis187@us.ibm.com>
janis [Fri, 23 Jul 2004 18:32:06 +0000 (18:32 +0000)]
2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
for vector bool and/or vector pixel, add C++ and C missing support.
(vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
missing C++ and C support for vector bool and/or vector pixel.
(vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
C++ and C types used for vector bool and/or vector pixel.
(vec_st, vec_stl): Add C++ support for vector pixel.
(vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
(vec_all_ne): Add C++ support for vector pixel.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85090 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Janis Johnson <janis187@us.ibm.com>
janis [Fri, 23 Jul 2004 18:30:48 +0000 (18:30 +0000)]
2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
(vec_vmulesb): Add missing C++ function.
(vec_perm): Fix type of third argument in C++ function.
(vec_vsum4shs): Fix C++ function name.
(vec_any_ge): Remove C++ functions for unsupported arg combinations.
(vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
argument passed to the error handler in C macro.
(vec_nmsub): Remove extra parens around argument names in C macro.
(vec_packpx): Add missing parens in C macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85089 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Janis Johnson <janis187@us.ibm.com>
janis [Fri, 23 Jul 2004 18:27:57 +0000 (18:27 +0000)]
2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* gcc.dg/vmx/8-02a.c: Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85088 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Janis Johnson <janis187@us.ibm.com>
janis [Fri, 23 Jul 2004 18:25:47 +0000 (18:25 +0000)]
2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* gcc.dg/vmx/varargs-4.c: Remove a Darwin-specific check.
* gcc.dg/darwin-abi-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85087 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Janis Johnson <janis187@us.ibm.com>
janis [Fri, 23 Jul 2004 18:22:57 +0000 (18:22 +0000)]
2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* gcc.dg/vmx/debug-1.c: Use int, not long, in union with vector.
* gcc.dg/vmx/varargs-1.c: Use int, not long, in union with vector.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85086 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Janis Johnson <janis187@us.ibm.com>
janis [Fri, 23 Jul 2004 18:20:21 +0000 (18:20 +0000)]
2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* gcc.dg/vmx/ops.c: Remove checks using pointers to long.
* gcc.dg/vmx/ops-long-1.c: New test.
* gcc.dg/vmx/ops-long-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85085 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Mark Wielaard <mark@klomp.org>
bryce [Fri, 23 Jul 2004 14:25:41 +0000 (14:25 +0000)]
2004-07-23  Mark Wielaard  <mark@klomp.org>

* gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
missed in last commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85080 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * java/lang/System.java (static): Set http.agent system property when
mark [Fri, 23 Jul 2004 11:49:59 +0000 (11:49 +0000)]
   * java/lang/System.java (static): Set http.agent system property when
       not yet set.
       * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
       from system property inside AccessController.doPrivileged() call.
       (proxyPort): Made package private.
       (proxyInUse): Likewise.
       (proxyHost): Likewise.
       (userAgent): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85078 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
mark [Fri, 23 Jul 2004 10:24:02 +0000 (10:24 +0000)]
   * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
       implementation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85077 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-22 Paolo Bonzini <bonzini@gnu.org>
bonzini [Fri, 23 Jul 2004 10:15:53 +0000 (10:15 +0000)]
2004-07-22  Paolo Bonzini  <bonzini@gnu.org>

* machmode.def: Remove vector modes.
* config/alpha/alpha-modes.def: Add supported vector modes.
* config/arm/arm-modes.def: Likewise.
* config/frv/frv-modes.def: Likewise.
* config/i386/i386-modes.def: Likewise.
* config/rs6000/rs6000-modes.def: Likewise.
* config/sh/sh-modes.def: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85076 138bc75d-0d04-0410-961f-82ee72b054a4

17 years agocp: * search.c (lookup_conversion_operator): Avoid two loops.
nathan [Fri, 23 Jul 2004 08:53:36 +0000 (08:53 +0000)]
cp: * search.c (lookup_conversion_operator): Avoid two loops.
(add_conversions): Remove.
(check_hidden_convs, split_conversions,
lookup_conversions_r): New.
(lookup_conversions): Use lookup_conversions_r.
testsuite:
* g++.dg/lookup/conv-[1234].C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85075 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
redi [Fri, 23 Jul 2004 08:22:20 +0000 (08:22 +0000)]
2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>

* docs/html/debug.html: Say debug mode only available since 3.4.0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85074 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Matthias Klose <doko@debian.org>
doko [Fri, 23 Jul 2004 07:00:57 +0000 (07:00 +0000)]
2004-07-23  Matthias Klose  <doko@debian.org>

        init.c (init_library): Use PACKAGE for the text domain.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85073 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-23 Matthias Klose <doko@debian.org>
doko [Fri, 23 Jul 2004 06:59:35 +0000 (06:59 +0000)]
2004-07-23  Matthias Klose  <doko@debian.org>

        intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
        configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
        config.h: Regenerate.
        configure: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85072 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
mmitchel [Fri, 23 Jul 2004 04:35:17 +0000 (04:35 +0000)]
* dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
generated SYMBOL_REFs for labels.
* config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
Change prototype.
(machopic_stub_name): Remove.
(machopic_indirection_name): New function.
(machopic_mcount_stub_name): Likewise.
(machopic_classify_name): Remove.
(machopic_function_base_sym): New function.
(machpoic_classify_symbol): Likewise.
(machopic_classify_ident): Remove.
(machopic_define_ident): Likewise.
(machopic_define_name): Likewise.
(machopic_name_defined_p): Likewise.
(machopic_ident_defined_p): Likewise.
(darwin_strip_name_encoding): Likewise.
(machopic_define_symbol): New function.
* config/darwin.c (hashtab.h): Include.
(machopic_defined_list): Remove.
(machopic_classify_ident): Likewise.
(machopic_classify_name): Likewise.
(machopic_ident_defined_p): Likewise.
(machopic_define_ident): Likewise.
(machopic_define_name): Likewise.
(machopic_symbol_defined_p): New function.
(machopic_classify_symbol): Likewise.
(machopic_data_defined_p): Use machopic_classify_symbol.
(machopic_define_symbol): New function.
(machopic_function_base_sym): New function.
(machopic_non_lazy_pointers): Remove.
(machopic_non_lazy_ptr_name): Likewise.
(machopic_stubs): Likewise.
(machopic_stub_name): Likewise.
(NON_LAZY_POINTER_SUFFIX): New macro.
(STUB_SUFFIX): Likewise.
(machopic_indirection): New structure.
(machopic_indirections): New variable.
(machopic_indirection_hash): New function.
(machopic_indirection_eq): Likewise.
(machopic_indirection_name): Likewise.
(machopic_mcount_stub_name): New function.
(machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
hash table.
(machopic_indirect_data_reference): Rework to use new functions.
(machopic_indirect_call_target): Likewise.
(machopic_legitimize_pic_address): Likewise.
(machopic_output_indirection): New function.
(machopic_finish): Use it.
(machopic_operand_p): Rework to use new functions.
(darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
(darwin_strip_name_encoding): Remove.
(update_non_lazy_ptrs): Remove.
(update_stubs): Likewise.
(darwin_non_lazy_pcrel): Use new functions.
* config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
(ASM_OUTPUT_LABELREF): Likewise.
(ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
(MACHO_SYMBOL_FLAG_VARIABLE): New macro.
(MACHO_SYMBOL_FLAG_DEFINED): Likewise.
(TARGET_STRIP_NAME_ENCODING): Do not use
darwin_strip_name_encoding.
(GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
darwin_strip_name_encoding.
* config/i386/darwin.h (FUNCTION_PROFILER): Use
machopic_mcount_stub_name.
* config/i386/i386.c (x86_output_mi_thunk): Use
machopic_indirection_name, not machopic_stub_name.
* config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
machopic_function_base_sym.
(print_operand): Use machopic_classify_symbol.
(rs6000_emit_prologue): Use machopic_function_base_sym.
(output_profile_hook): Do not use machopic_stub_name.
(macho_branch_isalnds): Do not use darwin_strip_name_encoding.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85071 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
bryce [Fri, 23 Jul 2004 01:21:40 +0000 (01:21 +0000)]
2004-07-22  Bryce McKinlay  <mckinlay@redhat.com>

* Makefile.am (ordinary_java_source_files): Add
DefaultContentHandlerFactory.java.
* Makefile.in: Rebuilt.
* java/net/URLConnection.java (defaultFactory): New field.
(getContent):
(getContentHandler): Renamed from 'setContentHandler'. Try
defaultFactory after user-set factory, if any. Search for content
handler implementations in gnu.java.net.content, not
gnu.gcj.content.
* gnu/java/net/protocol/file/Connection.java (getHeaderField):
Implemented.
(getLastModified): Implemented.
(getPermission): Create file permission here, instead of in
constructor.
* gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
Implemented.
* gnu/java/net/protocol/jar/Connection.java (getHeaderField):
Implemented.
(getLastModified): Implemented.
* gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
Default implementation.
* gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
Implement using GdkPixbufDecoder.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85069 138bc75d-0d04-0410-961f-82ee72b054a4

17 years agoDaily bump.
gccadmin [Fri, 23 Jul 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85067 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
pinskia [Thu, 22 Jul 2004 22:20:08 +0000 (22:20 +0000)]
2004-07-22  Andrew Pinski  <pinskia@physics.uc.edu>

        * thr.c (__objc_thread_detach_function): Do not mark as volatile
        but instead use the attribute noreturn.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85061 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * g++.dg/parse/attr2.C: Simplify.
mmitchel [Thu, 22 Jul 2004 21:37:06 +0000 (21:37 +0000)]
* g++.dg/parse/attr2.C: Simplify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85060 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR c/7284
jsm28 [Thu, 22 Jul 2004 20:33:34 +0000 (20:33 +0000)]
PR c/7284
* fold-const.c (extract_muldiv_1): Do not treat signed left shift
as multiplication.

testsuite:
* gcc.c-torture/execute/pr7284-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85059 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * doc/implement-c.texi: New file.
jsm28 [Thu, 22 Jul 2004 20:12:20 +0000 (20:12 +0000)]
* doc/implement-c.texi: New file.
* doc/extend.texi (C Implementation): Move to there.
* doc/gcc.texi: Include implement-c.texi.
* Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85058 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * integrate.c (copy_decl_for_inlining): Remove invisible reference
jason [Thu, 22 Jul 2004 19:01:03 +0000 (19:01 +0000)]
    * integrate.c (copy_decl_for_inlining): Remove invisible reference
        handling.
        * tree-inline.c (setup_one_parameter): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85057 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago fix typo.
bbooth [Thu, 22 Jul 2004 18:35:08 +0000 (18:35 +0000)]
fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85056 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
bbooth [Thu, 22 Jul 2004 18:33:20 +0000 (18:33 +0000)]
* tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
(substitute_and_fold): Propigate into VUSE operands when possible.
(visit_phi_node): Handle UNKNOWN_VAL latticevalue.
(cp_lattice_meet): Handle merging of latticevalues when
UNKNOWN_VAL is present.
(visit_stmt): Visit assignments with V_MUST_DEFs.
(visit_assignment): Gather ccp information for V_MUST_DEF operands.
(ccp_fold): Deal with RHS' that are constant and virtual.
(evaluate_stmt): Handle UNKNOWN_VAL likely values.
(dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
(initialize): Mark statements with V_MUST_DEFs as VARYING only if the
V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
computing immediate uses.
(set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
transition.
(replace_vuse_in): New function.
(likely_value): Add check of vuse operands.
(get_default_value): Set the default value of virtually defined
variables to UKNOWN_VAL instead of VARYING.

testsuite:

* gcc.dg/tree-ssa/20040721-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85055 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * expr.c (emit_push_insn): Don't use set_mem_attributes.
rth [Thu, 22 Jul 2004 18:13:47 +0000 (18:13 +0000)]
    * expr.c (emit_push_insn): Don't use set_mem_attributes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85054 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
rth [Thu, 22 Jul 2004 18:04:42 +0000 (18:04 +0000)]
    * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
        variables due to conditional compilation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85053 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * tree-into-ssa.c (set_livein_block): Fix typo in comment.
dnovillo [Thu, 22 Jul 2004 16:39:49 +0000 (16:39 +0000)]
* tree-into-ssa.c (set_livein_block): Fix typo in comment.
(rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
Release SSA names that have been re-renamed.
* tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
variable.
* tree-ssa-alias.c (init_alias_info): If aliases have been
computed before, clear existing alias information.
(create_name_tags): Do no fixup PT_ANYTHING pointers.
If the new name tag for a pointer is different than the one it
had before, mark the old tag for renaming.
(replace_may_alias): New function.
(group_aliases): Call it.
(setup_pointers_and_addressables): Always call get_tmt_for.
(maybe_create_global_var): Don't create .GLOBAL_VAR more than
once.
(set_pt_anything): New local function.
(set_pt_malloc): New local function.
(merge_pointed_to_info): Don't merge pointed-to variables from
the original pointer if the destination is pointing to an
unknown location.
(add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
(add_pointed_to_var): Do not add a variable to the points-to
set if the pointer is already pointing to anywhere.
(collect_points_to_info_r): If the defining statement is a PHI
node, only merge pointed-to information if the argument has
already been visited.
(get_tmt_for): Only create a new tag if the pointer didn't
have one already.
(dump_alias_info): Emit more information.
(dump_points_to_info_for): Likewise.
* tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
try to get the annotation of an SSA_NAME.
* tree-ssa-operands.c (add_stmt_operand): Only check for empty
alias sets when checking is enabled.
* tree-ssa-pre.c (need_eh_cleanup): New local variable.
(eliminate): Mark basic blocks that will need
EH information cleaned up.
(init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
predecessor.
Initialize need_eh_cleanup.
(fini_pre): Call tree_purge_all_dead_eh_edges and
cleanup_tree_cfg if needed.
Free need_eh_cleanup.
* tree-ssa.c (verify_ssa_name): New function.
(verify_def): Call it.
Re-arrange to avoid printing too many error messages.
(verify_use): Likewise.
(verify_phi_args): Likewise.
(verify_flow_insensitive_alias_info): New function.
(verify_flow_sensitive_alias_info): New function.
(verify_alias_info): New function.
(verify_ssa): Call verify_alias_info.
Clear TREE_VISITED on all the SSA_NAMEs before scanning the
program.
Re-arrange to avoid printing too many error messages.
* tree-ssanames.c (make_ssa_name): Clear
SSA_NAME_IN_FREE_LIST.
(release_ssa_name): Never release a default definition.
(release_defs): New function.
* tree.h: Declare it.
* tree-ssa-dce.c (remove_dead_stmt): Call it.

* tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
If true, do a depth-first search.  Do a breadht-first search,
otherwise.
(walk_use_def_chains): Add new argument IS_DFS.
Update all users.
* tree-flow.h (walk_use_def_chains): Update prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85052 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 Michael Koch <konqueror@gmx.de>
graydon [Thu, 22 Jul 2004 15:36:05 +0000 (15:36 +0000)]
2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JTextArea.java
(setLineWrap): Fire property change event after new value is set.
(setTabSize): Likewise.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JTable.java
(autoCreateColumnsFromModel): New field.
(autoResizeMode): Likewise.
(cellEditor): Likewise.
(cellSelectionEnabled): Likewise.
(columnModel): Likewise.
(dataModel): Likewise.
(defaultEditorsByColumnClass): Likewise.
(defaultRenderersByColumnClass): Likewise.
(editingColumn): Likewise.
(editingRow): Likewise.
(gridColor): Likewise.
(preferredViewportSize): Likewise.
(rowHeight): Likewise.
(rowMargin): Likewise.
(rowSelectionAllowed): Likewise.
(selectionBackground): Likewise.
(selectionForeground): Likewise.
(selectionModel): Likewise.
(showHorizontalLines): Likewise.
(showVerticalLines): Likewise.
(tableHeader): Likewise.
(JTable): Implemented.
(getColumnModel): Likewise.
(getSelectedRow): Likewise.
(getSelectionModel): Likewise.
(setModel): Likewise.
(setSelectionModel): Likewise.
(createScrollPaneForTable): New method.
(createDefaultDataModel): Likewise.
(createDefaultListSelectionModel): Likewise.
(getModel): Likewise.
(getTableHeader): Likewise.
(setTableHeader): Likewise.
(getColumnSelectionAllowed): Likewise.
(setColumnSelectionAllowed): Likewise.
(getRowSelectionAllowed): Likewise.
(setRowSelectionAllowed): Likewise.
(getAutoResizeMode): Likewise.
(setAutoResizeMode): Likewise.
(getColumnCount): Likewise.
(getRowCount): Likewise.
(getCellRenderer): Likewise.
* javax/swing/JTree.java
(cellRenderer): New field.
(editable): Likewise.
(rootVisible): Likewise.
(showsRootHandles): Likewise.
(getModel): New method.
(setModel): Likewise.
(isEditable): Likewise.
(setEditable): Likewise.
(isRootVisbile): Likewise.
(setRootVisible): Likewise.
(getShowsRootHandles): Likewise.
(setShowRootHandles): Likewise.
(getCellRenderer): Likewise.
(setCellRenderer): Likewise.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JFormattedTextField.java
(setDocument): Implemented.
* javax/swing/JRootPane.java:
Fixed javadocs.
* javax/swing/JTable.java
(getDefaultRenderer): New method.
* javax/swing/JTextField.java
(setFont): Likewise.
(getPreferredSize): Likewise.
* javax/swing/JToggleButton.java
(getAccessibleContext): Fix javadoc.
* javax/swing/JTree.java:
Add some javadocs.
* javax/swing/JViewport.java:
Likewise.

2004-07-21  David Jee  <djee@redhat.com>

* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
Collect all native method declaration at the top.
(create): Set the filename filter if necessary.
(setDirectory): Call nativeSetDirectory().
(setFilenameFilter): Implement.
(filenameFilterCallback): New method.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
(create): Configure dialog to show hidden files.
(filenameFilterCallback): New function.
(nativeSetFilenameFilter): New function.
(nativeSetDirectory): New function.

2004-07-21  Kim Ho  <kho@redhat.com>

* javax/swing/plaf/basic/BasicSliderUI.java:
Ran Jalopy.
(paintTrack): Fill the track before painting
the borders.

2004-07-21  Graydon Hoare  <graydon@redhat.com>

patch from Roman Kennke <roman@ontographics.com>
* javax/swing/Spring.java: New file.
* javax/swing/SpringLayout.java: New file.
* Makefile.am: Add new files.
* Makefile.in: Regenerate.

2004-07-21  Graydon Hoare  <graydon@redhat.com>

* javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
* javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
* javax/swing/ScrollPaneLayout.java: Likewise.

2004-07-21  Kim Ho  <kho@redhat.com>

* javax/swing/DefaultDesktopManager.java:
(findMinimum): Removed.
(resizeFrame): Trust the UI to pass valid
bounds.
* javax/swing/JOptionPane.java:
Implemented showInternalXXXDialog methods.
(startModal): New method.
* javax/swing/plaf/basic/BasicInternalFrameUI.java:
(BorderListener::mouseDragged): Verify that the new
bounds are valid before passing them to the DesktopManager.
(preferredLayoutSize): Delegate
to getSize.
(minimumLayoutSize): Ditto.
(getSize): New method.
(GlassPaneDispatcher): Reimplemented by copying
a stripped down LightweightDispatcher from Container.
(getMinimumSize): Call minimumLayoutSize.
* javax/swing/plaf/basic/BasicOptionPaneUI.java:
Ran Jalopy.
(mousePressed): Add ability to properly close
JInternalFrames.
* javax/swing/plaf/basic/BasicToolBarUI.java:
(DragWindow): Set owner for DragWindow.

2004-07-21  Jerry Quinn  <jlquinn@optonline.net>

* java/awt/image/ShortLookupTable.java: New file.
* java/awt/image/ByteLookupTable.java: New file.
* Makefile.am: Added new files.
* Makefile.in: Regenerated.

2004-07-21  David Jee  <djee@redhat.com>

* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
(create(GtkContainerPeer)): New native method.
(create()): Call native create(), passing in the parent frame
as the paramter. Natively set the current file and directory.
(setFile): Construct an absolute filename before passing it to
the native peer.
(nativeGetDirectory): New method.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
(window_closed): Removed.
(ok_clicked): Likewise.
(cancel_clicked): Likewise.
(handle_response): New method.
(create): Use GtkFileChooserDialog.
(connectSignals): Connect to handle_response.
(nativeGetDirectory): New method.
(nativeSetFile): Use GtkFileChooserDialog.

2004-07-21  Jerry Quinn  <jlquinn@optonline.net>

* java/awt/image/LookupTable.java: New file.
* Makefile.am: Added new file.
* Makefile.in: Regenerated.

2004-07-21  Jerry Quinn  <jlquinn@optonline.net>

* java/awt/image/Kernel.java: New file.
* Makefile.am: Added new file.
* Makefile.in: Regenerated.

2004-07-21  Olga Rodimina  <rodimina@redhat.com>

* javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
* javax/swing/JMenu.java: Likewise.
* javax/swing/JMenuBar.java: Likewise.
(MARGIN_CHANGED_PROPERTY): New property.
(setMargin): Implemented.
* javax/swing/JMenuItem.java: Fixed javadocs.
* javax/swing/JPopupMenuUI.java: Fixed javadocs.
(LABEL_CHANGED_PROPERTY): New property.
(add): changed to use createActionComponent.
(createActionComponent): Implemented.
(setLabel): Fire PropertyChangeEvent if label property
changes.
* javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
* javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
(ContainerHandler): Repaint if margin property has changed.
* javax/swing/plaf/basic/BasicMenuItemUI.java:
(installUI): Call installComponents().
(uninstallUI): Call uinstallComponents().
* javax/swing/plaf/basic/BasicMenuUI.java:
Fixed javadocs.
* javax/swing/plaf/basic/BasicPopupMenuUI.java:
Likewise.

2004-07-21  Kim Ho  <kho@redhat.com>

* javax/swing/plaf/basic/BasicToolBarUI.java:
(DragWindow): Use the right constructor.

2004-07-21  Kim Ho  <kho@redhat.com>

* javax/swing/JToolBar.java:
(layoutContainer): Use getComponents.
* javax/swing/plaf/basic/BasicToolBarUI.java:
(DragWindow): Don't use SwingUtilities'
getOwnerFrame
(ToolBarDialog): ditto.

2004-07-21  Kim Ho  <kho@redhat.com>

* javax/swing/JRootPane.java:
Ran jalopy.
(layoutContainer): Set the glasspane's size to
be the same as the content pane.
(createGlassPane): Set opaque property to false.

2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

* java/awt/Component.java (requestFocus()): Don't handle Panels
specially.
(requestFocus(boolean)): Likewise.
(requestFocusInWindow(boolean)): Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
Set GTK_CAN_FOCUS flag.

2004-07-21  Kim Ho  <kho@redhat.com>

* Makefile.am: Added new file.
* Makefile.in: Regenerated.
* gcj/Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* javax/swing/AbstractButton.java:
Add rollOverEnabled property.
(setRolloverEnabled): Use new property.
(isRolloverEnabled): Use new property.
* javax/swing/JTabbedPane.java:
(setComponent): Remove useless JTabbedPane.this.
* javax/swing/JToolBar.java: Finish implementation.
* javax/swing/plaf/basic/BasicArrowButton.java:
(paint): Moved border painting to a border.
* javax/swing/plaf/basic/BasicLookAndFeel.java:
Change JToolBar look and feel defaults.
* javax/swing/plaf/basic/BasicOptionPaneUI.java
(actionPerformed): Return Integer index instead of name.
(addButtonComponents): Check to see if component is
JButton last.
(createMessageArea): Don't use components that are not
completed yet.
(getIconForType): Use temporary icons.
* javax/swing/plaf/basic/BasicSliderUI.java:
(mousePressed): Do not return if it's on thumb.
(paintMinorTickForHorizSlider): Use BLACK to paint ticks.
(paintMinorTickForVertSlider): ditto.
(paintMajorTickForHorizSlider): ditto.
(paintMajorTickForVertSlider): ditto.
* javax/swing/plaf/basic/BasicSplitPaneDivider.java:
Add a border around the SplitPaneDivider.
* javax/swing/plaf/basic/BasicSplitPaneUI.java:
Remove comments.
* javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
New file. Implemented.
* javax/swing/plaf/basic/BasicToolBarUI.java:
Implemented.
* testsuite/Makefile.in: Regenerated.

2004-07-21  Graydon Hoare  <graydon@redhat.com>

* javax/swing/Timer.java (run): Queue events each time cycle.

2004-07-21  David Jee  <djee@redhat.com>

* gnu/java/awt/peer/gtk/GtkImagePainter.java
(imageComplete): Call image.imageComplete().
* java/awt/image/MemoryImageSource.java:
Reimplement consumers as a Vector instead of a Hashtable.  This is
because enumeration on a Hashtable is not thread-safe.
(addConsumer): Adapt to Vector consumers.
(isConsumer): Adapt to Vector consumers.
(removeConsumer): Adapt to Vector consumers.
(startProduction): Adapt to Vector consumers. Call imageComplete()
with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
(newPixels): Adapt to Vector consumers.
(sendPicture): Set the color model of the image consumer.
(newPixels(IIII)): Adapt to Vector consumers.
(newPixels(IIIIB)): Adapt to Vector consumers.

2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

* java/awt/Component.java (deliverEvent): Implement.
(postEvent): Implement.
(handleEvent): Implement.
(translateEvent): New method.
(dispatchEventImpl): Document.  Add AWT 1.0 event handling.
* java/awt/Container.java (deliverEvent): Implement.
* java/awt/Event.java (paramString): Fix formatting.
* java/awt/Font.java (toString): Likewise.
* java/awt/Window.java (postEvent): Implement.

2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

* java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
Set window's focus owner upon receiving a FOCUS_LOST event.
* java/awt/Window.java (Window()): Refocus the previously
focused component within the window when the window regains the
top-level focus.
(setFocusOwner): New method.
* java/awt/Component.java (requestFocus): Add FIXME.

* libgcj.pc.in: Remove library flags.

2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
MOUSE_PRESSED event.
* java/awt/Component.java (requestFocus()): Handle Panel
specially.  Post FOCUS_LOST event on opposite component.
(requestFocus(boolean)): Likewise.
(requestFocusInWindow(boolean)): Likewise.
(paramString): Reorder dimension fields.
* java/awt/Container.java (paramString): Fix string format.
* java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
Handle FOCUS_LOST events.  Don't handle Windows specially.  Only
process key events if the focus owner is non-null.
(dispatchKeyEvent): Likewise.
* java/awt/Frame.java (paramString): Fix formatting.
(generateName): New method.
(getUniqueLong): Likewise.
* java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
the temporary focus owner is null.  If so, return the permanent
focus owner.
* java/awt/Panel.java (generateName): New method.
(getUniqueLong): Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
signal handling to make callbacks more specific.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/text/Position.java
(Bias): Implemented.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/LookAndFeel.java
(provideErrorFeedback): New method.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JTextArea.java
(tabSize): New field.
(getTabSize): New method.
(setTabSize): Likewise.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/ActionMap.java:
Fixed javadocs all over.
(serialVersionUID): Made private.
(parent): Don't explicitely initialize with default value.
(get): SImplified.
(keys): Reimplemented.
(allKeys): Likewise.
(convertSet): Removed.
* javax/swing/ComponentInputMap.java:
Fixed javadocs all over.
(ComponentInputMap): Implemented.
(put): Likewise.
(clear): Likewise.
(remove): Likewise.
(SetParent): Likewise.
(getComponent): Likewise.
* javax/swing/InputMap.java:
Fixed javadocs all over.
(serialVersionUID): Made private.
(parent): Don't explicitely initialize with default value.
(get): SImplified.
(keys): Reimplemented.
(allKeys): Likewise.
(convertSet): Removed.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/ActionMap.java,
javax/swing/ComponentInputMap.java,
javax/swing/InputMap.java,
javax/swing/table/DefaultTableColumnModel.java,
javax/swing/table/TableColumn.java,
javax/swing/table/TableColumnModel.java,
javax/swing/table/TableModel.java,
javax/swing/text/AbstractDocument.java,
javax/swing/text/TextAction.java:
Reformated.

2004-07-21  Graydon Hoare  <graydon@redhat.com>

* gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
Make method non-static.
* javax/swing/AbstractButton.java:
Rename fields to match property names where possible.
(iconTextGap): New property.
* javax/swing/JCheckBox.java: Match AbstractButton changes.
(init) New method, call from after various constructors.
* javax/swing/JComponent.java (revalidate):
Invalidate before queueing repair.
* javax/swing/JList.java (getPreferredScrollableViewportSize):
Reimplement in terms of visibleRowCount property.
* javax/swing/JMenuButton.java: Match AbstractButton changes.
* javax/swing/JScrollPane.java (createScrollListener):
Remove tracing chatter.
* javax/swing/JToggleButton.java: Match AbstractButton changes.
* javax/swing/RepaintManager.java (addInvalidComponent):
Don't invalidate.
* javax/swing/ScrollPaneLayout.java: Various corrections to layout
calculations.
* javax/swing/SwingUtilities.java (layoutCompoundLabel):
Mimic sun behavior on top left/right positioning.
* javax/swing/ViewportLayout.java (preferredLayoutSize):
Remove mistaken use of preferredScrollableViewportSize here.
(layoutContainer): Use view's preferred size as basis.
* javax/swing/plaf/basic/BasicButtonUI.java:
Set, get, and use textIconGap property.
(paint) Paint text returned from layout (with ellipsis).
* javax/swing/plaf/basic/BasicListUI.java:
Remove tracing chatter, correct various minor calculations.
(getCellBounds): Update layout state before calculating.
* javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
Use margin default similar to sun's.
* javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
(createIncreaseIcon): Center icon, minimize margins.
(createDecreaseIcon): Likewise.
* javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
Implement.
(installUI): Call it.
(uninstallDefaults): Implement.
(uninstallUI): Call it.
* javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
Call existing Window constructor.
* javax/swing/plaf/basic/BasicViewportUI.java (paint):
Set clip before painting.

2004-07-21  Olga Rodimina <rodimina@redhat.com>

* javax/swing/JMenuItem.java:
(processMouseEvent): Reimplemented to deal with
mouse drag events.
(createMenuDragMouseEvent): New private helper method.
Creates MenuDragMouseEvent.
* javax/swing/MenuSelectionManager.java
(componentForPoint): Implemented.
(isComponentPartOfCurrentMenu): Made public.
(processMouseEvent): Reimplemented to deal with
mouse drag events.
(setSelectedPath): Corrected small mistake that caused
path to be set incorrectly.
(getPath): If given component is JMenu then also add this
menu's popup menu to the selected path.
* javax/swing/plaf/basic/BasicMenuItemUI.java:
(getPath): Ditto.
(getPreferredSize): Call getPreferredMenuItemSize().
(getPreferredItemSize): Moved code from getPreferredSize to here.
(installListeners): Install MouseMotionListeners.
(MouseInputHandler): Pass mouse release event to MenuSelectionManager
if mouse wasn't released in the bounds of this menu item.
(MenuDragMouseHandler): Implemented.
* javax/swing/plaf/basic/BasicMenuUI.java:
(installListeners): Install MouseMotionListener and
MenuDrageMouseListener.
(MenuDragMouseHandler): Implemented.
* javax/swing/plaf/basic/BasicPopupMenuUI.java:
(uninstallListeners): Implemented.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JCheckBox.java: Reformated.
        (JCheckBox): Fixed all constructors.
        (isBorderPaintedFlat): New method.
        (setBorderPaintedFlat): New method.
* javax/swing/JEditorPane.java
        (createEditorKitForContentType): Made public.
        (scrollToReference): Likewise.
* javax/swing/JTextArea.java
        (setLineWrap): Fire property change.
* javax/swing/JToggleButton.java
        (JToggleButton): New constructor.
        (JToggleButton): Simplified.
* javax/swing/text/AttributeSet.java
        (FontAttribute): Renamed from FontCharacterAttribute.
* javax/swing/text/JTextComponent.java
        (KeyBinBinding): Added javadoc.
        (JTextComponent): Likewise.
        (getAccessibleContext): Fixed javadoc.
* javax/swing/text/View.java
        (View): Added javadoc.
* javax/swing/text/TabableView.java: New file.
* Makefile.am: Added javax/swing/text/TabableView.java.
* Makefile.in: Regenerated.

2004-07-21  Graydon Hoare  <graydon@redhat.com>

* java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
* gnu/java/awt/peer/gtk/GtkToolkit.java
(GtkErrorImage): New helper class.
(bufferedImageOrError): New helper method.
(createImage): Use it.

2004-07-21  David Jee  <djee@redhat.com>

* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
(setCaretPosition): Scroll the text view so the new caret position
is visible on screen.

2004-07-21  David Jee  <djee@redhat.com>

* gnu/java/awt/peer/gtk/GtkContainerPeer.java
(setBounds): Do not validate awtComponent here.
* gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
(getPreferredSize): New method.
* java/awt/ScrollPane.java
(ScrollPane): Set default size to 100x100.
(addNotify): If child is not a Panel, wrap it with a new Panel.
(paramString): Implement.

2004-07-21  Olga Rodimina  <rodimina@redhat.com>

* javax/swing/JMenu.java:
(setSelected): Display popup menu only if this menu
is showing on the screen.
* javax/swing/JPopupMenu.java:
(processMouseEvent): Added comment.
(processKeyEvent): Likewise.
* javax/swing/MenuSelectionManager.java:
(clearSelectedPath): Only fireStateChanged() after
selected path was changed, not before.
(setSelectedPath): Likewise.
* javax/swing/plaf/basic/BasicMenuItemUI.java:
(paintMenuItem): Corrected position of menu item's
icon.
* javax/swing/plaf/basic/BasicPopupMenuUI.java:
(installUI): Correct setDefaultLightWeightPopupEnabled call.
(popupMenuCanceled): Reimplemented.
(popupMenuWillBecomeVisible): Select first menu item by default
when displaying free floating popup menus.
(TopWindowListener): Reimplemented.

2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

* java/awt/Panel.java (dispatchEventImpl): Override to prevent
Panel from being painted twice when it is first shown.

2004-07-21  Olga Rodimina  <rodimina@redhat.com>

* java/awt/Window.java: Reverted changes from my
previous patch for creating window without an owner.
* javax/swing/SwingUtilities.java:
(SwingUtilities.OwnerFrame): made static.
(OwnerFrame.setVisible): New method. Overridden with
empty implementation.
(OwnerFrame.isShowing): New method. Ovverridden
to return always true.

2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(GtkComponentPeer): Remove temporary try/catch block.
(setVisible): Call show and hide.
(show): Make native.
(hide): Likewise.
(getArgs): Don't add "visible" argument.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(property_notify_predicate): Return Bool instead of int.
(find_layout): New function.
(connectJObject): Call find_layout.
(connectSignals): Likewise.
(moveLayout): Likewise.
(gtkLayoutSetVisible): Likewise.

2004-07-21  Mark Wielaard  <mark@klomp.org>

* java/awt/event/InvocationEvent.java (dispatch): Synchronize
on notifier object before calling notifyAll().

2004-07-21  Olga Rodimina  <rodimina@redhat.com>

* java/awt/Window.java: Changed constructors to use new
method that is described below. Constructors call this
methods only if newly created window should have an owner.
(setWindowOwner): New method. Implementation for
this method is moved from this(owner,configuration).
* javax/swing/JWindow.java:
(JWindow): Reimplement to use SwingUtilities.ownerFrame
instead of owner.
* javax/swing/SwingUtilities.java:
(ownerFrame): Change type of this field to OwnerFrame.
(getOwnerFrame): Changed to return object of type OwnerFrame.
(SwingUtilities.OwnerFrame): New class. Represents owner
of a Window that is not provided with one.

2004-07-21  Olga Rodimina  <rodimina@redhat.com>

*  javax/swing/AbstractButton.java:
(configurePropertiesFromAction): Set action command
to button's text by default if action command is not
explicitely specified.
* javax/swing/JMenu.java: Remove unnecessary listener
and methods relevant to it.
(setSelected): Reimplemented.
(menuSelectionChanged): Moved most part of implementation to
setSelected() and call it instead.
* javax/swing/JMenuItem.java:
(init): Comment out statement that sets paint_border to false.
(configurePropertiesFromAction): Do not set accelerator
for JMenu.
(menuSelectionChanged): Change selected index in the selection
model of menu item's parent.
* javax/swing/JPopupMenu.java:
(remove): Set constraints.fill field to GridBagConstraints.BOTH
instead of GridBagConstraints.HORIZONTAL.
(insert): Likewise.
(createActionChangeListener): Implemented.
(setVisible): Correct location of HeavyWeightMenu and
don't firePopupMenuCanceled().
(menuSelectionChanged): Implemented.
(ActionChangeListener): New Listener. Implemented.
* javax/swing/plaf/basic/BasicMenuBarUI.java:
(BasicMenuBarUI.ContainerHandler): Implemented.
* javax/swing/plaf/basic/BasicMenuItemUI.java:
(paintMenuItem): Uncommented out code that paints
icon, now that icons are working properly.
(PropertyChangeListener): Implemented.
* javax/swing/plaf/basic/BasicPopupMenuUI.java:
Added javadocs.
(topWindowListener): New field.
(Constructor): initialize topWindowListener.
(BasicPopupMenuUI.TopWindowListener): Implemented.
(BasicPopupMenuUI.PopupMenuHandler): Implemented.
(BasicPopupMenuUI.TopWindowListener): New ComponentListener.
Implemented.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/plaf/basic/BasicButtonUI.java
(paintFocus): Fixed method signature.
(paintButtonPressed): Likewise.
(paintButtonNormal): Likewise.
(paintText): New method.
* javax/swing/plaf/basic/BasicLabelUI.java
(paint): Re-indented.
* javax/swing/plaf/basic/BasicTextUI.java
(installUI): Set parent textComponent to opaque.
* javax/swing/text/DefaultHighlighter.java
(checkPositions): New helper method.
(addHighlight): Throws BadLocationException, check positions.
(changeHighlight): Likewise.
* javax/swing/text/EditorKit.java
(EditorKit): Implements Serializable.
* javax/swing/text/JTextComponent.java
(getUI): Added javadoc.
(setUI): Likewise.
(upadteUI): Added javadoc, don't revalidate and repaint.

2004-07-21  David Jee  <djee@redhat.com>

* java/awt/GridBagLayout.java
(ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
* javax/swing/AbstractButton.java
(setText): Reindent.
* javax/swing/RepaintManager.java
(addInvalidComponent): Find the first ancestor that isValidateRoot().

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JFormattedTextField.java
(value): New field.
(JFormattedTextField): Implemented.
(getValue): Likewise.
(setValue): Likewise.
* javax/swing/LookAndFeel.java
(getSupportsWindowDecorations): New method.
* javax/swing/UIDefaults.java:
Use java.beans.PropertyChangeSupport instead of doing all ourself.
(addPropertyChangeListener): Made public.
(addResourceBundle): Likewise.
(removeResourceBundle): Likewise.
(setDefaultLocale): Likewise.
* javax/swing/plaf/basic/BasicRootPaneUI.java
(BasicRootPaneUI): Implements PropertyChangeListener.
(propertyChange): New method.
* javax/swing/plaf/basic/BasicTextUI.java
(BasicHighlighter): New inner class.
(createHighlighter): New method.
* javax/swing/plaf/basic/BasicToolBarUI.java
(DragWindow): Extends java.awt.Window.
* javax/swing/text/JTextComponent.java
(getDocument): Removed debug output.
* javax/swing/plaf/basic/BasicTextFieldUI.java,
javax/swing/text/DefaultHighlighter.java,
javax/swing/text/FieldView.java,
javax/swing/text/PlainView.java: New files.
* Makefile.am: Added new files.
* Makefile.in: Regenerated.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JEditorPane.java
(createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
(createEditorKitForContentType): Likewise.
* javax/swing/text/DefaultEditorKit.java
(serialVersionUID): Added constant field.
(EndOfLineStringPropery): Fixed typo.
(DefaultEditorKit): New constructor.
* javax/swing/text/Segment.java:
Import java.text.CharacterIterator.
* javax/swing/text/CharacterIterator.java,
javax/swing/text/PlainEditorKit.java: Removed.
* Makefile.am: Removed javax/swing/text/CharacterIterator.java and
javax/swing/text/PlainEditorKit.java.
* Makefile.in: Regenerated.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JButton.java,
javax/swing/text/DefaultEditorKit.java,
javax/swing/text/EditorKit.java,
javax/swing/text/Segment.java,
javax/swing/text/StyledEditorKit.java:
Reformatted.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/ImageIcon.java
(file): Removed.
(description): Renamed from descr.
(ImageIcon): Added missing constructors.
(setParent): Removed.
(setImageObserver): New method.
(getImageObserver): New method.
(paintIcon): Handle observer = null.
* javax/swing/JButton.java
(removeNotify): Fixed javadoc.
(updateUI): Simplified.
* javax/swing/JRootPane.java
(serialVersionUID): New constant field.
* javax/swing/UIManager.java:
Fixed javadocs all over.
(setLookAndFeel): Throws UnsupportedLookAndFeelException.
* javax/swing/text/AbstractDocument.java
(createPosition): Throws BadLocationException.
(getText): Likewise.
(remove): Likewise.
* javax/swing/text/ComponentView.java
(modelToView): Likewise.
* javax/swing/text/DefaultEditorKit.java:
Made all public methods public.
(read): Throws BadLocationException and IOException.
(write): Likewise.
* javax/swing/text/EditorKit.java:
Made all public methods public.
(serialVersionUID): New constant field.
(clone): New method.
(read): Throws BadLocationException and IOException.
(write): Likewise.
* javax/swing/text/Segment.java
(array): Made public.
(count): Likewise.
(offset): Likewise.
(Segment): New constructors.
(clone): Reimplemented.
* javax/swing/text/StyledEditorKit.java
(serialVersionUID): New constant field.

2004-07-21  Graydon Hoare  <graydon@redhat.com>

* java/awt/image/BufferedImage.java
(getSource): Implement.
* javax/swing/ImageIcon.java
(ImageIcon): Implement ctor.
* javax/swing/ScrollPaneLayout.java
(preferredLayoutSize): Be more careful about nulls.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/text/AttributeSet.java
(CharacterAttribute): New interface
(ColorAttribute): Likewise.
(FontCharacterAttribute): Likewise.
(ParagraphAttribute): Likewise.
* javax/swing/text/DefaultCaret.java
(moveCaret): New method.
(positionCaret): Likewise.
(repaint): Made protected.
* javax/swing/text/JTextComponent.java
(KeyBinding): Made it static.
* javax/swing/text/View.java
(getContainer): Honor parent == null.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/text/AbstractDocument.java:
Reformatted.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/plaf/basic/BasicRootPaneUI.java:
Import javax.swing.UIManager explicitely.
* javax/swing/plaf/basic/BasicTabbedPaneUI.java
(ScrollingButton): Made it static.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/UIDefaults.java
(ActiveValue): Made public.
(LazyValue): Likewise.
* javax/swing/plaf/basic/BasicTextUI.java
(RootView): Reintroduced.
(view): Removed.
(rootView): New field.
(installUI): Create document if needed, initialize rootView.
(uninstallUI): Hanle rootView.
(paint): Likewise.
(getRootView): Likewise.
(setView): Likewise.
* javax/swing/text/DefaultCaret.java:
Renamed all "evt" variables to "event".

2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

* libgcj.spec.in: Add -l-java-util-logging.

2004-07-21  Andreas Tobler  <a.tobler@schweiz.ch>

* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
(init_dpi_conversion_factor): Check for int_dpi < 0 in case
gtk-xft-dpi can no calculate the right value.
(dpi_changed_cb): Mark *pspec as unsused.

2004-07-21  David Jee  <djee@redhat.com>

* java/awt/Component.java
(move): Delegate to setBounds().
(resize): Likewise.
(reshape): Fix so it repaints parent and self only when necessary.

2004-07-21  David Jee  <djee@redhat.com>

* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(GtkComponentPeer): Revert previous patch from 2004-06-22.
(setVisible): Likewise.
(show): Likewise.
(hide): Likewise.
(getArgs): Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(property_notify_predicate): Likewise.
(find_layout): Likewise.
(connectJObject): Likewise.
(connectSignals): Likewise.
(moveLayout): Likewise.
(gtkLayoutSetVisible): Likewise.

2004-07-21  Graydon Hoare  <graydon@redhat.com>

* Makefile.am
(jv_convert_LDADD):
(gij_LDADD):
(rmic_LDADD):
(rmiregistry_LDADD): Add lib-java-util-logging.la
* Makefile.in: Regenerate.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/text/AbstractDocument.java
(replace): Dont use protected method of java.util.Vector directly.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/plaf/basic/BasicTextUI.java
(installUI): Call specialized install methods.
(installDefaults): New method.
(installListeners): Likewise.
(installKeyboardActions): Likewise.
(uninstallUI): Likewise.
(uninstallDefaults): New method.
(uninstallListeners): Likewise.
(uninstallKeyboardActions): Likewise.
(getPropertyPrefix): New abstract method.
(paint): Made final, just call paintSafely().
(paintSavely): New method.
(paintBackground): Likewise.
(getVisibleEditorRect): Likewise.
* javax/swing/text/LayeredHighlighter.java,
javax/swing/text/TabExpander.java: New files.
* Makefile.am: Added javax/swing/text/LayeredHighlighter.java
and javax/swing/text/TabExpander.java.
* Makefile.in: Regenerated.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/plaf/basic/BasicTextUI.java
(BasicTextUI): Made abstract.
(BasicCaret): New inner class.
(view): Don't explicitely initialize with "null".
(textComponent): New field.
(textColor): Removed.
(disabledTextColor): Removed.
(normalBackgroundColor): Removed.
(RootView): Removed commented out inner class.
(createUI): Removed.
(createCaret): New method.
(getComponent): Likewise.
(installUI): Initialize textComponent only.
(getPreferredSize): Use installed JTextComponent.
(setView): New method.
(create): Likewise.
* javax/swing/text/JTextComponent.java
(highlighter): New field.
(caretColor): Likewise.
(disabledTextColor): Likewise.
(seletedTextColor): Likewise.
(selectionColor): Likewise.
(setUI): New method.
(getCaretColor): Likewise.
(setCaretColor): Likewise.
(getDisabledColor): Likewise.
(setDisabledColor): Likewise.
(getSelectedTextColor): Likewise.
(setSelectedTextColor): Likewise.
(getSelectionColor): Likewise.
(setSelectionColor): Likewise.
(getHighlighter): Likewise.
(setHighlighter): Likewise.
(replaceSelection): Likewise.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/plaf/basic/BasicScrollPaneUI.java
(BasicScrollPaneUI): Implements ScrollPaneConstants.
* javax/swing/plaf/basic/BasicToolBarUI.java
(BasicToolBarUI): Implements SwingConstants.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JPopupMenu.java: Removed CVS tags.
* javax/swing/UIDefaults.java: Reformatted.
* javax/swing/plaf/basic/BasicRootPaneUI.java:
Explicitely import used classes.

2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(GtkComponentPeer): Remove temporary try/catch block.
(setVisible): Call show and hide.
(show): Make native.
(hide): Likewise.
(getArgs): Don't add "visible" argument.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(property_notify_predicate): Return Bool instead of int.
(find_layout): New function.
(connectJObject): Call find_layout.
(connectSignals): Likewise.
(moveLayout): Likewise.
(gtkLayoutSetVisible): Likewise.

2004-07-21  Olga Rodimina  <rodimina@redhat.com>

* javax/swing/AbstractButton.java:
(setDisplayedMnemonicIndex): Check if button
text is not null before checking its length.
* javax/swing/JMenuItem.java:
(processMouseEvent): Disarm menu item if mouse has
exited it.
* javax/swing/plaf/basic/BasicMenuUI.java:
(MouseInputHandler.mouseEntered): Do not raise
popup menu if this menu is already selected.
(MouseInputHandler.mousePressed): Do not fire
MenuEvents.
(MenuHandler): Implemented.

2004-07-21  Olga Rodimina  <rodimina@redhat.com>

* javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
(getSelectedObjects): Implemented.
* javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
* javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
Added javadoc for few methods.
(processMouseEvent): Made public.
* javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
(processMouseEvent): Likewise.

2004-07-21  Olga Rodimina  <rodimina@redhat.com>

* javax/swing/AbstractButton.java:
(init): Set display mnemonic index to -1.
(setMnemonic(char)): Use setMnemonic(int).
(setMnemonic(int)): Set display mnemonic index.
(getDisplayedMnemonicIndex): Change method signature
by removing 'index' parameter.
* javax/swing/plaf/basic/BasicLookAndFeel.java:
Added default for Menu.selectionBackground.
* javax/swing/plaf/basic/BasicMenuItemUI.java:
(paintMenuItem): Change background color of the selected
menu item.
(paintText): Paint differently when menu item is disabled.
Also paint mnemonic if it appears in the menu item's label.
(paintAccelerator): Paint accelerator differently
if menu item is disabled.
* javax/swing/plaf/basic/BasicMenuUI.java:
(installDefaults): Install defaults for
selectionForeground and selectionBackground.
(uninstallDefaults): Uninstall defauls for
selectionForeground and selectionBackground.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/text/AbstractDocument.java
(BranchElement): Implemented.
(LeafElement): Implemented.
* javax/swing/text/DefaultCaret.java:
Import used classes.
(serialVersionUID): New constant.
* javax/swing/text/JTextComponent.java
(AccessibleJTextComponent): Removed dead declaration.
(caretPos): Removed.
(setCaret): New method.
* javax/swing/text/PlainDocument.java
(rootElement): New field.
(PlainDocument): Initialize rootElement.
(createDefaultRoot): New method.
(getDefaultRootElement): Implemented.
* javax/swing/text/View.java: Reformatted.
* javax/swing/text/ViewFactory.java
(create): Added javadoc.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/ToolTipManager.java: Reformatted.

2004-07-21  Rodimina Olga  <rodimina@redhat.com>

* javax/swing/AbstractButton.java
(changeEvent): New field.
(fireItemStateChanged): Change source of the event
to 'this' before firing it to button listeners.
(fireActionPerformed): Likewise.
(fireStateChanged): Likewise.
(createActionListener): Do not set source
of the event to AbstractButton.
* javax/swing/plaf/basic/BasicMenuBarUI.java:
(ContainerHandler.componentAdded): Removed
print out statement.
(ContainerHandler.componentRemoved): Likewise.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/text/Highlighter.java: New file.
* Makefile.am: Added javax/swing/text/Highlighter.java.
* Makefile.in: Regenerated.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/ToolTipManager.java
(stillInsideTimerAction): Fixed constructor arguments.
(outsideTimerAction): Likewise.
(insideTimerAction): Likewise.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JButton.java: Reformatted.
* javax/swing/JFormattedTextField.java
(getUIClassID): Implemented.
* javax/swing/JRootPane.java
(serialVersionUID): New constant.
* javax/swing/JTextField.java
(align): New field.
(JTextField): Simplified.
(getUIClassID): New method.
(getActionListeners): Added @since tag.
(setColumns): Invalidate layout and repaint.
(getHorizontalAlignment): New method.
(setHorizontalAlignment): New method.
(selectAll): Removed.
* javax/swing/SwingUtilities.java
(getAncestorOfClass): Removed redundant @see tag.
(isLeftMouseButton): Fixed implementation.
(isMiddleMouseButton): Likewise.
(isRightMouseButton): Likewise.
* javax/swing/text/AbstractDocument.java
(AttributeContext.addAttribute): New method.
(AttributeContext.addAttributes): New method.
(AttributeContext.getEmptySet): New method.
(AttributeContext.reclaim): New method.
(AttributeContext.removeAttribute): New method.
(AttributeContext.removeAttributes): New method.
* javax/swing/text/Document.java
(createPosition): Throws BadLocationException.
(getText): Likewise.
(remove): Likewise.
* javax/swing/text/JTextComponent.java
(getText): Return null if no document is set. Catch
BadLocationException.
(getUI): Return ui.
(updateUI): Simplified.

2004-07-21  Michael Koch  <konqueror@gmx.de>

* javax/swing/JButton.java
(removeNotify): Fixed javadoc.
(updateUI): Simplified.

2004-07-21  David Jee  <djee@redhat.com>

* gnu/java/awt/image/ImageDecoder.java
(startProduction): Only add consumer if it's not added yet.
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
(GdkPixbufDecoder): Don't call initState() here.
(produce): Call initState() here, to ensure area_prepared and
area_updated signals are properly connected.
* gnu/java/awt/peer/gtk/GtkImage.java
(setColorModel): Use equals() to compare ColorModel objects.
(setPixels): Likewise.
* java/awt/image/ColorModel.java
(equals): Fix typo. Use Arrays.equals() to compare int arrays.
* java/awt/image/RGBImageFilter.java
(setColorModel): Set consumer's color model.
(setPixels): Use equals() to compare ColorModel objects.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85051 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * pt.c
nathan [Thu, 22 Jul 2004 14:57:09 +0000 (14:57 +0000)]
    * pt.c
cp:
        * pt.c  (get_template_base): Check type is completable.
testsuite:
        * g++.dg/template/crash20.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85050 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-22 David Billinghurst (David.Billinghurst@riotinto.com)
billingd [Thu, 22 Jul 2004 13:10:13 +0000 (13:10 +0000)]
2004-07-22  David Billinghurst (David.Billinghurst@riotinto.com)

* gfortran.dg/g77/970625-2.f Copy from g77.f-torture/execute.
Add dg-run directive.  Declare variables as required.
* gfortran.dg/g77/README: Update

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85049 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * config/cris/cris.md: Tweak formatting.
hp [Thu, 22 Jul 2004 10:10:56 +0000 (10:10 +0000)]
* config/cris/cris.md: Tweak formatting.
(asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
(mover2side, moverside, movemside, movei, op3, andu): Replace
live define_peephole:s with define_peephole2 near-equivalents.
Delete the rest.
  ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
word-size modes.
("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
"*mov_sidesi_mem" respectively.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85041 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * gcc.dg/cris-peep2-xsrand.c, gcc.dg/cris-peep2-andu1.c,
hp [Thu, 22 Jul 2004 10:08:29 +0000 (10:08 +0000)]
* gcc.dg/cris-peep2-xsrand.c, gcc.dg/cris-peep2-andu1.c,
gcc.dg/cris-peep2-andu2.c: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85040 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-22 Paolo Bonzini <bonzini@gnu.org>
bonzini [Thu, 22 Jul 2004 08:20:40 +0000 (08:20 +0000)]
2004-07-22  Paolo Bonzini  <bonzini@gnu.org>

* tree-cfg.c (gimplify_val): Move from tree-complex.c.
(gimplify_build1): Move from tree-complex.c do_unop.
(gimplify_build2): Move from tree-complex.c do_binop.
(gimplify_build3): New.
* tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
Adjust throughout to call the functions above.
* tree-flow.h: Declare the functions above.
* tree-nested.c (gimplify_val): Rename to...
(tsi_gimplify_val): ... this.

* Makefile.in (tree_complex.o): Update dependencies.
(stor-layout.o): Depend on regs.h.
* c-common.c (handle_vector_size_attribute): Update for
vector types without corresponding vector modes.
* expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
a corresponding vector mode is not available.
* print-tree.c (print_node): Print nunits for vector types
* regclass.c (have_regs_of_mode): New.
(init_reg_sets_1): Initialize it and use it instead
of allocatable_regs_of_mode.
* regs.h (have_regs_of_mode): Declare it.
* stor-layout.c (layout_type): Pick a mode for vector types.
* tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
build_replicated_const, do_unop, do_binop, do_plus_minus,
do_negate, expand_vector_piecewise, expand_vector_parallel,
expand_vector_addition, expand_vector_operations_1,
expand_vector_operations, tree_lower_operations,
pass_lower_vector_ssa, pass_pre_expand): New.
(expand_complex_operations, pass_lower_complex): Remove.
* tree-optimize.c (init_tree_optimization_passes): Adjust
pass ordering for changes in tree-complex.c.
* tree-pass.h: Declare new passes.
* tree.c (finish_vector_type): Remove.
(make_vector_type): New.
(build_vector_type_for_mode, build_vector_type): Rewritten.
* tree.def (VECTOR_TYPE): Document where the number of
subparts is stored.
* tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
(make_vector): Remove declaration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85039 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
rth [Thu, 22 Jul 2004 02:48:27 +0000 (02:48 +0000)]
    * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
        TREE_THIS_VOLATILE, may_aliases, or optimization level.
        (remove_useless_vars): Dump debugging info.
        (expand_used_vars): Move ...
        * cfgexpand.c (expand_used_vars): ... here.  Make static.
        * tree-flow-inline.h (set_is_used): New.
        (set_default_def): Use get_var_ann.
        * tree-flow.h: Update decls.
        * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
        (create_ssa_var_map): Use it.
        * tree-ssa.c (set_is_used): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85034 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 Bryce McKinlay <mckinlay@redhat.com>
bryce [Thu, 22 Jul 2004 01:33:11 +0000 (01:33 +0000)]
2004-07-21  Bryce McKinlay  <mckinlay@redhat.com>

* java/net/URLConnection.java (position): New field.
(dateFormat1, dateFormat2, dateFormat3): Removed.
(dateFormats): New field.
(getHeaderFieldDate): Use new dateFormats array. Re-use
parsePosition each time instead of re-allocating.
(initializeDateFormats): Initialize 'dateFormats'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85033 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * gdbinit.in: Set a breakpoint on internal_error.
bje [Thu, 22 Jul 2004 01:04:13 +0000 (01:04 +0000)]
* gdbinit.in: Set a breakpoint on internal_error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85031 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
rth [Thu, 22 Jul 2004 00:45:54 +0000 (00:45 +0000)]
    * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
        to create a new basic block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85029 138bc75d-0d04-0410-961f-82ee72b054a4

17 years agoDaily bump.
gccadmin [Thu, 22 Jul 2004 00:16:15 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85027 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR c/15052
jsm28 [Thu, 22 Jul 2004 00:00:47 +0000 (00:00 +0000)]
PR c/15052
* c-decl.c (grokdeclarator): Only pedwarn for qualified void
return type on function definitions.  Move other warnings for
qualified return type to -Wreturn-type.  Do not condition any such
warnings on -pedantic.  Update comments.
(start_function): Only copy function type from previous prototype
declaration if return types are compatible.
* c-typeck.c (function_types_compatible_p): Don't condition
warning for incompatibility of volatile qualifiers on the return
type on -pedantic.  Update comment.
* doc/invoke.texi (-Wreturn-type, -Wextra): Update.

testsuite:
* gcc.dg/noreturn-5.c: Test qualifiers on function type instead of
on return type.
* gcc.dg/qual-return-1.c: Use -Wreturn-type.  Update expected
messages.
* gcc.dg/qual-return-2.c: Update expected messages.
* gcc.dg/qual-return-3.c, gcc.dg/qual-return-4.c: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85024 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * c-typeck.c (set_init_index): Require designator to be of integer
jsm28 [Wed, 21 Jul 2004 23:51:29 +0000 (23:51 +0000)]
* c-typeck.c (set_init_index): Require designator to be of integer
type.

testsuite:
* gcc.dg/c99-init-3.c, gcc.dg/gnu99-init-2.c: New tests.
* gcc.dg/noncompile/921102-1.c: Update expected error message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85023 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR c/11250
jsm28 [Wed, 21 Jul 2004 23:46:20 +0000 (23:46 +0000)]
PR c/11250
* c-parse.in (init): Change to exprtype.
(primary): Set original_code for STRING to STRING_CST.
Call maybe_warn_string_init for compound literals.
(initdcl, notype_initdcl): Call maybe_warn_string_init.
(initval): Update.
* c-tree.h (maybe_warn_string_init): New.
(pop_init_level, process_init_element): Use struct c_expr.
(struct c_expr): Update comment.
* c-typeck.c (maybe_warn_string_init): New function.
(digest_init): Call it.  Additional parameter strict_string.  All
callers changed.
(output_init_element): Likewise.
(struct constructor_stack): Use struct c_expr for
replacement_value.
(really_start_incremental_init, push_init_level): Update.
(pop_init_level): Update.  Return struct c_expr.
(process_init_level): Update.  Take struct c_expr argument.

testsuite:
* gcc.dg/init-string-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85022 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 David S. Miller <davem@nuts.davemloft.net>
davem [Wed, 21 Jul 2004 21:42:29 +0000 (21:42 +0000)]
2004-07-21  David S. Miller  <davem@nuts.davemloft.net>

* config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85020 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 Eric Christopher <echristo@redhat.com>
echristo [Wed, 21 Jul 2004 19:23:03 +0000 (19:23 +0000)]
2004-07-21  Eric Christopher  <echristo@redhat.com>

* builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
removal.
* c-decl.c (pop_scope): Ditto.
* calls.c (expand_call): Remove call to current_nesting_level,
update comment accordingly. Remove calls to expand_start_target_temps
and expand_end_target_temps.
* cfgexpand.c (construct_init_block): Remove call to
expand_start_bindings_and_block.
(construct_exit_block): Remove call to expand_end_bindings.
* expr.c (safe_from_p): Remove BIND_EXPR handling.
(expand_expr_real_1): Ditto. Fix formatting.
(expand_vars): Delete.
* stmt.c (POPSTACK): Remove block_stack.
(stmt_status): Remove x_block_stack.
(block_stack): Delete.
(expand_start_bindings_and_block): Ditto.
(expand_start_target_temps): Ditto.
(expand_end_target_temps): Ditto.
(current_nesting_level): Ditto.
(warn_about_unused_variables): Ditto.
(expand_end_bindings): Ditto.
* tree.h: Remove declarations for above.

2004-07-21  Eric Christopher  <echristo@redhat.com>

* decl.c (poplevel): Inline unused variable checking.
Change formatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85019 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago* whitespace tweak
fche [Wed, 21 Jul 2004 19:14:28 +0000 (19:14 +0000)]
* whitespace tweak

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85018 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
steven [Wed, 21 Jul 2004 18:57:09 +0000 (18:57 +0000)]
* rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
* rtl.c (note_insn_name): Likewise.
* print-rtl.c (print_rtx): Don't print it.
* cfgrtl.h (can_delete_note_p): Don't handle it.
(rtl_delete_block): Likewise.
* passes.c (rest_of_handle_guess_branch_prob): Remove.
(rest_of_compilation): Don't call it.
* predict.c (process_note_predictions, process_note_prediction,
note_prediction_to_br_prob): Remove.
* basic-block.c (note_prediction_to_br_prob): Remove prototype.
* stmt.c (return_prediction): Remove.
(expand_value_return): Don't call it.  Don't add prediction
notes for return statements.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85016 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Wed, 21 Jul 2004 18:54:52 +0000 (18:54 +0000)]
2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>

* docs/doxygen/mainpage.html: Clarify links.
* docs/doxygen/stdheader.cc: Add files.
* docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
* docs/doxygen/user.cfg.in: New options, wrap.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85015 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 Frank Ch. Eigler <fche@redhat.com>
fche [Wed, 21 Jul 2004 18:50:14 +0000 (18:50 +0000)]
2004-07-21  Frank Ch. Eigler  <fche@redhat.com>

* mf-runtime.c (__mfu_check): Remove mistaken mode-nop
handling.
(__mfu_usage): Include (C) 2004.
* mf-hooks3.c (__mf_find_threadinfo): Don't call tracing functions
here.  Include a comment explaining why.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85014 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
zlomek [Wed, 21 Jul 2004 17:03:47 +0000 (17:03 +0000)]
* var-tracking.c (vt_find_locations): Set the in_pending bitmap at
once.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85012 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR java/16431.
aph [Wed, 21 Jul 2004 16:12:32 +0000 (16:12 +0000)]
PR java/16431.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85010 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-20 Andrew Haley <aph@redhat.com>
aph [Wed, 21 Jul 2004 16:03:43 +0000 (16:03 +0000)]
2004-07-20  Andrew Haley  <aph@redhat.com>

* verify.c (verify_jvm_instructions): Comment change only.

* typeck.c (build_java_array_type): Add size field to array name.

* java-tree.h (LOCAL_SLOT_P): New.
(update_aliases): Add PC argument.
(pushdecl_function_level): New function.

* java-gimplify.c (java_gimplify_expr): Handle VAR_DECL,
MODIFY_EXPR, and SAVE_EXPR.
(java_gimplify_modify_expr): New function.

* expr.c (push_type_0): Call find_stack_slot() to create temporary.
(expand_iinc): Pass PC to update_aliases().
(STORE_INTERNAL): Likewise.
(process_jvm_instruction): Likewise.

* decl.c (base_decl_map): New variable.
(uniq): New variable.
(update_aliases): Rewrite with more thorough checking.
(debug_variable_p): New function.
(push_jvm_slot): Don't initialize local variable.  Don't pushdecl.
(check_local_named_variable): Delete whole function.
(initialize_local_variable): New function.
(check_local_unnamed_variable): Add checks and comments.
(find_local_variable): Rewrite.
(java_replace_reference): New function.
(function_binding_level): New variable.
(pushdecl_function_level): New function.
(maybe_pushlevels): Set DECL_LOCAL_END_PC.
(maybe_pushlevels): Call pushdecl() on each of the new decls.
(start_java_method): Reset uniq.  Create base_decl_map.  Set
function_binding_level.
(end_java_method): Null unused fields to save memory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85009 138bc75d-0d04-0410-961f-82ee72b054a4

17 years agoFix formatting.
pbrook [Wed, 21 Jul 2004 11:21:13 +0000 (11:21 +0000)]
Fix formatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85004 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 Paolo Bonzini <bonzini@gnu.org>
bonzini [Wed, 21 Jul 2004 08:57:07 +0000 (08:57 +0000)]
2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

* c-common.c (vector_types_convertible_p): Use vector types'
TYPE_SIZE and TREE_TYPE instead of their mode.
* convert.c (convert_to_integer): Likewise.
(convert_to_vector): Likewise.
* fold-const.c (fold_convert): Likewise.
* varasm.c (output_constant): Likewise.
* expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
Allow a VECTOR_TYPE initializer to be made of several vectors.
For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
of cleared and need_to_clear, and use fold_convert.
* c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
integer vectors.

cp/ChangeLog:
2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

* c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
integer vectors.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85002 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 Paolo Bonzini <bonzini@gnu.org>
bonzini [Wed, 21 Jul 2004 08:25:57 +0000 (08:25 +0000)]
2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

        * ansidecl.h (ATTRIBUTE_PURE): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85001 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 Paolo Bonzini <bonzini@gnu.org>
bonzini [Wed, 21 Jul 2004 08:22:59 +0000 (08:22 +0000)]
2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

* c-common.c (vector_types_convertible_p): Use vector types'
TYPE_SIZE and TREE_TYPE instead of their mode.
* convert.c (convert_to_integer): Likewise.
(convert_to_vector): Likewise.
* fold-const.c (fold_convert): Likewise.
* varasm.c (output_constant): Likewise.
* expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
Allow a VECTOR_TYPE initializer to be made of several vectors.
For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
of cleared and need_to_clear, and use fold_convert.
* c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
integer vectors.

cp/ChangeLog:
2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

* c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
integer vectors.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85000 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR middle-end/15345
jakub [Wed, 21 Jul 2004 07:39:09 +0000 (07:39 +0000)]
PR middle-end/15345
PR c/16450
* gcc.dg/torture/nested-fn-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84999 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-20 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 21 Jul 2004 02:35:55 +0000 (02:35 +0000)]
2004-07-20  H.J. Lu  <hongjiu.lu@intel.com>

PR target/16559
* gcc.dg/ia64-fptr-1.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84995 138bc75d-0d04-0410-961f-82ee72b054a4

17 years agoAdd parens so emacs will properly indent.
kenner [Wed, 21 Jul 2004 02:04:00 +0000 (02:04 +0000)]
Add parens so emacs will properly indent.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84994 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
rth [Wed, 21 Jul 2004 02:03:28 +0000 (02:03 +0000)]
    * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
        (expand_gimple_basic_block): out from here.  Renamed from expand_block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84993 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-20 David S. Miller <davem@nuts.davemloft.net>
davem [Wed, 21 Jul 2004 01:46:13 +0000 (01:46 +0000)]
2004-07-20  David S. Miller  <davem@nuts.davemloft.net>

* config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
enormous cost if not TARGET_HARD_MUL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84992 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-20 Andrew Pinski <apinski@apple.com>
pinskia [Wed, 21 Jul 2004 01:35:01 +0000 (01:35 +0000)]
2004-07-20  Andrew Pinski  <apinski@apple.com>

        PR target/16557
        * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
        (ASM_SPEC): here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84991 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * fold-const.c (operand_equal_p): Temporarily support NULL args.
kenner [Wed, 21 Jul 2004 01:21:11 +0000 (01:21 +0000)]
* fold-const.c (operand_equal_p): Temporarily support NULL args.
(operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
(operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84990 138bc75d-0d04-0410-961f-82ee72b054a4

17 years agoFix typo in comment.
kenner [Wed, 21 Jul 2004 01:15:17 +0000 (01:15 +0000)]
Fix typo in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84989 138bc75d-0d04-0410-961f-82ee72b054a4

17 years agoDaily bump.
gccadmin [Wed, 21 Jul 2004 00:16:12 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84987 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR c++/14497
giovannibajo [Wed, 21 Jul 2004 00:13:41 +0000 (00:13 +0000)]
PR c++/14497
* pt.c (check_explicit_specialization): Remove extension to accept
specializations without template headers. Fall-through to normal
processing.

PR c++/14497
* g++.dg/template/spec16.C: New test.
* g++.old-deja/g++.robertl/eb118.C: Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84983 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR c++/509
giovannibajo [Wed, 21 Jul 2004 00:06:45 +0000 (00:06 +0000)]
PR c++/509
* pt.c (determine_specialization): New parameter template_count.
Disambiguate between member templates and member functions counting
the template headers.
(check_explicit_specialization): Update caller.
(tsubst_friend_function): Likewise.

PR c++/509
* g++.dg/template/spec15.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84982 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 David Billinghurst (David.Billinghurst@riotinto.com)
billingd [Wed, 21 Jul 2004 00:02:24 +0000 (00:02 +0000)]
2004-07-21  David Billinghurst (David.Billinghurst@riotinto.com)

* gfortran.dg/g77/README: Update

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84981 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-21 David Billinghurst (David.Billinghurst@riotinto.com)
billingd [Wed, 21 Jul 2004 00:00:24 +0000 (00:00 +0000)]
2004-07-21  David Billinghurst (David.Billinghurst@riotinto.com)

Copy cases from g77.f-torture/execute and add dg-run
directive.  Other changes as noted.
* gfortran.dg/g77/13037.f
* gfortran.dg/g77/1832.f
* gfortran.dg/g77/19981119-0.f
* gfortran.dg/g77/19990313-0.f
* gfortran.dg/g77/19990313-1.f
* gfortran.dg/g77/19990313-2.f
* gfortran.dg/g77/19990313-3.f
* gfortran.dg/g77/19990419-1.f
* gfortran.dg/g77/19990826-0.f
* gfortran.dg/g77/19990826-2.f
* gfortran.dg/g77/20000503-1.f
* gfortran.dg/g77/20001111.f
* gfortran.dg/g77/20010116.f
* gfortran.dg/g77/20010426-1.f: Renamed from 20010426-1.f
* gfortran.dg/g77/20010430.f
* gfortran.dg/g77/6177.f
* gfortran.dg/g77/947.f
* gfortran.dg/g77/970816-3.f
* gfortran.dg/g77/971102-1.f
* gfortran.dg/g77/980520-1.f
* gfortran.dg/g77/980628-0.f
* gfortran.dg/g77/980628-1.f
* gfortran.dg/g77/980628-10.f
* gfortran.dg/g77/980628-2.f
* gfortran.dg/g77/980628-3.f
* gfortran.dg/g77/980628-7.f
* gfortran.dg/g77/980628-8.f
* gfortran.dg/g77/980628-9.f
* gfortran.dg/g77/980701-0.f
* gfortran.dg/g77/980701-1.f
* gfortran.dg/g77/cabs.f
* gfortran.dg/g77/claus.f
* gfortran.dg/g77/complex_1.f
* gfortran.dg/g77/cpp3.F: Renamed from cpp3.F
* gfortran.dg/g77/dcomplex.f
* gfortran.dg/g77/dnrm2.f: Add dg-warnings as required.
* gfortran.dg/g77/f90-intrinsic-mathematical.f
* gfortran.dg/g77/f90-intrinsic-numeric.f
* gfortran.dg/g77/int8421.f
* gfortran.dg/g77/labug1.f
* gfortran.dg/g77/large_vec.f
* gfortran.dg/g77/le.f
* gfortran.dg/g77/short.f
* gfortran.dg/g77/README: Update

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84980 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
pbrook [Tue, 20 Jul 2004 23:21:15 +0000 (23:21 +0000)]
* config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84979 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * cp-tree.def (TINST_LEVEL): Make it an 'x' node.
steven [Tue, 20 Jul 2004 23:20:08 +0000 (23:20 +0000)]
* cp-tree.def (TINST_LEVEL): Make it an 'x' node.
* cp-tree.h (tinst_level_t): New tree type.
(union lang_tree_node): Handle it.
(TINST_LOCATION): New accessor macro.
(make_tinst_level): New prototype.
* cp-lang.c (cp_tree_size): Handle TINST_LEVEL.
* decl.c (cp_tree_node_structure): Likewise.
* error.c (print_instantiation_full_context): Use TINST_LOCATION.
(print_instantiation_partial_context): Likewise.
* pt.c (pop_tinst_level): Likewise.
 (push_tinst_level): Use make_tinst_level.
* tree.c (make_tinst_level): New function.
(cp_walk_subtrees): Walk TINST_DECL for a TINST_LEVEL node.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84977 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * rtl.h (plus_constant): Delete.
zack [Tue, 20 Jul 2004 23:02:36 +0000 (23:02 +0000)]
* rtl.h (plus_constant): Delete.
(plus_constant_wide): Rename to plus_constant.
(plus_constant_for_output_wide): Delete vestigial prototype.
(GEN_INT): Remove unnecessary cast.
* tree.h (build_int_2, size_int_type): Delete.
(build_int_2_wide): Rename to build_int_2.
(size_int_wide): Rename to size_int_kind.
(size_int_type_wide): Rename to size_int_type.
(size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
Remove unnecessary cast.
* tree.c (build_int_2_wide): Rename build_int_2; update comment.
* explow.c (plus_constant_wide): Rename plus_constant; update comment.
* fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
(size_int_type_wide): Rename size_int_type.
(int_const_binop): Use size_int_type.
* c-lex.c (interpret_integer): Use build_int_2.
* final.c (split_double): Remove unnecessary casts.
* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84976 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
rth [Tue, 20 Jul 2004 22:47:58 +0000 (22:47 +0000)]
    * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
        (gimplify_compound_lval): Use is_gimple_tmp_reg.
        * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
        (is_gimple_tmp_reg): New.
        * tree-gimple.h (is_gimple_tmp_reg): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84975 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * tree-pretty-print.c (dump_generic_node): Dump
rth [Tue, 20 Jul 2004 22:43:41 +0000 (22:43 +0000)]
    * tree-pretty-print.c (dump_generic_node): Dump
        CALL_EXPR_HAS_RETURN_SLOT_ADDR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84974 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
nathan [Tue, 20 Jul 2004 20:25:02 +0000 (20:25 +0000)]
* vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
size_t.
(struct VEC): Use unsigned for num and alloc.
* vec.c (struct vec_prefix): Likewise.
(vec_o_reserve): Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84973 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-20 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 20 Jul 2004 20:01:12 +0000 (20:01 +0000)]
2004-07-20  Frank Ch. Eigler  <fche@redhat.com>

* tree-mudflap.c (mf_set_options_fndecl): New tree.
(mudflap_init): Set it.
(mudflap_register_call): Remove __mf_init call.
(mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
to pass "-ignore-reads" option to libmudflap if needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84972 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-20 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 20 Jul 2004 20:00:56 +0000 (20:00 +0000)]
2004-07-20  Frank Ch. Eigler  <fche@redhat.com>

* mf-impl.h (__mf_options): Add ignore_reads and timestamps fields.
* mf-runtime.c (options): Give them a name.
(__mf_set_default_options): Set them.
(__mf_insert_new_object, __mfu_unregister): Optionalize timestamps.
(__mf_violation): Warning cleanup.
* mf-impl.h (MF_VALIDATE_EXTENT): Support ignore_reads option.
* splay-tree.c (splay_tree_delete_helper): Remove obsolete decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84971 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR c++/14607
danglin [Tue, 20 Jul 2004 19:52:11 +0000 (19:52 +0000)]
PR c++/14607
* config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
(MAKE_DECL_ONE_ONLY): Undefine.
* pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
readonly_data, one_only_data_section, forget_section): New prototypes.
* pa.c (pa_init_machine_status, som_text_section_asm_op): New
functions.
(pa_select_section): Add one-only (COMDAT) support.
* pa.h (struct machine_function): Define.
* som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
(TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
(DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
(EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
(EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
(READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
for EXTRA_SECTION_FUNCTIONS.
* doc/install.texi: Update binutils requirements.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84970 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago * parser.c (cp_parser_simple_type_specifier): Fix typo.
mmitchel [Tue, 20 Jul 2004 19:13:36 +0000 (19:13 +0000)]
* parser.c (cp_parser_simple_type_specifier): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84966 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR c++/16637
mmitchel [Tue, 20 Jul 2004 17:58:43 +0000 (17:58 +0000)]
PR c++/16637
* parser.c (cp_parser_simple_type_specifier): Do not record usage
of globally-qualified names.

PR c++/16637
* g++.dg/parse/lookup4.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84965 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
bryce [Tue, 20 Jul 2004 17:57:58 +0000 (17:57 +0000)]
2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>

PR libgcj/16591
* prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if
DISABLE_MAIN_ARGS is defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84964 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
bryce [Tue, 20 Jul 2004 17:48:35 +0000 (17:48 +0000)]
2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>

* java/net/Socket.java (getImpl): Now private. Remove comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84963 138bc75d-0d04-0410-961f-82ee72b054a4

17 years ago PR c++/16175
lerdsuwa [Tue, 20 Jul 2004 16:02:13 +0000 (16:02 +0000)]
PR c++/16175
* error.c (dump_type) <BOUND_TEMPLATE_TEMPLATE_PARM case>: Output
cv qualifier.

* g++.dg/template/ttp10.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84961 138bc75d-0d04-0410-961f-82ee72b054a4