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: [PATCH] Off-by-one errors in gcc/config/arm/pr-support.c


On Friday 18 August 2006 18:27, Mark Mitchell wrote:
> Richard Earnshaw wrote:
> > On Thu, 2006-08-17 at 21:49, Mark Mitchell wrote:
> >> Richard Earnshaw wrote:
> >>> Ok, except that your testcase should call abort() on failure (it
> >>> currently returns 1 from main.  See other testcases in the same
> >>> subdirectory for examples.
> >
> > This is just one of my 'remembered wisdoms'.
>
> Thanks!  I'll try to transplant the memory. :-)

The convention of using abort()/exit(0) was removed a couple of years ago.

It was decided that returning 1 or 0 from main is sufficient because many 
existing tests (including most of the c++ testsuite) already do this, and 
dejagnu knows how to fix targets that are broken.

http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00288.html
http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00320.html

Paul


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