This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: makecontext and its arguments


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


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