Fix for atyfb and gcc 2.95

Daniel Jacobowitz drow at false.org
Sat Jun 19 08:59:52 EST 1999


After a frustrating day playing with yet more of gcc's uglier and
insufficiently-documented internals, I've found the problem with atyfb. 
By chance and/or better register usage, r0 came up as the base register
passed to aty_ld_le32; gcc currently has no way to detect this sort of
mis-specified constraint on user assembly.  r0 is a valid register for
an "r" constraint, but the proper constraint is actually "b" for base. 
This explicitly disallows the use of r0, so egcs will shuffle around
the registers to do the right thing.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan at debian.org         |  |       dmj+ at andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]





More information about the Linuxppc-dev mailing list