gcc.git
19 years agore PR fortran/20058 (Error on kind 16 hex data statement)
Steven G. Kargl [Mon, 28 Feb 2005 00:38:12 +0000 (00:38 +0000)]
re PR fortran/20058 (Error on kind 16 hex data statement)

PR fortran/20058
* trans-types.c (gfc_max_integer_kind): Declare
  (gfc_init_kinds): Initialize it.
* gfortran.h (gfc_max_integer_kind): extern it.
* primary.c (match_boz_constant): Use it; remove gfortran extension
  of kind suffixes on BOZ literal constants

From-SVN: r95643

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

From-SVN: r95639

19 years agoChangeLog: Fix typo in Peter O'Gorman's name.
Toon Moene [Sun, 27 Feb 2005 20:59:02 +0000 (20:59 +0000)]
ChangeLog: Fix typo in Peter O'Gorman's name.

2005-02-27  Toon Moene  <toon@moene.indiv.nluug.nl>

* ChangeLog: Fix typo in Peter O'Gorman's name.
* runtime/environ.c: Update copyright years.

From-SVN: r95635

19 years ago* io/write.c: Update copyright years.
Tobias Schlüter [Sun, 27 Feb 2005 20:11:01 +0000 (21:11 +0100)]
* io/write.c: Update copyright years.

From-SVN: r95630

19 years agore PR libfortran/20101 (zero prints incorrectly with 1pe12.4)
Francois-Xavier Coudert [Sun, 27 Feb 2005 19:47:12 +0000 (20:47 +0100)]
re PR libfortran/20101 (zero prints incorrectly with 1pe12.4)

libgfortran/
2005-02-27  Fran��ois-Xavier Coudert  <coudert@clipper.ens.fr>

 PR libfortran/20101
* write.c (output_float): Adding special check for value 0.0 in
PE format.

gcc/testsuite/
2005-02-27  Fran��ois-Xavier Coudert  <coudert@clipper.ens.fr>

PR libfortran/20101
* gfortran.dg/write_0_pe_format.f90: New test.

From-SVN: r95628

19 years agoChanged my own email address
Svein Seldal [Sun, 27 Feb 2005 18:50:47 +0000 (18:50 +0000)]
Changed my own email address

From-SVN: r95627

19 years agoarith.c (gfc_check_real_range): Remove multiple returns
Steven G. Kargl [Sun, 27 Feb 2005 17:32:26 +0000 (17:32 +0000)]
arith.c (gfc_check_real_range): Remove multiple returns

* arith.c (gfc_check_real_range):  Remove multiple returns
  (check_result): New function.
  (gfc_arith_uminus,gfc_arith_plus,gfc_arith_times,
  gfc_arith_divide,gfc_arith_power,gfc_arith_minus): Use it.

From-SVN: r95624

19 years agore PR c++/20206 (COMDAT broken for C++ thunks)
Jakub Jelinek [Sun, 27 Feb 2005 17:13:28 +0000 (18:13 +0100)]
re PR c++/20206 (COMDAT broken for C++ thunks)

PR c++/20206
* decl.c (cxx_comdat_group): Put thunks for
TARGET_USE_LOCAL_THUNK_ALIAS_P (function) functions into the same
comdat group as the thunk target.

* g++.dg/opt/thunk2.C: New test.
* g++.dg/opt/covariant1.C: New test.

From-SVN: r95619

19 years agore PR rtl-optimization/17728 (ICE in extract_insn, at recog.c:2083, unrecognizable...
John David Anglin [Sun, 27 Feb 2005 16:32:12 +0000 (16:32 +0000)]
re PR rtl-optimization/17728 (ICE in extract_insn, at recog.c:2083, unrecognizable insn)

PR rtl-optimization/17728
* pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
operand 0 from general_operand to move_dest_operand.

From-SVN: r95616

19 years agowrite.c (output_float): Fix typo in condition.
Tobias Schlüter [Sun, 27 Feb 2005 16:17:56 +0000 (17:17 +0100)]
write.c (output_float): Fix typo in condition.

libgfortran/
* io/write.c (output_float): Fix typo in condition.

gcc/testsuite/
* gfortran.dg/e_d_fmt.f90: New test.

From-SVN: r95615

19 years ago* treelang.texi: Fix a typo.
Kazu Hirata [Sun, 27 Feb 2005 13:55:32 +0000 (13:55 +0000)]
* treelang.texi: Fix a typo.

From-SVN: r95611

19 years ago* gcc.dg/asm-b.c: Fix comment typos.
Kazu Hirata [Sun, 27 Feb 2005 13:49:37 +0000 (13:49 +0000)]
* gcc.dg/asm-b.c: Fix comment typos.

From-SVN: r95609

19 years agoinline_asm-2.c: link_error produces a V_MAY_DEF also.
Andrew Pinski [Sun, 27 Feb 2005 04:37:23 +0000 (04:37 +0000)]
inline_asm-2.c: link_error produces a V_MAY_DEF also.

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

        * gcc.dg/tree-ssa/inline_asm-2.c: link_error produces
        a V_MAY_DEF also.

From-SVN: r95606

19 years agoelf.h, som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw instead of trying to save...
John David Anglin [Sun, 27 Feb 2005 04:22:06 +0000 (04:22 +0000)]
elf.h, som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw instead of trying to save and restore TREE_SYMBOL_REFERENCED.

* pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
instead of trying to save and restore TREE_SYMBOL_REFERENCED.
* pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
(ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.

From-SVN: r95605

19 years agoseh_init.c (__gnat_SEH_error_handler): Mark third and fourth parameters as unused.
Danny Smith [Sun, 27 Feb 2005 01:12:13 +0000 (01:12 +0000)]
seh_init.c (__gnat_SEH_error_handler): Mark third and fourth parameters as unused.

* seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
parameters as unused.

From-SVN: r95604

19 years agoDaily bump.
GCC Administrator [Sun, 27 Feb 2005 00:16:40 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95601

19 years agostl_tree.h (_Rb_tree<>::_M_insert): Don't leak memory if _M_key_compare throws.
Earl Chew [Sat, 26 Feb 2005 23:34:36 +0000 (23:34 +0000)]
stl_tree.h (_Rb_tree<>::_M_insert): Don't leak memory if _M_key_compare throws.

2005-02-26  Earl Chew  <earl_chew@agilent.com>
    Christopher Jefferson  <chris@bubblescope.net>

* include/bits/stl_tree.h (_Rb_tree<>::_M_insert): Don't leak
memory if _M_key_compare throws.

Co-Authored-By: Chris Jefferson <chris@bubblescope.net>
From-SVN: r95597

19 years ago(top level)
Nathanael Nerode [Sat, 26 Feb 2005 21:43:33 +0000 (21:43 +0000)]
(top level)
Merged from libada-gnattools-branch:
2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>

* gnattools: New directory.
* Makefile.def: Add gnattools as a module, depending on target-libada.
* Makefile.in: Regenerate.
* configure.in: Include gnattools in host_tools; disable it if ada
is disabled.
* configure: Regenerate.

(gcc)
* configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
* configure: Regenerate.
        * libada-mk.in: Remove CC; rename
cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.

(gcc/ada)
Partial merge from libada-gnattools-branch:

2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
        * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
        into code in gnattools/Makefile.in.  Remove direct dependencies on
        stamp-tools by tools clauses.
2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
        * config-lang.in: Add gnattools to $lang_dirs.

(libada)
2004-12-03  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.in: Add stamp file for building libada, to avoid
duplicate builds every time all-gnattools is called.

2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.in: Build gcc/ada/Makefile (by running gcc/ada/configure)
here.

2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure.ac: Replace AC_CANONICAL_SYSTEM with _BUILD, _HOST,
_TARGET.
* configure: Regenerate.

2004-07-18  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure.ac, Makefile.in: Remove gnattools-specific code
(see gnattools directory).
* Makefile.in: Remove dead rts-* targets.
* configure: Regenerate.

(gnattools)
2005-02-02  Nathanael Nerode  <neroden@gcc.gnu.org>

        * Makefile.in: Remove use of cc_set_by_configure; just use
        plain old CC from the top level in this case.

2005-01-30  Nathanael Nerode  <neroden@gcc.gnu.org>
Merge from mainline at tag libada-gnattools-merge-20050129:
* configure.ac: Changes propagated from gcc/ada/Makefile.in.
* Makefile.in: Changes relocated from gcc/ada/Makefile.in.

2004-12-13  Nathanael Nerode  <neroden@gcc.gnu.org>

        * Makefile.in: Reinstate stamp-gnatlib check.

2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.in: Inline gnattools{1,1-re,2,3,4} targets from
gcc/ada/configure.ac into gnattools-native and gnattools-cross
targets, collecting flags as appropriate from here,
gcc/ada/Makefile.in, gcc/ada/configure.ac, etc.  Attempt to retain
identical behavior.
* configure.ac: Add necessary configure bits from
gcc/ada/configure.ac.
* configure: Regenerate.

2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure.ac: Replace AC_CANONICAL_SYSTEM with _BUILD, _HOST,
_TARGET.  Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
ACX_NONCANONICAL_TARGET, and replace now-redundant AC_SUBST.
* configure: Regenerate.

2004-07-18  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.in, configure.ac: Remove libada-specific targets and
variables.
* configure: Regenerate.
* New directory, cloned from libada.

From-SVN: r95594

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