VirtualBox

Ignore:
Timestamp:
Oct 18, 2007 11:38:09 AM (17 years ago)
Author:
vboxsync
Message:

Avoid using rbp for any global register variable as it seems to cause trouble for gcc 3.4.3 on solaris.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/dyngen-exec.h

    r2422 r5372  
    104104#endif
    105105#ifdef __x86_64__
     106#ifdef VBOX
     107/* gcc 3.4.3 on 64-bit Solaris screws up when using rbp, it
     108   seems so at least. (Setting AREG4 to "r15" causes compiler
     109   error btw, so don't try it.)  */
     110# define AREG0 "rbx"
     111# define AREG1 "r12"
     112# define AREG2 "r13"
     113# define AREG3 "r14"
     114#else
    106115#define AREG0 "rbp"
    107116#define AREG1 "rbx"
    108117#define AREG2 "r12"
    109118#define AREG3 "r13"
     119#endif
    110120//#define AREG4 "r14"
    111121//#define AREG5 "r15"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette