gcc.git
19 years agore PR libfortran/17748 (libgfortran contains undefined references to _environ)
Peter O'Gorman [Sat, 26 Feb 2005 18:33:11 +0000 (18:33 +0000)]
re PR libfortran/17748 (libgfortran contains undefined references to _environ)

2005-02-26  Peter O'Gorman  <peter@pogman.com>
            Toon Moene  <toon@moene.indiv.nluug.nl>

PR libgfortran/17748
* runtime/environ.c: Remove references to environ.
(show_variables): remove GFORTRAN_UNBUFFERED_* and
GFORTRAN_NAME_* because they require environ.
(pattern_scan): Remove function.

Co-Authored-By: Toon Moene <toon@moene.indiv.nluug.nl>
From-SVN: r95593

19 years agore PR tree-optimization/20188 (asm and memory operands does not add a V_MAY_DEF)
Andrew Pinski [Sat, 26 Feb 2005 16:15:25 +0000 (16:15 +0000)]
re PR tree-optimization/20188 (asm and memory operands does not add a V_MAY_DEF)

2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/20188
        * gcc.dg/tree-ssa/inline_asm-1.c: New test.
        * gcc.dg/tree-ssa/inline_asm-2.c: New test.
        * gcc.dg/asm-b.c: New test.

2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/20188
        * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
        for the lhs, also walk over the tree.  Likewise for rhs.

From-SVN: r95586

19 years agovar_defs: Add uninitialized variables.
James A. Morrison [Sat, 26 Feb 2005 16:09:33 +0000 (16:09 +0000)]
var_defs: Add uninitialized variables.

2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * compile/var_defs: Add uninitialized variables.

From-SVN: r95585

19 years agoparse.y (function_invocation, [...]): Pass location to tree_code_get_expression.
James A. Morrison [Sat, 26 Feb 2005 16:07:49 +0000 (16:07 +0000)]
parse.y (function_invocation, [...]): Pass location to tree_code_get_expression.

2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * parse.y (function_invocation, variable-ref, make_plus_expression):
        Pass location to tree_code_get_expression.
        * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
        (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
        set EXPR_LOCATION on ret1.
        * treetree.h (tree_code_get_expression): Take the location of the
        expression as an argument.

From-SVN: r95584

19 years agodyn_load.c: On NetBSD...
Richard Earnshaw [Sat, 26 Feb 2005 15:40:07 +0000 (15:40 +0000)]
dyn_load.c: On NetBSD...

* dyn_load.c: On NetBSD, include machine/elf_machdep.h and define
ELFSIZE in terms of ARCH_ELFSIZE (back-ported from gc7.0alpha1).

From-SVN: r95582

19 years agoextrafunc.tree, [...]: New tests.
James A. Morrison [Sat, 26 Feb 2005 14:12:05 +0000 (14:12 +0000)]
extrafunc.tree, [...]: New tests.

2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * compile/extrafunc.tree, compile/extravar.tree: New tests.

From-SVN: r95581

19 years agotreelang.texi: Treelang does have warnings.
James A. Morrison [Sat, 26 Feb 2005 14:10:11 +0000 (14:10 +0000)]
treelang.texi: Treelang does have warnings.

2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * treelang.texi: Treelang does have warnings.
        * treetree.c (tree_code_create_function_prototype): Don't set
        TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
        as few times as needed on the function declaration.
        (tree_code_create_function_initial): Don't set TREE_USED,
        TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
        (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
        (tree_code_get_expression): Set TREE_USED for variable references
        and function calls.

From-SVN: r95580

19 years agounsigned.tree: New test.
James A. Morrison [Sat, 26 Feb 2005 14:05:15 +0000 (14:05 +0000)]
unsigned.tree: New test.

2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * compile/unsigned.tree: New test.

From-SVN: r95579

19 years agoparse.y: Do comparisons as the type of the first expression.
James A. Morrison [Sat, 26 Feb 2005 14:01:03 +0000 (14:01 +0000)]
parse.y: Do comparisons as the type of the first expression.

2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * parse.y: Do comparisons as the type of the first expression.
        * treetree.c (tree_code_get_integer_value): Build integer constants
        with the proper type.

From-SVN: r95578

19 years agoMake-lang.in: Remove commented out code.
James A. Morrison [Sat, 26 Feb 2005 13:43:39 +0000 (13:43 +0000)]
Make-lang.in: Remove commented out code.

2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * Make-lang.in: Remove commented out code.
        * lang-specs.h: Always pass -dumpbase to tree1.

From-SVN: r95577

19 years agomul-subnormal-single-1.x: New file.
Richard Sandiford [Sat, 26 Feb 2005 10:05:49 +0000 (10:05 +0000)]
mul-subnormal-single-1.x: New file.

* gcc.c-torture/execute/ieee/mul-subnormal-single-1.x: New file.
Disable this test on IRIX 6.

From-SVN: r95572

19 years agotree-ssa-dom.c (simple_iv_increment_p): New function.
Zdenek Dvorak [Sat, 26 Feb 2005 07:55:28 +0000 (08:55 +0100)]
tree-ssa-dom.c (simple_iv_increment_p): New function.

* tree-ssa-dom.c (simple_iv_increment_p): New function.
(simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
Do not propagate value of iv before increment over the increment.

From-SVN: r95571

19 years agotreelang.texi: Remove extra contribution notice.
James A. Morrison [Sat, 26 Feb 2005 00:25:52 +0000 (00:25 +0000)]
treelang.texi: Remove extra contribution notice.

2005-02-25  James A. Morrrison  <phython@gcc.gnu.org>

        * treelang.texi: Remove extra contribution notice.
        Split up some run-on sentences.  Document function parameters
        as optional.  Indicate automatic variables can now be at any scope.
        Mention literals are only signed if they are preceded by a unary
        plus or minus.  Clarify interoperability with C.

From-SVN: r95569

19 years agotreelang.texi: Fix whitespacing.
James A. Morrison [Sat, 26 Feb 2005 00:17:02 +0000 (00:17 +0000)]
treelang.texi: Fix whitespacing.

2005-02-25  James A. Morrison  <phython@gcc.gnu.org>

        * treelang.texi: Fix whitespacing.

From-SVN: r95568

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

From-SVN: r95566

19 years ago* cpplib.pot: Regenerate.
Joseph Myers [Fri, 25 Feb 2005 23:32:16 +0000 (23:32 +0000)]
* cpplib.pot: Regenerate.

From-SVN: r95560

19 years ago* gcc.pot: Regenerate.
Joseph Myers [Fri, 25 Feb 2005 23:31:10 +0000 (23:31 +0000)]
* gcc.pot: Regenerate.

From-SVN: r95559

19 years agoc-parser.c: New file.
Joseph Myers [Fri, 25 Feb 2005 23:20:48 +0000 (23:20 +0000)]
c-parser.c: New file.

* c-parser.c: New file.
* c-parse.in: Remove.
* Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
Remove.
(c-parser.o): Add dependencies.
(C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
maintainer-clean, TAGS): Update.
* c-config-lang.in (gtfiles): Update.
* gengtype-lex.l: Don't handle "@@".
* stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
objc_build_synchronized, objc_begin_try_stmt,
objc_begin_catch_clause, objc_finish_catch_clause,
objc_build_finally_clause, objc_finish_try_stmt): New.
* c-tree.h (struct c_declspecs): Add declspecs_seen_p and
type_seen_p.
(c_parse_init): Update comment.
* c-decl.c (c_init_decl_processing): Update comment.
(build_null_declspecs, declspecs_add_qual, declspecs_add_type,
declspecs_add_scspec, declspecs_add_attrs): Initialize and update
new c_declspecs members.

objc:
* Make-lang.in (objc/objc-parse.o-warn, objc/objc-parse.o,
objc/objc-parse.c, objc/objc-parse.y): Remove
(OBJC_OBJS, objc.srcextra, objc.tags, objc.mostlyclean,
objc.distclean, objc.maintainer-clean): Update for new parser.
* config-lang.in (gtfiles): Update for new parser.

testsuite:
* gcc.dg/cpp/separate-1.c, gcc.dg/noncompile/971104-1.c,
gcc.dg/noncompile/990416-1.c: Adjust expected messages for new
parser.

From-SVN: r95558

19 years ago* crontab: Adjust for 4.0 branch.
Mark Mitchell [Fri, 25 Feb 2005 22:55:06 +0000 (22:55 +0000)]
* crontab: Adjust for 4.0 branch.

From-SVN: r95554

19 years agoelfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from being used for symbols...
Julian Brown [Fri, 25 Feb 2005 22:32:56 +0000 (22:32 +0000)]
elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from being used for symbols with vague linkage when...

* gcc/config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
from being used for symbols with vague linkage when
HAVE_GAS_COMDAT_GROUP is true.

From-SVN: r95553

19 years ago* doc/include/gcc-common.texi (version-GCC): Update to 4.1.
Mark Mitchell [Fri, 25 Feb 2005 22:14:01 +0000 (22:14 +0000)]
* doc/include/gcc-common.texi (version-GCC): Update to 4.1.

From-SVN: r95551

19 years agore PR target/19930 (gcc.dg/pr19402-2.c fails on ia64-hpux)
Steve Ellcey [Fri, 25 Feb 2005 21:34:49 +0000 (21:34 +0000)]
re PR target/19930 (gcc.dg/pr19402-2.c fails on ia64-hpux)

PR target/19930
* doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
(LIBGCC2_HAS_DF_MODE): New.
(LIBGCC2_HAS_XF_MODE): New.
(LIBGCC2_HAS_TF_MODE): New.
* libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
(LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
* libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
(LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
(LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
* config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
and add _fixtfdi, _fixunstfdi, _floatditf
* lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
L_fixunstfdi, L_floatditf.
* config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
(LIBGCC2_HAS_TF_MODE): Define.

From-SVN: r95548

19 years agore PR tree-optimization/20204 (miscompilation of asm-declared registers)
Diego Novillo [Fri, 25 Feb 2005 21:12:34 +0000 (21:12 +0000)]
re PR tree-optimization/20204 (miscompilation of asm-declared registers)

PR tree-optimization/20204
* tree-into-ssa.c (insert_phi_nodes_for): Do not use
REWRITE_THIS_STMT markers on PHI nodes.
(rewrite_initialize_block): Likewise.

testsuite/ChangeLog

PR tree-optimization/20204
* testsuite/gcc.dg/pr20204.c: New test.

From-SVN: r95547

19 years ago* version.c (version_string): Update to 4.1.
Mark Mitchell [Fri, 25 Feb 2005 20:42:30 +0000 (20:42 +0000)]
* version.c (version_string): Update to 4.1.

From-SVN: r95545

19 years agoextend.texi (5.24 Declaring Attributes of Functions): Clarify that the alternative...
Paolo Carlini [Fri, 25 Feb 2005 18:29:28 +0000 (18:29 +0000)]
extend.texi (5.24 Declaring Attributes of Functions): Clarify that the alternative way doesn't work in GNU C++.

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

* doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
Clarify that the alternative way doesn't work in GNU C++.

From-SVN: r95542

19 years agotype_traits: Add the trivial is_union and is_class; add the __is_union_or_class exten...
Paolo Carlini [Fri, 25 Feb 2005 18:17:06 +0000 (18:17 +0000)]
type_traits: Add the trivial is_union and is_class; add the __is_union_or_class extension.

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

* include/tr1/type_traits: Add the trivial is_union and is_class;
add the __is_union_or_class extension.
(is_enum, is_empty): Use the latter.
* include/tr1/type_traits_fwd.h: Add __is_union_or_class.
* testsuite/testsuite_tr1.h: Add UnionType; trivial formatting
fixes.
* testsuite/tr1/4_metaprogramming/composite_type_traits/
is_union_or_class/is_union_or_class.cc: New.
* testsuite/tr1/4_metaprogramming/composite_type_traits/
is_union_or_class/typedefs.cc: Likewise.

From-SVN: r95541

19 years agotree-ssa-dom.c (simple_iv_increment_p): New function.
Zdenek Dvorak [Fri, 25 Feb 2005 17:09:12 +0000 (17:09 +0000)]
tree-ssa-dom.c (simple_iv_increment_p): New function.

* tree-ssa-dom.c (simple_iv_increment_p): New function.
(simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
Do not propagate value of iv before increment over the increment.

From-SVN: r95540

19 years agore PR tree-optimization/19937 (Wrong loop exit (causes binutils to fail))
Zdenek Dvorak [Fri, 25 Feb 2005 12:07:11 +0000 (13:07 +0100)]
re PR tree-optimization/19937 (Wrong loop exit (causes binutils to fail))

PR tree-optimization/19937
* tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
to the type of the induction variable.

From-SVN: r95535

19 years agore PR rtl-optimization/20117 (duplicated labels in PIC)
Kaz Kojima [Fri, 25 Feb 2005 07:13:25 +0000 (07:13 +0000)]
re PR rtl-optimization/20117 (duplicated labels in PIC)

PR rtl-optimization/20117
* bb-reorder.c (duplicate_computed_gotos): Don't duplicate
the block including noncopyable insn.

From-SVN: r95533

19 years agocse.c (delete_trivially_dead_insns): Speed up by minimizing calls to find_reg_note.
Kazu Hirata [Fri, 25 Feb 2005 03:45:37 +0000 (03:45 +0000)]
cse.c (delete_trivially_dead_insns): Speed up by minimizing calls to find_reg_note.

* cse.c (delete_trivially_dead_insns): Speed up by minimizing
calls to find_reg_note.

From-SVN: r95532

19 years agore PR tree-optimization/20127 (wrong code for volatile struct members)
Richard Henderson [Fri, 25 Feb 2005 01:56:14 +0000 (17:56 -0800)]
re PR tree-optimization/20127 (wrong code for volatile struct members)

        PR tree-opt/20127
        * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
        the type.

From-SVN: r95530

19 years agoconfig/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for vector...
Fariborz Jahanian [Fri, 25 Feb 2005 01:16:17 +0000 (01:16 +0000)]
config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for vector...

config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
vector types if to use base reg for misaligned non-word ld/std.
OKed by David Edelsohn.

From-SVN: r95529

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

From-SVN: r95524

19 years agore PR target/14619 (Incorrect Dwarf 2 information in function prologue)
Hans-Peter Nilsson [Thu, 24 Feb 2005 22:17:42 +0000 (22:17 +0000)]
re PR target/14619 (Incorrect Dwarf 2 information in function prologue)

PR target/14619
* config/cris/cris.c (cris_target_asm_function_prologue): Create
dwarf2 label manually and put it after, not before the prologue.

From-SVN: r95521

19 years agors6000.md (trunctfdf2): Remove register constraints.
David Edelsohn [Thu, 24 Feb 2005 22:09:35 +0000 (22:09 +0000)]
rs6000.md (trunctfdf2): Remove register constraints.

        * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
        Fix formatting.

From-SVN: r95520

19 years agoreload.c (operands_match_p): Only increment register number for SCALAR_INT_MODE_P...
David Edelsohn [Thu, 24 Feb 2005 22:06:06 +0000 (22:06 +0000)]
reload.c (operands_match_p): Only increment register number for SCALAR_INT_MODE_P modes in multiple hard...

        * reload.c (operands_match_p): Only increment register number for
        SCALAR_INT_MODE_P modes in multiple hard registers.

From-SVN: r95519

19 years ago* decl.c, resolve.c, trans-array.c, trans.h: Fix comment typo(s).
Volker Reichelt [Thu, 24 Feb 2005 21:59:24 +0000 (21:59 +0000)]
* decl.c, resolve.c, trans-array.c, trans.h: Fix comment typo(s).

From-SVN: r95518

19 years agocall.c, [...]: Fix comment typo(s).
Volker Reichelt [Thu, 24 Feb 2005 21:55:15 +0000 (21:55 +0000)]
call.c, [...]: Fix comment typo(s).

* call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c,
        parser.c: Fix comment typo(s).

From-SVN: r95517

19 years agoChangeLog.5: Fix log message typo(s).
Volker Reichelt [Thu, 24 Feb 2005 21:47:26 +0000 (21:47 +0000)]
ChangeLog.5: Fix log message typo(s).

* ChangeLog.5: Fix log message typo(s).
* ChangeLog.7: Likewise.
* ChangeLog.tree-ssa: Likewise.
* cfgexpand.c: Fix comment typo(s).
* conflict.c: Likewise.
* defaults.h: Likewise.
* dwarf2out.c: Likewise.
* gcse.c: Likewise.
* ggc-page.c: Likewise.
* tree-eh.c: Likewise.
* tree-ssa-dom.c: Likewise.

From-SVN: r95516

19 years agore PR target/19019 (GCC ldouble format incompatibility with XLC long double)
Jakub Jelinek [Thu, 24 Feb 2005 21:33:04 +0000 (22:33 +0100)]
re PR target/19019 (GCC ldouble format incompatibility with XLC long double)

PR target/19019
* mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
* config/rs6000/darwin-ldouble.c: Only use the .symver directives
if SHARED is defined.

From-SVN: r95515

19 years agohash.cc: Guard wchar_t use with _GLIBCXX_USE_WCHAR_T.
Benjamin Kosnik [Thu, 24 Feb 2005 21:32:53 +0000 (21:32 +0000)]
hash.cc: Guard wchar_t use with _GLIBCXX_USE_WCHAR_T.

2005-02-24  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/tr1/6_containers/unordered/instantiate/hash.cc: Guard
wchar_t use with _GLIBCXX_USE_WCHAR_T.

From-SVN: r95514

19 years agore PR target/20196 (Miscompilation of mem_init in 32-bit ppc linux kernel)
Jakub Jelinek [Thu, 24 Feb 2005 21:23:14 +0000 (22:23 +0100)]
re PR target/20196 (Miscompilation of mem_init in 32-bit ppc linux kernel)

PR target/20196
* config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
allow splitting only if operands 0 and 3 don't overlap.

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

From-SVN: r95513

19 years agore PR c++/20175 (Warnings are issued when initializing struct members with "strings")
Jakub Jelinek [Thu, 24 Feb 2005 21:21:28 +0000 (22:21 +0100)]
re PR c++/20175 (Warnings are issued when initializing struct members with "strings")

PR c++/20175
* decl.c (reshape_init): Don't warn about missing braces if STRING_CST
initializes a char/wchar_t array.

* g++.dg/warn/Wbraces2.C: New test.

From-SVN: r95512

19 years agore PR middle-end/19953 (Special-case real + complex arithmetic operation (-ffast...
Richard Henderson [Thu, 24 Feb 2005 20:00:09 +0000 (12:00 -0800)]
re PR middle-end/19953 (Special-case real + complex arithmetic operation (-ffast-math))

        PR middle-end/19953
        * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
        (fold_builtin_1): Call them.
        * fold-const.c (fold_complex_mult_parts): Split out from ...
        (fold_complex_mult): ... here.  Fix typo in both imaginary case.
        (fold_complex_div_parts, fold_complex_div): New.
        (fold): Use them.
        * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.

From-SVN: r95511

19 years agotree-ssa-ccp.c (visit_assignment): Verify that result of VIEW_CONVERT_EXPR is_gimple_...
Richard Kenner [Thu, 24 Feb 2005 18:58:04 +0000 (18:58 +0000)]
tree-ssa-ccp.c (visit_assignment): Verify that result of VIEW_CONVERT_EXPR is_gimple_min_invariant.

* tree-ssa-ccp.c (visit_assignment): Verify that result of
VIEW_CONVERT_EXPR is_gimple_min_invariant.

From-SVN: r95510

19 years agostd_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to _GLIBCXX_USE_C99_COMPLEX.
Benjamin Kosnik [Thu, 24 Feb 2005 18:55:51 +0000 (18:55 +0000)]
std_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to _GLIBCXX_USE_C99_COMPLEX.

2005-02-24  Benjamin Kosnik  <bkoz@redhat.com>

* include/std/std_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to
_GLIBCXX_USE_C99_COMPLEX.
* acinclude.m4: Same.
* acconfig.h: Same.
* configure: Regenerate.
* config.h.in: Same.

From-SVN: r95508

19 years agoprint-tree.c (print_node_brief): Print LABEL_DECL_UID.
Richard Kenner [Thu, 24 Feb 2005 18:53:40 +0000 (18:53 +0000)]
print-tree.c (print_node_brief): Print LABEL_DECL_UID.

* print-tree.c (print_node_brief): Print LABEL_DECL_UID.
(print_node): Likewise.
Print TYPE_SIZES_GIMPLIFIED.

From-SVN: r95507

19 years agoUnrevert previously reversed patch, adding this patch:
Tobias Schlüter [Thu, 24 Feb 2005 18:26:27 +0000 (19:26 +0100)]
Unrevert previously reversed patch, adding this patch:

* module.c (find_true_name): Deal with NULL module.

From-SVN: r95506

19 years ago* config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
Hans-Peter Nilsson [Thu, 24 Feb 2005 16:59:25 +0000 (16:59 +0000)]
* config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
operands as commutative in constraints.

From-SVN: r95505

19 years agore PR treelang/19896 ([treelang] Static variables don't work)
James A. Morrison [Thu, 24 Feb 2005 16:24:25 +0000 (16:24 +0000)]
re PR treelang/19896 ([treelang] Static variables don't work)

2005-02-24  James A. Morrison  <phython@gcc.gnu.org>

        PR other/19896
        * execute/execute.exp: New file.
        * execute/funccall.tree, execute/funccall-2.tree, execute/initial.tree,
        execute/main.tree, execute/static.tree: New tests.

From-SVN: r95504

19 years agore PR treelang/19896 ([treelang] Static variables don't work)
James A. Morrison [Thu, 24 Feb 2005 16:23:14 +0000 (16:23 +0000)]
re PR treelang/19896 ([treelang] Static variables don't work)

2005-02-24  James A. Morrison  <phython@gcc.gnu.org>

        PR other/19896
        * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
        TREE_PUBLIC, and TREE_STATIC for var_decl to zero.  Don't call
        rest_of_decl_compilation on static variables.
        (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
        variables.

From-SVN: r95503

19 years agore PR treelang/19897 ([treelang] External references don't work.)
James A. Morrison [Thu, 24 Feb 2005 16:14:19 +0000 (16:14 +0000)]
re PR treelang/19897 ([treelang] External references don't work.)

2005-02-24  James A. Morrison  <phython@gcc.gnu.org>

        PR other/19897
        * compile/exit.tree, compile/extref.tree, compile/function-1.tree,
        compile/syntax-1.tree: New tests.

From-SVN: r95502

19 years agoparse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
James A. Morrison [Thu, 24 Feb 2005 16:12:39 +0000 (16:12 +0000)]
parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.

2005-02-24  James A. Morrison  <phython@gcc.gnu.org>

* parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
Move function parameters check from ...
(function): ...Here.  Update call to tree_code_create_function_initial.
(function_invocation): Use expressions_with_commas_opt instead of
expressions_with_commas.
(expressions_with_commas_opt): New rule.
* treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
for function parameters.
(tree_code_create_function_initial): Remove PARMS parameter.
Don't create PARM_DECLs for function parameters.
* treetree.h (tree_code_create_function_initial): Remove PARMS
parameter.

From-SVN: r95501

19 years agoMAINTAINERS (Language Front Ends Maintainers): Add myself as treelang maintainer.
James A. Morrison [Thu, 24 Feb 2005 15:59:25 +0000 (15:59 +0000)]
MAINTAINERS (Language Front Ends Maintainers): Add myself as treelang maintainer.

2005-02-24  James A. Morrison  <phython@gcc.gnu.org>

        * MAINTAINERS (Language Front Ends Maintainers): Add myself as
        treelang maintainer.
        (Write After Approval): Remove myself.

From-SVN: r95500

19 years ago* tree-into-ssa.c: Re-organize internal functions.
Diego Novillo [Thu, 24 Feb 2005 14:18:46 +0000 (14:18 +0000)]
* tree-into-ssa.c: Re-organize internal functions.

From-SVN: r95499

19 years agoRevert yesterday's patch:
Tobias Schlüter [Thu, 24 Feb 2005 13:01:44 +0000 (14:01 +0100)]
Revert yesterday's patch:

2005-02-23  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>

                * gfortran.h (gfc_component, gfc_actual_arglist, ...
                ... argument.  Copy string instead of pointing to it.

From-SVN: r95496

19 years agore PR middle-end/18902 (Naive (default) complex division algorithm)
Richard Henderson [Thu, 24 Feb 2005 09:24:17 +0000 (01:24 -0800)]
re PR middle-end/18902 (Naive (default) complex division algorithm)

        PR middle-end/18902
        * c-opts.c (c_common_post_options): Set flag_complex_method to 2
        for c99.
        * common.opt (fcx-limited-range): New.
        * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
        * toplev.c (flag_complex_method): Initialize to 1.
        (process_options): Set flag_complex_method to 0 if
        flag_cx_limited_range.
        * doc/invoke.texi (-fcx-limited-range): New.

From-SVN: r95493

19 years agofunctional (mem_fn): Avoid _T, badname on Darwin.
Paolo Carlini [Thu, 24 Feb 2005 09:01:52 +0000 (09:01 +0000)]
functional (mem_fn): Avoid _T, badname on Darwin.

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

* include/tr1/functional (mem_fn): Avoid _T, badname on
Darwin.

From-SVN: r95492

19 years agoTextAttribute.java: changed names to lower case;
David Gilbert [Thu, 24 Feb 2005 07:15:55 +0000 (07:15 +0000)]
TextAttribute.java: changed names to lower case;

2005-02-24  David Gilbert  <david.gilbert@object-refinery.com>

* java/awt/font/TextAttribute.java: changed names to lower case;
(readResolve): implemented.
Added doc comments all over.

From-SVN: r95491

19 years agore PR c++/19878 (ICE in import_export_decl)
Mark Mitchell [Thu, 24 Feb 2005 02:42:17 +0000 (02:42 +0000)]
re PR c++/19878 (ICE in import_export_decl)

PR c++/19878
* decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations
with internal linkage.

PR c++/19878
* g++.dg/init/const2.C: New test.

From-SVN: r95490

19 years agocse.c (delete_trivially_dead_insns): Speed up by using NEXT_INSN and PREV_INSN direct...
Kazu Hirata [Thu, 24 Feb 2005 01:55:11 +0000 (01:55 +0000)]
cse.c (delete_trivially_dead_insns): Speed up by using NEXT_INSN and PREV_INSN directly instead of next_real_insn...

* cse.c (delete_trivially_dead_insns): Speed up by using
NEXT_INSN and PREV_INSN directly instead of next_real_insn and
prev_real_insn.

From-SVN: r95488

19 years agom68k.c (m68k_save_reg): Also save A5 for non-leaf functions when -mid-shared-library...
Andrea Tarani [Thu, 24 Feb 2005 01:51:30 +0000 (01:51 +0000)]
m68k.c (m68k_save_reg): Also save A5 for non-leaf functions when -mid-shared-library is being used.

* config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
functions when -mid-shared-library is being used.

From-SVN: r95487

19 years agoTR1 mem_fn and function support
Douglas Gregor [Thu, 24 Feb 2005 01:16:08 +0000 (01:16 +0000)]
TR1 mem_fn and function support

From-SVN: r95486

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

From-SVN: r95481

19 years agotm.texi (LINK_LIBGCC_SPECIAL): Remove.
Daniel Jacobowitz [Wed, 23 Feb 2005 23:11:08 +0000 (23:11 +0000)]
tm.texi (LINK_LIBGCC_SPECIAL): Remove.

* doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
(LINK_LIBGCC_SPECIAL_1): Don't mention it.
* gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
* system.h: Poison LINK_LIBGCC_SPECIAL.

From-SVN: r95476

19 years agoFix problem found by CFLAGS=-fmudflap build.
James E Wilson [Wed, 23 Feb 2005 22:30:01 +0000 (22:30 +0000)]
Fix problem found by CFLAGS=-fmudflap build.

* Makefile.in (full-stamp, test-stamp, $(AF)): Add $(CFLAGS) to link.

From-SVN: r95475

19 years agore PR tree-optimization/20100 (LIM is pulling out a pure function even though there...
Hans-Peter Nilsson [Wed, 23 Feb 2005 22:20:48 +0000 (22:20 +0000)]
re PR tree-optimization/20100 (LIM is pulling out a pure function even though there is something which can modify global memory)

PR tree-optimization/20100
* gcc.c-torture/execute/pr20100-1.c: New test.

From-SVN: r95474

19 years agoFix out-of-bounds array access found by mudflap.
James E Wilson [Wed, 23 Feb 2005 22:16:07 +0000 (22:16 +0000)]
Fix out-of-bounds array access found by mudflap.

* gengtype.c (note_insn_name): Make 1 element larger.

From-SVN: r95473

19 years agogfortran.h (gfc_component, [...]): Make 'name' a 'const char *'.
Tobias Schlüter [Wed, 23 Feb 2005 22:14:12 +0000 (23:14 +0100)]
gfortran.h (gfc_component, [...]): Make 'name' a 'const char *'.

* gfortran.h (gfc_component, gfc_actual_arglist, gfc_user_op): Make
'name' a 'const char *'.
(gfc_symbol): Likewise, also for 'module'.
(gfc_symtree): Make 'name' a 'const char *'.
(gfc_intrinsic_sym): Likewise, also for 'lib_name'.
(gfc_get_gsymbol, gfc_find_gsymbol): Add 'const' qualifier to
'char *' argument.
(gfc_intrinsic_symbol): Use 'gfc_get_string' instead of 'strcpy' to
initialize 'SYM->module'.
* check.c (gfc_check_minloc_maxloc, check_reduction): Check for NULL
pointer instead of empty string.
* dump-parse-tree.c (gfc_show_actual_arglist): Likewise.
* interface.c (gfc_compare_types): Adapt check to account for possible
NULL pointer.
(compare_actual_formal): Check for NULL pointer instead of empty
string.
* intrinsic.c (gfc_current_intrinsic, gfc_current_intrinsic_arg):
Add 'const' qualifier.
(conv_name): Return a heap allocated string.
(find_conv): Add 'const' qualifier to 'target'.
(add_sym): Use 'gfc_get_string' instead of 'strcpy'.
(make_generic): Check for NULL pointer instead of emptystring.
(make_alias): Use 'gfc_get_string' instead of 'strcpy'.
(add_conv): No need to strcpy result from 'conv_name'.
(sort_actual): Check for NULL pointer instead of emptystring.
* intrinsic.h (gfc_current_intrinsic, gfc_current_intrinsic_arg):
Adapt prototype.
* module.c (compare_true_names): Compare pointers instead of strings
for 'module' member.
(find_true_name): Initialize string fields with gfc_get_string.
(mio_pool_string): New function.
(mio_internal_string): Adapt comment.
(mio_component_ref, mio_component, mio_actual_arg): Use
'mio_pool_string' instead of 'mio_internal_string'.
(mio_symbol_interface): Add 'const' qualifier to string arguments.
Add level of indirection. Use 'mio_pool_string' instead of
'mio_internal_string'.
(load_needed, read_module): Use 'gfc_get_string' instead of 'strcpy'.
(write_common, write_symbol): Use 'mio_pool_string' instead of
'mio_internal_string'.
(write_symbol0, write_symbol1): Likewise, also check for NULL pointer
instead of empty string.
(write_operator, write_generic): Pass correct type variable to
'mio_symbol_interface'.
(write_symtree): Use 'mio_pool_string' instead of
'mio_internal_string'.
* primary.c (match_keyword_arg): Adapt check to possible
case of NULL pointer.  Use 'gfc_get_string' instead of 'strcpy'.
* symbol.c (gfc_add_component, gfc_new_symtree, delete_symtree,
gfc_get_uop, gfc_new_symbol): Use 'gfc_get_string' instead of
'strcpy'.
(ambiguous_symbol): Check for NULL pointer instead of empty string.
(gfc_find_gsymbol, gfc_get_gsymbol): Add 'const' qualifier on string
arguments.
* trans-array.c (gfc_trans_auto_array_allocation): Check for NULL
pointer instead of empty string.
* trans-decl.c (gfc_sym_mangled_identifier,
gfc_sym_mangled_function_id, gfc_finish_var_decl, gfc_get_symbol_decl,
gfc_get_symbol_decl): Likewise.
* trans-io.c (gfc_new_nml_name_expr): Add 'const' qualifier to
argument.  Copy string instead of pointing to it.

From-SVN: r95472

19 years agogfortran.h (gfc_expr): Move 'operator'...
Tobias Schlüter [Wed, 23 Feb 2005 21:34:11 +0000 (22:34 +0100)]
gfortran.h (gfc_expr): Move 'operator'...

* gfortran.h (gfc_expr): Move 'operator', 'op1', 'op2', and 'uop'
fields into new struct 'op' inside the 'value' union.
* arith.c (eval_intrinsic): Adapt all users.
* dependency.c (gfc_check_dependency): Likewise.
* dump-parse-tree.c (gfc_show_expr): Likewise.
* expr.c (gfc_get_expr): Don't clear removed fields.
(free_expr0, gfc_copy_expr, gfc_type_convert_binary,
gfc_is_constant_expr, simplify_intrinsic_op, check_init_expr,
check_intrinsic_op): Adapt to new field names.
* interface.c (gfc_extend_expr): Likewise.  Also explicitly
nullify 'esym' and 'isym' fields of new function call.
* iresolve.c (gfc_resolve_dot_product, gfc_resolve_matmul):
Adapt to renamed structure fields.
* matchexp.c (build_node, match_level_1, match_expr): Likewise.
* module.c (mio_expr): Likewise.
* resolve.c (resolve_operator): Likewise.
(gfc_find_forall_index): Likewise.  Only look through operands
if dealing with EXPR_OP
* trans-array.c (gfc_walk_op_expr): Adapt to renamed fields.
* trans-expr.c (gfc_conv_unary_op, gfc_conv_power_op,
gfc_conv_concat_op, gfc_conv_expr_op): Likewise.

From-SVN: r95471

19 years agogfortran.h (symbol_attribute): New 'untyped' field, fix comment formatting.
Tobias Schlüter [Wed, 23 Feb 2005 20:56:58 +0000 (21:56 +0100)]
gfortran.h (symbol_attribute): New 'untyped' field, fix comment formatting.

fortran/
* gfortran.h (symbol_attribute): New 'untyped' field, fix comment
formatting.
* symbol.c (gfc_set_default_type): Issue error only once, by setting
and checking 'untyped' attribute.

testsuite/
* gfortran.dg/deftype_1.f90: New test.

From-SVN: r95469

19 years agogfortran.h (gfc_get_namespace): Add second argument to prototype.
Tobias Schlüter [Wed, 23 Feb 2005 19:02:29 +0000 (20:02 +0100)]
gfortran.h (gfc_get_namespace): Add second argument to prototype.

fortran/
* gfortran.h (gfc_get_namespace): Add second argument to prototype.
* intrinsic.c (gfc_intrinsic_init_1): Pass second argument to
gfc_get_namespace.
* module.c (mio_namespace_ref, load_needed): Likewise.
* parse.c (parse_interface, parse_contained): Likewise.  Here the
correct second argument matters.
* symbol.c (gfc_get_namespace): Add parent_types argument, only copy
parent's implicit types if this is set.
(gfc_symbol_init_2): Pass second argument to gfc_get_namespace.
* trans-common.c (build_common_decl): Likewise.

testsuite/
* gfortran.dg/implicit_3.f90: New test.

From-SVN: r95463

19 years agodecl.c (grokvardecl): Don't exempt anonymous types from having linkage for variables...
Alexandre Oliva [Wed, 23 Feb 2005 18:57:43 +0000 (18:57 +0000)]
decl.c (grokvardecl): Don't exempt anonymous types from having linkage for variables that have...

gcc/cp/ChangeLog:
* decl.c (grokvardecl): Don't exempt anonymous types from having
linkage for variables that have linkage other than "C".
gcc/testsuite/ChangeLog:
* g++.dg/lookup/anon2.C: Don't let access checks make it look like
the test passes.
* g++.dg/other/anon3.C: Accept a warning.

From-SVN: r95462

19 years agore PR target/20018 ([ia64] unable to find a register to spill in class`PR_REG')
Roger Sayle [Wed, 23 Feb 2005 18:20:52 +0000 (18:20 +0000)]
re PR target/20018 ([ia64] unable to find a register to spill in class`PR_REG')

PR target/20018
PR rtl-optimization/20097
* simplify-rtx.c (simplify_relational_operation_1): Avoid creating
BImode SUBREGs of SImode registers which confuse the ia64 backend.

From-SVN: r95461

19 years agot-aix43 (SHLIB_INSTALL): Create directory for shared library.
David Edelsohn [Wed, 23 Feb 2005 18:18:24 +0000 (18:18 +0000)]
t-aix43 (SHLIB_INSTALL): Create directory for shared library.

* t-aix43 (SHLIB_INSTALL): Create directory for shared library.
* t-aix52 (SHLIB_INSTALL): Same.

From-SVN: r95460

19 years agore PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored)
Thomas Fitzsimmons [Wed, 23 Feb 2005 17:36:26 +0000 (17:36 +0000)]
re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored)

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

PR libgcj/16923
* gcj.texi (Invocation): Add descriptions of JvVMInitArgs and
JvVMOption.

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

PR libgcj/16923
* jni.cc (JNI_CreateJavaVM): Check JNI version.  Cast args to
JvVMInitArgs.  Pass args to _Jv_CreateJavaVM and check return
value.  Move argument parsing code to prims.cc.
* prims.cc (no_properties): Remove.
(_Jv_Compiler_Properties): Initialize to NULL.
(_Jv_Properties_Count): Initialize to 0.
(parse_verbose_args): New function.
(parse_init_args): New function.
(_Jv_CreateJavaVM): Call parse_init_args.
(_Jv_RunMain): Check return value of _Jv_CreateJavaVM.
* gcj/cni.h (JvVMOption): New struct.
(JvVMInitArgs): Likewise.
(JvCreateJavaVM): Declare vm_args as JvVMInitArgs* rather than
void*.
* libjava/gcj/javaprims.h (_Jv_VMOption): New struct.
(_Jv_VMInitArgs): Likewise.
* include/java-props.h (_Jv_Properties_Count): Declare.
* java/lang/natRuntime.cc (insertSystemProperties): Use
_Jv_Properties_Count in for loop exit condition.
* testsuite/libjava.jni/jni.exp
(gcj_invocation_compile_c_to_binary): New procedure.
(gcj_invocation_test_one): Likewise.
(gcj_jni_run): Run JNI invocation API tests.
* testsuite/libjava.jni/invocation/PR16923.c,
testsuite/libjava.jni/invocation/PR16923.java,
testsuite/libjava.jni/invocation/PR16923.out: New test.

From-SVN: r95459

19 years agotype_traits: Implement is_convertible.
Paolo Carlini [Wed, 23 Feb 2005 17:23:44 +0000 (17:23 +0000)]
type_traits: Implement is_convertible.

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

* include/tr1/type_traits: Implement is_convertible.
* testsuite/tr1/4_metaprogramming/relationships_between_types/
is_convertible/is_convertible.cc: New.
* testsuite/tr1/4_metaprogramming/relationships_between_types/
is_convertible/typedefs.cc: Likewise.
* testsuite/testsuite_tr1.h: Add class DerivedType.

* include/tr1/type_traits (is_function): Don't mistake references
to function types for function types.
* testsuite/tr1/4_metaprogramming/primary_type_categories/
is_function/is_function.cc: Add testcase.

From-SVN: r95458

19 years agogenpreds.c: Update copyright.
Kazu Hirata [Wed, 23 Feb 2005 15:14:47 +0000 (15:14 +0000)]
genpreds.c: Update copyright.

gcc/
* genpreds.c: Update copyright.

cp/
* cp-objcp-common.h, error.c: Update copyright.

fortran/
* intrinsic.h, st.c: Update copyright.

treelang/
* parse.y: Update copyright.

From-SVN: r95457

19 years ago* gcc.dg/pr20017.c: Fix a comment typo.
Kazu Hirata [Wed, 23 Feb 2005 14:58:03 +0000 (14:58 +0000)]
* gcc.dg/pr20017.c: Fix a comment typo.

From-SVN: r95456

19 years agore PR libffi/20104 (gij fails on ppc and not on x86)
Andrew Haley [Wed, 23 Feb 2005 14:05:13 +0000 (14:05 +0000)]
re PR libffi/20104 (gij fails on ppc and not on x86)

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

PR libffi/20104
        * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
        odd-numbered register pairs for 64-bit integer types.

From-SVN: r95455

19 years agore PR libffi/20104 (gij fails on ppc and not on x86)
Andreas Tobler [Wed, 23 Feb 2005 13:56:01 +0000 (14:56 +0100)]
re PR libffi/20104 (gij fails on ppc and not on x86)

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

PR libffi/20104
* testsuite/libffi.call/return_ll1.c: New test case.

From-SVN: r95454

19 years agore PR target/20159 (sol2-ci.asm not correctly assembled)
Michael Beach [Wed, 23 Feb 2005 11:53:55 +0000 (11:53 +0000)]
re PR target/20159 (sol2-ci.asm not correctly assembled)

PR target/20159
* config/sparc/t-elf (startup files): Assemble with CPP.

From-SVN: r95450

19 years agolist_read_4.f90: Change to f90 comments.
Bud Davis [Wed, 23 Feb 2005 10:45:07 +0000 (10:45 +0000)]
list_read_4.f90: Change to f90 comments.

2005-02-23  Bud Davis  <bdavis@gfortran.org>

        * gfortran.dg/list_read_4.f90: Change to f90 comments.

From-SVN: r95449

19 years agoAllow darwin targeted ports to build tk, itcl and libgui.
Paul Schlie [Wed, 23 Feb 2005 10:12:44 +0000 (10:12 +0000)]
Allow darwin targeted ports to build tk, itcl and libgui.

From-SVN: r95448

19 years agogenpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
Paolo Bonzini [Wed, 23 Feb 2005 09:09:17 +0000 (09:09 +0000)]
genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.

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

* genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
(write_predicate_expr): Likewise.

From-SVN: r95447

19 years agore PR ada/19902 (ACATS cxa3004 cxb3006 fail at compile time "ambiguous expression")
Eric Botcazou [Wed, 23 Feb 2005 09:00:22 +0000 (10:00 +0100)]
re PR ada/19902 (ACATS cxa3004 cxb3006 fail at compile time "ambiguous expression")

PR ada/19902
* ada/acats/tests/cxa/cxa3004.a: Remove.
* ada/acats/tests/cxb/cxb30061.am: Likewise.

From-SVN: r95446

19 years agoMakefile.am: Added new file gnu/java/nio/ChannelReader.java.
Michael Koch [Wed, 23 Feb 2005 08:33:26 +0000 (08:33 +0000)]
Makefile.am: Added new file gnu/java/nio/ChannelReader.java.

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

* Makefile.am: Added new file gnu/java/nio/ChannelReader.java.
* Makefile.in: Regenerated.

From-SVN: r95445

19 years agoChannelReader: Fixed comments.
Robert Schuster [Wed, 23 Feb 2005 08:26:36 +0000 (08:26 +0000)]
ChannelReader: Fixed comments.

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

* gnu/java/nio/ChannelReader: Fixed comments.

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

* java/nio/channels/Channels: Added FIXMEs about
stub method implementation.
(newReader): Implemented.
* gnu/java/nio/ChannelReader: New class.

From-SVN: r95444

19 years agoSimpleDateFormat.java: Removed unused import.
Michael Koch [Wed, 23 Feb 2005 07:18:05 +0000 (07:18 +0000)]
SimpleDateFormat.java: Removed unused import.

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

* java/text/SimpleDateFormat.java:
Removed unused import.

From-SVN: r95443

19 years agore PR c++/20073 (ICE initializing const array)
Mark Mitchell [Wed, 23 Feb 2005 06:55:07 +0000 (06:55 +0000)]
re PR c++/20073 (ICE initializing const array)

PR c++/20073
* decl.c (start_decl_1): Don't clear TREE_READONLY.
(cp_finish_decl): Likewise.
(complete_vars): Call cp_apply_type_quals_to_decl.
* typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in
cases where that's not valid.

From-SVN: r95442

19 years agore PR c++/20073 (ICE initializing const array)
Mark Mitchell [Wed, 23 Feb 2005 06:52:08 +0000 (06:52 +0000)]
re PR c++/20073 (ICE initializing const array)

PR c++/20073
* decl.c (start_decl_1): Don't clear TREE_READONLY.
(cp_finish_decl): Likewise.
(complete_vars): Call cp_apply_type_quals_to_decl.
* typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in
cases where that's not valid.

PR c++/20073
* g++.dg/init/const1.C: New test.

From-SVN: r95441

19 years agocheck_performance: Tweaks.
Benjamin Kosnik [Wed, 23 Feb 2005 06:14:01 +0000 (06:14 +0000)]
check_performance: Tweaks.

2005-02-22  Benjamin Kosnik  <bkoz@redhat.com>

* scripts/check_performance: Tweaks.

* testsuite/27_io/basic_ostream/inserters_other/wchar_t/2.cc: Name
output file with extension that clean rules can find.

From-SVN: r95440

19 years agore PR c++/19991 (Enum not accepted in array-size)
Mark Mitchell [Wed, 23 Feb 2005 05:30:48 +0000 (05:30 +0000)]
re PR c++/19991 (Enum not accepted in array-size)

PR c++/19991
* init.c (integral_constant_value): Iterate if the value of a decl
is itself a constant.

PR c++/20152
* parser.c (cp_parser_class_head): Check for redefintions here.
* semantics.c (begin_class_definition): Not here.

PR c++/20153
* decl2.c (build_anon_union_vars): Add type parameter.
(finish_anon_union): Pass it.

PR c++/20148
* error.c (dump_expr): Do not print the body of a BIND_EXPR.
Handle STATEMENT_LIST.

PR c++/19991
* g++.dg/parse/constant7.C: New test.

PR c++/20152
* g++.dg/parse/error27.C: New test.
* g++.dg/template/qualttp15.C: Adjust error markers.
* g++.old-deja/g++.other/struct1.C: Likewise.

PR c++/20153
* g++.dg/template/error17.C: New test.

PR c++/20148
* g++.dg/parser/error26.C: New test.

From-SVN: r95438

19 years agore PR tree-optimization/20100 (LIM is pulling out a pure function even though there...
Diego Novillo [Wed, 23 Feb 2005 05:08:32 +0000 (05:08 +0000)]
re PR tree-optimization/20100 (LIM is pulling out a pure function even though there is something which can modify global memory)

PR tree-optimization/20100
PR tree-optimization/20115
* tree-optimize.c (init_tree_optimization_passes): Remove
pass_maybe_create_global_var.
* tree-pass.h (pass_maybe_create_global_var): Remove.
* tree-ssa-alias.c (aliases_computed_p): Declare.
(struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
(count_calls_and_maybe_create_global_var): Remove.
(pass_maybe_create_global_var): Remove.
(init_alias_info): Do not declare aliases_computed_p.
(maybe_create_global_var): If the function contains no
call-clobbered variables and a mix of pure/const and regular
function calls, create .GLOBAL_VAR.
Mark all call-clobbered variables for renaming.
(merge_pointed_to_info): Update comment.
(add_pointed_to_var): Likewise.
(is_escape_site): Likewise.
Accept struct alias_info * instead of size_t *.
Update all users.
Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
as necessary.
* tree-ssa-operands.c (get_call_expr_operands): If
ALIASES_COMPUTED_P is false, do not add call-clobbering
operands.
* tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
(delete_tree_ssa): Likewise.

testsuite/ChangeLog

PR tree-optimization/20100
PR tree-optimization/20115
* gcc.dg/pr20115.c: New test.
* gcc.dg/pr20115-1.c: New test.
* gcc.dg/pr20100.c: New test.
* gcc.dg/tree-ssa/20040517-1.c: Expect virtual operands for
call-clobbered variables after alias1.

From-SVN: r95437

19 years ago[multiple changes]
Bud Davis [Wed, 23 Feb 2005 04:09:17 +0000 (04:09 +0000)]
[multiple changes]

2004-02-22  Paul Thomas <paulthomas2@wannado.fr>
            Bud Davis  <bdavis@gfortran.org>

        * io/list_read.c (read_real): Handle separators properly
        in list directed read.

2005-02-22  Bud Davis  <bdavis@gfortran.org>

        * gfortran.dg/list_read_4.f90: new test.

From-SVN: r95436

19 years agoFix FreeBSD __LDBL_MAX__ -pedantic -save-temps bug.
James E Wilson [Wed, 23 Feb 2005 01:35:07 +0000 (01:35 +0000)]
Fix FreeBSD __LDBL_MAX__ -pedantic -save-temps bug.

* toplev.c (backend_init): Don't call init_adjust_machine_modes here.
(do_compile): Do call it here.

From-SVN: r95432

19 years agore PR rtl-optimization/20017 (internal compiler error: in rtl_verify_flow_info, at...
Kazu Hirata [Wed, 23 Feb 2005 01:28:59 +0000 (01:28 +0000)]
re PR rtl-optimization/20017 (internal compiler error: in rtl_verify_flow_info, at cfgrtl.c:2212)

gcc/
PR rtl-optimization/20017.
* passes.c (rest_of_handle_combine, rest_of_handle_cse,
rest_of_handle_cse2, rest_of_handle_gcse): Call
delete_dead_jumptables immediately before calling cleanup_cfg.

testsuite/
PR rtl-optimization/20017.
* gcc.dg/pr20017.c: New.

From-SVN: r95431

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

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

From-SVN: r95430

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

From-SVN: r95429

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

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

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

From-SVN: r95428