lkml.org 
[lkml]   [2009]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf tools: Kill off -Wcast-align

* Paul Mundt <lethal@linux-sh.org> wrote:

> The present use of -Wcast-align causes the build to blow up on SH due to
> generating a "cast increases required alignment of target type" error on
> each invocation of list_for_each_entry().
>
> It seems that this was previously reported and killed off in the ia64
> support patch, but nothing seems to have happened with that. Presumably
> the same problem still remains there, too.
>
> Signed-off-by: Paul Mundt <lethal@linux-sh.org>

Is this a GCC bug producing false positive warnings? The GCC manpage
says:

-Wcast-align
Warn whenever a pointer is cast such that the required alignment of the
target is increased. For example, warn if a "char *" is cast to an
"int *" on machines where integers can only be accessed at two- or
four-byte boundaries.

Which looks moderately useful - if it works.

Ingo


\
 
 \ /
  Last update: 2009-10-26 07:29    [W:0.889 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site