Mainline bootstrap failure (Re: libstdc++ execute tests)

Alexandre Oliva aoliva@redhat.com
Thu Apr 12 07:31:00 GMT 2001


On Apr 12, 2001, Franz Sirl <Franz.Sirl-kernel@lauterbach.com> wrote:

> Yes, and what's the problem? You didn't tell to override
> optimizations, you just told to generate debug information. For
> overriding optimizations you pass CFLAGS="-g -O0" as with any other
> package that defaults to certain optimizations that are not handled
> directly via CFLAGS.

http://www.gnu.org/prep/standards_52.html:

        If there are C compiler options that must be used for proper
        compilation of certain files, do not include them in
        CFLAGS. Users expect to be able to specify CFLAGS freely
        themselves. Instead, arrange to pass the necessary options to
        the C compiler independently of CFLAGS

        [...]

        Do include the `-g' option in CFLAGS, because that is not
        required for proper compilation. You can consider it a default
        that is only recommended. If the package is set up so that it
        is compiled with GCC by default, then you might as well
        include `-O' in the default value of CFLAGS as well.

        Put CFLAGS last in the compilation command, after other
        variables containing compiler options, so the user can use
        CFLAGS to override the others.

-O2 is certainly not necessary for proper compilation.  It shouldn't
be used in addition to CFLAGS; CFLAGS should override it.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-patches mailing list