aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1994-09-23 20:11:00 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1994-09-23 20:11:00 +0000
commite1a8c3947f0e640d5c14d50e05d701c993f50e4d (patch)
tree9e1592ef73b292379f5ed8191ab69740faea2c0d
parentbb4034b3224982145f0cd751c89dfa9d93f7c39d (diff)
downloadgcc-e1a8c3947f0e640d5c14d50e05d701c993f50e4d.zip
gcc-e1a8c3947f0e640d5c14d50e05d701c993f50e4d.tar.gz
gcc-e1a8c3947f0e640d5c14d50e05d701c993f50e4d.tar.bz2
Make ebx a call clobbered register.
From-SVN: r8125
-rw-r--r--gcc/config/i386/lynx-ng.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/i386/lynx-ng.h b/gcc/config/i386/lynx-ng.h
index 51977d0..cb96b44 100644
--- a/gcc/config/i386/lynx-ng.h
+++ b/gcc/config/i386/lynx-ng.h
@@ -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 }