This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in builtins.def, the execve.
"J.C. Pizarro" <jcpiza@gmail.com> writes:
> builtins.def:635: DEF_EXT_LIB_BUILTIN (BUILT_IN_EXECVE,
> "execve", BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING,
> ATTR_NOTHROW_LIST)
>
> Is it BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING
> a weird bug?
>
> The correct const symbol is BT_FN_INT_CONST_STRING_PTR_CONST_STRING
No, it isn't.
>From <unistd.h>:
extern int execve (__const char *__path, char *__const __argv[],
char *__const __envp[]) __THROW __nonnull ((1));
Ian