This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH/fortran] Add option to make 1st error fatal
On Sun, 2005-10-30 at 20:43 -0800, Steve Kargl wrote:
> On Sun, Oct 30, 2005 at 11:35:05PM -0500, Daniel Berlin wrote:
> >
> > That just means your error recovery sucks :)
>
> Grab the fortran code in PR 23538.
> Run it through gfortran and enjoy.
>
> > Normally, things just put error_mark_node in the appropriate place and
> > move on until something checks error count.
>
> gfortran frontend doesn't use the generic gcc error code.
>
> No, I'm not going to rewrite gfortran's error/warning code
> to use gcc's generic code.
Okay, well, that's your prerogative.
You said:
"
> > > This is exactly what my patch does. A warning becomes a fatal
> > > error.
> >
> > No, it turns them into normal errors and not fatal errors.
>
> I have not idea what you mean. If I use "gfortran -Werror"
> with my patch, gfortran will exit when it hits the first
> warning. That appears to be fairly fatal.
"
I was simple explaining what he meant by normal error vs fatal error.
I don't care what gfortran does here.
--Dan