Dear Benoît Thébaudeau,

In message <[email protected]> you 
wrote:
> 
> > So how can the above not properly align the buffer? Is that a compiler bug
> > then?
> > 
> > btw. using ALLOC_CACHE_ALIGN_BUFFER will be safer were someone to change
> > FEC_MAX_PKT_SIZE, the buffer would still be safe for cache flush/inval ops.
> 
> I have encountered the same kind of alignment issue recently on something 
> else.
> It looks like GCC for ARM just silently ignores the aligned attribute for auto
> (stacked) variables.

I would really like to see the generated code from such a system, so
we verify if this is indeed true, or if something else is causing such
issues.

Even if the suggested patch fixes the current problem, it leaves a bad
feeling as it's only based on speculation about the causes.

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: [email protected]
Brain off-line, please wait.
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to