This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Warning about unreachable code.


>>>>> "Geoff" == Geoff Keating <geoffk@ozemail.com.au> writes:

    >> Date: Tue, 17 Aug 1999 23:57:44 -0700 From: Richard Henderson
    >> <rth@cygnus.com> Cc: law@cygnus.com, egcs-patches@gcc.gnu.org
    >> 
    >> On Sat, Aug 14, 1999 at 02:56:54AM +1000, Geoff Keating wrote:
    >> > This patch implements warnings about unreachable code.  It is
    >> > moderately useful, and would be more so if 'if (0) { foo }'
    >> was > folded out during RTL generation rather than in cse or
    >> flow (this > would probably be a small speed win, too).

BTW, this folding out is on my to-do list in C++, once the
function-at-a-time processing is completed.  I expect that in
template-heavy code like STL where lots of use is made of `traits'
classes this may be a noticeable win.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]