[En-Nut-Discussion] Just a word of warning with WinAVR-20050214.

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Mon May 9 21:55:31 CEST 2005


Hi Vesa,

> If we think about AHDLC's ioctl handler, at variable declarations it 
> have already referenced that data pointer. In case it was NULL it reads 
> four bytes from memory location 0. And this allowed GCC to optimize NULL 
> pointer check out of the picture.

Could you please point me out a bit more detailed in whitch cases 
avr-gcc optimizes out NULL pointer checks? I use them quite often in 
some of my code...

Best regards,

Ole Reinhardt

-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--




More information about the En-Nut-Discussion mailing list