1. 02 Jan, 2009 2 commits
    • Linus Torvalds's avatar
      Disallow gcc versions 4.1.{0,1} · f9d14250
      Linus Torvalds authored
      These compiler versions are known to miscompile __weak functions and
      thus generate kernels that don't necessarily work correctly.  If a weak
      function is int he same compilation unit as a caller, gcc may end up
      inlining it, and thus binding the weak function too early.
      
      See
      
          http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27781
      
      for details.
      
      Cc: Adrian Bunk <bunk@kernel.org>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f9d14250
    • Linus Torvalds's avatar
      Sanitize gcc version header includes · f153b821
      Linus Torvalds authored
       - include the gcc version-dependent header files from the generic gcc
         header file, rather than the other way around (iow: don't make the
         non-gcc header file have to know about gcc versions)
      
       - don't include compiler-gcc4.h for gcc 5 (for whenever it gets
         released).  That's just confusing and made us do odd things in the
         gcc4 header file (testing that we really had version 4!)
      
       - generate the name from the __GNUC__ version directly, rather than
         having a mess of #if conditionals.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f153b821
  2. 31 Dec, 2008 38 commits