Path: utzoo!utgpu!water!watmath!uunet!bu-cs!bloom-beacon!tut.cis.ohio-state.edu!WHEATIES.AI.MIT.EDU!randy
From: randy@WHEATIES.AI.MIT.EDU
Newsgroups: gnu.gcc
Subject: Re: -mswitch - any plans?
Message-ID: <8809292121.AA13029@hobbes.ai.mit.edu>
Date: 29 Sep 88 07:21:40 GMT
References: <22976@tut.cis.ohio-state.edu>
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 23


    This would be fairly easy to do, seeing as -fswitch (under sun):

	1) Compiles code as with -msoft_float.

	2) Links with a different crt1.o file.

	3) That's it.

  The new crt1.o file forces library calls to be switched based on
  checks done at startup time.  It would be easy to get gcc to do the
  above; I just haven't done it.  If somebody else wants to look into
  it, well, it probably wouldn't take up too much of your time to
  implement.  If nobody else does, I'll probably do it one of these
  years (however, I'm afraid this translates to: don't hold your
  breath).

						-- Randy
						(Programmer, Freesoft)
						randy@wheaties.ai.mit.edu

    P.S.  Followups directly to me or to bug-gcc if they are of a
  technical nature; I don't want to bore the info-gcc list.