Ticket #8300: alpha-unaligned.patch

File alpha-unaligned.patch, 628 bytes (added by SF/mellum, 21 years ago)
  • configure

    RCS file: /cvsroot/scummvm/scummvm/configure,v
    retrieving revision 1.49
    diff -u -p -r1.49 configure
    cat > $TMPC << EOF  
    429429int main(int argc, char **argv)
    430430{
    431431        unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
     432        /* Alpha doesn't crash on unaligned accesses, but they incur a
     433           very high cost.  */
     434#ifdef __alpha__
     435        return 1;
     436#endif
    432437        signal(SIGBUS, exit);
    433438        signal(SIGABRT, exit);
    434439        signal(SIGSEGV, exit);