[LFS Trac] #2662: gcc 4.5.0 -Os does not generate correct code

LFS Trac trac at linuxfromscratch.org
Fri Jun 18 17:28:20 PDT 2010


#2662: gcc 4.5.0 -Os does not generate correct code
-----------------------------------------+----------------------------------
 Reporter:  bdubbs@…                     |       Owner:  bdubbs@…                   
     Type:  defect                       |      Status:  assigned                   
 Priority:  high                         |   Milestone:  6.7                        
Component:  Book                         |     Version:  SVN                        
 Severity:  major                        |    Keywords:                             
-----------------------------------------+----------------------------------

Comment(by bdubbs@…):

 We got a fix on gcc bugzilla.  I still don't know if the bug was in the
 kernel or gcc, but the following change to the kernel works around the
 problem

 {{{
 sed -i -e "s/inline void rdtsc_barrier/__always_inline void rdtsc_barrier/
 \
  arch/x86/include/asm/system.h
 }}}

 The fix was just submitted today.  We'll have to check future releases to
 see when it makes it into the released version.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2662#comment:11>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.



More information about the lfs-book mailing list