This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Success with MinGW and AVR and LTO - almost


I think "rb" is nop. However, O_BINARY is less portable.

There is another way. If MinGW hosted build is linked with binmode.o - the default for files become binary
Some other methods are here:


http://oldwiki.mingw.org/index.php/binary




Rafael Espindola wrote:
I hacked fopen/open calls in  lto.c and lto-elf.c to use O_BINARY and "rb"
and compilation with -flto was then successful!

I am not sure how this should be fixed properly.

Using O_BINARY and "rb" should be a nop on unix, no? Is it wrong to use them on any arch we care about?

Andy

Cheers,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]