OSDN Git Service

doc/
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Mar 2005 14:21:14 +0000 (14:21 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Mar 2005 14:21:14 +0000 (14:21 +0000)
        PR c++/18644
        * doc/invoke.texi (-Wsynth): Don't document, as it now is void
of
        semantics.

cp/
        PR c++/18644
        * call.c (build_new_op): Remove check for -Wsynth.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97318 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/doc/invoke.texi

index 152d8e6..e726354 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-31  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
 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
 
        PR target/20611
index d232838..b63906c 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       PR c++/18644
+       * call.c (build_new_op): Remove check for -Wsynth.
+
 2005-03-31  Jan Hubicka  <jh@suse.cz>
 
        * decl2.c (finish_objects): Mark ctor as needed.
 2005-03-31  Jan Hubicka  <jh@suse.cz>
 
        * decl2.c (finish_objects): Mark ctor as needed.
index 5737e4f..131e175 100644 (file)
@@ -3750,20 +3750,6 @@ build_new_op (enum tree_code code, int flags, tree arg1, tree arg2, tree arg3,
          if (overloaded_p)
            *overloaded_p = true;
 
          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 %q#D for copy assignment",
-                         cand->fn);
-             cp_warning_at ("  where cfront would use %q#D",
-                            cand == candidates
-                            ? candidates->next->fn
-                            : candidates->fn);
-           }
-
          result = build_over_call (cand, LOOKUP_NORMAL);
        }
       else
          result = build_over_call (cand, LOOKUP_NORMAL);
        }
       else
index c750c99..2f8c7ac 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
 -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 and Objective-C++ Language Options
 @xref{Objective-C and Objective-C++ Dialect Options,,Options Controlling
 
 @item Objective-C and Objective-C++ Language Options
 @xref{Objective-C and Objective-C++ Dialect Options,,Options Controlling
@@ -1794,13 +1794,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.
 
 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 ();
 @smallexample
 struct A @{
   operator int ();