Bug#914688: g++: fails to understand BOOST_OS_LINUX on ppc64el?
control: severity -1 serious
I reduced to a simple test case that involves no boost at all, and only a macro.
cat test.cpp
this code shows on ppc64el:
$ g++ test.cpp -std=c++14 -c
NO OUTPUT (wrong)
$ g++ test.cpp -c
test.cpp:2:2: warning: #warning defined linux [-Wcpp]
#warning defined linux
^~~~~~~
test.cpp:6:2: warning: #warning defined __linux [-Wcpp]
#warning defined __linux
^~~~~~~
good output.
Is is a clear test case now?
on amd64 both are returning correct, at least __linux is still defined.
$ g++ test.cpp -c -std=c++14
test.cpp:6:2: warning: #warning defined __linux [-Wcpp]
#warning defined __linux
^~~~~~~
$ g++ test.cpp -c
test.cpp:2:2: warning: #warning defined linux [-Wcpp]
#warning defined linux
^~~~~~~
test.cpp:6:2: warning: #warning defined __linux [-Wcpp]
#warning defined __linux
^~~~~~~
I hope this makes the issue a little bit more clear!
G.
Reply to: