http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47812

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-02-19 14:22:45 
UTC ---
(In reply to comment #2)
> In ix86_expand_strlen:
> 
> if (GET_MODE (out) != Pmode)
>    out = convert_to_mode (Pmode, out, 1);
> 
> 
> Here out is REG:SI 59 -- the result register for strlen. After conversion, new
> reg:DI 64 is created. There are two problems here:
> 
> 1) the result is now 64, but the caller 'expand_builtin_strlen' still uses reg
> 59
> 2) the conversion itself generates an uninitialized use.
> 

Thanks for the analysis.  This is a dup of PR47364. I have a patch.

*** This bug has been marked as a duplicate of bug 47364 ***

Reply via email to