testsuite, simulators, and argv[0]
DJ Delorie
dj@redhat.com
Tue Nov 18 23:29:00 GMT 2008
gcc.c-torture/execute/pr36321.c fails on m32c because the simulator
doesn't set argv[0] *and* the simulator has NULL pointer detection:
void foo(char *str)
{
int len2 = strlen (str);
. . .
int main(int argc, char **argv)
{
foo (argv[0]);
What are the expectations here? Do we expect simulators to set up
argv[0]? (the m32c BSP acts like you're on real hardware) Do we expect
simulators to blithely ignore NULL pointer references?
More information about the Gcc
mailing list