This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Resubmission in an attempt to get someones attention
- From: Richard Henderson <rth at redhat dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Steve Ellcey <sje at cup dot hp dot com>, janis187 at us dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Date: Thu, 6 Dec 2001 16:39:42 -0800
- Subject: Re: [patch] Resubmission in an attempt to get someones attention
- References: <200112062116.NAA20686@hpsje.cup.hp.com> <orlmgfsxwr.fsf@free.redhat.lsd.ic.unicamp.br>
On Thu, Dec 06, 2001 at 09:59:16PM -0200, Alexandre Oliva wrote:
> How about having a caller and/or a callee defined in inline assembly
> to test for ABI conformance?
You don't quite have to go that far. Easiest is to do stuff like
void target(struct badness s) { /* validate s has expected contents */ }
int main ()
{
void (*f) (unsigned long) = (void *) target;
(*f) (0x123456789abcdef0);
}
So you're pretty sure that known bits wound up in known registers.
r~