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

[Bug c/33629] bad code with -O2 if pointer dereference followed by null test



------- Comment #2 from david_albert at axiometric dot com  2007-10-02 18:24 -------
There is a compiler flag to prevent this optimization:
-fno-delete-null-pointer-checks

This flag should be included by default for popular targets such as the ARM7
that do not have hardware memory managers so that gcc does not by default
generate code that silently fails.


-- 

david_albert at axiometric dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david_albert at axiometric
                   |                            |dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33629


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