Re: Add __stpncpy_chk builtin support

2011-12-15 Thread Romain Geissler
Le 8 déc. 2011 à 19:09, Jakub Jelinek a écrit : > On Mon, Nov 28, 2011 at 12:16:52PM +0100, Romain Geissler wrote: >> 2011-11-28 Romain Geissler >> >> * builtins.def (BUILT_IN_STPNCPY_CHK): New definition. >> * builtins.c (expand_builtin, fold_builtin_4, maybe_emit_chk_warning): >>

Re: Add __stpncpy_chk builtin support

2011-12-08 Thread Jakub Jelinek
On Mon, Nov 28, 2011 at 12:16:52PM +0100, Romain Geissler wrote: > 2011-11-28 Romain Geissler > > * builtins.def (BUILT_IN_STPNCPY_CHK): New definition. > * builtins.c (expand_builtin, fold_builtin_4, maybe_emit_chk_warning): > Add BUILT_IN_STPNCPY_CHK case. > * gimple-f

Re: Add __stpncpy_chk builtin support

2011-12-08 Thread Romain Geissler
Le 28 nov. 2011 à 12:16, Romain Geissler a écrit : > Hi, > > The current trunk have no support for the __stpncpy_chk function. As the > latest > OS X (10.7 aka Lion) now defines stpncpy as a call to builtin__stpncpy_chk for > GNUC compliant compiler, the following code won't link: > > #include

Add __stpncpy_chk builtin support

2011-11-28 Thread Romain Geissler
Hi, The current trunk have no support for the __stpncpy_chk function. As the latest OS X (10.7 aka Lion) now defines stpncpy as a call to builtin__stpncpy_chk for GNUC compliant compiler, the following code won't link: #include int main(){ char string[10]; stpncpy(string,"abcd",