lkml.org 
[lkml]   [2009]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: "elf core dump: fix get_user use" breaks mips compilation
* Ralf Baechle <ralf@linux-mips.org> [2009-02-16 23:32]:
> Partially expanding get_user() the code basically does this:
>
> int word;
>
> if (access_ok(...))
> __get_user(word, header);
> else
> word = 0;
>
> And gcc is unable to figure out that word will always be assigned to by
> both paths of the if statement. Older gcc versions used to have that
> problem. I can't reproduce your problem with gcc 4.3.2 and I assume
> you're using something older than that?

Yes, gcc 4.1.
--
Martin Michlmayr
http://www.cyrius.com/


\
 
 \ /
  Last update: 2009-02-18 12:23    [W:0.094 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site