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

LFS Trac trac at linuxfromscratch.org
Wed May 19 12:49:07 PDT 2010

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

Comment(by matthew@…):

 Bruce, I realise you've already done loads of work in tracking this issue
 down, but I'm wondering if you could figure out which optimization is the
 culprit?  http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Optimize-
 Options.html#Optimize-Options lists all of the optimization options and
 most of those show at which optimization level they get turned on by.

 What I'm thinking is if you could change the Kernel Makefile to set '-Os
 -fno-<optimzation option>' instead of plain '-Os' to selectively turn off
 individual optimization options that are explicitly mentioned in the
 manual as being turned on by '-Os'.  I realise that this is probably going
 to be a fair bit of work unless you hit really lucky, so understand if you
 don't want to expend that effort.

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

More information about the lfs-book mailing list