This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: testsuite, simulators, and argv[0]
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: DJ Delorie <dj at redhat dot com>
- Date: Tue, 18 Nov 2008 22:37:29 +0000
- Subject: Re: testsuite, simulators, and argv[0]
- References: <200811182222.mAIMMUE1025960@greed.delorie.com>
> 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?
I think a more relevant question is whether it's ok to pass 0, {NULL} for
argc, argv. If yes then the testcase is broken (should be checking argc), if
not then your BSP is broken and needs to supply more plausible values to
main().
Paul