[Bug lto/41526] gimple bytecode streams are not portable between different hosts

dnovillo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 30 20:17:00 GMT 2009



------- Comment #2 from dnovillo at gcc dot gnu dot org  2009-09-30 20:17 -------
More portability concerns from

http://gcc.gnu.org/ml/gcc-patches/2009-09/msg02157.html

> +/* This needs to be included after config.h.  Otherwise, _GNU_SOURCE will not
> +   be defined in time to set __USE_GNU in the system headers, and strsignal
> +   will not be declared.  */
> +#include <sys/mman.h>

mmap and <sys/mman.h> are also not portable to all supported hosts (e.g. 
MinGW).  There should be configure tests and a suitable fallback.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41526



More information about the Gcc-bugs mailing list