platform/upstream/gcc.git
20 years agomf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.
Dale Johannesen [Tue, 3 Aug 2004 14:19:26 +0000 (14:19 +0000)]
mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.

2004-08-03  Dale Johannesen  <dalej@apple.com>

         * mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.

From-SVN: r85478

20 years agocoverage.c (tree_coverage_counter_ref): Fix computation of the new ARRAY_REF argument.
Jan Hubicka [Tue, 3 Aug 2004 14:05:15 +0000 (16:05 +0200)]
coverage.c (tree_coverage_counter_ref): Fix computation of the new ARRAY_REF argument.

* coverage.c (tree_coverage_counter_ref): Fix computation of the new
ARRAY_REF argument.

From-SVN: r85477

20 years agoarm-cores.def: Sort by architecture.
Richard Earnshaw [Tue, 3 Aug 2004 13:52:49 +0000 (13:52 +0000)]
arm-cores.def: Sort by architecture.

* arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
arm968es, arm10e, arm1020e, arm1022e.
* invoke.texi: Update list of ARM cores.
* arm-tune.md: Regenerate.

From-SVN: r85476

20 years agomf-runtime.c (compare_uintptr_t): Remove function.
Frank Ch. Eigler [Tue, 3 Aug 2004 13:40:21 +0000 (13:40 +0000)]
mf-runtime.c (compare_uintptr_t): Remove function.

2004-08-03  Frank Ch. Eigler  <fche@redhat.com>

* mf-runtime.c (compare_uintptr_t): Remove function.  Inline
simplified contents in all former callers.

From-SVN: r85475

20 years ago* gcc_update: gcc/config/arm/arm-tune.md -> arm-cores.def gentune.sh.
Richard Earnshaw [Tue, 3 Aug 2004 13:35:47 +0000 (13:35 +0000)]
* gcc_update: gcc/config/arm/arm-tune.md -> arm-cores.def gentune.sh.

From-SVN: r85474

20 years agore PR libfortran/16137 (Fortran compiler unable to produce executables as libfortran...
Roger Sayle [Tue, 3 Aug 2004 13:28:26 +0000 (13:28 +0000)]
re PR libfortran/16137 (Fortran compiler unable to produce executables as libfortran depends on C99 math functions)

PR libgfortran/16137
* configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
* config.h.in: Regenerate.
* configure: Regenerate.

* instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
implementations for targets that don't support C99 float functions.

From-SVN: r85473

20 years agogentune.sh: New file.
Richard Earnshaw [Tue, 3 Aug 2004 13:27:02 +0000 (13:27 +0000)]
gentune.sh: New file.

* arm/gentune.sh: New file.
* arm/t-arm: New file.
* arm/arm-tune.md: New file (autogenerated).
* config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
* arm.md (attribute tune): Delete.  Include arm-tune.md.

From-SVN: r85472

20 years agolist.tcc: Trivial formatting fixes.
Paolo Carlini [Tue, 3 Aug 2004 10:11:31 +0000 (10:11 +0000)]
list.tcc: Trivial formatting fixes.

2004-08-03  Paolo Carlini  <pcarlini@suse.de>

* include/bits/list.tcc: Trivial formatting fixes.

From-SVN: r85470

20 years agogcc.c (add_prefix, [...]): Remove penultimate parameter.
Paolo Bonzini [Tue, 3 Aug 2004 09:38:08 +0000 (09:38 +0000)]
gcc.c (add_prefix, [...]): Remove penultimate parameter.

2004-08-03  Paolo Bonzini <bonzini@gnu.org>

* gcc.c (add_prefix, add_sysrooted_prefix): Remove
penultimate parameter.  All callers adjusted.
(struct prefix_list): Remove used_flag_ptr.
(find_a_file): Do not set *pl->used_flag_ptr.
(warn_B, warn_std_ptr): Remove.

From-SVN: r85469

20 years agoMakefile.def (host-modules): Add gcc.
Paolo Bonzini [Tue, 3 Aug 2004 09:35:46 +0000 (09:35 +0000)]
Makefile.def (host-modules): Add gcc.

2004-08-03 Paolo Bonzini <bonzini@gnu.org>

* Makefile.def (host-modules): Add gcc.
* Makefile.in: Regenerate.
* Makefile.tpl (sorry): New rule.
(configure-host, all-host, [+make_target+]-host, do-check,
install-host): Do not add gcc as a special case.
(host modules): Add a small special-casing for gcc.  Export
extra_make_flags through the environment.
(maybe-configure-gcc, configure-gcc, maybe-all-gcc, all-gcc,
maybe-check-gcc, check-gcc, maybe-install-gcc, install-gcc,
other recursive targets for gcc): Remove.

(all, do-[+make_target+], do-check): Wrap between unstage and stage.
(stage, unstage): New rules.
(stage[+id+]-start, stage[+id+]-end, [+compare-target+],
distclean-stage[+id+]): Use stage_current.
([+bootstrap-target+], profiledbootstrap): Do not invoke manually
the stage*-start rules.

From-SVN: r85468

20 years agoaltivec.md (altivec_vnmsubfp): Fix wrong pattern.
Yossi Markovich [Tue, 3 Aug 2004 09:31:47 +0000 (09:31 +0000)]
altivec.md (altivec_vnmsubfp): Fix wrong pattern.

        * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.

[[Split portion of a mixed commit.]]

Co-Authored-By: Mostafa Hagog <mustafa@il.ibm.com>
From-SVN: r85466.2

20 years ago20001023-1.c, [...]: Declare built-in functions used.
Joseph Myers [Tue, 3 Aug 2004 08:22:26 +0000 (09:22 +0100)]
20001023-1.c, [...]: Declare built-in functions used.

* gcc.dg/20001023-1.c, gcc.dg/20001108-1.c, gcc.dg/20001117-1.c,
gcc.dg/20010202-1.c, gcc.dg/20011008-2.c, gcc.dg/20011214-1.c,
gcc.dg/20020201-1.c, gcc.dg/20020312-2.c, gcc.dg/20020426-2.c,
gcc.dg/20030331-2.c, gcc.dg/20030612-1.c, gcc.dg/20030926-1.c,
gcc.dg/20031216-1.c, gcc.dg/20031218-3.c, gcc.dg/20040305-2.c,
gcc.dg/980226-1.c, gcc.dg/Wreturn-type2.c,
gcc.dg/Wunreachable-6.c, gcc.dg/Wunreachable-7.c,
gcc.dg/align-1.c, gcc.dg/builtin-prefetch-1.c,
gcc.dg/builtins-17.c, gcc.dg/builtins-19.c, gcc.dg/builtins-2.c,
gcc.dg/builtins-20.c, gcc.dg/builtins-21.c, gcc.dg/builtins-7.c,
gcc.dg/builtins-8.c, gcc.dg/cpp/19930510-1.c,
gcc.dg/cpp/charconst-3.c, gcc.dg/cpp/charconst-4.c,
gcc.dg/cpp/mi6.c, gcc.dg/cpp/tr-paste.c, gcc.dg/cpp/trad/mi6.c,
gcc.dg/cpp/trad/paste.c, gcc.dg/cpp/trad/strify.c,
gcc.dg/fastmath-1.c, gcc.dg/fshort-wchar.c, gcc.dg/i386-387-7.c,
gcc.dg/i386-387-8.c, gcc.dg/i386-asm-1.c, gcc.dg/i386-cadd.c,
gcc.dg/i386-fpcvt-3.c, gcc.dg/i386-loop-3.c,
gcc.dg/i386-memset-1.c, gcc.dg/loop-2.c, gcc.dg/nest.c,
gcc.dg/noncompile/971104-1.c, gcc.dg/noncompile/990416-1.c,
gcc.dg/noncompile/scope.c, gcc.dg/pack-test-4.c,
gcc.dg/pack-test-5.c, gcc.dg/pch/inline-4.c, gcc.dg/postincr-1.c,
gcc.dg/pr10392-1.c, gcc.dg/pragma-align.c,
gcc.dg/profile-generate-1.c, gcc.dg/sibcall-1.c,
gcc.dg/sibcall-2.c, gcc.dg/sibcall-3.c, gcc.dg/sibcall-4.c,
gcc.dg/sibcall-5.c, gcc.dg/sibcall-6.c, gcc.dg/switch-warn-1.c,
gcc.dg/switch-warn-2.c, gcc.dg/torture/builtin-attr-1.c,
gcc.dg/torture/builtin-math-1.c, gcc.dg/torture/builtin-noret-2.c,
gcc.dg/trampoline-1.c, gcc.dg/tree-ssa/20030703-1.c,
gcc.dg/tree-ssa/20030703-2.c, gcc.dg/tree-ssa/20030708-1.c,
gcc.dg/tree-ssa/20030709-3.c, gcc.dg/tree-ssa/20030710-1.c,
gcc.dg/tree-ssa/20030711-1.c, gcc.dg/tree-ssa/20030729-1.c,
gcc.dg/tree-ssa/20030730-1.c, gcc.dg/tree-ssa/20030730-2.c,
gcc.dg/tree-ssa/20030731-1.c, gcc.dg/tree-ssa/20030807-11.c,
gcc.dg/tree-ssa/20030807-2.c, gcc.dg/tree-ssa/20030807-5.c,
gcc.dg/tree-ssa/20030807-7.c, gcc.dg/tree-ssa/20030808-1.c,
gcc.dg/tree-ssa/20030814-1.c, gcc.dg/tree-ssa/20030814-2.c,
gcc.dg/tree-ssa/20030814-3.c, gcc.dg/tree-ssa/20030814-4.c,
gcc.dg/tree-ssa/20030814-5.c, gcc.dg/tree-ssa/20030814-6.c,
gcc.dg/tree-ssa/20030814-7.c, gcc.dg/tree-ssa/20030815-1.c,
gcc.dg/tree-ssa/20030907-1.c, gcc.dg/tree-ssa/20030917-3.c,
gcc.dg/tree-ssa/20030922-1.c, gcc.dg/tree-ssa/20031113-1.c,
gcc.dg/tree-ssa/20040121-1.c, gcc.dg/tree-ssa/20040319-1.c,
gcc.dg/tree-ssa/20040324-1.c, gcc.dg/tree-ssa/20040326-1.c,
gcc.dg/tree-ssa/20040326-2.c, gcc.dg/tree-ssa/20040517-1.c,
gcc.dg/tree-ssa/ssa-ccp-10.c, gcc.dg/tree-ssa/ssa-pre-1.c,
gcc.dg/tree-ssa/tailcall-1.c, gcc.dg/tree-ssa/tailrecursion-5.c,
gcc.dg/ultrasp3.c, gcc.dg/winline-7.c, gcc.misc-tests/bprob-1.c,
gcc.misc-tests/bprob-2.c, gcc.misc-tests/gcov-3.c,
gcc.misc-tests/gcov-4.c, gcc.misc-tests/gcov-4b.c,
gcc.misc-tests/gcov-6.c, gcc.misc-tests/gcov-7.c,
gcc.misc-tests/i386-pf-3dnow-1.c,
gcc.misc-tests/i386-pf-athlon-1.c,
gcc.misc-tests/i386-pf-none-1.c, gcc.misc-tests/i386-pf-sse-1.c,
objc.dg/nested-func-1.m, objc.dg/special/unclaimed-category-1.m:
Declare built-in functions used.
* gcc.dg/torture/builtin-attr-1.c (nexttoward): Use FPTEST2ARG2.

From-SVN: r85465

20 years agonew_op.cc: Update comments.
Mark Mitchell [Tue, 3 Aug 2004 07:11:16 +0000 (07:11 +0000)]
new_op.cc: Update comments.

* libsupc++/new_op.cc: Update comments.
* libsupc++/del_op.cc: Likewise.

From-SVN: r85464

20 years agocxxabi.h: Make all declarations have default visibility.
Mark Mitchell [Tue, 3 Aug 2004 06:45:54 +0000 (06:45 +0000)]
cxxabi.h: Make all declarations have default visibility.

* libsupc++/cxxabi.h: Make all declarations have default
visibility.
* libsupc++/exception: Likewise.
* libsupc++/new: Likewise.
* libsupc++/typeinfo: Likewise.
* libsupc++/unwind-cxx.h: Likewise.
* libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
the __cxxabiv1 namespace.
(__cxa_free_exception): Likewise.
* libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
(__cxa_bad_typeid): Likewise.
* libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
(__cxa_end_catch): Likewise.
* libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
(__cxa_get_globals): Likewise.
* libsupc++/eh_throw.cc (__cxa_throw): Likewise.
(__cxa_rethrow): Likewise.
* libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
* libsupc++/eh_type.cc: Include <cxxabi.h>.

From-SVN: r85463

20 years agoIndex: ChangeLog
Geoffrey Keating [Tue, 3 Aug 2004 00:52:18 +0000 (00:52 +0000)]
Index: ChangeLog
2004-08-02  Geoffrey Keating  <geoffk@apple.com>

* ltcf-cxx.sh: On Darwin, make archive multi-module, and don't
use -all_load flag.

Index: gcc/ChangeLog
2004-08-02  Geoffrey Keating  <geoffk@apple.com>

* dwarf2out.c (output_call_frame_info): Don't change data format
due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
label.  Use 'true' not '1'.
* doc/install.texi (powerpc-*-darwin*): Mention cctools version
required.

From-SVN: r85461

20 years agoTimestamp.java (valueOf): Synchronize access to dateFormat.
Bryce McKinlay [Tue, 3 Aug 2004 00:21:26 +0000 (00:21 +0000)]
Timestamp.java (valueOf): Synchronize access to dateFormat.

2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>

* java/sql/Timestamp.java (valueOf): Synchronize access to
dateFormat.

From-SVN: r85460

20 years agoDaily bump.
GCC Administrator [Tue, 3 Aug 2004 00:16:11 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85458

20 years agore PR java/16701 (Error when constant initializer depends on another constant with...
Bryce McKinlay [Mon, 2 Aug 2004 21:20:46 +0000 (21:20 +0000)]
re PR java/16701 (Error when constant initializer depends on another constant with restricted access)

2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>

PR java/16701
* parse.y (fold_constant_for_init): Call resolve_field_access with
correct current_class context.

2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>

* testsuite/libjava.compile/PR16701.java: New test.

From-SVN: r85453

20 years agoMakefile.am (hosted_source): Add libmath and testsuite.
Mark Mitchell [Mon, 2 Aug 2004 20:28:22 +0000 (20:28 +0000)]
Makefile.am (hosted_source): Add libmath and testsuite.

* Makefile.am (hosted_source): Add libmath and testsuite.
(SUBDIRS): Remove them.
* acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
on arm*-*-symbianelf*.
* crossconfig.m4: Add arm*-*-symbianelf* support.
* include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
when freestanding.  Do not bring names into std:: namespace with
"using" when freestanding.  Declare required functions and macros
when freestanding.
* libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
when freestanding.
* libsupc++/del_op.cc: Declare "free" only when freestanding.
* libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
(malloc): Declare when freestanding.
(free): Likewise.
(memset): Likewise.
(__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
for memset.
(__cxa_free_exception): Likewise for free.
* libsupc++/new_op.cc: Declare "malloc" when freestanding.
* libsupc++/pure.cc (writestr): Define to nothing when
freestanding.
* libsupc++/vterminate.cc: Do not define anything when
freestanding.
* Makefile.in: Regenerated.
* aclocal.m4: Likewise.
* configure: Likewise.
* include/Makefile.in: Likewise.
* libmath/Makefile.in: Likewise.
* libsupc++/Makefile.in: Likewise.
* po/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.

From-SVN: r85452

20 years ago* gdbinit.in: Reflect previous changes to rtunion_def.
Gabriel Dos Reis [Mon, 2 Aug 2004 19:36:57 +0000 (19:36 +0000)]
* gdbinit.in: Reflect previous changes to rtunion_def.

From-SVN: r85449

20 years agore PR c++/16707 (ICE with using)
Mark Mitchell [Mon, 2 Aug 2004 18:49:07 +0000 (18:49 +0000)]
re PR c++/16707 (ICE with using)

PR c++/16707
* name-lookup.c (validate_nonmember_using_decl): Robustify.

PR c++/16707
* g++.dg/lookup/using12.C: New test.

From-SVN: r85446

20 years agonull1.C: Fix PR number.
Mark Mitchell [Mon, 2 Aug 2004 18:35:28 +0000 (18:35 +0000)]
null1.C: Fix PR number.

* g++.dg/init/null1.C: Fix PR number.
* g++.dg/parse/namespace10.C: Likewise.

From-SVN: r85444

20 years agofold-const.c (fold): The transformation "X % -Y" -> "X % Y" is only valid for TRUNC_M...
Roger Sayle [Mon, 2 Aug 2004 17:11:42 +0000 (17:11 +0000)]
fold-const.c (fold): The transformation "X % -Y" -> "X % Y" is only valid for TRUNC_MOD_EXPR.

* fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
-> "X % Y" is only valid for TRUNC_MOD_EXPR.

From-SVN: r85443

20 years agoSync from src.
Paolo Bonzini [Mon, 2 Aug 2004 16:58:38 +0000 (16:58 +0000)]
Sync from src.

From-SVN: r85442

20 years agolibiberty.h (XDELETE, [...]): Remove any const-qualification before disposal.
Gabriel Dos Reis [Mon, 2 Aug 2004 16:45:52 +0000 (16:45 +0000)]
libiberty.h (XDELETE, [...]): Remove any const-qualification before disposal.

include/
        * libiberty.h (XDELETE, XDELETEVEC, XRESIZEVEC): Remove any
        const-qualification before disposal.

gcc/
        * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
        vec_p_reserve.
        * langhooks.h (lang_hooks::builtin_function): Rename parameter
        from "class" to "bt_class".

From-SVN: r85441

20 years agore PR rtl-optimization/15068 (ICE in elim_reg_cond)
Paul Brook [Mon, 2 Aug 2004 13:19:39 +0000 (13:19 +0000)]
re PR rtl-optimization/15068 (ICE in elim_reg_cond)

PR rtl-optimization/15068
* flow.c (init_propagate_block_info): Check condition is reversible.

From-SVN: r85439

20 years agogengtype.h (options::info): Change type to const char *.
Gabriel Dos Reis [Mon, 2 Aug 2004 12:48:49 +0000 (12:48 +0000)]
gengtype.h (options::info): Change type to const char *.

        * gengtype.h (options::info): Change type to const char *.
        (enum gc_used_enum): Move out of struct type scope.
        * gengtype.c (create_option): Convert initializer for
        option::info to
        appropiate type.
        (adjust_field_type, walk_type, write_func_for_structure,
        write_root, write_roots): Remove pointless cast.

From-SVN: r85436

20 years ago* genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
J"orn Rennecke [Mon, 2 Aug 2004 12:07:51 +0000 (12:07 +0000)]
* genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.

From-SVN: r85435

20 years agortl.h (union rtunion_def): Have all members start with the prefix "rt_".
Gabriel Dos Reis [Mon, 2 Aug 2004 10:29:26 +0000 (10:29 +0000)]
rtl.h (union rtunion_def): Have all members start with the prefix "rt_".

        * rtl.h (union rtunion_def): Have all members  start with the
        prefix "rt_".
        (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
        X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
        X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
        XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust
        members
        access.
        * gengtype.c (adjust_field_rtx_def): Likewise.
        * rtlanal.c (loc_mentioned_in_p): Likewise.

From-SVN: r85434

20 years agore PR c++/16224 (internal compiler error: in write_unscoped_name (template/namespace))
Mark Mitchell [Mon, 2 Aug 2004 06:25:36 +0000 (06:25 +0000)]
re PR c++/16224 (internal compiler error: in write_unscoped_name (template/namespace))

PR c++/16224
* name-lookup.c (decl_namespace): Remove.
(current_decl_namespace): Use decl_namespace_context instead of
decl_namespace.
(push_decl_namespace): Likewise.
(arg_assoc_class): Likewise.
(arg_assoc_type): Likewise.
* pt.c (check_specialization_namespace): New function.
(maybe_process_partial_specialization): Use it.
(register_specialization): Likewise.

PR c++/16224
* g++.dg/template/spec17.C: New test.
* g++.old-deja/g++.ns/template13.C: Remove XFAIL.
* g++.old-deja/g++.pt/lookup10.C: Add dg-error marker.

From-SVN: r85431

20 years agoconfig.gcc (mips*-*-elf*, [...]): Add elfos.h to tm_file.
Richard Sandiford [Mon, 2 Aug 2004 06:13:40 +0000 (06:13 +0000)]
config.gcc (mips*-*-elf*, [...]): Add elfos.h to tm_file.

* config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
Replace uses of mips/elf64.h with mips/elf.h
* config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
(TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
(ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
(MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
(HANDLE_SYSV_PRAGMA): Delete.
(ASM_OUTPUT_DEF): Fix formatting.
* config/mips/elf64.h: Delete.

From-SVN: r85430

20 years ago2004-08-02 David Billinghurst
David Billinghurst [Mon, 2 Aug 2004 06:00:55 +0000 (06:00 +0000)]
2004-08-02  David Billinghurst

PR fortran/16292
* gfortran.dg/g77/cabs.f: xfail on mips-sgi-irix6*

From-SVN: r85429

20 years agore PR libstdc++/16844 (Explicit instantiation failing)
Matt Austern [Mon, 2 Aug 2004 04:40:19 +0000 (04:40 +0000)]
re PR libstdc++/16844 (Explicit instantiation failing)

PR libstdc++/16844
* include/bits/stl_list.h (_M_create_node): Remove unused
zero-argument version.
* include/ext/slist (_M_create_node): Pass two arguments to
allocator's construct() member function.
* testsuite/23_containers/deque/explicit_instantiation.cc: New.
* testsuite/23_containers/list/explicit_instantiation.cc: New.
* testsuite/23_containers/vector/explicit_instantiation.cc: New.
* testsuite/23_containers/map/explicit_instantiation.cc: New.
* testsuite/23_containers/set/explicit_instantiation.cc: New.
* testsuite/23_containers/multimap/explicit_instantiation.cc: New.
* testsuite/23_containers/multiset/explicit_instantiation.cc: New.
* testsuite/ext/hash_set_explicit_instantiation.cc: New.
* testsuite/ext/slist_explicit_instantiation.cc: New.

From-SVN: r85428

20 years agoia64.c (got_symbolic_operand): Do require a symbol+offset operand to have its offset...
Zack Weinberg [Mon, 2 Aug 2004 03:23:01 +0000 (03:23 +0000)]
ia64.c (got_symbolic_operand): Do require a symbol+offset operand to have its offset be zero mod 0x3fff when...

* config/ia64/ia64.c (got_symbolic_operand): Do require a
symbol+offset operand to have its offset be zero mod 0x3fff
when GOT entries are in use.  Clarify logic in SYMBOL_REF
case.  Clarify comments.
(ia64_expand_load_address): Split a symbol+offset load when
the offset is nonzero mod 0x3fff, not 0x1fff.
testsuite:
* gcc.dg/ia64-got-1.c: New test case.

From-SVN: r85426

20 years agoFix typos in ChangeLog.
Mark Mitchell [Mon, 2 Aug 2004 02:04:46 +0000 (02:04 +0000)]
Fix typos in ChangeLog.

From-SVN: r85425

20 years agoFix typo in ChangeLog
Mark Mitchell [Mon, 2 Aug 2004 02:00:18 +0000 (02:00 +0000)]
Fix typo in ChangeLog

From-SVN: r85422

20 years agore PR c++/16338 (ICE when throwing a compound literal)
Mark Mitchell [Mon, 2 Aug 2004 01:58:52 +0000 (01:58 +0000)]
re PR c++/16338 (ICE when throwing a compound literal)

PR c++/16338
* cp-tree.h (DECL_INTEGRAL_CONSTANT_VAR_P): New macro.
* call.c (null_ptr_cst_p): Handle variables with constant
initializers.
* pt.c (convert_nontype_argument): Use
DECL_INTEGRAL_CONSTANT_VAR_P.
* semantics.c (finish_id_expression): Likewise.

PR c++~/16489
* decl.c (duplicate_decls): Reject duplicate namespace
declarations.

PR c++/16810
* typeck.c (build_ptrmemfunc): Loosen assertion.

PR c++/16338
* g++.dg/init/null1.C: New test.
* g++.dg/tc1/dr76.C: Adjust error marker.

PR c++/16489
* g++.dg/parse/namespace10.C: New test.

PR c++/16810
* g++.dg/inherit/ptrmem2.C: New test.

From-SVN: r85421

20 years agors6000.c (rs6000_split_multireg_move): Just abort if trying to *store* to a non-offse...
Geoffrey Keating [Mon, 2 Aug 2004 01:46:40 +0000 (01:46 +0000)]
rs6000.c (rs6000_split_multireg_move): Just abort if trying to *store* to a non-offsettable address.

* config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
if trying to *store* to a non-offsettable address.
* config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
a nonoffsettable address.
(movdi_internal32): Don't move GPRs to a nonoffsettable address.
Clean up.
(movti_string): Don't move GPRs to a nonoffsettable address.
(movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.

From-SVN: r85419

20 years agoPatch for PR target/16155.
Ben Elliston [Mon, 2 Aug 2004 01:05:47 +0000 (01:05 +0000)]
Patch for PR target/16155.

2004-08-02  Ben Elliston  <bje@au.ibm.com>

PR target/16155
* config/rs6000/altivec.h: Replace typeof with __typeof__.

[testsuite]
2004-08-02  Ben Elliston  <bje@au.ibm.com>

* gcc.dg/pr16155.c: New test.

From-SVN: r85418

20 years agoDaily bump.
GCC Administrator [Mon, 2 Aug 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85416

20 years agooptions.c (gfc_init_options): Don't warn about the use GNU extensions by default.
Roger Sayle [Sun, 1 Aug 2004 21:37:21 +0000 (21:37 +0000)]
options.c (gfc_init_options): Don't warn about the use GNU extensions by default.

* options.c (gfc_init_options): Don't warn about the use GNU
extensions by default.
(gfc_post_options): Warn about GNU extensions with -pedantic.
(gfc_handle_option): Don't warn about GNU extensions with -std=gnu.

From-SVN: r85413

20 years agoexpr.c (expand_expr_real_1): Fix crash with variable sized types.
Richard Henderson [Sun, 1 Aug 2004 21:12:20 +0000 (14:12 -0700)]
expr.c (expand_expr_real_1): Fix crash with variable sized types.

        * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
        variable sized types.

From-SVN: r85412

20 years agocall.c (z_candidate::template_decl): Rename from template.
Gabriel Dos Reis [Sun, 1 Aug 2004 18:07:32 +0000 (18:07 +0000)]
call.c (z_candidate::template_decl): Rename from template.

        * call.c (z_candidate::template_decl): Rename from template.
        (add_template_candidate_real): Adjust member reference.
        (joust): Likewise.

From-SVN: r85411

20 years agodecl.c (update_aliases, [...]): Replace calls to build with calls to buildN.
Roger Sayle [Sun, 1 Aug 2004 18:04:42 +0000 (18:04 +0000)]
decl.c (update_aliases, [...]): Replace calls to build with calls to buildN.

* decl.c (update_aliases, initialize_local_variable): Replace calls
to build with calls to buildN.
* java-gimplify.c (java_gimplify_modify_expr): Likewise.
* java-tree.h (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT): Likewise.
* parse.h (BUILD_THROW): Likewise.
* parse.y (switch_expression, synchronized_statement,
catch_clause_parameter, array_creation_expression,
conditional_expression, make_qualified_name,
resolve_qualified_expression_name, patch_method_invocation,
patch_invoke, build_method_invocation, build_new_invocation,
build_assignment, patch_assignment, build_binop, patch_binop,
build_string_concatenation, build_incdec, patch_unaryop,
patch_cast, build_array_ref, build_newarray_node, patch_newarray,
patch_return, build_if_else_statement, build_labeled_block,
build_new_loop, build_loop_body, build_bc_statement,
build_assertion, encapsulate_with_try_catch, build_try_statement,
build_try_finally_statement, patch_synchronized_statement,
emit_test_initialization): Likewise, replace build with buildN.

From-SVN: r85410

20 years agowrite.c (write_float): Use the slightly more portable isnan in preference to isinf.
Roger Sayle [Sun, 1 Aug 2004 13:40:52 +0000 (13:40 +0000)]
write.c (write_float): Use the slightly more portable isnan in preference to isinf.

* io/write.c (write_float): Use the slightly more portable isnan
in preference to isinf.

From-SVN: r85407

20 years agoinvoke.texi: In the MIPS options section...
Richard Sandiford [Sun, 1 Aug 2004 11:36:25 +0000 (11:36 +0000)]
invoke.texi: In the MIPS options section...

* doc/invoke.texi: In the MIPS options section, remove the passage
saying that -mexplicit-relocs is usually disabled for -mabicalls
-fno-unit-at-a-time.
* config/mips/mips.c (override_options): Remove the code that enforced
this rule.

From-SVN: r85406

20 years agomips.md (cprestore): Provide two alternatives...
Richard Sandiford [Sun, 1 Aug 2004 11:30:39 +0000 (11:30 +0000)]
mips.md (cprestore): Provide two alternatives...

* config/mips/mips.md (cprestore): Provide two alternatives, one for
an in-range offset and one for an out-of-range offset.  Wrap the latter
in .set macro/.set nomacro if it's inside a .set nomacro block.

From-SVN: r85405

20 years agomips-protos.h (mips_gp_save_slot): Remove.
Richard Sandiford [Sun, 1 Aug 2004 11:17:36 +0000 (11:17 +0000)]
mips-protos.h (mips_gp_save_slot): Remove.

* config/mips/mips-protos.h (mips_gp_save_slot): Remove.
(mips_restore_gp): Declare.
* config/mips/mips.c (mips_add_offset): Add a scratch register
argument.  Reimplement in rtl only, reusing MIPS16 logic from
mips_output_mi_thunk.
(mips_legitimize_address, mips_legitimize_const_move): Adjust calls
to mips_add_offset.
(mips_gp_save_slot): Delete.
(mips_restore_gp): New function.
(mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
* config/mips/mips.md (exception_receiver): Turn into a
define_insn_and_split.  Use mips_restore_gp to do the split.
(call_internal, call_value_internal, call_value_multiple_internal): Use
mips_restore_gp to restore $gp.

From-SVN: r85404

20 years agoCollection.java, [...]: Added additional exceptions to documentation.
Andrew John Hughes [Sun, 1 Aug 2004 11:14:42 +0000 (11:14 +0000)]
Collection.java, [...]: Added additional exceptions to documentation.

2004-08-01  Andrew John Hughes  <gnu_andrew@member.fsf.org>

* java/util/Collection.java, java/util/List.java,
java/util/Map.java, java/util/Set.java,
java/util/SortedMap.java, java/util/SortedSet.java:
Added additional exceptions to documentation.

From-SVN: r85403

20 years agoconfigure.in [...] (SYSTEMSPEC): Remove -lwsock32.
Danny Smith [Sun, 1 Aug 2004 04:29:31 +0000 (04:29 +0000)]
configure.in [...] (SYSTEMSPEC): Remove -lwsock32.

* configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
* configure. Regenerate.
* include/win32.h: Explicitly include winsock2.h
* win32.cc (_Jv_platform_initialize): Require version 2.2 of
Winsock api.

From-SVN: r85401

20 years agore PR other/16842 (mkheaders can not find mkheaders.conf)
Andrew Pinski [Sun, 1 Aug 2004 00:44:43 +0000 (00:44 +0000)]
re PR other/16842 (mkheaders can not find mkheaders.conf)

2004-07-31  Andrew Pinski  <apinski@apple.com>

        PR other/16842
        * mkheaders.in (libsubdir): s/gcc-lib/gcc/.

From-SVN: r85399

20 years agoDaily bump.
GCC Administrator [Sun, 1 Aug 2004 00:16:14 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85397

20 years agoc-decl.c (diagnose_mismatched_decls): Give error for external redeclaration of identi...
Joseph Myers [Sat, 31 Jul 2004 17:21:27 +0000 (18:21 +0100)]
c-decl.c (diagnose_mismatched_decls): Give error for external redeclaration of identifier declared with no linkage...

* c-decl.c (diagnose_mismatched_decls): Give error for external
redeclaration of identifier declared with no linkage, not just
warning with -Wtraditional.  Do not check DECL_CONTEXT to give
error for redeclaration with no linkage.

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

From-SVN: r85386

20 years agolocale_facets.tcc (num_get<>::_M_extract_float, [...]): In the main parsing loop...
Paolo Carlini [Sat, 31 Jul 2004 09:00:09 +0000 (09:00 +0000)]
locale_facets.tcc (num_get<>::_M_extract_float, [...]): In the main parsing loop delay the life of __q to the actual use point.

2004-07-30  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
num_get<>::_M_extract_int): In the main parsing loop delay the
life of __q to the actual use point.

From-SVN: r85380

20 years agoAdd Fariborz to my last change.
Geoffrey Keating [Sat, 31 Jul 2004 01:45:16 +0000 (01:45 +0000)]
Add Fariborz to my last change.

From-SVN: r85372

20 years agors6000.c (legitimate_lo_sum_address_p): Permit non-offsettable addresses even for...
Geoffrey Keating [Sat, 31 Jul 2004 01:40:18 +0000 (01:40 +0000)]
rs6000.c (legitimate_lo_sum_address_p): Permit non-offsettable addresses even for DImode.

2004-07-30  Geoffrey Keating  <geoffk@apple.com>

* config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
non-offsettable addresses even for DImode.
(rs6000_split_multireg_move): Cope with non-offsettable addresses
being moved into multiple GPRs.

* config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
to 64.
(rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
* config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
to 128.
* config/rs6000/darwin-ldouble.c (isless): New macro.
(inf): New macro.
(nonfinite): New macro.
(FPKINF): Delete.
(_xlqadd): Completely rewrite.
(_xlqmul): Correct overflow handling.
(_xlqdiv): Correct overflow handling.
* config/rs6000/darwin-ldouble-format: New file.

Index: testsuite/ChangeLog
2004-07-30  Geoffrey Keating  <geoffk@apple.com>

* gcc.dg/darwin-longdouble.c: New file.

From-SVN: r85371

20 years agoDaily bump.
GCC Administrator [Sat, 31 Jul 2004 00:16:14 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85369

20 years agoi386.md: New peephole2's to convert imul by 3, 5 or 9 into the equivalent lea instruc...
Roger Sayle [Sat, 31 Jul 2004 00:03:38 +0000 (00:03 +0000)]
i386.md: New peephole2's to convert imul by 3, 5 or 9 into the equivalent lea instruction.

* config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
9 into the equivalent lea instruction.

Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r85366

20 years agogimplify.c (gimplify_expr): Don't replace with DECL_INITIAL if fb_lvalue.
Richard Henderson [Fri, 30 Jul 2004 22:55:30 +0000 (15:55 -0700)]
gimplify.c (gimplify_expr): Don't replace with DECL_INITIAL if fb_lvalue.

        * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
        with DECL_INITIAL if fb_lvalue.
        * tree-gimple.c (is_gimple_id): Add CONST_DECL.
        * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
        with <Cxxx>.
        * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
fortran/
        * trans-expr.c (gfc_conv_expr_reference): Create a CONST_DECL
        for TREE_CONSTANTs.
testsuite/
        * gfortran.fortran-torture/execute/intrinsic_rrspacing.f90: Fix
        write to constant argument.
        * gfortran.fortran-torture/execute/intrinsic_scale.f90: Likewise.

From-SVN: r85365

20 years agointrinsic_nearest.f90: Disable tests of nearest around zero.
Richard Henderson [Fri, 30 Jul 2004 22:31:20 +0000 (15:31 -0700)]
intrinsic_nearest.f90: Disable tests of nearest around zero.

        * gfortran.fortran-torture/execute/intrinsic_nearest.f90: Disable
        tests of nearest around zero.

From-SVN: r85361

20 years ago20040730-1.c: New test.
Andrew Pinski [Fri, 30 Jul 2004 22:01:59 +0000 (22:01 +0000)]
20040730-1.c: New test.

2004-07-30  Andrew Pinski  <apinski@apple.com>

        * gcc.c-torture/compile/20040730-1.c: New test.

From-SVN: r85360

20 years agotree-ssa-alias.c (compute_points_to_and_addr_escape): If a pointer escapes through...
Diego Novillo [Fri, 30 Jul 2004 19:40:30 +0000 (19:40 +0000)]
tree-ssa-alias.c (compute_points_to_and_addr_escape): If a pointer escapes through a function call...

* tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
pointer escapes through a function call, assume that the
callee will dereference it.
(add_pointed_to_var): Assume that VALUE is always an
ADDR_EXPR.
(collect_points_to_info_r): Only call add_pointed_to_var if
the value is an ADDR_EXPR.

From-SVN: r85353

20 years agovmx.exp: Explain why we skip tests for powerpc-eabispe.
Aldy Hernandez [Fri, 30 Jul 2004 18:37:03 +0000 (18:37 +0000)]
vmx.exp: Explain why we skip tests for powerpc-eabispe.

* gcc.dg/vmx/vmx.exp: Explain why we skip tests for
powerpc-eabispe.

From-SVN: r85346

20 years ago2004-07-30 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 30 Jul 2004 17:00:34 +0000 (17:00 +0000)]
2004-07-30  Michael Koch  <konqueror@gmx.de>

* java/util/zip/GZIPInputStream.java
(GZIPInputStream): Increase buffer size to 4k.
* java/util/zip/GZIPOutputStream.java
(GZIPOutputStream): Likewise.
* java/util/zip/Inflater.java
(setInput): Merged formating with GNU classpath.
* java/util/zip/InflaterInputStream.java
(InflaterInputStream): Increase buffer size to 4k.
(fill): Throw exception if stream ends early.
(read): Merged endless-loop with GNU classpath.
(skip): Increase buffer size to 2k.

From-SVN: r85340

20 years agotree-ssa-alias.c (create_alias_map_for): Do not get the alias set of the inner type...
Diego Novillo [Fri, 30 Jul 2004 14:59:46 +0000 (14:59 +0000)]
tree-ssa-alias.c (create_alias_map_for): Do not get the alias set of the inner type of ARRAY_TYPEs.

* tree-ssa-alias.c (create_alias_map_for): Do not get the
alias set of the inner type of ARRAY_TYPEs.

From-SVN: r85338

20 years ago2004-07-30 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 30 Jul 2004 14:50:50 +0000 (14:50 +0000)]
2004-07-30  Michael Koch  <konqueror@gmx.de>

* gnu/java/awt/EmbeddedWindow.java
(addNotify): Use AccessController to allow execution of privileged
code.

From-SVN: r85337

20 years ago* gcc.dg/vmx/vmx.exp: Disable tests for eabispe.
Aldy Hernandez [Fri, 30 Jul 2004 13:51:12 +0000 (13:51 +0000)]
* gcc.dg/vmx/vmx.exp: Disable tests for eabispe.

From-SVN: r85331

20 years agog++.exp (g++_link_flags): Check whether LD_LIBRARY_PATH already contains $ld_library_...
Richard Sandiford [Fri, 30 Jul 2004 10:34:12 +0000 (10:34 +0000)]
g++.exp (g++_link_flags): Check whether LD_LIBRARY_PATH already contains $ld_library_path.

* lib/g++.exp (g++_link_flags): Check whether LD_LIBRARY_PATH already
contains $ld_library_path.
* lib/gfortran.exp (gfortran_link_flags): Likewise.

From-SVN: r85329

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

From-SVN: r85321

20 years agotree-ssa-ccp.c (visit_assignment): Move code to prevent setting a non-register to...
Diego Novillo [Fri, 30 Jul 2004 00:16:17 +0000 (00:16 +0000)]
tree-ssa-ccp.c (visit_assignment): Move code to prevent setting a non-register to UNDEFINED right before the call...

* tree-ssa-ccp.c (visit_assignment): Move code to prevent
setting a non-register to UNDEFINED right before the call to
set_lattice_value.

From-SVN: r85318

20 years ago* config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
Kaz Kojima [Thu, 29 Jul 2004 22:27:43 +0000 (22:27 +0000)]
* config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.

From-SVN: r85316

20 years agore PR libstdc++/14220 ([3.5] num_put::do_put() undesired float/double behavior)
Paolo Carlini [Thu, 29 Jul 2004 22:11:04 +0000 (22:11 +0000)]
re PR libstdc++/14220 ([3.5] num_put::do_put() undesired float/double behavior)

2004-07-29  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/14220
* include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
Don't clip the precision passed down to __convert_from_v:
22.2.2.2.2 nowhere says so.
* testsuite/22_locale/num_put/put/char/14220.cc: New.
* testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.

From-SVN: r85315

20 years agotree-ssa.c (verify_flow_sensitive_alias_info): When comparing points-to sets of diffe...
Diego Novillo [Thu, 29 Jul 2004 20:16:26 +0000 (20:16 +0000)]
tree-ssa.c (verify_flow_sensitive_alias_info): When comparing points-to sets of different pointers...

* tree-ssa.c (verify_flow_sensitive_alias_info): When
comparing points-to sets of different pointers, make sure the
second pointer is actually referenced in the code.

From-SVN: r85314

20 years agostmtexpr2.C (alt1): Rename from expected.
Richard Henderson [Thu, 29 Jul 2004 18:35:54 +0000 (11:35 -0700)]
stmtexpr2.C (alt1): Rename from expected.

        * g++.dg/ext/stmtexpr2.C (alt1): Rename from expected.
        (alt2, which): New.
        (Check): Accept either alternative.

From-SVN: r85313

20 years ago* g++.dg/template/sizeof8.C: Don't assume 32bit pointers.
Richard Henderson [Thu, 29 Jul 2004 18:32:08 +0000 (11:32 -0700)]
* g++.dg/template/sizeof8.C: Don't assume 32bit pointers.

From-SVN: r85312

20 years agoia64.c (setjmp_operand): Delete, unused.
Zack Weinberg [Thu, 29 Jul 2004 18:30:27 +0000 (18:30 +0000)]
ia64.c (setjmp_operand): Delete, unused.

* config/ia64/ia64.c (setjmp_operand): Delete, unused.
(got_symbolic_operand): Remove unreachable code.
* config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
setjmp_operand; add entry for tls_symbolic_operand.
* config/ia64/ia64-protos.h: Remove all prototypes of
predicate functions.

From-SVN: r85311

20 years agolwg-active.html, [...]: Import Revision 31.
Paolo Carlini [Thu, 29 Jul 2004 18:04:42 +0000 (18:04 +0000)]
lwg-active.html, [...]: Import Revision 31.

2004-07-29  Paolo Carlini  <pcarlini@suse.de>

* docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.

From-SVN: r85310

20 years agoc-common.h (lang_post_pch_load): New variable.
Mark Mitchell [Thu, 29 Jul 2004 17:59:31 +0000 (17:59 +0000)]
c-common.h (lang_post_pch_load): New variable.

* c-common.h (lang_post_pch_load): New variable.
* c-pch.c (lang_post_pch_load): Define it.
(c_common_read_pch): Use it.
* cgraphunit.c (record_call_1): Give the front end a chance to
record additional needed entities when a variable is marked as
needed.
* tlink.c (recompile_files): Robustify.
(scan_linker_output): If a symbol is assigned to a file,
but after recompilation is not present there, issue an error
message.

* cp-tree.h (IDENTIFIER_REPO_CHOSEN): Define.
(lang_decl_flags): Narrow the width of "languages".  Add
repo_available_p.
(DECL_NEEDED_P): Remove.
(FOR_EACH_CLONE): New macro.
(DECL_REPO_AVAILABLE_P): Likewise.
(DECL_TINFO_P): Likewise.
(set_linkage_according_to_type): Declare.
(import_export_vtable): Remove.
(import_export_tinfo): Likewise.
(mark_needed): New function.
(decl_needed_p): Likewise.
(note_vauge_linkage_fn): Likewise.
(init_repo): Change prototype.
(repo_template_used): Remove.
(repo_template_instantiated): Likewise.
(repo_emit_p): New function.
(repo_export_class_p): Likewise.
(no_linkage_check): Change prototype.
* class.c (set_linkage_according_to_type): New function.
(build_vtable): Use it.  Do not call import_export_vtable.  Set
DECL_IGNORED_P if appropriate.
* decl.c (duplicate_decls): Preserve DECL_REPO_AVAILABLE_P.
(make_rtL_for_nonlocal_decls): Check for template instantiations
explicitly.
(grokfndecl): Adjust call to no_linkage_check.
(set_linkage_for_static_data_member): New function.
(grokvardecl): Use it.  Adjust call to no_linkage_check.
(grokdeclarator): Use set_linkage_for_static_data_member.
* decl2.c (note_vague_linkage_fn): New function.
(note_vague_linkage_var): Likewise.
(finish_static_data_member_decl): Use it.
(import_export_vtable): Remove.
(import_export_class): Use repo_export_class_p.
(var_finalized_p): Simplify.
(maybe_emit_vtables): Simplify.
(mark_needed): New function.
(decl_needed_p): Likewise.
(import_export_decl): Add documentation and consistency checks.
Use repo_emit_p.  Handle virtual tables and RTTI information
here.
(import_export_tinfo): Remove.
(write_out_vars): Call import_export_decl.
(cxx_callgraph_analyze_expr): Ensure that all vtables are emitted
whenever one is.
(finish_file): Use decl_needed_p.  Do not call import_export_decl
for undefined static data members.  Do not warn about undefined
inlines when using a repository.
(mark_used): Use note_vague_linkage_fn.  Always defer template
instantiations.
* lex.c (cxx_init): Adjust call to init_repo.  Always set
flag_unit_at_a-time.
* method.c (synthesize_method): Remove unncessary
import_export_decl call.
(implicitly_declare_fn): Use set_linkage_according_to_type.
* optimize.c (maybe_clone_body): Use FOR_EACH_CLONE.
* pt.c (instantiate_class_template): Don't redundantly add classes
to keyed_classes.  Don't call repo_template_used.
(tsubst_decl): Set DECL_INTERFACE_KNOWN for instantiations of
templates with internal linkage.
(check_instantiated_args): Adjust call to no_linkage_check.
(instantiate_template): Use FOR_EACH_CLONE.
(mark_definable): New function.
(mark_decl_instantiated): Use it.
(do_decl_instantiation): Adjust tests for explicit instantiation
after "extern template".
(instantiate_class_member): Do not use repo_template_instantiated.
(do_type_instantiation): Simplify.
(instantiate_decl): Use mark_definable.  Check repo_emit_p.
Simplify.
* repo.c (repo_get_id): Remove.
(original_repo): Remove.
(IDENTIFIER_REPO_USED): Remove.
(IDENTIFIER_REPO_CHOSEN): Remove.
Remove all #if 0'd code.
(repo_template_used): Remove.
(repo_template_instantiated): Remove.
(temporary_obstack_initialized_p): New variable.
(init_repo): Register with lang_post_pch_load.  Avoid creating
identifiers unnecessarily.  Don't use original_repo.  Close the
file here.
(reopen_repo_file_for_write): Not here.
(finish_repo): Always write out a new repository file.
(repo_emit_p): New function.
(repo_export_class_p): Likewise.
* rtti.c (get_tinfo_decl): Use set_linkage_according_to_type.
(involves_incomplete_p): New function.
(tinfo_base_init): Use it.
(ptr_initializer): Remove non_public_ptr parameter.
(ptm_initializer): Likewise.
(get_pseudo_ti_init): Likewise.
(unemitted_tinfo_decl_p): Remove.
(emit_tinfo_decl): Use import_export_decl.
* semantics.c (expand_body): Move updates of static_ctors and
static_dtors to ...
(expand_or_defer_fn): ... here.
* tree.c (no_linkage_check): Add relaxed_p parameter.

* g++.dg/abi/inline1.C: New test.
* g++.dg/abi/local1-a.cc: Likewise.
* g++.dg/abi/local1.C: Likewise.
* g++.dg/abi/mangle11.C: Tweak location of warnings.
* g++.dg/abi/mangle12.C: Likewise.
* g++.dg/abi/mangle17.C: Likewise.
* g++.dg/abi/mangle20-2.C: Likewise.
* g++.dg/opt/interface1.C: Likewise.
* g++.dg/opt/interface1.h: Likewise.
* g++.dg/opt/interface1-a.cc: New test.
* g++.dg/parse/repo1.C: New test.
* g++.dg/template/repo1.C: Likewise.
* g++.dg/warn/Winline-1.C: Likewise.
* lib/gcc-dg.exp (gcc-dg-test-1): Fix -frepo handling.

From-SVN: r85309

20 years agotree-ssa-loop-im.c (force_move_till_expr, [...]): Take orig_loop argument and pass...
Zdenek Dvorak [Thu, 29 Jul 2004 17:49:31 +0000 (19:49 +0200)]
tree-ssa-loop-im.c (force_move_till_expr, [...]): Take orig_loop argument and pass it to set_level.

* tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
Take orig_loop argument and pass it to set_level.
(schedule_sm): Pass the correct orig_loop to force_move_till.

From-SVN: r85308

20 years agocfgloop.c (update_latch_info): Update dominator of the new block.
Zdenek Dvorak [Thu, 29 Jul 2004 17:47:31 +0000 (19:47 +0200)]
cfgloop.c (update_latch_info): Update dominator of the new block.

* cfgloop.c (update_latch_info): Update dominator of the new block.
(canonicalize_loop_headers, flow_loops_find): Do not free dominance
info.
* dominance.c (verify_dominators): Check that the dominance tree is
connected.
(recount_dominator): Ignore unreachable blocks.
(iterate_fix_dominators): Cleanup old dominance information before
recomputing it.

From-SVN: r85307

20 years agotree-ssa-operands.c (get_expr_operands): Revert changes to ADDR_EXPR processing intro...
Diego Novillo [Thu, 29 Jul 2004 17:15:38 +0000 (17:15 +0000)]
tree-ssa-operands.c (get_expr_operands): Revert changes to ADDR_EXPR processing introduced by...

* tree-ssa-operands.c (get_expr_operands): Revert changes
to ADDR_EXPR processing introduced by:
    2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
    * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.

testsuite/ChangeLog

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

From-SVN: r85306

20 years agoimplement-c.texi: Add C90 subclause references.
Joseph Myers [Thu, 29 Jul 2004 17:11:25 +0000 (18:11 +0100)]
implement-c.texi: Add C90 subclause references.

* doc/implement-c.texi: Add C90 subclause references.  Point to
preprocessor documentation instead of duplicating it.  Add points
only present in C90.  Fill in documentation for all points.

From-SVN: r85305

20 years ago* pa.c (output_movb): Correct typo.
John David Anglin [Thu, 29 Jul 2004 15:59:25 +0000 (15:59 +0000)]
* pa.c (output_movb): Correct typo.

From-SVN: r85302

20 years agoPR libstdc++/12658 (continued)
Paolo Carlini [Thu, 29 Jul 2004 15:54:50 +0000 (15:54 +0000)]
PR libstdc++/12658 (continued)

2004-07-29  Paolo Carlini  <pcarlini@suse.de>
            Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/12658 (continued)
* src/locale_init.cc (locale::locale, locale::global): Use
a single locale_mutex instead of two separate mutexes.

Co-Authored-By: Petur Runolfsson <peturr02@ru.is>
From-SVN: r85301

20 years agora.h (single_reg_in_regclass): Declare.
Pat Haugen [Thu, 29 Jul 2004 14:49:22 +0000 (14:49 +0000)]
ra.h (single_reg_in_regclass): Declare.

2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>

        * ra.h (single_reg_in_regclass): Declare.
        * ra.c (single_reg_in_regclass): Define.
        (first_hard_reg): New.
        (init_ra): Initialize single_reg_in_regclass.
        * ra-colorize.c (ok_class): New.
        (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.

From-SVN: r85300

20 years agoMainThread.java: Explicitely import used classes.
Michael Koch [Thu, 29 Jul 2004 13:48:17 +0000 (13:48 +0000)]
MainThread.java: Explicitely import used classes.

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

* gnu/java/lang/MainThread.java:
Explicitely import used classes.
(args): Make it type String[].

From-SVN: r85299

20 years agore PR libstdc++/16813 (compiler error in DEBUG version of range insertion std::map...
Paolo Carlini [Thu, 29 Jul 2004 10:52:49 +0000 (10:52 +0000)]
re PR libstdc++/16813 (compiler error in DEBUG version of range insertion std::map::insert)

2004-07-29  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/16813
* include/debug/map.h (insert(_InputIterator, _InputIterator)):
Fix typo.
* testsuite/23_containers/map/insert/16813.cc: New.

From-SVN: r85295

20 years agoComponentDataBlitOp.java, [...]: Cleaned up imports.
Dalibor Topic [Thu, 29 Jul 2004 09:30:18 +0000 (09:30 +0000)]
ComponentDataBlitOp.java, [...]: Cleaned up imports.

2004-07-29 Dalibor Topic <robilad@kaffe.org>

* gnu/java/awt/ComponentDataBlitOp.java,
gnu/java/beans/ExplicitBeanInfo.java,
gnu/java/beans/IntrospectionIncubator.java,
gnu/java/beans/editors/ColorEditor.java,
gnu/java/beans/editors/FontEditor.java,
gnu/java/beans/editors/NativeBooleanEditor.java,
gnu/java/beans/editors/NativeByteEditor.java,
gnu/java/beans/editors/NativeDoubleEditor.java,
gnu/java/beans/editors/NativeFloatEditor.java,
gnu/java/beans/editors/NativeIntEditor.java,
gnu/java/beans/editors/NativeLongEditor.java,
gnu/java/beans/editors/NativeShortEditor.java,
gnu/java/beans/editors/StringEditor.java,
gnu/java/io/ClassLoaderObjectInputStream.java,
gnu/java/io/decode/Decoder.java,
gnu/java/io/encode/Encoder.java,
gnu/java/lang/ClassHelper.java,
gnu/java/locale/Calendar.java,
gnu/java/locale/Calendar_de.java,
gnu/java/locale/Calendar_en.java,
gnu/java/locale/Calendar_nl.java,
gnu/java/locale/LocaleInformation_de.java,
gnu/java/locale/LocaleInformation_en.java,
gnu/java/locale/LocaleInformation_nl.java:
Cleaned up imports.

From-SVN: r85293

20 years agoComponentDataBlitOp.java, [...]: Cleaned up imports.
Dalibor Topic [Thu, 29 Jul 2004 08:59:39 +0000 (08:59 +0000)]
ComponentDataBlitOp.java, [...]: Cleaned up imports.

2004-07-29 Dalibor Topic <robilad@kaffe.org>

* gnu/java/awt/ComponentDataBlitOp.java,
gnu/java/beans/ExplicitBeanInfo.java,
gnu/java/beans/IntrospectionIncubator.java,
gnu/java/beans/editors/ColorEditor.java,
gnu/java/beans/editors/FontEditor.java,
gnu/java/beans/editors/NativeBooleanEditor.java,
gnu/java/beans/editors/NativeByteEditor.java,
gnu/java/beans/editors/NativeDoubleEditor.java,
gnu/java/beans/editors/NativeFloatEditor.java,
gnu/java/beans/editors/NativeIntEditor.java,
gnu/java/beans/editors/NativeLongEditor.java,
gnu/java/beans/editors/NativeShortEditor.java,
gnu/java/beans/editors/StringEditor.java,
gnu/java/io/ClassLoaderObjectInputStream.java,
gnu/java/io/decode/Decoder.java,
gnu/java/io/encode/Encoder.java,
gnu/java/lang/ClassHelper.java,
gnu/java/locale/Calendar.java,
gnu/java/locale/Calendar_de.java,
gnu/java/locale/Calendar_en.java,
gnu/java/locale/Calendar_nl.java,
gnu/java/locale/LocaleInformation_de.java,
gnu/java/locale/LocaleInformation_en.java,
gnu/java/locale/LocaleInformation_nl.java:
Cleaned up imports.

From-SVN: r85292

20 years agogcov-io.h: Allow zero tag as EOF indicator.
Nathan Sidwell [Thu, 29 Jul 2004 08:58:59 +0000 (08:58 +0000)]
gcov-io.h: Allow zero tag as EOF indicator.

* gcov-io.h: Allow zero tag as EOF indicator.
(gcov_is_eof): Remove.
(gcov_truncate): Remove.
* gcov-io.c (gcov_seek): Always SEEK_SET.
* libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
EOF tag.
* coverage.c (read_counts_file): Don't use gcov_is_eof.
* gcov-dump.c (dump_file): Likewise.
* gcov.c (read_graph_file, read_count_file): Likewise.

From-SVN: r85291

20 years agoindex.html: Update version references.
Phil Edwards [Thu, 29 Jul 2004 08:47:34 +0000 (08:47 +0000)]
index.html: Update version references.

2004-07-29  Phil Edwards  <phil@codesourcery.com>

* docs/html/faq/index.html:  Update version references.  Make
clear that code from SGI has diverged greatly.  Remove references
to library snapshots and what's-new sections.
* docs/html/faq/index.txt:  Regenerate.

From-SVN: r85289

20 years agoc-decl.c (complete_array_type): Don't gratuitously copy maxindex.
Nathan Sidwell [Thu, 29 Jul 2004 08:42:55 +0000 (08:42 +0000)]
c-decl.c (complete_array_type): Don't gratuitously copy maxindex.

* c-decl.c (complete_array_type): Don't gratuitously copy
maxindex.  Check it always has a type.

From-SVN: r85288

20 years agortl.c (currently_expanding_to_rtl): New.
Steven Bosscher [Thu, 29 Jul 2004 07:37:16 +0000 (07:37 +0000)]
rtl.c (currently_expanding_to_rtl): New.

* rtl.c (currently_expanding_to_rtl): New.
* rtl.h (currently_expanding_to_rtl): Export it.
* cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.

* config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
inliner hack.
* config/sh/sh.c: Replace rtx_equal_function_value_matters
with currently_expanding_to_rtl.
* config/sh/sh.md: Likewise.
* config/ia64/ia64.c (got_symbolic_operand): Likewise.

From-SVN: r85287

20 years agoIntroduce sh2a support.
Alexandre Oliva [Thu, 29 Jul 2004 06:10:03 +0000 (06:10 +0000)]
Introduce sh2a support.

2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
* config.gcc: Build multilibs for sh2a and sh2a-single by
default.
* config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
default.  Split their tests out of the corresponding SH4
multilibs.
* config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
multilibs for SH2a.
2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
* config.gcc: Handle sh2a multilibs and cpu selection.
* config/sh/sh.h: Likewise.  Handle sh2a command line flags.
* config/sh/t-mlib-sh2a: New.
* config/sh/t-mlib-sh2a-nofpu: New.
* config/sh/t-mlib-sh2a-single: New.
* config/sh/t-mlib-sh2a-single-only: New.
2004-07-09  Nick Clifton  <nickc@redhat.com>
Issue 43400
* config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
-ml and -m2a are used together.
2004-03-23  DJ Delorie  <dj@redhat.com>
* config/sh/sh.c (sh_builtin_saveregs): Use the double code only
when we have a double-sized FPU.
2004-02-24  Corinna Vinschen <vinschen@redhat.com>
* config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
is set.
* config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
-msh2a-single and -msh2a-single-only
2004-02-24  Corinna Vinschen <vinschen@redhat.com>
* config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
is set.
2004-02-20  DJ Delorie  <dj@delorie.com>
* config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
2004-02-20  Fred Fish <fnf@redhat.com>,
Corinna Vinschen <vinschen@redhat.com>
* config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
(MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
2004-02-18  DJ Delorie  <dj@redhat.com>
* config/sh/sh.c (broken_move): Add support for movi20.
* config/sh/sh.h: Likewise.
(SHIFT_COUNT_TRUNCATED): Set for sh2a.
* config/sh/sh.md (udivsi3_sh2a): New.
(udivsi3): Call it.
(divsi3_sh2a): New.
(divsi3): Call it.
(mul_r): New.
(ashlsi3_sh2a): New.
(ashrsi3_sh2a): New.
(lshrsi3_sh2a): New.
(movsi_i): Disable for sh2a.
(movsi_ie): Add movi20.
(movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
sh2a, for -m2a-nofpu mode.
2004-02-13  DJ Delorie  <dj@redhat.com>
* config/sh/lib1funcs.asm: Handle double vs single better.
* config/sh/sh.h: Likewise.
2004-02-09  DJ Delorie  <dj@redhat.com>
* config/sh/crt1.asm: Add support for sh2a.
* config/sh/elf.h: Likewise.
* config/sh/lib1funcs.asm: Likewise.
* config/sh/sh.c: Likewise.
* config/sh/sh.md: Likewise.
* config/sh/sh.h: Likewise.
* config/sh/t-sh: Likewise.

From-SVN: r85286

20 years agofrv.md (movqi_internal, [...]): Add backup alternatives for memory inputs.
Alexandre Oliva [Thu, 29 Jul 2004 02:55:53 +0000 (02:55 +0000)]
frv.md (movqi_internal, [...]): Add backup alternatives for memory inputs.

* config/frv/frv.md (movqi_internal, movhi_internal,
movsi_internal): Add backup alternatives for memory inputs.

From-SVN: r85284

20 years ago* NEWS: Updated with news up to GCC 3.4 release.
Bryce McKinlay [Thu, 29 Jul 2004 02:50:36 +0000 (02:50 +0000)]
* NEWS: Updated with news up to GCC 3.4 release.

From-SVN: r85283

20 years agoREADME: Remove obsolete info.
Bryce McKinlay [Thu, 29 Jul 2004 02:13:04 +0000 (02:13 +0000)]
README: Remove obsolete info.

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

* README: Remove obsolete info. Update bug URL.
* THANKS: Updated.

From-SVN: r85282

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

From-SVN: r85280

20 years agodarwin.c (darwin_one_byte_bool): New global variable.
Matt Austern [Wed, 28 Jul 2004 23:57:28 +0000 (23:57 +0000)]
darwin.c (darwin_one_byte_bool): New global variable.

        * config/darwin.c (darwin_one_byte_bool): New global variable.
        * config/darwin.h (darwin_one_byte_bool): Declare.
        (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
        * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
        value of darwin_one_byte_bool.
        * doc/invoke.texi: Document -mone-byte-bool flag.
        * testsuite/gcc.dg/darwin-bool-1.c: New test.
        * testsuite/gcc.dg/darwin-bool-2.c: New test.

From-SVN: r85277

20 years agoc-common.c (c_common_unsafe_for_reeval): Delete.
Eric Christopher [Wed, 28 Jul 2004 23:44:56 +0000 (23:44 +0000)]
c-common.c (c_common_unsafe_for_reeval): Delete.

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

* c-common.c (c_common_unsafe_for_reeval): Delete.
* c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
* c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
* calls.c (fix_unsafe_tree): Delete.
(expand_call): Delete code which used above.
* dojump.c (do_jump): Delete UNSAVE_EXPR case.
* expr.c (expand_expr_real_1): Ditto.
* fold-const.c (non_lvalue): Ditto.
* langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
(lhd_unsafe_for_reeval): Ditto.
* langhooks.c (lhd_unsafe_for_reeval): Ditto.
* langhooks.h (unsafe_for_reeval): Ditto.
(unsave_expr_now): Adjust comment.
* tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
(estimate_num_insns_1): Ditto.
* tree-pretty-print.c (dump_generic_node): Ditto.
* tree.c (expr_align): Ditto.
(unsave_expr): Delete.
(unsafe_for_reeval): Ditto.
* tree.h (unsafe_for_reeval, unsave_expr): Ditto.
* tree.def (UNSAVE_EXPR): Delete.
* objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.

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

* cp-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.

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

* lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
(java_unsafe_for_reeval): Ditto.

From-SVN: r85276