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]

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?


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