GCC 4 Woes

Matthew Miller mattdm at mattdm.org
Thu Apr 14 20:57:09 UTC 2005


On Thu, Apr 14, 2005 at 04:40:46PM -0400, Dan Williams wrote:
> >     n1  = *(((unsigned int *) src1)++);
> Split up (1) the assignment of *src1 -> n1, and (2) the increment of
> src1 into two distinct lines of code.  gcc 4 tightens handling of
> lvalues and rvalues, which this code is abusing.

It'll also be about 700 times more readable done that way.

-- 
Matthew Miller           mattdm at mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>




More information about the test mailing list