This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: testsuite, simulators, and 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?

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]