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: Patch to purify some functions.


>>>>> "grahams" == grahams  <grahams@rcp.co.uk> writes:

    grahams> Mark

    grahams> Would it not be possible for the compiler to check that
    grahams> functions marked as pure are indeed pure.

In some cases, this would be possible.  But, as Andi notes, it's hard
in the general case -- sufficiently much so that any warning would
probably have a lot of false positives.  We don't yet have a good
framework for doing this kind of thing.

--
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]