[RFC][patch] trans-mem: mark transaction begins as returns-twice
Torvald Riegel
triegel@redhat.com
Tue Jan 3 19:20:00 GMT 2012
On Mon, 2012-01-02 at 19:10 +0100, Torvald Riegel wrote:
> - Do we potentially get unnecessary warnings (if vars are live across
> a transaction begin)? I didn't get such warnings in the STAMP app
> that wasn't working though. Does anyone has suggestions for a test
> case?
Attached is a test that raises a warning. This requires g++ and
-Wclobbered (-Wall is not sufficient), so it might still be okay until
we have a proper solution.
Interestingly (at least to me), I wasn't able to construct a test on my
own (see main2() for my attempts...), but had to web-search for one (see
main()). Is the warning actually supposed to always trigger? We only
seem to have a test for a case where there should be _no_ warning.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: saverestore4.c
Type: text/x-csrc
Size: 552 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120103/525e5f41/attachment.bin>
More information about the Gcc-patches
mailing list