Author: sf Date: Sat Feb 26 16:58:09 2011 New Revision: 1074878 URL: http://svn.apache.org/viewvc?rev=1074878&view=rev Log: Make APR_RING_HEAD pointers volatile to work around an aliasing problem that causes gcc 4.5 to miscompile some brigade related code. PR 50190 Modified: apr/apr/branches/1.5.x/include/apr_ring.h Modified: apr/apr/branches/1.5.x/include/apr_ring.h URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/include/apr_ring.h?rev=1074878&r1=1074877&r2=1074878&view=diff ============================================================================== --- apr/apr/branches/1.5.x/include/apr_ring.h (original) +++ apr/apr/branches/1.5.x/include/apr_ring.h Sat Feb 26 16:58:09 2011 @@ -90,8 +90,8 @@ */ #define APR_RING_HEAD(head, elem) \ struct head { \ - struct elem *next; \ - struct elem *prev; \ + struct elem * volatile next; \ + struct elem * volatile prev; \ } /**