This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] named return values and return without valuewarnings
>>>>> "Richard" == Richard Henderson <rth@cygnus.com> writes:
Richard> I agree that that is a nice thing to have, but the bits I
Richard> deleted were using can_reach_end, which implies rtl. So
Richard> I'm a bit confused by your statement.
Could be I have no clue. :-)
>> So, I'm not sure where to go from here.
Richard> I dunno. We could do nothing, but then we'd have no fall
Richard> off the end of the function warning by default, which is
Richard> I think a mistake. That one's serious (and common)
Richard> enough that I think we ought not require -Wall or whatnot
Richard> for detection.
I agree. What does the C front-end do? Do we set some warning flag
differently?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com