This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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: [patch] Resubmission in an attempt to get someones attention


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~


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