]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Tue, 7 Jan 2003 03:45:22 +0000 (03:45 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r60976

22 years ago2003-01-06 Paolo Carlini <pcarlini@unitus.it>
Paolo Carlini [Mon, 6 Jan 2003 18:55:38 +0000 (19:55 +0100)] 
2003-01-06  Paolo Carlini  <pcarlini@unitus.it>

* src/codecvt.cc
(codecvt<char, char, mbstate_t>::do_in, do_out):
Tweak parameters to avoid unused parameter warnings.

From-SVN: r60948

22 years agore PR libstdc++/9151 (std::setprecision limited to 16 digits when outputting a double...
Paolo Carlini [Mon, 6 Jan 2003 15:51:49 +0000 (16:51 +0100)] 
re PR libstdc++/9151 (std::setprecision limited to 16 digits when outputting a double to a stream)

2003-01-06  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/9151
* include/bits/locale_facets.cc (num_put::_M_convert_float):
Limit __prec to digits10 + 2, not digits10 + 1, taking into
account the possibility of %{g,G} conversion specifiers
inside _S_format_float.
* testsuite/27_io/ostream_inserter_arith.cc (test06): Add.

From-SVN: r60941

22 years agolibstdc++-v3-dg.exp (libstdc++-v3-init): Additionally handle files one level deeper...
Kaveh R. Ghazi [Mon, 6 Jan 2003 14:29:19 +0000 (14:29 +0000)] 
libstdc++-v3-dg.exp (libstdc++-v3-init): Additionally handle files one level deeper in glob patterns.

* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init):
Additionally handle files one level deeper in glob patterns.
* testsuite/libstdc++-v3.dg/dg.exp: Likewise.

* testsuite/27_io/istream_extractor_arith.cc: Delete, split...
* testsuite/27_io/istream_extractor_arith/01.cc,
testsuite/27_io/istream_extractor_arith/02.cc,
testsuite/27_io/istream_extractor_arith/03.cc,
testsuite/27_io/istream_extractor_arith/06.cc,
testsuite/27_io/istream_extractor_arith/07.cc,
testsuite/27_io/istream_extractor_arith/08.cc,
testsuite/27_io/istream_extractor_arith/09.cc,
testsuite/27_io/istream_extractor_arith/10.cc,
testsuite/27_io/istream_extractor_arith/11.cc,
testsuite/27_io/istream_extractor_arith/12.cc,
testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
* testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
sparc*-*-solaris2*.

From-SVN: r60938

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Mon, 6 Jan 2003 14:29:19 +0000 (14:29 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r60937

22 years agoDaily bump.
GCC Administrator [Mon, 6 Jan 2003 08:18:40 +0000 (08:18 +0000)] 
Daily bump.

From-SVN: r60927

22 years agore PR libstdc++/9168 (codecvt<char, char, mbstate_t> overwrites output buffers)
Paolo Carlini [Sun, 5 Jan 2003 08:24:56 +0000 (09:24 +0100)] 
re PR libstdc++/9168 (codecvt<char, char, mbstate_t> overwrites output buffers)

2003-01-05  Paolo Carlini <pcarlini@unitus.it>

PR libstdc++/9168
* src/codecvt.cc
(codecvt<char, char, mbstate_t>::do_in, do_out):
Implement the resolution of DR19 (TC).
* testsuite/22_locale/codecvt_members_char_char.cc
(test01): Tweak.

From-SVN: r60910

22 years agoDaily bump.
GCC Administrator [Sun, 5 Jan 2003 08:16:33 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60905

22 years agoDaily bump.
GCC Administrator [Sat, 4 Jan 2003 08:16:35 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60873

22 years agoDaily bump.
GCC Administrator [Fri, 3 Jan 2003 08:18:46 +0000 (08:18 +0000)] 
Daily bump.

From-SVN: r60821

22 years agoDaily bump.
GCC Administrator [Thu, 2 Jan 2003 08:16:32 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60775

22 years agore PR preprocessor/8880 (__WCHAR_TYPE__ macro incorrectly set to "long int" with...
Neil Booth [Wed, 1 Jan 2003 16:24:28 +0000 (16:24 +0000)] 
re PR preprocessor/8880 (__WCHAR_TYPE__ macro incorrectly set to "long int" with -fshort-wchar)

PR preprocessor/8880
* gcc.c (cpp_unique_options): Handle -fshort-wchar later so it
overrides any target CPU specs.

From-SVN: r60752

22 years agoDaily bump.
GCC Administrator [Wed, 1 Jan 2003 08:16:33 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60733

22 years agoDaily bump.
GCC Administrator [Tue, 31 Dec 2002 08:16:37 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60678

22 years agoDaily bump.
GCC Administrator [Mon, 30 Dec 2002 08:16:34 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60622

22 years agoDaily bump.
GCC Administrator [Sun, 29 Dec 2002 08:17:15 +0000 (08:17 +0000)] 
Daily bump.

From-SVN: r60593

22 years agopa.h (TARGET_SOM): Define if not defined.
John David Anglin [Sat, 28 Dec 2002 23:27:08 +0000 (23:27 +0000)] 
pa.h (TARGET_SOM): Define if not defined.

2002-12-28  John David Anglin  <dave.anglin@nrc.ca>

* pa.h (TARGET_SOM): Define if not defined.
* som.h (OBJ_SOM): Rename to TARGET_SOM.
* pa.c (pa_output_function_prologue): Don't accumulate the total code
bytes in the translation unit when using gas, som and not the portable
runtime, or when using function sections.

From-SVN: r60589

22 years agoDaily bump.
GCC Administrator [Sat, 28 Dec 2002 08:16:42 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60563

22 years agoDaily bump.
GCC Administrator [Fri, 27 Dec 2002 08:16:34 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60539

22 years agore PR c++/8503 (strange behaviour of function types)
Nathan Sidwell [Thu, 26 Dec 2002 12:58:06 +0000 (12:58 +0000)] 
re PR c++/8503 (strange behaviour of function types)

cp:
PR c++/8503
Remove DR 295 implementation.
* pt.c (check_cv_quals_for_unify): Disable function & method cases.
* tree.c (cp_build_qualified_type_real): Likewise. Don't warn
about ignoring volatile qualifiers.
testsuite:
* g++.dg/template/qualttp20.C: Adjust expected errors.
* g++.old-deja/g++.jason/report.C: Likewise.
* g++.old-deja/g++.other/qual1.C: Likewise.

From-SVN: r60517

22 years agoDaily bump.
GCC Administrator [Thu, 26 Dec 2002 08:16:39 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60509

22 years agoDaily bump.
GCC Administrator [Wed, 25 Dec 2002 08:17:16 +0000 (08:17 +0000)] 
Daily bump.

From-SVN: r60495

22 years agoDaily bump.
GCC Administrator [Tue, 24 Dec 2002 08:16:45 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60468

22 years agoDaily bump.
GCC Administrator [Mon, 23 Dec 2002 08:16:44 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60426

22 years agoDaily bump.
GCC Administrator [Sun, 22 Dec 2002 08:16:54 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60400

22 years agore PR rtl-optimization/8599 (loop unroll bug with -march=k6-3)
Eric Botcazou [Sat, 21 Dec 2002 20:31:15 +0000 (21:31 +0100)] 
re PR rtl-optimization/8599 (loop unroll bug with -march=k6-3)

PR optimization/8599
* doloop.c (doloop_modify_runtime): Fix loop count computation
for preconditioned unrolled loops.

From-SVN: r60393

22 years agore PR rtl-optimization/8599 (loop unroll bug with -march=k6-3)
Eric Botcazou [Sat, 21 Dec 2002 20:25:44 +0000 (21:25 +0100)] 
re PR rtl-optimization/8599 (loop unroll bug with -march=k6-3)

PR optimization/8599
* doloop.c (doloop_modify_runtime): Revert 2002-11-22 change.
* loop.c (loop_invariant_p): Likewise.

From-SVN: r60392

22 years agoDaily bump.
GCC Administrator [Sat, 21 Dec 2002 08:16:36 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60382

22 years agoDaily bump.
GCC Administrator [Fri, 20 Dec 2002 08:16:57 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60359

22 years agore PR rtl-optimization/8988 (gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates code...
Eric Botcazou [Thu, 19 Dec 2002 20:27:56 +0000 (21:27 +0100)] 
re PR rtl-optimization/8988 (gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates code that segfaults)

PR optimization/8988
* loop.c (maybe_eliminate_biv): Kill REG_EQUAL notes mentioning
the biv when eliminating.

From-SVN: r60329

22 years agoDaily bump.
GCC Administrator [Thu, 19 Dec 2002 08:16:55 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60297

22 years agovector_capacity.cc (test03): Move ...
Kaveh R. Ghazi [Thu, 19 Dec 2002 01:49:44 +0000 (01:49 +0000)] 
vector_capacity.cc (test03): Move ...

* testsuite/23_containers/vector_capacity.cc (test03): Move ...
* testsuite/23_containers/vector_resize.cc: ...here as a new file.
Pass in -lmalloc for irix6.
* testsuite/27_io/ios_base_storage.cc: Pass in -lmalloc for irix6.

From-SVN: r60274

22 years ago* parse.y (bad_parm): Add missing argument to error function call.
Kriang Lerdsuwanakij [Wed, 18 Dec 2002 15:03:01 +0000 (15:03 +0000)] 
* parse.y (bad_parm): Add missing argument to error function call.

From-SVN: r60250

22 years agore PR c++/8442 (rejects nested template classes)
Kriang Lerdsuwanakij [Wed, 18 Dec 2002 14:58:35 +0000 (14:58 +0000)] 
re PR c++/8442 (rejects nested template classes)

PR c++/8442
* decl2.c (handle_class_head): Verify if the looked up name is a
type or template.
* pt.c (convert_template_argument): Fix type or template template
parameter decision logic.

* g++.dg/template/type2.C: New test.
* g++.dg/template/ttp3.C: Change expected error message.

From-SVN: r60249

22 years agoDaily bump.
GCC Administrator [Wed, 18 Dec 2002 08:16:53 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60240

22 years agore PR rtl-optimization/8794 (optimization improperly eliminates certain expressions)
Jakub Jelinek [Tue, 17 Dec 2002 13:52:38 +0000 (14:52 +0100)] 
re PR rtl-optimization/8794 (optimization improperly eliminates certain expressions)

PR opt/8794
* combine.c (force_to_mode) [MINUS]: Only replace with (not Y) if all
bits in fuller_mask (not just mask) are set in C.

* gcc.c-torture/execute/20021118-3.c: New test.

From-SVN: r60210

22 years agoDaily bump.
GCC Administrator [Tue, 17 Dec 2002 08:16:41 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60201

22 years agoDaily bump.
GCC Administrator [Mon, 16 Dec 2002 08:16:38 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60168

22 years agoDaily bump.
GCC Administrator [Sun, 15 Dec 2002 08:16:37 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60150

22 years agoDaily bump.
GCC Administrator [Sat, 14 Dec 2002 08:16:35 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60121

22 years agoFix test for LP64, move to gcc.c-torture/compile (per Kaveh Ghazi)
Dale Johannesen [Sat, 14 Dec 2002 00:56:36 +0000 (00:56 +0000)] 
Fix test for LP64, move to gcc.c-torture/compile (per Kaveh Ghazi)

From-SVN: r60114

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Sat, 14 Dec 2002 00:56:36 +0000 (00:56 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r60113

22 years agoparse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for anonymous structs.
Joe Buck [Sat, 14 Dec 2002 00:09:28 +0000 (00:09 +0000)] 
parse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for anonymous structs.

* parse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for
anonymous structs.

From-SVN: r60110

22 years agore PR c++/8031 (ICE in comptypes, at cp/typeck.c:913)
Gabriel Dos Reis [Fri, 13 Dec 2002 21:54:46 +0000 (21:54 +0000)] 
re PR c++/8031 (ICE in comptypes, at cp/typeck.c:913)

PR C++/8031
* cvt.c (convert_to_pointer_force): Don't try comparing against
erronous type.

From-SVN: r60105

22 years agoDaily bump.
GCC Administrator [Fri, 13 Dec 2002 08:16:30 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60092

22 years agopa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
John David Anglin [Thu, 12 Dec 2002 22:37:08 +0000 (22:37 +0000)] 
pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.

* pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
(MAX_PARM_BOUNDARY, STACK_BOUNDARY): Express in terms of
BIGGEST_ALIGNMENT.
(PREFERRED_STACK_BOUNDARY): Express in terms of STACK_BOUNDARY.
(FUNCTION_BOUNDARY): Express in terms of BITS_PER_WORD.

From-SVN: r60084

22 years ago* gcc.c-torture/compile/20021212-1.c: New test.
Eric Botcazou [Thu, 12 Dec 2002 11:21:41 +0000 (11:21 +0000)] 
* gcc.c-torture/compile/20021212-1.c: New test.

From-SVN: r60071

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Thu, 12 Dec 2002 11:21:41 +0000 (11:21 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r60070

22 years agoLink PR opt/8334 to its fix.
Eric Botcazou [Thu, 12 Dec 2002 11:12:58 +0000 (11:12 +0000)] 
Link PR opt/8334 to its fix.

From-SVN: r60069

22 years agoDaily bump.
GCC Administrator [Thu, 12 Dec 2002 08:16:30 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60062

22 years agore PR libstdc++/8887 (locale)
Paolo Carlini [Thu, 12 Dec 2002 00:30:16 +0000 (01:30 +0100)] 
re PR libstdc++/8887 (locale)

2002-12-11  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/8887
* config/locale/generic/time_members.cc
(__timepunct<char>::_M_initialize_timepunct): Fix typos
in _M_date_format and _M_date_era_format string literals.

From-SVN: r60051

22 years agoDaily bump.
GCC Administrator [Wed, 11 Dec 2002 08:16:29 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r60026

22 years agore PR c++/8372 (ICE on explicit call of destructor)
Mark Mitchell [Tue, 10 Dec 2002 22:32:42 +0000 (22:32 +0000)] 
re PR c++/8372 (ICE on explicit call of destructor)

PR c++/8372
* pt.c (tsubst_copy): Handle destructor names more correctly.

PR c++/8372
* g++.dg/template/dtor1.C: New test.

From-SVN: r60017

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Tue, 10 Dec 2002 22:32:42 +0000 (22:32 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r60016

22 years agore PR other/8882 (Error in the documentation "GNU Compiler Collection Internals")
Janis Johnson [Tue, 10 Dec 2002 21:01:54 +0000 (21:01 +0000)] 
re PR other/8882 (Error in the documentation "GNU Compiler Collection Internals")

2002-12-10  Janis Johnson  <janis187@us.ibm.com>

PR other/8882
* doc/tm.texi (PUSH_ARGS): Remove misplaced line.

From-SVN: r60012

22 years agomemconst.C: Use old-deja, not dg, error markers.
Mark Mitchell [Tue, 10 Dec 2002 14:46:32 +0000 (14:46 +0000)] 
memconst.C: Use old-deja, not dg, error markers.

* g++.old-deja/g++.ext/memconst.C: Use old-deja, not dg, error
markers.

From-SVN: r59998

22 years ago* g++.dg/parse/parameter-declaration-1.C: Expect error on last line.
Jakub Jelinek [Tue, 10 Dec 2002 11:40:26 +0000 (12:40 +0100)] 
* g++.dg/parse/parameter-declaration-1.C: Expect error on last line.

From-SVN: r59995

22 years agoDaily bump.
GCC Administrator [Tue, 10 Dec 2002 08:16:29 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r59986

22 years ago* include/bits/slice_array.h (slice_array<>::operator=): Fix typo.
Gabriel Dos Reis [Tue, 10 Dec 2002 07:39:51 +0000 (07:39 +0000)] 
* include/bits/slice_array.h (slice_array<>::operator=): Fix typo.

From-SVN: r59984

22 years agore PR c++/8153 (ICE with static const member in class)
Mark Mitchell [Tue, 10 Dec 2002 07:16:06 +0000 (07:16 +0000)] 
re PR c++/8153 (ICE with static const member in class)

PR c++/8153
PR c++/8036
* NEWS: Document removal of in-class initialization extension for
static data members of non-arithmetic, non-enumeration type.
* decl.c (check_static_variable_definition): Do not allow that
extension.
* decl2.c (grokfield): Do not call digest_init when processing
templates.

PR c++/8153
PR c++/8036
* g++.dg/template/static1.C: New test.
* g++.dg/template/static2.C: New test.
* g++.old-deja/g++.ext/memconst.C: New test.

From-SVN: r59982

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Tue, 10 Dec 2002 07:16:06 +0000 (07:16 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r59981

22 years agoi386.h (CPP_CPU_DEFAULT_SPEC): Fix typo wrt line continuation in p2 and p3 cases.
Richard Henderson [Tue, 10 Dec 2002 00:40:11 +0000 (16:40 -0800)] 
i386.h (CPP_CPU_DEFAULT_SPEC): Fix typo wrt line continuation in p2 and p3 cases.

        * config/i386/i386.h (CPP_CPU_DEFAULT_SPEC): Fix typo wrt line
        continuation in p2 and p3 cases.

From-SVN: r59973

22 years agoDaily bump.
GCC Administrator [Mon, 9 Dec 2002 08:16:32 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r59957

22 years agoconpr-2.C: Expect failure on solaris2.
Kaveh R. Ghazi [Mon, 9 Dec 2002 00:55:41 +0000 (00:55 +0000)] 
conpr-2.C: Expect failure on solaris2.

* g++.dg/special/conpr-2.C: Expect failure on solaris2.
* g++.dg/special/ecos.exp (conpr-3.C): Likewise.
* g++.dg/special/initp1.C: Likewise.

From-SVN: r59952

22 years ago* g++.dg/template/varmod1.C: Fix typo.
Mark Mitchell [Mon, 9 Dec 2002 00:54:17 +0000 (00:54 +0000)] 
* g++.dg/template/varmod1.C: Fix typo.

From-SVN: r59951

22 years agoDaily bump.
GCC Administrator [Sun, 8 Dec 2002 08:16:22 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r59931

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Sat, 7 Dec 2002 18:47:55 +0000 (18:47 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r59922

22 years agoDaily bump.
GCC Administrator [Sat, 7 Dec 2002 08:16:32 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r59906

22 years agoDaily bump.
GCC Administrator [Fri, 6 Dec 2002 08:16:36 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r59883

22 years agotree.c (unsafe_for_reeval): Consider callee child of CALL_EXPR.
Dale Johannesen [Fri, 6 Dec 2002 00:58:46 +0000 (00:58 +0000)] 
tree.c (unsafe_for_reeval): Consider callee child of CALL_EXPR.

2002-12-05  Dale Johannesen  <dalej@apple.com>

        * tree.c (unsafe_for_reeval):  Consider callee child of CALL_EXPR.

From-SVN: r59877

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Fri, 6 Dec 2002 00:58:46 +0000 (00:58 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r59876

22 years ago[multiple changes]
Benjamin Kosnik [Thu, 5 Dec 2002 23:48:57 +0000 (23:48 +0000)] 
[multiple changes]

2002-12-05  Benjamin Kosnik  <bkoz@redhat.com>

* config/linker-map.gnu: Put _S_force_new into GLIBCPP_3.2.2.
* testsuite/abi_check.cc: Add GLIBCPP_3.2.2.

2002-12-05  Benjamin Kosnik  <bkoz@redhat.com>
            Gabriel Dos Reis  <gdr@integrable-solutions.net>

PR libstdc++/8230
* include/bits/stl_alloc.h: Use builtin_expect for the most
obvious limit checks.
(__default_alloc_template::allocate): Check for null, throw
bad_alloc.
* testsuite/20_util/allocator_members.cc (test02): Add.
* testsuite/23_containers/vector_capacity.cc (test03): Add.

2002-12-05  Loren J. Rittle  <ljrittle@acm.org>
    Brad Spencer  <spencer@infointeractive.com>
    (provided alternate patch and improvements)

PR libstdc++/8708
* docs/html/23_containers/howto.html (GLIBCPP_FORCE_NEW): Document
new environment variable which replaces all uses of __USE_MALLOC
macro.
* docs/html/ext/howto.html (GLIBCPP_FORCE_NEW): Likewise.
(__mem_interface): Remove all references to old internal typedef.
* include/backward/alloc.h (__USE_MALLOC): Remove it and all
guarded code.
* include/bits/c++config (__USE_MALLOC): Update related error
message and comment.
* include/bits/stl_alloc.h (__USE_MALLOC): Remove it and all
guarded code.  Update all related comments.
(__mem_interface): Unconditionally replace it with __new_alloc.
However, leave the typedef around in case anyone used it.
(__default_alloc_template<>::_S_force_new): New class static.
(__default_alloc_template<>::allocate, deallocate): Add
run-time controlled feature similar to what __USE_MALLOC code
path had provided.
* src/stl-inst.cc (__USE_MALLOC): Remove it and all
guarded code.
* testsuite/21_strings/capacity.cc: Remove reference to __USE_MALLOC.
Add documentation on GLIBCPP_FORCE_NEW environment variable.
* testsuite/ext/allocators.cc: Likewise.

From-SVN: r59873

22 years ago* error.c (dump_expr): Fix format specifier warning.
Kaveh R. Ghazi [Thu, 5 Dec 2002 22:24:53 +0000 (22:24 +0000)] 
* error.c (dump_expr): Fix format specifier warning.

From-SVN: r59868

22 years agocygwin.h (SUBTARGET_PROLOGUE): Replace with PROFILE_HOOK.
Danny Smith [Thu, 5 Dec 2002 20:30:32 +0000 (20:30 +0000)] 
cygwin.h (SUBTARGET_PROLOGUE): Replace with PROFILE_HOOK.

* config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
PROFILE_HOOK.
* config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.

From-SVN: r59866

22 years ago(GO_IF_LEGITIMATE_ADDRESS): Check for frame pointer and arg pointer by examining...
Nick Clifton [Thu, 5 Dec 2002 18:34:11 +0000 (18:34 +0000)] 
(GO_IF_LEGITIMATE_ADDRESS): Check for frame pointer and arg pointer by examining the register number.

(GO_IF_LEGITIMATE_ADDRESS): Check for frame pointer and arg pointer by
examining the register number.  (GNATS case 6172).

From-SVN: r59863

22 years agore PR libstdc++/8790 (Use of non thread-safe strtok in src/localename.cc)
Paolo Carlini [Thu, 5 Dec 2002 13:04:43 +0000 (14:04 +0100)] 
re PR libstdc++/8790 (Use of non thread-safe strtok in src/localename.cc)

2002-12-05  Paolo Carlini  <pcarlini@unitus.it>
    Nathan Myers  <ncm@cantrip.org>

PR libstdc++/8790
* src/localename.cc
(locale::_Impl::_Impl(const char*, size_t)):
Avoid strtok for thread safety.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>
From-SVN: r59856

22 years agoDaily bump.
GCC Administrator [Thu, 5 Dec 2002 08:16:26 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r59850

22 years ago* doc/invoke.texi: Remove last reference to -a.
Matthias Klose [Wed, 4 Dec 2002 23:24:21 +0000 (23:24 +0000)] 
* doc/invoke.texi: Remove last reference to -a.

From-SVN: r59835

22 years agore PR libstdc++/7445 (poor performance of std::locale::classic() in multi-threaded...
Loren J. Rittle [Wed, 4 Dec 2002 22:24:05 +0000 (22:24 +0000)] 
re PR libstdc++/7445 (poor performance of std::locale::classic() in multi-threaded applications)

PR libstdc++/7445
* src/locale.cc (std::locale::classic()): Weaken locking protocol.

From-SVN: r59834

22 years ago* gcc.c-torture/compile/20021204-1.c: New test.
Eric Botcazou [Wed, 4 Dec 2002 20:31:43 +0000 (20:31 +0000)] 
* gcc.c-torture/compile/20021204-1.c: New test.

From-SVN: r59831

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Wed, 4 Dec 2002 20:31:43 +0000 (20:31 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r59830

22 years agore PR c/7622 (tree inliner fallout (regression relative to 2.95))
Eric Botcazou [Wed, 4 Dec 2002 20:28:33 +0000 (21:28 +0100)] 
re PR c/7622 (tree inliner fallout (regression relative to 2.95))

PR c/7622
* c-semantics (genrtl_scope_stmt): Do not output inlined
nested functions that contain no code.

From-SVN: r59829

22 years agofold-const.c (associate_trees): Only optimize NEGATE_EXPR in one of the operands...
Jakub Jelinek [Wed, 4 Dec 2002 19:28:27 +0000 (20:28 +0100)] 
fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one of the operands into MINUS_EXPR if...

* fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
of the operands into MINUS_EXPR if code is PLUS_EXPR.

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

From-SVN: r59824

22 years agore PR c++/8799 (ICE: Error reporting routines re-entered.)
Gabriel Dos Reis [Wed, 4 Dec 2002 11:37:03 +0000 (11:37 +0000)] 
re PR c++/8799 (ICE: Error reporting routines re-entered.)

        PR C++/8799
        * error.c (dump_expr): Don't ever try to dump a non-existent
        expression.

From-SVN: r59815

22 years agoDaily bump.
GCC Administrator [Wed, 4 Dec 2002 08:16:32 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r59803

22 years agostreambuf.tcc (basic_streambuf::sputbackc): Prefix "this->" to call to pbackfail.
Phil Edwards [Tue, 3 Dec 2002 16:13:03 +0000 (16:13 +0000)] 
streambuf.tcc (basic_streambuf::sputbackc): Prefix "this->" to call to pbackfail.

2002-12-03  Phil Edwards  <pme@gcc.gnu.org>

* include/bits/streambuf.tcc (basic_streambuf::sputbackc):  Prefix
"this->" to call to pbackfail.

From-SVN: r59774

22 years agoDaily bump.
GCC Administrator [Tue, 3 Dec 2002 08:16:24 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r59762

22 years agore PR c++/8615 (ICE in tree_low_cst, at tree.c:3484)
Mark Mitchell [Tue, 3 Dec 2002 06:53:11 +0000 (06:53 +0000)] 
re PR c++/8615 (ICE in tree_low_cst, at tree.c:3484)

PR c++/8615
* error.c (dump_expr): Handle character constants with
TREE_OVERFLOW set.

PR c++/8615
* g++.dg/template/char1.C: New test.

From-SVN: r59760

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Tue, 3 Dec 2002 06:53:11 +0000 (06:53 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r59759

22 years agorevert: [multiple changes]
Paolo Carlini [Mon, 2 Dec 2002 22:05:21 +0000 (22:05 +0000)] 
revert: [multiple changes]

2002-12-02  Benjamin Kosnik  <bkoz@redhat.com>
            Jonathan Lennox  <lennox@cs.columbia.edu>

* include/bits/streambuf.tcc (__copy_streambufs):
Revert previous fix for the interactive half of
libstdc++/6745, use _M_buf_size_opt to set dynamically
the correct buffer size.

2002-12-02  Jonathan Lennox  <lennox@cs.columbia.edu>

* include/bits/streambuf.tcc (__copy_streambufs): verify
__sbin->gptr() + __bufsize < __sbin->egptr() before using.
* testsuite/27_io/ostream_inserter_other.cc (test_buffer_4): Add.
(test05): Use test_buffer_4. Delete unused ostringstream
variables.

2002-12-02  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/6745 (continued)
* include/bits/streambuf.tcc (__copy_streambufs):
Deal with interactive input by using isatty as in the
fix for libstdc++/8399.

2002-12-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

* src/ios.cc [_GLIBCPP_HAVE_UNISTD_H]: Include unistd.h.

2002-12-02  Paolo Carlini  <pcarlini@unitus.it>
            Loren J. Rittle <ljrittle@acm.org>

PR libstdc++/8399
* acinclude.m4
(GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): New macro to
check for unistd.h functions.
(GLIBCPP_CHECK_UNISTD_SUPPORT): New macro, check for isatty
in unistd.h.
* configure.in: Call here.
* src/ios.cc (ios_base::Init::_S_ios_create(bool)):
Use _GLIBCPP_HAVE_ISATTY: ifdef, in case of interactive
input __in_size = 1 even when sync_with_stdio is false;
otherwise fall back to __in_size = 1.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.

From-SVN: r59744

22 years agoxtensa.c (xtensa_emit_call): Use a static buffer.
Bob Wilson [Mon, 2 Dec 2002 21:30:12 +0000 (21:30 +0000)] 
xtensa.c (xtensa_emit_call): Use a static buffer.

        * config/xtensa/xtensa.c (xtensa_emit_call): Use a static buffer.
        * config/xtensa/xtensa.h (MAX_WCHAR_TYPE_SIZE): Delete.

From-SVN: r59742

22 years agoacconfig.h (HAVE_DRAND48): Add.
Benjamin Kosnik [Mon, 2 Dec 2002 21:20:07 +0000 (21:20 +0000)] 
acconfig.h (HAVE_DRAND48): Add.

2002-12-02  Benjamin Kosnik  <bkoz@redhat.com>

* acconfig.h (HAVE_DRAND48): Add.
(HAVE_GETPAGESIZE): Add.
(HAVE_SETENV): Add.
(HAVE_SIGSETJMP): Add.
* config.h.in: Regenerate.
* configure: Regenerate.

From-SVN: r59739

22 years agore PR libstdc++/8230 (Buggy allocator behaviour)
Benjamin Kosnik [Mon, 2 Dec 2002 20:01:54 +0000 (20:01 +0000)] 
re PR libstdc++/8230 (Buggy allocator behaviour)

2002-12-02  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/8230
        * include/bits/stl_vector.h (vector::reserve): Throw length_error if
        requested size is bigger than max_size().
        * include/bits/stl_bvector.h (vector<bool>::reserve): Same.
        * testsuite/23_containers/vector_capacity.cc (test02): Add.

From-SVN: r59734

22 years agoconfigure.in (libtool_VERSION): Update to 5:2:0.
Benjamin Kosnik [Mon, 2 Dec 2002 18:03:38 +0000 (18:03 +0000)] 
configure.in (libtool_VERSION): Update to 5:2:0.

2002-12-02  Benjamin Kosnik  <bkoz@redhat.com>

* configure.in (libtool_VERSION): Update to 5:2:0.
* configure: Regenerate.

From-SVN: r59721

22 years agoDaily bump.
GCC Administrator [Mon, 2 Dec 2002 08:16:29 +0000 (08:16 +0000)] 
Daily bump.

From-SVN: r59708

22 years agore PR c++/5919 (ICE when passing variable array to template function)
Mark Mitchell [Sun, 1 Dec 2002 20:52:55 +0000 (20:52 +0000)] 
re PR c++/5919 (ICE when passing variable array to template function)

PR c++/5919
* g++.dg/template/varmod1.C: New test.

PR c++/5919
* pt.c (unify): Use variably_modified_type_p to test validity of
template argument types.

From-SVN: r59700

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Sun, 1 Dec 2002 20:52:55 +0000 (20:52 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r59699

22 years agore PR c++/8727 (compiler confused by inheritance from an anonymous struct)
Mark Mitchell [Sun, 1 Dec 2002 20:40:38 +0000 (20:40 +0000)] 
re PR c++/8727 (compiler confused by inheritance from an anonymous struct)

PR c++/8727
* g++.dg/inherit/typeinfo1.C: New test.

PR c++/8663
* g++.dg/inherit/typedef1.C: New test.

PR c++/8727
* cp-tree.h (lang_type_class): Add typeinfo_var.
(CLASSTYPE_TYPEINFO_VAR): New macro.
* rtti.c (get_tinfo_decl): Use it.

PR c++/8663
* init.c (expand_member_init): Always get the main variant of a
base class.

From-SVN: r59697

22 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Sun, 1 Dec 2002 20:40:38 +0000 (20:40 +0000)] 
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.

From-SVN: r59696

22 years agore PR c++/8332 (strlen/template interaction causes ICE)
Mark Mitchell [Sun, 1 Dec 2002 18:19:14 +0000 (18:19 +0000)] 
re PR c++/8332 (strlen/template interaction causes ICE)

PR c++/8332
PR c++/8493
* decl.c (cxx_init_decl_processing): Use size_type_node, not
c_size_type_node.
* decl2.c (coerce_new_type): Likewise.
* except.c (do_allocate_exception): Likewise.
* typeck.c (c_sizeof): Likewise.
(c_sizeof_nowarn): Likewise.

* builtin-types.def (BT_SIZE): Use size_type_node.
* builtins.c (fold_builtin): Make the builtin strlen returns a
size_t, not a sizetype.
* c-common.c (c_alignof): Use size_type_node, not c_size_type_node.
(c_alignof_expr): Likewise.
(c_common_nodes_and_builtins): Likewise.
* c-common.h (CTI_C_SIZE_TYPE): Remove.
(c_size_type_node): Likewise.
* c-format.c (T_ST): Use size_type_node, not c_size_type_node.
* tree.h (TI_SIZE_TYPE): New enumeral.
(size_type_node): Likewise.

PR c++/8332
PR c++/8493
* g++.dg/template/strlen1.C: New test.

From-SVN: r59692