Announcement

Collapse
No announcement yet.

Linux Kernel Working Towards GNU11/C11 Compatibility

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linux Kernel Working Towards GNU11/C11 Compatibility

    Phoronix: Linux Kernel Working Towards GNU11/C11 Compatibility

    For now it looks like the Linux kernel is going to explicitly declare itself as using the GNU89 dialect of the C89 standard but over time the code is being made to compile under C11...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Doesn't the kernel rely on non-standard GCC behavior like VLAIS? Does using -std=gnu89 not force the strict standard, but with these non-standard compiler extensions as well?

    Comment


    • #3
      Originally posted by mufasa72 View Post
      Doesn't the kernel rely on non-standard GCC behavior like VLAIS? Does using -std=gnu89 not force the strict standard, but with these non-standard compiler extensions as well?
      I think you have to add -pedantic to have warnings about non-standard extensions.
      The gcc program accepts options and file names as operands. Many options have multi-letter names; therefore multiple single-letter options may not be grouped: -dv is very different from -d -v.

      Comment


      • #4
        Originally posted by Creak View Post
        I think you have to add -pedantic to have warnings about non-standard extensions.
        http://linux.die.net/man/1/gcc
        The entire point of there being --std=c89 and --std=gnu89 is that latter does not enforce standards-compatibility

        Comment

        Working...
        X