Re: telling GCC that a pointer cannot be NULL

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

 



On 05/10/11 12:14 PM, Igor Bukanov wrote:
Hello,

is it possible to tell GCC that a pointer cannot be NULL at a
particular point so the compiler can optimize the control flaw better
and avoid redundant NULL checks on the fast paths?

Personally I would look at writing portable code, not making it GCC specific.

There are plenty of other compilers from Microsoft, HP, Intel .. etc, why make ones code depend on GCC? Why not write standard C rather than GNU C?

Dave


[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