porting to gcc 4.1.2