From: Gabriel Dos Reis Date: Mon, 4 Apr 2005 05:45:48 +0000 (+0000) Subject: invoke.texi (-Wsynth): Don't document, as it now is void of semantics. X-Git-Tag: releases/gcc-3.4.4~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=725c05dcc7a0355f2e33366d7d36a547da1d7d63;p=thirdparty%2Fgcc.git invoke.texi (-Wsynth): Don't document, as it now is void of semantics. * doc/invoke.texi (-Wsynth): Don't document, as it now is void of semantics. cp/ * call.c (build_new_op): Remove check for -Wsynth. testsuite/ * g++.old-deja/g++.jason/warning9.C (struct A, main): Adjust. From-SVN: r97523 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4d795d52d6f6..a77937b1b31e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-03-25 Gabriel Dos Reis + + PR c++/18644 + * doc/invoke.texi (-Wsynth): Don't document, as it now is void of + semantics. + 2005-03-31 Alan Modra PR target/20611 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 9a94a61d1116..843a07b82338 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-04-03 Gabriel Dos Reis + + PR c++/18644 + * call.c (build_new_op): Remove check for -Wsynth. + 2005-03-21 Paolo Carlini PR c++/20147 diff --git a/gcc/cp/call.c b/gcc/cp/call.c index ee464533bc66..968bd45fc268 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -3562,20 +3562,6 @@ build_new_op (enum tree_code code, int flags, tree arg1, tree arg2, tree arg3, if (overloaded_p) *overloaded_p = true; - if (warn_synth - && fnname == ansi_assopname (NOP_EXPR) - && DECL_ARTIFICIAL (cand->fn) - && candidates->next - && ! candidates->next->next) - { - warning ("using synthesized `%#D' for copy assignment", - cand->fn); - cp_warning_at (" where cfront would use `%#D'", - cand == candidates - ? candidates->next->fn - : candidates->fn); - } - return build_over_call (cand, LOOKUP_NORMAL); } diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 0122d081b03a..a7a69d7c13dd 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -188,7 +188,7 @@ in the following sections. -Weffc++ -Wno-deprecated @gol -Wno-non-template-friend -Wold-style-cast @gol -Woverloaded-virtual -Wno-pmf-conversions @gol --Wsign-promo -Wsynth} +-Wsign-promo} @item Objective-C Language Options @xref{Objective-C Dialect Options,,Options Controlling Objective-C Dialect}. @@ -1704,13 +1704,6 @@ enumerated type to a signed type, over a conversion to an unsigned type of the same size. Previous versions of G++ would try to preserve unsignedness, but the standard mandates the current behavior. -@item -Wsynth @r{(C++ only)} -@opindex Wsynth -@cindex warning for synthesized methods -@cindex synthesized methods, warning -Warn when G++'s synthesis behavior does not match that of cfront. For -instance: - @smallexample struct A @{ operator int (); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bf9b4f8cd57a..e85012d7d582 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-04-03 Gabriel Dos Reis + + PR c++/18644 + * g++.old-deja/g++.jason/warning9.C (struct A, main): Adjust. + 2005-03-22 Uros Bizjak PR target/14981 diff --git a/gcc/testsuite/g++.old-deja/g++.jason/warning9.C b/gcc/testsuite/g++.old-deja/g++.jason/warning9.C index 9423ac1269b6..775a37ca33da 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/warning9.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/warning9.C @@ -3,12 +3,13 @@ struct A { operator int (); - A& operator= (int); // { dg-warning "" } not used below + A& operator= (int); }; +int main() { A a, b; - a = b; // { dg-warning "" } uses synthesized op= + a = b; }