GCC-4 compiler bug

Matthew D. Fuller fullermd at over-yonder.net
Wed Nov 28 18:03:22 PST 2007


On Wed, Nov 28, 2007 at 05:58:31AM +0000 I heard the voice of
Jeremy Messenger, and lo! it spake thus:
> 
> % cc test.c -o test

Note Simon's mail:

> Important to note is that this only happens when compiling with
> optimization (they claim).


% cc -o test test.c
% ./test
X
% cc -O -o test test.c
% ./test
X
% cc -O2 -o test test.c
% ./test
%

gcc version 4.2.1 20070719  [FreeBSD]



-- 
Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.





More information about the Kernel mailing list