[Bug preprocessor/69473] system identification macros not documented

2016-01-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69473 --- Comment #7 from joseph at codesourcery dot com --- On Tue, 26 Jan 2016, vincent-gcc at vinc17 dot net wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69473 > > --- Comment #5 from Vincent Lefèvre --- > (In reply to jos...@codesourcer

[Bug preprocessor/69473] system identification macros not documented

2016-01-25 Thread vincent-gcc at vinc17 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69473 --- Comment #6 from Vincent Lefèvre --- (In reply to Vincent Lefèvre from comment #5) > As said in bug 28314 (resolved as wontfix), __linux is not defined on > Linux/PowerPC in C99 mode (-std=c99). Just in case this isn't clear (because bug 2831

[Bug preprocessor/69473] system identification macros not documented

2016-01-25 Thread vincent-gcc at vinc17 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69473 --- Comment #5 from Vincent Lefèvre --- (In reply to jos...@codesourcery.com from comment #4) > __linux__ and __linux should always be defined for systems with the Linux > kernel (plain linux only in non-ISO modes); As said in bug 28314 (resolv

[Bug preprocessor/69473] system identification macros not documented

2016-01-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69473 --- Comment #4 from joseph at codesourcery dot com --- __linux__ and __linux should always be defined for systems with the Linux kernel (plain linux only in non-ISO modes); __gnu_linux__ for systems with the Linux kernel and glibc (the nearest

[Bug preprocessor/69473] system identification macros not documented

2016-01-25 Thread vincent-gcc at vinc17 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69473 --- Comment #3 from Vincent Lefèvre --- Well, the versions with two underscores at the beginning and two underscores at the end seem to always be present, if this is what is intended. However even that is not completely clear. For GNU/Linux, one

[Bug preprocessor/69473] system identification macros not documented

2016-01-25 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69473 --- Comment #2 from Martin Sebor --- The purpose of macros like __linux__ or __linux is to enable users to write code that's portable to different versions or distributions of the same OS without necessarily testing it on them all, or even having