This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: possible gcse failure: not able to eliminate redundant loads
- From: dewar at gnat dot com (Robert Dewar)
- To: aoliva at redhat dot com, dewar at gnat dot com
- Cc: gcc at gcc dot gnu dot org, rth at redhat dot com, toon at moene dot indiv dot nluug dot nl
- Date: Sat, 21 Dec 2002 14:38:53 -0500 (EST)
- Subject: Re: possible gcse failure: not able to eliminate redundant loads
> At the expense of getting nice crashes at points where NULL is
> dereferenced, which often makes it easy to find bugs? Oh, and there's
umm ... optimization is about favoring fast execution of code over
debuggability, so yes, exactly that is the trade off. Note that there
is absolutely NOTHING to stop a compiler from generating code that
diagnoses dereferences of null pointers in fully optimized code if
that's what you want (it is for example required in Ada!)