]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gcc-4.1.0 is bust
authorAndrew Morton <akpm@osdl.org>
Tue, 22 May 2007 21:50:21 +0000 (23:50 +0200)
committerAdrian Bunk <bunk@stusta.de>
Tue, 22 May 2007 21:50:21 +0000 (23:50 +0200)
commit4eedb20374aadf2e4c8781a47a349b8897a43074
treea9728c77c2812a62fd6ad10b51d1a3a28cd7bcc7
parentfae1f6d365ea6ca7b736291970a1aaf56f8e3ed7
gcc-4.1.0 is bust

Keith says

Compiling 2.6.19-rc6 with gcc version 4.1.0 (SUSE Linux), wait_hpet_tick is
optimized away to a never ending loop and the kernel hangs on boot in timer
setup.

0000001a <wait_hpet_tick>:
  1a:   55                      push   %ebp
  1b:   89 e5                   mov    %esp,%ebp
  1d:   eb fe                   jmp    1d <wait_hpet_tick+0x3>

This is not a problem with gcc 3.3.5.  Adding barrier() calls to
wait_hpet_tick does not help, making the variables volatile does.

And the consensus is that gcc-4.1.0 is busted.

Adrian Bunk:
Changed from a #warning to an #error for 2.6.16.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
init/main.c