Testing problem: sfdisk in util-linux doesn't work

Matthew Burgess matthew at linuxfromscratch.org
Mon Aug 30 05:44:38 PDT 2004


On Mon, 30 Aug 2004 14:45:54 +0200
Miguel Bazdresch <lfs-01 at thewizardstower.org> wrote:

> * Matthew Burgess <matthew at linuxfromscratch.org> [2004-08-30 12:38]:
> > Testing showed that the bug doesn't occur at -O/-O1 levels, and
> > therefore looks like a gcc optimisation bug.  While the sed doesn't
> > fix the real cause of the problem (gcc), it does fix the symptoms. 
> > The only worrying thing is that other programs that compile at -O2
> > may be affected by the same bug.  Producing a minimal testcase for
> > the gcc devs though, is not exactly trivial!
> 
> From my ocassional reading of the gcc ml archive, I have the
> impression that if you send them good info and not too much code,
> they'll be happy to produce the minimal testcase themselves.

Well, Ronald has managed to reduce it to the -funit-at-a-time option to
gcc, which is implied by -O2.  Specifying -fno-unit-at-a-time allows the
other O2 optimisations to be used and a correct binary is produced.

Cheers,

Matt.



More information about the lfs-dev mailing list