This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/7312: bootstrap failure due to invalid use of errno
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Bruno Haible <bruno at clisp dot org>
- Cc: Zack Weinberg <zack at codesourcery dot com>, gcc-bugs at gcc dot gnu dot org,gcc-gnats at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 9 May 2003 23:09:03 +0100
- Subject: Re: preprocessor/7312: bootstrap failure due to invalid use of errno
- References: <8765okywd2.fsf@egil.codesourcery.com> <16059.53625.503137.171001@honolulu.ilog.fr>
Bruno Haible wrote:-
> Zack Weinberg writes:
> > At that point in the code,
> > nothing has been done to give errno a meaningful value, so ->err_no
> > should just be cleared to 0.
>
> Well, I thought (and still think) that 'errno' here means the error
> status from cpp_simplify_path. See the comments at the head of the
> function cpp_simplify_path.
>
> I also think that validate_pch() should not ignore this error status.
I agree that Bruno's original patch is the right one.
Neil.