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] | |
Is LTO really the only place gcc needs binary access to files for build of cross compiler?
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |