Re: GCC Compilation problem in HP LINUX server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi gkarthi29,

> Still i cannot believe that there is no option is linux compilers to
> dereference the null pointer as like in AIX and some other HP server.
> strange. %-|

Linux compiler?

GCC predates Linux.

GCC is a compiler for a variety of platforms:  AIX, HP, Windows, BSD, and
many others.

Dereferencing a NULL pointer is undefined behavior.

You could crash your applications, with a SEGV.

You could do something benign.

You could format the hard drive.

You could... DESTROY THE WORLD.

What you probably won't get is the behavior you want.  Even on AIX or HP.

Sincerely,
--Eljay



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux