Message ID | AANLkTin=-jaUQ_Ej_h+o_x9MU7KK5UGv4zEFvC+hXjxh@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Jan 2, 2011, at 8:28 AM, "H.J. Lu" <hjl.tools@gmail.com> wrote: > On Fri, Dec 31, 2010 at 3:15 AM, Nicola Pero > <nicola.pero@meta-innovation.com> wrote: >> This patch is a sophistication of the fix to PR objc/47076, and fixes a >> slightly more complicated case. >> > This caused: > > objc-act.c:10947:16: error: 'p' may be used uninitialized Thanks for the fix. Nicola, please investigate why you didn't see the build error... I suspect you need a bootstrap tree with optimization on and ensure you have werror on. Thanks.
> Nicola, please investigate why you didn't see the build error... I suspect > you need a bootstrap tree with optimization on and ensure you have werror > on. The default bootstrap settings are sufficient.
Index: objc/objc-act.c =================================================================== --- objc/objc-act.c (revision 168398) +++ objc/objc-act.c (working copy) @@ -10944,7 +10944,7 @@ check_that_protocol_is_defined (tree pro { tree p; - for (p = PROTOCOL_LIST (p); p; p = TREE_CHAIN (p)) + for (p = PROTOCOL_LIST (protocol); p; p = TREE_CHAIN (p)) check_that_protocol_is_defined (TREE_VALUE (p)); } } Index: objc/ChangeLog =================================================================== --- objc/ChangeLog (revision 168398) +++ objc/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2011-01-02 H.J. Lu <hongjiu.lu@intel.com> + + * objc-act.c (check_that_protocol_is_defined): Fix a typo. + 2011-01-02 Nicola Pero <nicola.pero@meta-innovation.com> * objc-act.c (check_that_protocol_is_defined): New.