gcc.git
19 years agoc-common.c: Rename all identifiers named `class' to `cl'.
Bernardo Innocenti [Sun, 25 Jul 2004 17:57:24 +0000 (19:57 +0200)]
c-common.c: Rename all identifiers named `class' to `cl'.

* c-common.c: Rename all identifiers named `class' to `cl'.
* c-decl.c: Likewise.
* c-common.h: Likewise.
* c-parse.in: Likewise.
* c-typeck.c: Likewise.
* genmodes.c: Likewise.
* real.c: Likewise.
* real.h: Likewise.
* recog.c: Likewise.
* recog.h: Likewise.
* regrename.c: Likewise.
* tree.h: Likewise.

From-SVN: r85153

19 years ago* decl.c: Rename all identifiers named `class' to `cl'.
Bernardo Innocenti [Sun, 25 Jul 2004 17:54:37 +0000 (19:54 +0200)]
* decl.c: Rename all identifiers named `class' to `cl'.

From-SVN: r85152

19 years agodecl.c: Rename all identifiers named `class' to `cl'.
Bernardo Innocenti [Sun, 25 Jul 2004 17:54:02 +0000 (19:54 +0200)]
decl.c: Rename all identifiers named `class' to `cl'.

* decl.c: Rename all identifiers named `class' to `cl'.
* cp-tree.h: Likewise.

From-SVN: r85151

19 years agocp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Use GGC_CNEW.
Gabriel Dos Reis [Sun, 25 Jul 2004 17:19:39 +0000 (17:19 +0000)]
cp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Use GGC_CNEW.

        * cp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Use GGC_CNEW.
        * typeck2.c (abstract_virtuals_error): Use GGC_NEW.
        * name-lookup.c (binding_entry_make): Use GGC_NEW.
        (binding_table_construct): Use GGC_CNEWVEC.
        (binding_table_new): Use GGC_NEW.
        (cxx_binding_make): Likewise.
        (begin_scope): Likewise.
        (push_to_top_level): Use GCC_CNEW.
        * parser.c (cp_token_cache_new): Likewise.
        (cp_token_cache_push_token): Likewise.
        (cp_lexer_new_main): Likewise.
        (cp_lexer_new_from_tokens): Likewise.
        (cp_parser_context_new): Likewise.
        (cp_parser_new): Likewise.
        (cp_lexer_new_from_tokens): Use GGC_NEWVEC.
        * lex.c (cxx_make_type): Use GGC_CNEW.
        (retrofit_lang_decl): Use GGC_NEWVAR.
        (cxx_dup_lang_specific_decl): Likewise.
        (copy_lang_type): Likewise.
        * decl.c (use_label): Use GGC_NEW instead of ggc_alloc.
        (save_function_data): Likewise.
        (lookup_label): Use GGC_CNEW instead of ggc_alloc_cleared.
        (cxx_push_function_context): Likewise.

From-SVN: r85150

19 years agoregmove.c (optimize_reg_copy_1): Don't try to replace call-used hard registers.
Daniel Jacobowitz [Sun, 25 Jul 2004 17:01:49 +0000 (17:01 +0000)]
regmove.c (optimize_reg_copy_1): Don't try to replace call-used hard registers.

* regmove.c (optimize_reg_copy_1): Don't try to replace call-used
hard registers.

From-SVN: r85149

19 years agotree-ssa-operands.c (get_stmt_operands, [...]): Handle ARRAY_RANGE_REF like ARRAY_REF.
Richard Kenner [Sun, 25 Jul 2004 14:43:51 +0000 (14:43 +0000)]
tree-ssa-operands.c (get_stmt_operands, [...]): Handle ARRAY_RANGE_REF like ARRAY_REF.

* tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
Handle ARRAY_RANGE_REF like ARRAY_REF.

From-SVN: r85148

19 years agoRemove obsolete text in comment.
Richard Kenner [Sun, 25 Jul 2004 14:39:42 +0000 (10:39 -0400)]
Remove obsolete text in comment.

From-SVN: r85147

19 years agoc-typeck.c (digest_init): Don't allow arrays of signed or unsigned variants of wchar_...
Joseph Myers [Sun, 25 Jul 2004 09:12:21 +0000 (10:12 +0100)]
c-typeck.c (digest_init): Don't allow arrays of signed or unsigned variants of wchar_t to be initialized...

* c-typeck.c (digest_init): Don't allow arrays of signed or
unsigned variants of wchar_t to be initialized by wide string
constants.  Do allow arrays of enumerated types compatible with
wchar_t to be initialized by wide string constants.  Refine tests
distinguishing wide and narrow strings and arrays.  Give specific
error for arrays of other integer types initialized by string
constants.
(output_init_element, process_init_element): Check for
INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
initializing with string constants.

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

From-SVN: r85146

19 years agoc-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P on the RESULT_DECL.
Richard Henderson [Sun, 25 Jul 2004 08:10:28 +0000 (01:10 -0700)]
c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P on the RESULT_DECL.

        * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
        on the RESULT_DECL.
        * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
        * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
        DECL_IGNORED_P to new decl.
ada/
        * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
        DECL_IGNORED_P on RESULT_DECL.
cp/
        * decl.c (start_preparsed_function): Set DECL_ARTIFICIAL and
        DECL_IGNORED_P on RESULT_DECL.
        * semantics.c (finalize_nrv): Copy them too.
fortran/
        * trans-decl.c (gfc_build_function_decl): Set DECL_ARTIFICIAL
        and DECL_IGNORED_P on RESULT_DECL.
        (gfc_generate_constructors): Likewise.
java/
        * decl.c (build_result_decl): Set DECL_ARTIFICIAL and DECL_IGNORED_P.

From-SVN: r85145

19 years ago[multiple changes]
Zack Weinberg [Sun, 25 Jul 2004 04:03:42 +0000 (04:03 +0000)]
[multiple changes]

2004-07-24  Zack Weinberg  <zack@codesourcery.com>

* config/ia64/ia64.c (general_xfmode_operand)
(destination_xfmode_operand): Delete.
* config/ia64/ia64.h (PREDICATE_CODES): Remove them.
* config/ia64/ia64.md (*movxf_internal): Use general_operand
and destination_operand.

2004-07-24  Alexander Kabaev  <kan@freebsd.org>

* config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
(EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.

From-SVN: r85141

19 years agoZack Weinberg <zack@codesourcery.com
Zack Weinberg [Sun, 25 Jul 2004 03:58:50 +0000 (03:58 +0000)]
Zack Weinberg <zack@codesourcery.com

2004-07-24  Alexander Kabaev  <kan@freebsd.org>
    Zack Weinberg  <zack@codesourcery.com

PR 16684
* c-decl.c (diagnose_mismatched_decls): Don't issue a
redundant-declaration warning the first time a builtin is
declared explicitly.
testsuite:
* gcc.dg/Wredundant-decls-1.c: New test case.

From-SVN: r85140

19 years ago* tree.h (staticp): Change return type to bool.
Bernardo Innocenti [Sun, 25 Jul 2004 03:28:38 +0000 (05:28 +0200)]
* tree.h (staticp): Change return type to bool.

From-SVN: r85139

19 years ago* c-common.c (c_staticp): Last episode of the staticp saga.
Bernardo Innocenti [Sun, 25 Jul 2004 03:13:12 +0000 (05:13 +0200)]
* c-common.c (c_staticp): Last episode of the staticp saga.

From-SVN: r85138

19 years agoc-common.h (c_staticp): Change return type from int to bool.
Bernardo Innocenti [Sun, 25 Jul 2004 02:50:57 +0000 (04:50 +0200)]
c-common.h (c_staticp): Change return type from int to bool.

* c-common.h (c_staticp): Change return type from int to bool.
* tree.c (staticp): Likewise.
* langhooks.h (staticp): Likewise.

From-SVN: r85137

19 years agolanghooks-def.h (lhd_staticp): Change return type from int to bool in prototype to...
Bernardo Innocenti [Sun, 25 Jul 2004 00:42:49 +0000 (02:42 +0200)]
langhooks-def.h (lhd_staticp): Change return type from int to bool in prototype to match definition.

* langhooks-def.h (lhd_staticp): Change return type from int to
bool in prototype to match definition.

From-SVN: r85136

19 years agosystem.h (bool, [...]): Don't redefine as preprocessor macros in C++.
Bernardo Innocenti [Sun, 25 Jul 2004 00:32:22 +0000 (02:32 +0200)]
system.h (bool, [...]): Don't redefine as preprocessor macros in C++.

* system.h (bool, true, false): Don't redefine as preprocessor macros
in C++.

From-SVN: r85135

19 years agoexpmed.c (init_expmed): A signed modulus by a power of two is considered cheap if...
Roger Sayle [Sun, 25 Jul 2004 00:25:28 +0000 (00:25 +0000)]
expmed.c (init_expmed): A signed modulus by a power of two is considered cheap if...

* expmed.c (init_expmed): A signed modulus by a power of two is
considered cheap if its less than or equal to four instructions.

From-SVN: r85134

19 years agoggc.h (GGC_NEW, [...]): New macros.
Bernardo Innocenti [Sun, 25 Jul 2004 00:20:14 +0000 (02:20 +0200)]
ggc.h (GGC_NEW, [...]): New macros.

* ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
GGC_CNEWVAR): New macros.

From-SVN: r85133

19 years agoDaily bump.
GCC Administrator [Sun, 25 Jul 2004 00:16:15 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85131

19 years agoc-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter lists.
Bernardo Innocenti [Sun, 25 Jul 2004 00:13:01 +0000 (02:13 +0200)]
c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter lists.

* c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
lists.
* c-decl.c: Likewise.
* c-format.c: Likewise.
* c-lex.c: Likewise.
* c-opts.c: Likewise.
* c-pragma.c: Likewise.
* c-typeck.c: Likewise.
* gencheck.c: Likewise.
* genconditions.c: Likewise.
* genconfig.c: Likewise.
* genflags.c: Likewise.
* gengtype.c: Likewise.
* gensupport.c: Likewise.
* ggc-none.c: Likewise.
* langhooks.c: Likewise.
* statistics.h: Likewise.
* stub-objc.c: Likewise.
* java/decl.c: Likewise.

From-SVN: r85128

19 years agointernal.h (xnew, [...]): Remove.
Bernardo Innocenti [Sat, 24 Jul 2004 18:04:42 +0000 (20:04 +0200)]
internal.h (xnew, [...]): Remove.

* internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
* directives.c: Use XNEW-family macros from libiberty.
* lex.c: Likewise.
* macro.c: Likewise.
* cpplib.h (cpp_deps_style): Export enum with name.

From-SVN: r85121

19 years ago* ansidecl.h (ARG_UNUSED): New Macro.
Bernardo Innocenti [Sat, 24 Jul 2004 17:49:27 +0000 (19:49 +0200)]
* ansidecl.h (ARG_UNUSED): New Macro.

From-SVN: r85120

19 years agolibiberty.h (XNEW, [...]): Move here from libcpp/internal.h.
Bernardo Innocenti [Sat, 24 Jul 2004 17:48:01 +0000 (19:48 +0200)]
libiberty.h (XNEW, [...]): Move here from libcpp/internal.h.

* libiberty.h (XNEW, XCNEW, XNEWVEC, XCNEWVEC, XOBNEW): Move here from
libcpp/internal.h.
(XDELETE, XRESIZEVEC, XDELETEVEC, XNEWVAR, XCNEWVAR, XRESIZEVAR): New
macros.

From-SVN: r85119

19 years agoMakefile.am: Add gnu/java/security/action/GetPropertyAction.java and...
Bryce McKinlay [Sat, 24 Jul 2004 16:43:45 +0000 (16:43 +0000)]
Makefile.am: Add gnu/java/security/action/GetPropertyAction.java and...

2004-07-24  Bryce McKinlay  <mckinlay@redhat.com>

        * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
        and gnu/java/security/action/SetAccessibleAction.java.
        * Makefile.in: Rebuilt.

From-SVN: r85118

19 years agom68k.c (output_scc_di): Fix coding style.
Roman Zippel [Sat, 24 Jul 2004 11:12:29 +0000 (11:12 +0000)]
m68k.c (output_scc_di): Fix coding style.

2004-07-24  Roman Zippel  <zippel@linux-m68k.org>

* config/m68k/m68k.c (output_scc_di): Fix coding style.
(symbolic_operand): Fix prototype.
* config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
* config/m68k/m68k.md: Add constants for registers a0 and sp and
use them, change from the "{...}" syntax to the simpler {...}
syntax.
(*cfv4_extendqisi2): Fix destination predicate.
* config/m68k/m68k-protos.h: Remove various declarations also
generated via PREDICATE_CODES.

From-SVN: r85115

19 years agoc-typeck.c (convert_for_assignment): Tightened up pointer converstions that differ...
Mike Stump [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.

        * c-typeck.c (convert_for_assignment): Tightened up pointer converstions
        that differ in signedness.
Apple Radar 2535328.

From-SVN: r85114

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

From-SVN: r85113

19 years agotree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
Richard Kenner [Sat, 24 Jul 2004 01:35:04 +0000 (01:35 +0000)]
tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.

* tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
* tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.

From-SVN: r85111

19 years agogimplify.c (gimplify_compound_lval): Check for no handled operations, rather than...
Richard 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.

* 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.

From-SVN: r85110

19 years agoprims.cc (_Jv_InitPrimClass): Don't create an array class.
Bryce McKinlay [Sat, 24 Jul 2004 01:17:29 +0000 (01:17 +0000)]
prims.cc (_Jv_InitPrimClass): Don't create an array class.

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.

From-SVN: r85109

19 years agore PR tree-optimization/16688 (ICE in group_aliases, at tree-ssa-alias.c:1234)
Diego Novillo [Sat, 24 Jul 2004 01:05:45 +0000 (01:05 +0000)]
re PR tree-optimization/16688 (ICE in group_aliases, at tree-ssa-alias.c:1234)

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.

From-SVN: r85108

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

From-SVN: r85106

19 years agore PR libstdc++/16678 (warning: suggest parentheses around assignment used as truth...
Benjamin Kosnik [Sat, 24 Jul 2004 00:10:09 +0000 (00:10 +0000)]
re PR libstdc++/16678 (warning: suggest parentheses around assignment used as truth value)

2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>

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

From-SVN: r85103

19 years agoboehm.c (set_bit): Improve type safety wrt unsignedness.
Mike Stump [Sat, 24 Jul 2004 00:03:28 +0000 (00:03 +0000)]
boehm.c (set_bit): Improve type safety wrt unsignedness.

        * 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.

From-SVN: r85102

19 years agoMakefile.am: Rename jar binary to fastjar.
Thomas Fitzsimmons [Fri, 23 Jul 2004 23:34:17 +0000 (23:34 +0000)]
Makefile.am: Rename jar binary to fastjar.

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.

From-SVN: r85101

19 years agore PR c++/16277 (Wrong code with conditionals in initializers)
Richard Henderson [Fri, 23 Jul 2004 22:48:14 +0000 (15:48 -0700)]
re PR c++/16277 (Wrong code with conditionals in initializers)

        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.

From-SVN: r85100

19 years agoexpr.c (expand_expr_real_1): Don't handle non-local variables.
Richard Henderson [Fri, 23 Jul 2004 22:37:23 +0000 (15:37 -0700)]
expr.c (expand_expr_real_1): Don't handle non-local variables.

        * 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.

From-SVN: r85099

19 years agoMakefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
Jakub Jelinek [Fri, 23 Jul 2004 22:36:47 +0000 (00:36 +0200)]
Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.

* 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.

From-SVN: r85098

19 years agoConnection.java: Use GetPropertyAction for privileged getProperty calls.
Bryce McKinlay [Fri, 23 Jul 2004 22:20:14 +0000 (22:20 +0000)]
Connection.java: Use GetPropertyAction for privileged getProperty calls.

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.

From-SVN: r85097

19 years agoObjectStreamField (ObjectStreamField): Don't unset 'toset' for final fields.
Bryce McKinlay [Fri, 23 Jul 2004 21:46:09 +0000 (21:46 +0000)]
ObjectStreamField (ObjectStreamField): Don't unset 'toset' for final fields.

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.

From-SVN: r85096

19 years agoprint-rtl.c (print_rtx <case 'b'>): Don't attempt to print bitmap contents if GENERAT...
Zack Weinberg [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.

* 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.

From-SVN: r85095

19 years agoc-decl.c (start_function): Form composite type of function types rather than copying...
Joseph Myers [Fri, 23 Jul 2004 19:22:13 +0000 (20:22 +0100)]
c-decl.c (start_function): Form composite type of function types rather than copying type from previous...

* 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

From-SVN: r85093

19 years agoaltivec.h (vec_lvewx, [...]): Remove the const qualifier for the second argument...
Janis Johnson [Fri, 23 Jul 2004 18:34:36 +0000 (18:34 +0000)]
altivec.h (vec_lvewx, [...]): Remove the const qualifier for the second argument in the C++ functions.

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.

From-SVN: r85092

19 years agoaltivec.h (vec_stvewx, [...]): Use specific pointer types.
Janis Johnson [Fri, 23 Jul 2004 18:33:19 +0000 (18:33 +0000)]
altivec.h (vec_stvewx, [...]): Use specific pointer types.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

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

From-SVN: r85091

19 years agoaltivec.h (vec_vadduwm): (vec_vadduwm...
Janis Johnson [Fri, 23 Jul 2004 18:32:06 +0000 (18:32 +0000)]
altivec.h (vec_vadduwm): (vec_vadduwm...

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.

From-SVN: r85090

19 years agoaltivec.h (vec_vcmpgtsh): Fix C++ function name.
Janis Johnson [Fri, 23 Jul 2004 18:30:48 +0000 (18:30 +0000)]
altivec.h (vec_vcmpgtsh): Fix C++ function name.

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.

From-SVN: r85089

19 years ago8-02a.c: Fix typo.
Janis Johnson [Fri, 23 Jul 2004 18:27:57 +0000 (18:27 +0000)]
8-02a.c: Fix typo.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

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

From-SVN: r85088

19 years agovarargs-4.c: Remove a Darwin-specific check.
Janis Johnson [Fri, 23 Jul 2004 18:25:47 +0000 (18:25 +0000)]
varargs-4.c: Remove a Darwin-specific check.

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.

From-SVN: r85087

19 years agodebug-1.c: Use int, not long, in union with vector.
Janis Johnson [Fri, 23 Jul 2004 18:22:57 +0000 (18:22 +0000)]
debug-1.c: Use int, not long, in union with vector.

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.

From-SVN: r85086

19 years agoops.c: Remove checks using pointers to long.
Janis Johnson [Fri, 23 Jul 2004 18:20:21 +0000 (18:20 +0000)]
ops.c: Remove checks using pointers to long.

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.

From-SVN: r85085

19 years agoDefaultContentHandlerFactory.java: Check in real file missed in last commit.
Mark Wielaard [Fri, 23 Jul 2004 14:25:41 +0000 (14:25 +0000)]
DefaultContentHandlerFactory.java: Check in real file missed in last commit.

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

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

From-SVN: r85080

19 years agoSystem.java (static): Set http.agent system property when not yet set.
Mark Wielaard [Fri, 23 Jul 2004 11:49:59 +0000 (11:49 +0000)]
System.java (static): Set http.agent system property when not yet set.

       * 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.

From-SVN: r85078

19 years agoDefaultContentHandlerFactory.java: New dummy implementation.
Mark Wielaard [Fri, 23 Jul 2004 10:24:02 +0000 (10:24 +0000)]
DefaultContentHandlerFactory.java: New dummy implementation.

       * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
       implementation.

From-SVN: r85077

19 years agomachmode.def: Remove vector modes.
Paolo Bonzini [Fri, 23 Jul 2004 10:15:53 +0000 (10:15 +0000)]
machmode.def: Remove vector modes.

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.

From-SVN: r85076

19 years agocp: * search.c (lookup_conversion_operator): Avoid two loops.
Nathan Sidwell [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.

From-SVN: r85075

19 years agodebug.html: Say debug mode only available since 3.4.0.
Jonathan Wakely [Fri, 23 Jul 2004 08:22:20 +0000 (09:22 +0100)]
debug.html: Say debug mode only available since 3.4.0.

2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>

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

From-SVN: r85074

19 years ago2004-07-23 Matthias Klose <doko@debian.org>
Matthias Klose [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.

From-SVN: r85073

19 years agointl.c (gcc_init_libintl): Use PACKAGE for the text domain.
Matthias Klose [Fri, 23 Jul 2004 06:59:35 +0000 (06:59 +0000)]
intl.c (gcc_init_libintl): Use PACKAGE for the text domain.

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.

From-SVN: r85072

20 years agodwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on generated SYMBOL_REFs...
Mark Mitchell [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.

* 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.

From-SVN: r85071

20 years agoMakefile.am (ordinary_java_source_files): Add DefaultContentHandlerFactory.java.
Bryce McKinlay [Fri, 23 Jul 2004 01:21:40 +0000 (01:21 +0000)]
Makefile.am (ordinary_java_source_files): Add DefaultContentHandlerFactory.java.

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.

From-SVN: r85069

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

From-SVN: r85067

20 years agothr.c (__objc_thread_detach_function): Do not mark as volatile but instead use the...
Andrew Pinski [Thu, 22 Jul 2004 22:20:08 +0000 (22:20 +0000)]
thr.c (__objc_thread_detach_function): Do not mark as volatile but instead use the attribute noreturn.

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.

From-SVN: r85061

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

From-SVN: r85060

20 years agore PR c/7284 (incorrectly simplifies leftshift followed by signed power-of-2 division)
Joseph Myers [Thu, 22 Jul 2004 20:33:34 +0000 (21:33 +0100)]
re PR c/7284 (incorrectly simplifies leftshift followed by signed power-of-2 division)

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.

From-SVN: r85059

20 years agoimplement-c.texi: New file.
Joseph Myers [Thu, 22 Jul 2004 20:12:20 +0000 (21:12 +0100)]
implement-c.texi: New file.

* 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.

From-SVN: r85058

20 years agointegrate.c (copy_decl_for_inlining): Remove invisible reference handling.
Jason Merrill [Thu, 22 Jul 2004 19:01:03 +0000 (15:01 -0400)]
integrate.c (copy_decl_for_inlining): Remove invisible reference handling.

        * integrate.c (copy_decl_for_inlining): Remove invisible reference
        handling.
        * tree-inline.c (setup_one_parameter): Likewise.

From-SVN: r85057

20 years agofix typo.
Brian Booth [Thu, 22 Jul 2004 18:35:08 +0000 (18:35 +0000)]
fix typo.

From-SVN: r85056

20 years agotree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
Brian Booth [Thu, 22 Jul 2004 18:33:20 +0000 (18:33 +0000)]
tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.

* 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.

From-SVN: r85055

20 years ago* expr.c (emit_push_insn): Don't use set_mem_attributes.
Richard Henderson [Thu, 22 Jul 2004 18:13:47 +0000 (11:13 -0700)]
* expr.c (emit_push_insn): Don't use set_mem_attributes.

From-SVN: r85054

20 years agotree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used variables due to...
Richard Henderson [Thu, 22 Jul 2004 18:04:42 +0000 (11:04 -0700)]
tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used variables due to conditional compilation.

        * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
        variables due to conditional compilation.

From-SVN: r85053

20 years agotree-into-ssa.c (set_livein_block): Fix typo in comment.
Diego Novillo [Thu, 22 Jul 2004 16:39:49 +0000 (16:39 +0000)]
tree-into-ssa.c (set_livein_block): Fix typo in comment.

* 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.

From-SVN: r85052

20 years ago[multiple changes]
Graydon Hoare [Thu, 22 Jul 2004 15:36:05 +0000 (15:36 +0000)]
[multiple changes]

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.

From-SVN: r85051

20 years ago* pt.c
Nathan Sidwell [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.

From-SVN: r85050

20 years ago2004-07-22 David Billinghurst (David.Billinghurst@riotinto.com)
David Billinghurst [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

From-SVN: r85049

20 years agocris.md: Tweak formatting.
Hans-Peter Nilsson [Thu, 22 Jul 2004 10:10:56 +0000 (10:10 +0000)]
cris.md: Tweak formatting.

* 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.

From-SVN: r85041

20 years agocris-peep2-xsrand.c, [...]: New tests.
Hans-Peter Nilsson [Thu, 22 Jul 2004 10:08:29 +0000 (10:08 +0000)]
cris-peep2-xsrand.c, [...]: New tests.

* gcc.dg/cris-peep2-xsrand.c, gcc.dg/cris-peep2-andu1.c,
gcc.dg/cris-peep2-andu2.c: New tests.

From-SVN: r85040

20 years agotree-cfg.c (gimplify_val): Move from tree-complex.c.
Paolo Bonzini [Thu, 22 Jul 2004 08:20:40 +0000 (08:20 +0000)]
tree-cfg.c (gimplify_val): Move from tree-complex.c.

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.

From-SVN: r85039

20 years agogimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE...
Richard Henderson [Thu, 22 Jul 2004 02:48:27 +0000 (19:48 -0700)]
gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE...

        * 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.

From-SVN: r85034

20 years agoURLConnection.java (position): New field.
Bryce McKinlay [Thu, 22 Jul 2004 01:33:11 +0000 (01:33 +0000)]
URLConnection.java (position): New field.

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'.

From-SVN: r85033

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

From-SVN: r85031

20 years agocfgexpand.c (expand_gimple_tailcall): Fix case where we need to create a new basic...
Richard Henderson [Thu, 22 Jul 2004 00:45:54 +0000 (17:45 -0700)]
cfgexpand.c (expand_gimple_tailcall): Fix case where we need to create a new basic block.

        * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
        to create a new basic block.

From-SVN: r85029

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

From-SVN: r85027

20 years agore PR c/15052 (gcc frontend accepts mismatched function declaration/defintion)
Joseph Myers [Thu, 22 Jul 2004 00:00:47 +0000 (01:00 +0100)]
re PR c/15052 (gcc frontend accepts mismatched function declaration/defintion)

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.

From-SVN: r85024

20 years agoc-typeck.c (set_init_index): Require designator to be of integer type.
Joseph Myers [Wed, 21 Jul 2004 23:51:29 +0000 (00:51 +0100)]
c-typeck.c (set_init_index): Require designator to be of integer type.

* 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.

From-SVN: r85023

20 years agore PR c/11250 (-pedantic accepts `char a[] = ("x");')
Joseph Myers [Wed, 21 Jul 2004 23:46:20 +0000 (00:46 +0100)]
re PR c/11250 (-pedantic accepts `char a[] = ("x");')

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.

From-SVN: r85022

20 years agosparc.c (sparc_rtx_costs): Fix typo in previous commit.
David S. Miller [Wed, 21 Jul 2004 21:42:29 +0000 (21:42 +0000)]
sparc.c (sparc_rtx_costs): Fix typo in previous commit.

2004-07-21  David S. Miller  <davem@nuts.davemloft.net>

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

From-SVN: r85020

20 years agobuiltins.c (expand_builtin_setjmp_receiver): Fix comment for code removal.
Eric Christopher [Wed, 21 Jul 2004 19:23:03 +0000 (19:23 +0000)]
builtins.c (expand_builtin_setjmp_receiver): Fix comment for code removal.

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.

From-SVN: r85019

20 years ago* whitespace tweak
Frank Ch. Eigler [Wed, 21 Jul 2004 19:14:28 +0000 (19:14 +0000)]
* whitespace tweak

From-SVN: r85018

20 years agortl.h (insn_note): Remove NOTE_INSN_PREDICTION.
Steven Bosscher [Wed, 21 Jul 2004 18:57:09 +0000 (18:57 +0000)]
rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.

* 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.

From-SVN: r85016

20 years agomainpage.html: Clarify links.
Benjamin Kosnik [Wed, 21 Jul 2004 18:54:52 +0000 (18:54 +0000)]
mainpage.html: Clarify links.

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.

From-SVN: r85015

20 years agomf-runtime.c (__mfu_check): Remove mistaken mode-nop handling.
Frank Ch. Eigler [Wed, 21 Jul 2004 18:50:14 +0000 (18:50 +0000)]
mf-runtime.c (__mfu_check): Remove mistaken mode-nop handling.

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.

From-SVN: r85014

20 years agovar-tracking.c (vt_find_locations): Set the in_pending bitmap at once.
Josef Zlomek [Wed, 21 Jul 2004 17:03:47 +0000 (19:03 +0200)]
var-tracking.c (vt_find_locations): Set the in_pending bitmap at once.

* var-tracking.c (vt_find_locations): Set the in_pending bitmap at
once.

From-SVN: r85012

20 years agoPR java/16431.
Andrew Haley [Wed, 21 Jul 2004 16:12:32 +0000 (16:12 +0000)]
PR java/16431.

From-SVN: r85010

20 years agoverify.c (verify_jvm_instructions): Comment change only.
Andrew Haley [Wed, 21 Jul 2004 16:03:43 +0000 (16:03 +0000)]
verify.c (verify_jvm_instructions): Comment change only.

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.

From-SVN: r85009

20 years agoFix formatting.
Paul Brook [Wed, 21 Jul 2004 11:21:13 +0000 (11:21 +0000)]
Fix formatting.

From-SVN: r85004

20 years agoc-common.c (vector_types_convertible_p): Use vector types' TYPE_SIZE and TREE_TYPE...
Paolo Bonzini [Wed, 21 Jul 2004 08:57:07 +0000 (08:57 +0000)]
c-common.c (vector_types_convertible_p): Use vector types' TYPE_SIZE and TREE_TYPE instead of their mode.

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.

From-SVN: r85002

20 years agoansidecl.h (ATTRIBUTE_PURE): New.
Paolo Bonzini [Wed, 21 Jul 2004 08:25:57 +0000 (08:25 +0000)]
ansidecl.h (ATTRIBUTE_PURE): New.

2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

        * ansidecl.h (ATTRIBUTE_PURE): New.

From-SVN: r85001

20 years agoc-common.c (vector_types_convertible_p): Use vector types' TYPE_SIZE and TREE_TYPE...
Paolo Bonzini [Wed, 21 Jul 2004 08:22:59 +0000 (08:22 +0000)]
c-common.c (vector_types_convertible_p): Use vector types' TYPE_SIZE and TREE_TYPE instead of their mode.

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.

From-SVN: r85000

20 years agore PR middle-end/15345 ([non-unit-at-a-time] unreferenced nested inline functions...
Jakub Jelinek [Wed, 21 Jul 2004 07:39:09 +0000 (09:39 +0200)]
re PR middle-end/15345 ([non-unit-at-a-time] unreferenced nested inline functions not optimized away)

PR middle-end/15345
PR c/16450
* gcc.dg/torture/nested-fn-1.c: New test.

From-SVN: r84999

20 years agore PR target/16559 (Incorrect code generated for function pointer)
H.J. Lu [Wed, 21 Jul 2004 02:35:55 +0000 (02:35 +0000)]
re PR target/16559 (Incorrect code generated for function pointer)

2004-07-20  H.J. Lu  <hongjiu.lu@intel.com>

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

From-SVN: r84995