[Bug 1349907] Re: gcc, powerpc with C++11 standard does not define __linux

Dimitri John Ledkov launchpad at surgut.co.uk
Tue Jul 29 15:34:47 UTC 2014


Use __linux__, as per https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28314

** Bug watch added: GCC Bugzilla #28314
   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28314

** Changed in: gcc-4.9 (Ubuntu)
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.9 in Ubuntu.
https://bugs.launchpad.net/bugs/1349907

Title:
  gcc, powerpc with C++11 standard does not define __linux

Status in “gcc-4.9” package in Ubuntu:
  Won't Fix

Bug description:
  Envoking:
  $ g++-4.9 -std=c++0x -dM -E - < /dev/null | grep linux

  On amd64 shows:
  #define __linux 1
  #define __linux__ 1
  #define __gnu_linux__ 1
  #define linux 1

  
  On powerpc shows:
  #define __linux__ 1
  #define __gnu_linux__ 1

  Looks like "linux" and "__linux" defines are missing.

  Dropping "-std=c++0x" on powerpc, makes it show all 4 linux defines.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1349907/+subscriptions



More information about the foundations-bugs mailing list