This is the mail archive of the gcc-help@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]

Coredump


Hi
I am compiling and linking the foll code with gcc-2.95.2 on Solaris 7 on
sparc.

int main()
{
	char *p=NULL;
	printf("%s", p);
	return 0;
}

I get a coredump at runtime. Please help..

I tried using the flag -fno-delete-null-pointer-checks for optimization but
gcc does not recognize this flag and gives an error.

Please Help!!

thanx
Puneet



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