Make ebx a call clobbered register.
authorMichael Meissner <meissner@gcc.gnu.org>
Fri, 23 Sep 1994 20:11:00 +0000 (20:11 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 23 Sep 1994 20:11:00 +0000 (20:11 +0000)
From-SVN: r8125

gcc/config/i386/lynx-ng.h

index 51977d078cd022aa4b1cec1530db610614474cba..cb96b44bb6518ef8c4226e4106070ef2cd004326 100644 (file)
@@ -28,3 +28,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #undef LINK_SPEC
 #define LINK_SPEC "-P1000 %{msystem-v:-V} %{mcoff:-k}"
 
+/* Apparently LynxOS clobbers ebx when you call into the OS.  */
+
+#undef CALL_USED_REGISTERS
+#define CALL_USED_REGISTERS \
+/*ax,dx,cx,bx,si,di,bp,sp,st,st1,st2,st3,st4,st5,st6,st7,arg*/ \
+{  1, 1, 1, 1, 0, 0, 0, 1, 1,  1,  1,  1,  1,  1,  1,  1,  1 }