From: Wolfgang Denk Date: Mon, 04 Oct 2010 14:58:44 +0200 Subject: [U-Boot] packed attribute problem In-Reply-To: References: <4CA9A095.9000900@st.com> <20101004101714.A19931539A0@gemini.denx.de> <4CA9ACAA.2020001@st.com> <20101004104443.09AE41539A0@gemini.denx.de> <4CA9B2DA.6030407@emk-elektronik.de> <4CA9B3EF.7000704@st.com> <4CA9BE94.6000401@emk-elektronik.de> <20101004122900.A090B1539A0@gemini.denx.de> <4CA9CC04.5020800@emk-elektronik.de> Message-ID: <20101004125844.473E3153A7E@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Balau, In message you wrote: > > The compiler (4.4.1) generates the expected 32bit store instruction when using: > > struct p { > int n; > } __attribute__ ((packed, aligned(4))); Confirmed. Thanks for pointing this out. > In case of hardware registers, I have yet to see a case where this is not true. Indeed, sounds as if this was a solution in case the "packed" should really be needed - which I seriously doubt. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Objects in mirror are closer than they appear.