Re: gcc bounds checking

2010-07-22 Thread Jakub Jelinek
On Thu, Jul 22, 2010 at 03:12:46PM -0600, Orion Poplawski wrote: > Looks, looks like gcc can do certain compile time bounds checking (probably > for ages but I'm slow) and emits warnings like: > > In function 'strcpy', > inlined from 'New_psimage_Ctrl' at psimage.c:357:9: > /usr/include/bits

gcc bounds checking

2010-07-22 Thread Orion Poplawski
Looks, looks like gcc can do certain compile time bounds checking (probably for ages but I'm slow) and emits warnings like: In function 'strcpy', inlined from 'New_psimage_Ctrl' at psimage.c:357:9: /usr/include/bits/string3.h:107:3: warning: call to __builtin___strcpy_chk will always overfl