]>
git.ipfire.org Git - thirdparty/gcc.git/log
Benjamin Kosnik [Tue, 5 Nov 2002 00:51:35 +0000 (00:51 +0000)]
[multiple changes]
2002-11-04 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu: Export string operator+.
Export __default_alloc_template::_S_force_new.
* testsuite/abi_check.cc: Output tweaks.
2002-11-04 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/8172
* src/string-inst.cc: Add instantiation.
2002-11-04 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
PR libstdc++/8197
* config/link-map.gnu: Export math stubbs.
2002-11-04 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/8318
* include/std/std_iostream.h: Tweak.
* include/std/std_iosfwd.h: Add _GLIBCPP_USE_WCHAR_T.
* include/std/std_iomanip.h: Same.
* include/bits/stringfwd.h: Same.
* include/bits/basic_string.tcc: Same.
* include/bits/sstream.tcc: Same.
* include/bits/fstream.tcc: Same.
* include/bits/basic_ios.tcc: Same.
* include/bits/streambuf.tcc: Same.
* include/bits/locale_facets.tcc: Same.
From-SVN: r58805
Paolo Carlini [Tue, 5 Nov 2002 00:09:32 +0000 (01:09 +0100)]
MAINTAINERS (Write After Approval): Remove myself.
2002-11-05 Paolo Carlini <pcarlini@unitus.it>
* MAINTAINERS (Write After Approval): Remove myself.
(Various Maintainers: c++ runtime libs): Add myself.
From-SVN: r58803
Aldy Hernandez [Mon, 4 Nov 2002 18:39:45 +0000 (18:39 +0000)]
backport: re PR other/8451 (altivec ice in gcc 3.2)
2002-11-04 Aldy Hernandez <aldyh@redhat.com>
Backport patch to fix PR c/8451.
2002-04-25 Richard Henderson <rth@redhat.com>
* expmed.c (extract_bit_field): Fall through to generic code rather
than aborting on subreg special case.
From-SVN: r58796
GCC Administrator [Mon, 4 Nov 2002 08:16:24 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r58788
Roger Sayle [Sun, 3 Nov 2002 23:45:49 +0000 (23:45 +0000)]
getopt.h: Avoid prototyping getopt with no arguments in C++.
* getopt.h: Avoid prototyping getopt with no arguments in C++.
Co-Authored-By: DJ Delorie <dj@redhat.com>
From-SVN: r58775
GCC Administrator [Sun, 3 Nov 2002 08:16:23 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r58767
Zack Weinberg [Sat, 2 Nov 2002 10:28:50 +0000 (10:28 +0000)]
PR c/7353 redux
PR c/7353 redux
cp:
* decl2.c (grokfield): Reject TYPE_DECLs with initializers.
testsuite:
* g++.dg/ext/typedef-init.C, gcc.dg/typedef-init.C:
Add some more cases.
From-SVN: r58747
GCC Administrator [Sat, 2 Nov 2002 08:16:24 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r58741
Mark Mitchell [Sat, 2 Nov 2002 00:57:26 +0000 (00:57 +0000)]
re PR c++/8391 (infinite loop in cp/decl2.c(finish_file))
PR c++/8391
* toplev.c (rest_of_compilation): Do not refuse to output code for
an inline function in a local class.
PR c++/8391
* g++.dg/opt/local1.C: New test.
From-SVN: r58733
David O'Brien [Fri, 1 Nov 2002 22:21:31 +0000 (22:21 +0000)]
freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
2002-11-01 David O'Brien <obrien@FreeBSD.org>
* config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
Add comment.
Approved by: Mark Mitchell <mark@codesourcery.com>
Message-ID: <
15490000 .
1036182355 @warlock.codesourcery.com>
From-SVN: r58731
David O'Brien [Fri, 1 Nov 2002 19:48:06 +0000 (19:48 +0000)]
freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define __enable_execute_stack function.
2002-11-01 David O'Brien <obrien@FreeBSD.org>
* config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
__enable_execute_stack function.
Approved by: Mark Mitchell <mark@codesourcery.com>
Message-ID: <
79240000 .
1036086868 @warlock.codesourcery.com>
From-SVN: r58726
Benjamin Kosnik [Fri, 1 Nov 2002 16:27:30 +0000 (16:27 +0000)]
re PR libstdc++/8348 (fail() flag is set in istringstream when eof() flag is set !)
2002-11-01 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/8348
* include/bits/istream.tcc (istream::tellg): Remove sentry bits.
(istream::seekg): Same.
* testsuite/27_io/istream_seeks.cc (test06): New.
From-SVN: r58719
John Carter [Fri, 1 Nov 2002 15:25:27 +0000 (15:25 +0000)]
re PR libstdc++/7961 (compare( char *) implemented incorrectly.)
2002-11-01 John Carter <john.carter@tait.co.nz>
PR libstdc++/7961
* include/bits/basic_string.tcc
(compare(const _CharT* __s)): Don't access __s past its length.
From-SVN: r58718
Richard Earnshaw [Fri, 1 Nov 2002 14:40:23 +0000 (14:40 +0000)]
re PR target/7856 ([arm] invalid offset in constant pool reference)
PR target/7856
* arm.c (use_return_insn): Don't use a return insn if there are
saved integer regs, but LR is not one of them.
From-SVN: r58715
Gabriel Dos Reis [Fri, 1 Nov 2002 13:12:24 +0000 (13:12 +0000)]
re PR c++/2521 (ICE in build_ptrmemfunc, at cp/typeck.c:6087)
PR C++/2521
* typeck.c (build_x_unary_op): Handle pointer-to-member.
From-SVN: r58714
GCC Administrator [Fri, 1 Nov 2002 08:16:23 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r58707
Hans-Peter Nilsson [Fri, 1 Nov 2002 04:59:13 +0000 (04:59 +0000)]
re PR other/3337 (build on linux-gnulibc1 fails: no sys/ucontext.h)
PR other/3337
PR bootstrap/6763
PR bootstrap/8122
* testsuite/testsuite_hooks.h (__set_testsuite_memlimit): Use
__typeof__ (r.rlim_cur), not rlim_t in declaration of limit.
From-SVN: r58702
Hans-Peter Nilsson [Fri, 1 Nov 2002 04:54:04 +0000 (04:54 +0000)]
testsuite_hooks.h (__set_testsuite_memlimit): Use __typeof__ (r.rlim_cur), not rlim_t in declaration of limit.
* testsuite/testsuite_hooks.h (__set_testsuite_memlimit): Use
__typeof__ (r.rlim_cur), not rlim_t in declaration of limit.
From-SVN: r58701
Jan Hubicka [Thu, 31 Oct 2002 18:39:32 +0000 (19:39 +0100)]
i386.c (override_options): Set defaults for flag_omit_frame_pointer...
* i386.c (override_options): Set defaults for flag_omit_frame_pointer,
flag_asynchronous_unwind_tables, flag_pcc_struct_return.
* i386.c (optimization_options): Set flag_omit_frame_pointer,
flag_asynchronous_unwind_tables, flag_pcc_struct_return to 2.
Do not clear -momit-leaf-frame-pointer when profiling.
(ix86_frame_pointer_required): Frame pointer is allways required when
profiling.
From-SVN: r58685
GCC Administrator [Thu, 31 Oct 2002 08:16:25 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r58669
Mark Mitchell [Thu, 31 Oct 2002 00:02:35 +0000 (00:02 +0000)]
re PR c++/8160 (ICE in build_modify_expr, at cp/typeck.c:5494: Array initialization)
PR c++/8160
* g++.dg/template/complit1.C: New test.
PR c++/8149
* g++.dg/template/typename4.C: Likewise.
PR c++/8160
* typeck2.c (process_init_constructor): Call complete_array_type.
PR c++/8149
* decl.c (make_typename_type): Issue errors about invalid results.
From-SVN: r58662
Mark Mitchell [Wed, 30 Oct 2002 19:20:18 +0000 (19:20 +0000)]
re PR c++/8333 (c++ emits double .globals for symbols [ regression from 3.0.4 ])
PR c++/8333
* varasm.c (asm_output_aligned_bss): Do not call
ASM_GLOBALIZE_LABEL.
From-SVN: r58657
GCC Administrator [Wed, 30 Oct 2002 08:16:24 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r58648
Mark Mitchell [Tue, 29 Oct 2002 23:51:12 +0000 (23:51 +0000)]
re PR c++/8287 (GCC3.2: Destructor called for non-constructed local object)
PR c++/8287
* decl.c (finish_destructor_body): Create the label to jump to
when returning from a destructor here.
(finish_function_body): Rather than here.
* g++.dg/init/dtor2.C: New test.
From-SVN: r58642
Mark Mitchell [Tue, 29 Oct 2002 21:12:36 +0000 (21:12 +0000)]
re PR c++/7363 (bogus __alignof__ implementation)
PR c++/7363
* semantics.c (finish_alignof): Call complete_type before calling
c_alignof.
* decl2.c (build_expr_from_tree): Use
finish_sizeof/finish_alignof.
* g++.dg/template/alignof1.C: New test.
From-SVN: r58634
Janis Johnson [Tue, 29 Oct 2002 16:35:04 +0000 (16:35 +0000)]
invoke.texi (-profile-arcs): Remove references to -a and -ax.
2002-10-29 Janis Johnson <janis187@us.ibm.com>
* doc/invoke.texi (-profile-arcs): Remove references to -a and -ax.
From-SVN: r58626
Eric Botcazou [Tue, 29 Oct 2002 14:17:33 +0000 (15:17 +0100)]
expr.c (expand_expr): Don't use simplify_binary_operation; check for zero operands explicitly.
* expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
check for zero operands explicitly.
From-SVN: r58622
GCC Administrator [Tue, 29 Oct 2002 08:16:29 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r58615
Paolo Carlini [Tue, 29 Oct 2002 08:08:40 +0000 (09:08 +0100)]
re PR libstdc++/8347 (empty vector range used in string construction causes core dump.)
2002-10-29 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/8347
* include/bits/basic_string.tcc
(string::_S_construct(_InIter, _InIter, const _Alloc&,
forward_iterator_tag)): Do not throw logic error if
__beg == NULL && __end == __beg.
(string::string(const _CharT*, const _Alloc&)): Tweak.
* testsuite/21_strings/ctor_copy_dtor.cc: Add test05 from PR.
From-SVN: r58610
Andris Pavenis [Mon, 28 Oct 2002 21:53:38 +0000 (23:53 +0200)]
re PR fortran/8308 (gcc-3.x does not compile files with suffix .r (RATFOR))
2002-10-28 Andris Pavenis <pavenis@latnet.lv>
Toon Moene <toon@moene.indiv.nluug.nl>
PR fortran/8308
* lang-specs.h: Correct ratfor specs.
* news.texi: Document this fix.
Co-Authored-By: Toon Moene <toon@moene.indiv.nluug.nl>
From-SVN: r58605
Dale Johannesen [Mon, 28 Oct 2002 20:39:53 +0000 (20:39 +0000)]
re PR target/7133 (PPC: unrecognizable insn)
2002-10-21 Dale Johannesen <dalej@apple.com>
PR target/7133
* config/rs6000/rs6000.c (rs6000_reverse_condition): Handle
unsafe math reversals correctly for RTL generation.
(output_cbranch): Replace rs6000_reverse_condition call
by its former definition.
From-SVN: r58604
Kaveh Ghazi [Mon, 28 Oct 2002 18:17:22 +0000 (18:17 +0000)]
20021014 -1.c: Bypass errors on solaris2 and irix6.
* gcc.dg/
20021014 -1.c: Bypass errors on solaris2 and irix6.
* gcc.dg/
20021014 -1.c: Use dg-error, not dg-build.
* gcc.dg/
20021014 -1.c: Expect build failure on mmix-*-*.
From-SVN: r58601
GCC Administrator [Mon, 28 Oct 2002 08:16:27 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r58590
Jan Hubicka [Sun, 27 Oct 2002 09:28:12 +0000 (10:28 +0100)]
re PR target/6890 (xmmintrin.h, _MM_TRANSPOSE4_PS is broken)
PR target/6890
* xmmintrin.h (_MM_TRANSPOSE4_PS): New.
From-SVN: r58581
Jan Hubicka [Sun, 27 Oct 2002 09:24:50 +0000 (10:24 +0100)]
* linux64.h (DEFAULT_PCC_STRUCT_RETURN): Define.
From-SVN: r58580
GCC Administrator [Sun, 27 Oct 2002 07:16:26 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58572
GCC Administrator [Sat, 26 Oct 2002 07:16:33 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58557
Jim Wilson [Fri, 25 Oct 2002 22:38:05 +0000 (22:38 +0000)]
Fix C++ FE problem with attribute alias.
* decl.c (duplicate_decls): Don't call decl_attributes.
From-SVN: r58544
Zack Weinberg [Fri, 25 Oct 2002 22:11:19 +0000 (22:11 +0000)]
re PR c++/6994 (ICE in find_function_data)
PR middle-end/6994
* c-objc-common.c (inline_forbidden_p): Can not inline
functions containing structures or unions containing VLAs.
* tree-inline.c (walk_tree): For all class 't' nodes, walk
TYPE_SIZE and TYPE_SIZE_UNIT. #undef WALK_SUBTREE_TAIL at end.
(copy_tree_r): Copy types if they are variably modified.
* hooks.c (hook_tree_bool_false): New.
* hooks.h: Prototype it.
* langhooks.h (struct lang_hooks_for_tree_inlining): Add
var_mod_type_p.
* langhooks-def.h: Default for tree_inlining.var_mod_type_p is
hook_tree_bool_false.
* tree.c (variably_modified_type_p): Moved here from
cp/tree.c. Use lang_hooks.tree_inlining.var_mod_type_p for
language-specific cases. Due to this, must weaken some 'if
and only if' checks to merely 'if'.
* tree.h: Prototype variably_modified_type_p.
cp:
* cp-lang.c (cp_var_mod_type_p): New: C++ hook for
variably_modified_type_p.
* cp-tree.h: Remove prototype of variably_modified_type_p.
* tree.c (variably_modified_type_p): Remove; now implemented
in language-independent code.
PR c++/7266
* decl.c (grokdeclarator): Check that TREE_OPERAND 0 of a
SCOPE_REF is not null before dereferencing it.
testsuite:
* g++.dg/ext/vla1.C, gcc.dg/vla-2.c,
g++.dg/template/typename3.C: New tests.
From-SVN: r58542
No Author [Fri, 25 Oct 2002 22:11:19 +0000 (22:11 +0000)]
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.
From-SVN: r58541
David Edelsohn [Fri, 25 Oct 2002 15:32:46 +0000 (11:32 -0400)]
- Fix typo in last change.
From-SVN: r58534
David Edelsohn [Fri, 25 Oct 2002 15:20:30 +0000 (15:20 +0000)]
re PR c++/7228 (ICE when using member template and template function)
PR c++/7228
* cp-tree.h (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Check that
lang_type structure exists before accessing field.
(SET_CLASSTYPE_READONLY_FIELDS_NEED_INIT): New macro.
(CLASSTYPE_REF_FIELDS_NEED_INIT): Similar.
(SET_CLASSTYPE_REF_FIELDS_NEED_INIT): New macro.
* class.c (check_field_decls): Use new macros.
* typeck2.c (process_init_constructor): Remove redundant check for
existence of lang_type structure.
From-SVN: r58533
GCC Administrator [Fri, 25 Oct 2002 07:17:04 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r58523
Mark Mitchell [Thu, 24 Oct 2002 23:43:47 +0000 (23:43 +0000)]
class.c (check_field_decls): Fix typo.
* class.c (check_field_decls): Fix typo.
[[Split portion of a mixed commit.]]
From-SVN: r58516.1
Tom Tromey [Thu, 24 Oct 2002 21:11:22 +0000 (21:11 +0000)]
Primes.java: Removed.
* libjava.lang/Primes.java: Removed.
* libjava.lang/Primes.out: Removed.
From-SVN: r58506
Jakub Jelinek [Thu, 24 Oct 2002 17:11:56 +0000 (19:11 +0200)]
re PR target/6981 (wrong code in 64-bit manipulation on x86)
* config/i386/i386.md (subdi3_1): Add call to ix86_binary_operator_ok.
PR target/6981
* config/i386/i386.md (adddi3_1): Add call to ix86_binary_operator_ok.
* gcc.c-torture/execute/
20021024 -1.c: New test.
From-SVN: r58497
Richard Henderson [Thu, 24 Oct 2002 08:59:50 +0000 (01:59 -0700)]
re PR rtl-optimization/7944 (gcc 3.2: Internal compiler error in find_reloads_toplev, at reload.c:4462)
PR opt/7944
* reload.c (find_reloads_toplev): Use simplify_gen_subreg; mode
of X is not important when simplifying subregs of constants.
* g++.dg/opt/reload1.C: New.
From-SVN: r58489
GCC Administrator [Thu, 24 Oct 2002 07:16:32 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58482
Mark Mitchell [Thu, 24 Oct 2002 00:03:16 +0000 (00:03 +0000)]
re PR c++/8067 (g++ 3.2 internal error: Segmentation fault)
PR c++/8067
* decl.c (maybe_inject_for_scope_var): Ignore __FUNCTION__ and
related variables.
PR c++/8067
* g++.dg/lookup/pretty1.C: New test.
From-SVN: r58479
No Author [Thu, 24 Oct 2002 00:03:16 +0000 (00:03 +0000)]
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.
From-SVN: r58478
Mark Mitchell [Wed, 23 Oct 2002 21:56:55 +0000 (21:56 +0000)]
re PR c++/7679 (The compiler crashes wen a right parentesis is missing)
PR c++/7679
* spew.c (next_token): Do not return an endless stream of
END_OF_SAVED_INPUT tokens.
(snarf_method): Add three END_OF_SAVED_INPUT tokens to the end of
the cached token stream.
(snarf_defarg): Likewise.
PR c++/7679
* g++.dg/parse/inline1.C: New test.
From-SVN: r58473
No Author [Wed, 23 Oct 2002 21:56:55 +0000 (21:56 +0000)]
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.
From-SVN: r58472
Robert Lipe [Wed, 23 Oct 2002 17:28:29 +0000 (17:28 +0000)]
config.gcc (i[34567]86-*-sco3.2v5*): Fix tm_file.
2002-10-23 Robert Lipe <robertlipe@usa.net>
* config.gcc (i[34567]86-*-sco3.2v5*): Fix tm_file.
From-SVN: r58461
Jakub Jelinek [Wed, 23 Oct 2002 15:47:17 +0000 (17:47 +0200)]
num_put_members_char.cc (test01): Swap size and decimal_point arguments of find.
* testsuite/22_locale/num_put_members_char.cc (test01): Swap size
and decimal_point arguments of find.
* testsuite/22_locale/num_put_members_wchar_t.cc (test01): Likewise.
From-SVN: r58455
Roger Sayle [Wed, 23 Oct 2002 13:38:28 +0000 (13:38 +0000)]
re PR c/761 (Undocumented options, part 1)
PR c/761
* doc/invoke.texi: Fix some overfull hboxes in "make dvi".
Document --version, -fno-sched-interblock, -fno-sched-spec,
-fsched-spec-load, -fsched-spec-load-dangerous,
-fsched-verbose=n, -fno-branch-count-reg and -fbounds-check.
From-SVN: r58451
Ulrich Weigand [Wed, 23 Oct 2002 10:46:00 +0000 (10:46 +0000)]
s390.md ("*movdi_64"): Fix op_type attribute.
* config/s390/s390.md ("*movdi_64"): Fix op_type attribute.
("*movdf_64"): Likewise.
("*lshrdi3_64"): Likewise.
From-SVN: r58449
GCC Administrator [Wed, 23 Oct 2002 07:16:25 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58437
Mark Mitchell [Wed, 23 Oct 2002 00:31:20 +0000 (00:31 +0000)]
spew.c (snarf_parenthesized_expression): New function.
* spew.c (snarf_parenthesized_expression): New function.
(snarf_block): Use it.
* g++.dg/parse/stmtexpr3.C: New test.
From-SVN: r58430
No Author [Wed, 23 Oct 2002 00:31:20 +0000 (00:31 +0000)]
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.
From-SVN: r58429
Jakub Jelinek [Tue, 22 Oct 2002 21:50:47 +0000 (23:50 +0200)]
Makefile.am (check-abi, [...]): Use @glibcpp_srcdir@ instead of ${top_srcdir}.
* Makefile.am (check-abi, new-abi-baseline): Use @glibcpp_srcdir@
instead of ${top_srcdir}.
* Makefile.in: Rebuilt.
From-SVN: r58419
No Author [Tue, 22 Oct 2002 09:06:46 +0000 (09:06 +0000)]
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.
From-SVN: r58407
Nathan Sidwell [Tue, 22 Oct 2002 09:06:19 +0000 (09:06 +0000)]
re PR c++/7209 (Faulty array dereferencing)
PR c++/7209
* fold_const.c (fold_binary_op_with_conditional_arg): Always
build compound_expr if we used save_expr.
testsuite:
* g++.dg/expr: New directory.
* g++.dg/expr/cond1.C: New test.
From-SVN: r58406
GCC Administrator [Tue, 22 Oct 2002 07:16:28 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58399
Phil Edwards [Mon, 21 Oct 2002 19:35:41 +0000 (19:35 +0000)]
configure.in: Use target, not target_alias, when matching triplet patterns.
2002-10-21 Phil Edwards <pme@gcc.gnu.org>
* configure.in: Use target, not target_alias, when matching triplet
patterns.
* configure: Regenerate.
From-SVN: r58378
Zack Weinberg [Mon, 21 Oct 2002 19:06:16 +0000 (19:06 +0000)]
920923-1.c: Prevent spurious regressions with bison 1.50 or later.
* gcc.dg/noncompile/920923-1.c: Prevent spurious regressions with
bison 1.50 or later.
From-SVN: r58375
Matthias Klose [Mon, 21 Oct 2002 18:40:12 +0000 (18:40 +0000)]
[multiple changes]
2002-10-21 Matthias Klose <doko@debian.org>
* Backport, without whitespace change:
2002-06-10 Akim Demaille <akim@epita.fr>
* parse.y (interface_type_list, class_member_declaration)
(unary_expression_not_plus_minus): Remove duplicate %type.
Whitespace changes.
2002-06-13 Akim Demaille <akim@epita.fr>
* parse.y (class_declaration, interface_declaration): Make sure
all their rules have an action, in order to avoid meaningless `$$
= $1' and their type clashes.
* parse.y (catch_clause): Terminate with `;'.
From-SVN: r58373
Matthias Klose [Mon, 21 Oct 2002 18:38:39 +0000 (18:38 +0000)]
[multiple changes]
2002-10-21 Matthias Klose <doko@debian.org>
* Backport, without whitespace change:
2002-06-19 Akim Demaille <akim@epita.fr>
* parse.y (TYPENAME): Rename as tTYPENAME to avoid the clash with
decl.h's TYPENAME.
* spew.c, lex.c: Adjust.
* parse.y (explicit_instantiation): Add empty action to override
the default $$ = $1 where it introduces a type clash.
From-SVN: r58372
Matthias Klose [Mon, 21 Oct 2002 18:37:41 +0000 (18:37 +0000)]
[multiple changes]
2002-10-21 Matthias Klose <doko@debian.org>
* Backport, without whitespace change:
2002-06-19 Akim Demaille <akim@epita.fr>
* c-parse.in (initelt: identifier ':' initval): Add an empty
action to fix a type clash.
(aliasdecl, classdef): Add the missing closing `;'.
From-SVN: r58371
Mark Mitchell [Mon, 21 Oct 2002 09:29:12 +0000 (09:29 +0000)]
re PR c++/8218 (Excessively large amount of memory used with classes with large array members)
PR c++/8218
* cp-tree.h (lang_type_class): Add contains_empty_class_p.
(CLASSTYPE_CONTAINS_EMPTY_CLASS_P): New macro.
* class.c (check_bases): Update CLASSTYPE_CONTAINS_EMPTY_CLASS_P.
(check_field_decls): Likewise.
(layout_class_type): Likewise.
(finish_struct_1): Initialize it.
(walk_subobject_offsets): Use it to prune searches.
From-SVN: r58357
GCC Administrator [Mon, 21 Oct 2002 07:16:36 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58350
GCC Administrator [Sun, 20 Oct 2002 07:16:27 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58326
Jan Hubicka [Sat, 19 Oct 2002 17:20:57 +0000 (17:20 +0000)]
mmintrin.h (__m64): typedef it to v2si.
* mmintrin.h (__m64): typedef it to v2si.
(_mm_cvtsi32_si64, _mm_cvtsi32_si64_mm_sll_pi16,
_mm_sll_pi32, _mm_sll_pi64, _mm_slli_pi64, _mm_sra_pi16,
_mm_sra_pi32, _mm_srl_pi16, _mm_srl_pi32, _mm_srl_pi64,
_mm_srli_pi64, _mm_and_si64, _mm_andnot_si64,
_mm_or_si64, _mm_xor_si64): Add neccesary casts.
* xmmintrin.h (_mm_setzero_si64): Likewise.
From-SVN: r58317
Jan Hubicka [Sat, 19 Oct 2002 13:51:34 +0000 (15:51 +0200)]
re PR target/7693 (Typo in i386 mmintrin.h header)
* mmintrin.h (__m64): typedef it to v2si.
(_mm_cvtsi32_si64, _mm_cvtsi32_si64_mm_sll_pi16,
_mm_sll_pi32, _mm_sll_pi64, _mm_slli_pi64, _mm_sra_pi16,
_mm_sra_pi32, _mm_srl_pi16, _mm_srl_pi32, _mm_srl_pi64,
_mm_srli_pi64, _mm_and_si64, _mm_andnot_si64,
_mm_or_si64, _mm_xor_si64): Add neccesary casts.
* xmmintrin.h (_mm_setzero_si64): Likewise.
PR target/7693
Patch by Shawn Wagner
* mmintrin.h: Replace pi64 by si64.
From-SVN: r58308
GCC Administrator [Sat, 19 Oct 2002 07:16:27 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58301
Zack Weinberg [Sat, 19 Oct 2002 03:17:43 +0000 (03:17 +0000)]
re PR c/7353 (Compiler dies on known working code (as of gcc 3.0))
PR c/7353
* c-decl.c, cp/decl.c (start_decl): Point users of the old initialized-
typedef extension at __typeof__.
From-SVN: r58298
Nathan Sidwell [Fri, 18 Oct 2002 08:17:57 +0000 (08:17 +0000)]
re PR c++/7676 (Member template function overloading problem)
cp:
PR c++/7676
* class.c (add_method): Compare template parms too.
testsuite:
* g++.dg/overload/member2.C: New test.
From-SVN: r58281
No Author [Fri, 18 Oct 2002 08:17:57 +0000 (08:17 +0000)]
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.
From-SVN: r58280
Mark Mitchell [Fri, 18 Oct 2002 08:11:44 +0000 (08:11 +0000)]
mangle.c (globals): Add entity and need_abi_warning.
* mangle.c (globals): Add entity and need_abi_warning.
(write_prefix): Likewise.
(write_template_prefix): Likewise.
(start_mangling): Add entity parameter.
(finish_mangling): Warn about names whose mangling will change.
(mangle_decl_string): Adjust.
(mangle_type_string): Likewise.
(mangle_special_for_type): Likewise.
(mangle_ctor_vtbl_for_type): Likewise.
(mangle_thunk): Likewise.
(mangle_guard_variable): Likewise.
(mangle_ref_init_variable): Likewise.
* g++.dg/abi/mangle11.C: New test.
* g++.dg/abi/mangle14.C: New test.
* g++.dg/abi/mangle17.C: New test.
From-SVN: r58279
GCC Administrator [Fri, 18 Oct 2002 07:16:28 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58272
Mark Mitchell [Thu, 17 Oct 2002 22:37:49 +0000 (22:37 +0000)]
re PR c++/7584 (Erroneous ambiguous base error on using declaration)
PR c++/7584
* class.c (handle_using_decl): Allow the declaration used to be
from an ambiguous base.
PR c++/7584
* g++.dg/inherit/using3.C: New test.
From-SVN: r58264
No Author [Thu, 17 Oct 2002 22:37:49 +0000 (22:37 +0000)]
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.
From-SVN: r58263
Jan Hubicka [Thu, 17 Oct 2002 17:17:51 +0000 (19:17 +0200)]
re PR c++/6419 (ICE in make_decl_rtl for "longest" c++ attribute)
PR c++/6419
* expr.c (expand_expr): Use DECL_RTL_SET_P.
From-SVN: r58254
Jan Hubicka [Thu, 17 Oct 2002 16:52:27 +0000 (18:52 +0200)]
re PR rtl-optimization/7630 (gcc 3.2 breaks on Mozilla 1.0's JS sources with -march=pentium4)
PR opt/7630
* reload.c (reload_inner_reg_of_subreg): New argument output;
(push_reload): Update call.
From-SVN: r58250
GCC Administrator [Thu, 17 Oct 2002 07:16:25 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58240
Benjamin Kosnik [Thu, 17 Oct 2002 02:04:18 +0000 (02:04 +0000)]
[multiple changes]
2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h (__timepunct::__timepunct): Allocate
_M_name_timepunct.
(__timepunct::~__timepunct): Deallocate, remove specialization
declarations.
(messages::messages): Allocate _M_name_messages.
(messages::~messages): Deallocate.
(messages_byname): Same.
* config/locale/gnu/time_members.cc (__timepunct::~__timepunct):
Remove.
* config/locale/generic/time_members.cc (__timepunct::~__timepunct):
Remove.
* docs/html/install.html: Add eqs_MX, en_PH to required locales list.
2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
* src/globals.cc (__gnu_cxx::c_locale_impl_compat): Add, alias to
c_locale_impl.
* testsuite/abi_check.cc (line_to_symbol_info): Collect size info.
* docs/html/abi.txt: Update.
2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/static_members.cc (test02): Less provincial.
2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/static_members.cc (test02): Disable for
systems without named locale support.
* testsuite/22_locale/ctor_copy_dtor.cc (test04): Don't assume
running the testsuites in "C" environment.
Add new tests.
* docs/html/22_locale/locale.html: Update.
2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/abi_check.cc (hash<string>): Specialize.
Simplify. Check compatible symbol versions.
* config/linker-map.gnu: Clarify, explicitly export
std::codecvt::c* symbols.
* testsuite/22_locale/static_members.cc (test02): Avoid null strings.
2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/static_members.cc (test02): Fix.
2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
* acconfig.h (_GLIBCPP_SYMVER): Add.
(_GLIBCPP_ASM_SYMVER): Add.
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Define _GLIBCPP_SYMVER.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/bits/c++config (_GLIBCPP_AT_AT): Define, as an expedient
hack around m4 issues with quoting '@'.
* src/locale.cc: Use _GLIBCPP_ASM_SYMVER.
* src/globals.cc (__gnu_cxx): Same.
* testsuite/22_locale/ctor_copy_dtor.cc (test04): Fix for
2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu (GLIBCPP_3.2.1): Add.
(GLIBCPP_3.2): Don't export locale::_S_*.
* src/ios.cc: Move globals into __gnu_cxx. Make old exported
symbols match.
* src/locale.cc: Same.
* src/localename.cc: Same.
2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
* src/locale.cc: Fix comments, move ctors together.
* testsuite/22_locale/static_members.cc (test03): Add.
2002-10-16 Paolo Carlini <pcarlini@unitus.it>
Benjamin Kosnik <bkoz@redhat.com>
* include/bits/localefwd.h (class locale): Add static member
_S_num_extra_categories, encoding the number of additional
categories.
Change _S_num_categories to _S_categories_size.
(class locale::_Impl): Add _M_c_cats.
(class locale::_Impl::_M_names): Change to array of chars.
(class locale::_Impl::_M_check_same_name): Use
_S_extra_categories_size, tweak.
(locale::locale(const locale&, _Facet*)): Ditto.
* src/locale.cc (locale::locale(const char* )): Rewrite to deal
with the environment in a POSIX-compliant way while being thread
safe.
(locale::name()): Update to output POSIX environment strings.
* src/localename.cc
(locale::_Impl::_Impl(const _Impl&, size_t): Use
_S_categories_size_*, tweak.
(locale::_Impl::_Impl(facet**, size_t, bool)): Ditto.
(locale::_Impl::_Impl(const char*, size_t)): Name each category
individually.
(locale::_Impl::_M_replace_categories): Use strcpy.
* include/bits/locale_facets.h (numpunct::_M_initialize_numpunct):
Change default argument to NULL from _S_c_locale.
(timepunct::_M_initialize_timepunct): Same.
_S_c_locale cleanups.
* src/codecvt.c: _S_c_locale simplification.
* src/ctype.c: Same.
* src/globals.cc: Add fake_name.
* src/locale-inst.cc: Remove extra includes.
* src/locale.cc: Remove extra includes.
Add _S_extra_categories_size definition.
Correct "C" initialization.
(locale::facet::facet): Don't initialize _S_c_locale.
(locale::facet::_M_remove_reference): Adjust.
* src/localename: Use facet_vec, facet_name.
(locale::_Impl::_Impl(facet** __f, size_t __refs, bool)): Set
facet ref counts to one. Initialize _S_c_locale.
(locale::_Impl::_M_install_facet(id*, facet*)): Adjust facet ref
counts when installing unilaterally.
* config/locale/generic/c_locale.cc: Add _S_categories definition.
* config/locale/generic/c_locale.h: Add _GLIBCPP_NUM_CATEGORIES macro.
* config/locale/generic/time_members.cc: _S_c_locale cleanup.
* config/locale/gnu/c_locale.cc: Add _S_categories definition.
(_S_destroy_c_locale): Move checks against _S_c_locale here.
* config/locale/gnu/c_locale.h: Add _GLIBCPP_NUM_CATEGORIES macro.
* config/locale/gnu/ctype_members.cc: Simplify _S_destroy_c_locale
calls, _S_c_locale usage.
* config/locale/gnu/monetary_members.cc: Same, tweaks.
* config/locale/gnu/monetary_members.cc: Same.
* config/locale/gnu/time_members.cc: Same.
* config/os/gnu-linux/ctype_noninline.h: Use locale::classic().
* docs/html/22_locale/locale.html: Add bits about global locales
and "C" setlocale.
* testsuite/22_locale/facet.cc (test02): Add.
* testsuite/22_locale/static_members.cc (test02): Add.
* testsuite/22_locale/ctor_copy_dtor.cc (test04): Add.
From-SVN: r58233
Mark Mitchell [Thu, 17 Oct 2002 00:15:39 +0000 (00:15 +0000)]
re PR c++/7478 (internal compiler error on static_cast inside template)
PR c++/7478
* cvt.c (convert_to_reference): Allow references as the incoming
type.
PR c++/7478
* g++.dg/template/ref1.C: New test.
From-SVN: r58229
Mark Mitchell [Wed, 16 Oct 2002 19:36:29 +0000 (19:36 +0000)]
re PR c++/8134 (ICE in force_store_init_value on legal code)
PR c++/8134.
* tree.c (zero_init_p): Always return 1.
PR c++/8134
* g++.dg/init/pm1.C: XFAIL it.
From-SVN: r58220
Mark Mitchell [Wed, 16 Oct 2002 18:53:29 +0000 (18:53 +0000)]
re PR c++/7524 ([Regression from GCC 2.95.3] f(const float arg[3]) fails)
PR c++/7524
* method.c (do_build_assign_ref): Use cp_build_qualified_type, not
build_qualified_type.
PR c++/7524
* g++.dg/init/array7.C: New test.
From-SVN: r58216
J"orn Rennecke [Wed, 16 Oct 2002 18:15:54 +0000 (18:15 +0000)]
calls.c (expand_call): Take current_function_pretend_args_size into account when...
* calls.c (expand_call): Take current_function_pretend_args_size
into account when setting argblock for sibcalls.
From-SVN: r58211
Jan Hubicka [Wed, 16 Oct 2002 17:45:27 +0000 (19:45 +0200)]
re PR target/7396 (ix86: cmpgt_ss, cmpge_ss, cmpngt_ss, and cmpnge_ss SSE intriniscs are broken)
PR target/7396
* i386.c (builtin_description):Drop cmpg[te]s[sd].
* xmmintrin.h (__mm_cmpg[te]_s[sd]): Rewrite using
swapped alternative.
From-SVN: r58210
GCC Administrator [Wed, 16 Oct 2002 07:16:26 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58190
Jakub Jelinek [Tue, 15 Oct 2002 22:10:00 +0000 (00:10 +0200)]
* fold-const.c (fold): Fix a typo.
From-SVN: r58181
Ulrich Weigand [Tue, 15 Oct 2002 18:38:25 +0000 (18:38 +0000)]
re PR target/7370 (ICE in fixup_var_refs_1 on s390x)
PR target/7370
* gcc.c-torture/compile/
20021015 -1.c: New test.
PR target/8232
* gcc.c-torture/compile/
20021015 -2.c: New test.
From-SVN: r58174
Ulrich Weigand [Tue, 15 Oct 2002 18:34:36 +0000 (18:34 +0000)]
re PR target/7370 (ICE in fixup_var_refs_1 on s390x)
PR target/7370
* config/s390/s390.md ("*addsi3_inv"): New pattern.
PR target/8232
* config/s390/s390.md ("cmpstrsi"): Convert length operand
from SImode to Pmode.
From-SVN: r58171
Janis Johnson [Tue, 15 Oct 2002 16:16:58 +0000 (16:16 +0000)]
install.texi: Formatting changes for conformance to HTML 4.01.
2002-10-15 Janis Johnson <janis187@us.ibm.com>
* doc/install.texi: Formatting changes for conformance to HTML 4.01.
From-SVN: r58167
Ulrich Weigand [Tue, 15 Oct 2002 14:45:48 +0000 (14:45 +0000)]
* gcc.c-torture/execute/
20021015 -1.c: New test.
From-SVN: r58162
No Author [Tue, 15 Oct 2002 14:45:48 +0000 (14:45 +0000)]
This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'.
From-SVN: r58161
Ulrich Weigand [Tue, 15 Oct 2002 14:42:52 +0000 (14:42 +0000)]
re PR rtl-optimization/7409 (loop optimization)
PR opt/7409
* loop.c (loop_regs_scan): Mark registers used for function
argument passing as MAY_NOT_OPTIMIZE.
From-SVN: r58160
GCC Administrator [Tue, 15 Oct 2002 07:16:23 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r58151
Neil Booth [Mon, 14 Oct 2002 21:55:26 +0000 (21:55 +0000)]
re PR preprocessor/7862 (Interrupting gcc -MD removes .d file but not .o)
2002-10-14 Neil Booth <neil@daikokuya.co.uk>
PR preprocessor/7862
PR preprocessor/8190
* gcc.c (cpp_unique_options): Don't delete .d files.
Remove stray whitespace.
From-SVN: r58140