This sort of thing should be implemented entirely within sysdeps files for the relevant architecture, not in architecture-independent code. I'm pretty sure the relevant mechanisms already exist. -- Joseph S. Myers joseph@codesourcery.com