-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 12/13/2006 9:16 PM:
> Oh, and POSIX also states that 'return sigsetjmp' gives undefined
> behavior.  There are strict limits on the expressions that may validly
> contain the use of sigsetjmp.  The implementation of AG_LINK_SIGSETJMP in
> ag_macros.m4 is really broken.
> 

For that matter, a quick grep of autogen's use of sigsetjmp exposed some bugs:

./agen5/autogen.c:        int signo = sigsetjmp( abendJumpEnv, 0 );
./agen5/expPrint.c:        int  faultType  = sigsetjmp( printJumpEnv, 0 );
./agen5/expPrint.c:            if (sigsetjmp( printJumpEnv, 0 ) == 0)

Of those, only the third is correct.  POSIX is explicit that using the
result of sigsetjmp in an assignment expression is not defined, but that
comparison of the result to a constant integer as the entire expression of
a control statement is allowed.

- --
Life is short - so eat dessert first!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFgNVD84KuGfSFAYARAkPSAJ4m/A+b8G/P7UCmTAFhVQup9XoT4wCfRhQK
2l8VrszUhn9eBX3x1aAzSmM=
=FIUZ
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to