This is the mail archive of the gcc@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: RegRegname vs. Explicit Local Register Variables ...


At 22:05 -0400 23-05-2002, Craig Newell wrote:
>I am using explicit register variables to place arguments and return
>values in the correct registers for system calls.  eg.

I had a similar problem (with trying to use CMPXCHG which uses %eax 
as a hard register)

the solution was to make the variables "volatile register"

(didn't know it was even allowed, but it works ;)

  - xmath


Matthijs van Duin     (NOTE: PGP key has changed!)
- PGP Key: 0x2D6F0BA7
- FP: 205D F7BA FFAD 9070 AB9E  C5A8 BDB0 CA1B 2D6F 0BA7 -


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