This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
testsuite, simulators, and argv[0]
- From: DJ Delorie <dj at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 18 Nov 2008 17:22:30 -0500
- Subject: testsuite, simulators, and argv[0]
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?