From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Tue, 2 Oct 2012 23:20:00 +0200 Subject: [U-Boot] [RFC] ARM: prevent misaligned array inits In-Reply-To: <506B495D.2030306@wwwdotorg.org> References: <1349203564-27150-1-git-send-email-albert.u.boot@aribaud.net> <506B495D.2030306@wwwdotorg.org> Message-ID: <20121002232000.15c1af10@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stephen, On Tue, 02 Oct 2012 14:06:53 -0600, Stephen Warren wrote: > > +c) Relax the -munified-access rule globally. This will prevent native > > I assume that's meant to say -munaligned-access? > > + until the target gets compiled with m-unaligned-access. > > s/m-/-m/ > > +d) Relax the -munified-access rule only for for files susceptible to > > I assume that's meant to say -munaligned-access? Thanks for spotting these. Fixed in next round. > > + the local initialized array issue. This minimizes the quantity of > > + code which can hide unwanted misaligned accesses. > > + > > +Considering the rarity of actual occurrences (as of this writing, 5 > > +files out of 7840 in U-Boot, or .3%, contain an initialized local char > > +array which cannot actually be replaced with a const char*), detection > > +if the issue in patches should not be asked from contributors. > > I assume therefore that option (d) was chosen. Perhaps state this > explicitly? Thanks for pointing out the ambiguity: indeed option d) is the one chosen. Made explicit in next round. Thanks again! Amicalement, -- Albert.