[parisc-linux] gcc and ++

phi phi@hpfrcu81.france.hp.com
Wed, 02 Oct 2002 15:01:32 +0200


Matthew Wilcox wrote:
> 
> 
> Undefined behaviour.  `|' is not a sequence point and you modify p more than
> once.  

Wouldn't be 'natural' to declare ++ a sequence point as well as comma is since
it has side effects, beside it would remove the sequence-point jazz in the
warning emits.

Right now the macro look like this for flawed/featured gcc.

#define get3_4(p) ({register uint32
t=(*p++)<<24;t+=(*p++)<<16,t+=(*p++)<<8,t+(*p++);})

Phi