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):
>>
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
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
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",