This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unreviewed patch (was: another bootstrap failure onsparc-sun-solaris28 in cp/xref.o)
- To: rth at redhat dot com
- Subject: Re: Unreviewed patch (was: another bootstrap failure onsparc-sun-solaris28 in cp/xref.o)
- From: John Wehle <john at feith dot com>
- Date: Thu, 27 Sep 2001 19:50:07 -0400 (EDT)
- Cc: gcc at gcc dot gnu dot org, pfeifer at dbai dot tuwien dot ac dot at, lucier at math dot purdue dot edu
> On Thu, Sep 27, 2001 at 07:05:29PM -0400, John Wehle wrote:
> > However unaligned_integer_asm_op doesn't which makes
> > UNALIGNED_DOUBLE_INT_ASM_OP being null dangerous.
>
> I don't see the difference between abort and SEGV, myself.
The abort tells you exactly where the problem is. Otherwise
a NULL is returned which is eventially passed to some other
routine which blows up. The person debugging the problem
has to do more work to determine where things went wrong.
In this example fputs will probably go boom ... is there
a core generated, can the person run a debugger on the core,
can the debugger provide a reasonable backtrace, etc. I
find an abort in unaligned_integer_asm_op a little more
obvious.
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------