]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
invoke.texi (-Wsynth): Don't document, as it now is void of semantics.
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Mon, 4 Apr 2005 05:45:48 +0000 (05:45 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Mon, 4 Apr 2005 05:45:48 +0000 (05:45 +0000)
        * 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

gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.jason/warning9.C

index 4d795d52d6f640eacb32f221a57457c0f2c4879b..a77937b1b31e4667ee2de767d7015a79c21ca25b 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+        
+        PR c++/18644
+        * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
+        semantics. 
+       
 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
 
        PR target/20611
index 9a94a61d11160ce3e1cf446ec2177e0002ec9c0d..843a07b8233876c101eb0098ad4e88b4e021cea0 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       PR c++/18644
+       * call.c (build_new_op): Remove check for -Wsynth.
+
 2005-03-21  Paolo Carlini  <pcarlini@suse.de>
 
        PR c++/20147
index ee464533bc6616e71a81a1f84098ecc55570eb4f..968bd45fc268d12015e27a3aa87402399cef2a14 100644 (file)
@@ -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);
     }
 
index 0122d081b03ae2e6ba20c0fc236141700d6201a2..a7a69d7c13dd1aa2ab43fc80bcfa2200f35679c3 100644 (file)
@@ -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 ();
index bf9b4f8cd57a5c232d47cbe87dfd8762e7d848f2..e85012d7d582fad4af636756ec59a7e38bf7259d 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+        
+       PR c++/18644
+       * g++.old-deja/g++.jason/warning9.C (struct A, main): Adjust.
+
 2005-03-22  Uros Bizjak  <uros@kss-loka.si>
 
        PR target/14981
index 9423ac1269b6960a285781bc35993243b279c990..775a37ca33da5795b48c7bcb94b1e9ce23a940f4 100644 (file)
@@ -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;
 }