diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 152d8e603ea..e7263548c2b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-03-31 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 d2328387385..b63906cb694 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-03-31 Gabriel Dos Reis + + PR c++/18644 + * call.c (build_new_op): Remove check for -Wsynth. + 2005-03-31 Jan Hubicka * decl2.c (finish_objects): Mark ctor as needed. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 5737e4fc0a1..131e175631e 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -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 (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 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index c750c995677..2f8c7ac3d43 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 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. -@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 ();