From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: progs integration branch moved to master (new default leafsize)
Date: Fri, 22 Nov 2013 22:05:32 +0000 (UTC) [thread overview]
Message-ID: <pan$15edd$cb857513$c87e20b5$67c5229@cox.net> (raw)
In-Reply-To: 20131122134038.5312.42200@localhost.localdomain
Chris Mason posted on Fri, 22 Nov 2013 08:40:38 -0500 as excerpted:
> Does gentoo modify the optimizations from the Makefile? We actually
> have many strict-aliasing warnings, but I didn't think they came up
> until -O2.
>
> At any rate, I'm adding -fno-strict-aliasing just to be sure.
FWIW, Gentoo lets users set their own CFLAGS/CXXFLAGS/LDFLAGS, etc.
Gentoo recommends -O2 at the global system level and I believe sets that
as the default before user modification, as well. -Os is considered a
viable option, but users setting -O3 or -Ofast or whatever are often
considered ricers and can be told to try to reproduce bugs with -O2 set.
And -O1 or lower is not recommended either, simply because it's not
widely tested.
Individual package builds can and routinely do, however, override or
filter specific flags where they've been demonstrated to be problematic,
and in some cases, may add flags such as -fno-strict-aliasing where
upstream code requires it.
But of course a (normally masked unless a user specifically unmasks it)
-9999 version is gentoo's way of noting a live-from-upstream-vcs version,
and that's the case here as well. btrfs-progs-9999 fetches and builds
the live-git btrfs-progs direct from upstream git, and as such, it's
subject to far less QA than ~arch (~x86, ~amd64, etc) aka testing
packages, which in turn are less stable-tested than stable arch (x86,
amd64, etc) packages. Basically, gentooers unmasking -9999 packages are
expected to be able to deal with any breakage a live-vcs build may have
and/or trigger.
And it's likely that -fno-strict-aliasing simply hasn't made it to the
live build yet. But by the same token, I don't believe it'll override an
upstream makefile's use of the flag, so now that you've added it...
... And indeed, after just rebuilding it here, with the commit (8116550)
adding -fno-strict-aliasing as HEAD, I see no further type-punned pointer
warnings. =:^)
I do however still see this:
cmds-restore.c: In function 'next_leaf':
cmds-restore.c:174:20: warning: array subscript is above array bounds [-
Warray-bounds]
slot = path->slots[level] + 1;
^
(I am running a newer gcc than Martin, however:
gcc (Gentoo 4.8.1-r1 p1.2, pie-0.5.7) 4.8.1
)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2013-11-22 22:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-08 22:01 progs integration branch moved to master (new default leafsize) Chris Mason
2013-11-08 23:53 ` Martin
2013-11-21 23:37 ` Chris Mason
2013-11-22 9:03 ` Martin
2013-11-22 13:40 ` Chris Mason
2013-11-22 19:50 ` Martin
2013-11-22 19:57 ` Chris Mason
2013-11-23 0:02 ` Martin
2013-11-22 22:05 ` Duncan [this message]
2013-11-14 12:41 ` David Sterba
-- strict thread matches above, loose matches on Subject: below --
2013-11-14 17:28 Chris Mason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='pan$15edd$cb857513$c87e20b5$67c5229@cox.net' \
--to=1i5t5.duncan@cox.net \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).