This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/60444] No -Wmaybe-uninitialized warning


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-03-13
                 CC|                            |mpolacek at gcc dot gnu.org
          Component|c                           |tree-optimization
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The warning will show up with -fno-tree-ccp -fno-tree-vrp.
CCP removes the x = 1; and instead makes the function always return 1, that is
from
    <bb 3>: 
    foo (); 
    goto <bb 5>; 

    <bb 4>: 
    x_7 = 1;

    <bb 5>: 
    # x_1 = PHI <x_6(D)(3), x_7(4)>
    x_8 = x_1;
    return x_8;
it makes
    <bb 3>: 
    foo (); 

    <bb 4>: 
    return 1;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]