Success with MinGW and AVR and LTO - almost

Andrew Hutchinson andrewhutchinson@cox.net
Sun Jan 10 20:28:00 GMT 2010



Kai Tietz wrote:
>
> Well, on linux (libc) fopen/freopen/etc the "b" is an nop (but
> handled). For O_BINARY the common approach here is to do the following
> condifition before use:
>
> #ifndef O_BINARY
> #define O_BINARY 0
> #endif
>
> This is a pattern pretty often used. To rely here on binmode.o is a
> way, too, but it is the most ugly one, too. It affects any file open,
> which isn't necessarily wanted.
>
> Cheers,
> Kai
>
>   
Is LTO really the only place gcc needs  binary access to files for build 
of cross compiler?

Andy




More information about the Gcc mailing list