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

Re: C++ PATCH: Improve exceptions/inlining compile-time performance


> On Sat, Apr 26, 2003 at 05:38:17PM -0700, Mark Mitchell wrote:
> > Exactly as I suggested: your HPUX compiler is not crashing; it is going
> > on to print out more error messages.
> 
> I notice that both of the "passing" platforms, hpux and aix, 
> both have the zero page mapped, so that dereferencing NULL
> does not SEGV.  (For both OSes this is a feature intended to
> make is safe to hoistg loads past a test vs null during
> optimization.)

Yes, we don't currently set the "-z" option when using HP ld.
This arranges for run-time dereferencing of null pointers to
produce a SEGV.  This is the default on the 32-bit hpux port.
I don't recall the behavior of GNU ld at the moment.

Now that we check which linker we are using during configuration,
we probably should make producing a SEGV the default.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


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