On Mon, Jan 02, 2012 at 01:50:47AM -0600, Jonathan Nieder wrote:
> Raphael Hertzog wrote:
> > On Sat, 31 Dec 2011, Jonathan Nieder wrote:
> 
> >> It's perhaps ugly, but DEB_CFLAGS_MAINT_APPEND=-Os works fine for me.
> >
> > Why would it be ugly? I think that's the correct interface to change the
> > optimization level.
> 
> Because the resulting compiler command line contains both -O2 and -Os.
>
> But yes, I agree it's less ugly than any alternative I can imagine.

Is the evaluation order of GCC options properly specified, i.e. is there
a guarantee that -Os overrides the previous -O2 or is this undefined
behaviour, which just happens to do the correct thing in this case?

If not, this has the potential for subtle bugs and build failures
with new GCC releases.

Cheers,
        Moritz



-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to