g77's use of assert and x-compilation

Mumit Khan khan@xraylith.wisc.edu
Wed Jul 22 11:12:00 GMT 1998


On Wed, 22 Jul 1998, Ian Lance Taylor wrote:

>    I build for two other
>    win32 targets, mingw32 and uwin, that don't use newlib and incidentally
>    don't have __eprintf tucked away somewhere else. 
> 
> Purely out of curiousity, do these targets have no supplied library
> code at all?

Not sure I understand the question. Both targets come with C runtime that 
the cross-compiler uses to build target executables; for mingw32 it's one
of Microsoft's runtime, and for i386-uwin, it's the posix runtime from
AT&T.

Both do use a "support" library (libmingw32 or some variation thereof), 
so I could always put __eprintf there. I assume this is the library that 
you're hinting at.

> In some sense the right thing to do is to run some autoconf tests
> using the target compiler to see what is available.  Of course, that
> can not be done until the target compiler is built.  That is an
> extension of your suggestion of checking whether stdio.h is available;
> how do you plan to write that check?

Now, now. Don't put me on the spot here! I realized the problem after I
sent off the note, and now I can't figure how to cleanly check for stdio.h 
*after* the cross-compiler is built, but *before* building libgcc.a.

For now, I'm just going to stick __eprintf in support library and let
someone else figure out how to do it right ...

Mumit




More information about the Gcc mailing list