makecontext and its arguments

Ulrich Drepper drepper@redhat.com
Tue Aug 6 01:24:00 GMT 2002


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

Andreas Schwab wrote:

> This is the crux of the problem.  makecontext talks about "integer
> arguments", and __int128 is an integer type.  So it is obliged to handle
> this.

This is a completely bogus argument.  Every platform could define 
int1024_t or whatever.  These don't count.  At the time the interface 
was introduced only char, short, int, and long were available.  Nothing 
else can be expected to work.  The method described earlier works 
perfectly for this and the proposed attribute has the potential to help 
many more applications which would suffer from this broken calling 
convention.


> This is not what the specification says.

It says so implicitly.  Whatever is not explicitly specified is 
implicitly left undefined.  And undefined means garbage is allowed.  And 
this is what happens on most platforms.

- -- 
- ---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9T4e22ijCOnn/RHQRAgk6AKCQPwBE1K2tCx9xNYEcVwEV0Jef5QCfT3yp
6q/Bh4sdpvuR/9G7NhjjN6k=
=m6IN
-----END PGP SIGNATURE-----



More information about the Libc-hacker mailing list