This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c/9262
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 7 Feb 2003 06:49:20 +0000
- Subject: Re: [PATCH] Fix PR c/9262
- References: <200302070125.56427.ebotcazou@libertysurf.fr>
Eric Botcazou wrote:-
> Hi,
>
> I really wonder how one can write such a broken code but a segfault is a
> little bit brutal and it's a regression from gcc 2.95.3 so...
>
> The functions pushcase and pushcase_range from stmt.c (not used by the C and
> C++ front-ends) are guarded by a sanity check, while add_case_node (directly
> called by c-semantics.c) is not. I simply copy-n-pasted it from the formers
> to the latter.
>
> Bootstrapped/regtested (c,c++,objc,f77 3.3 branch) on i586-redhat-linux-gnu.
> Ok for mainline and 3.3 ? for 3.2 too ?
Why is this fix going in the middle end? I would have thought it should
touch nothing outside of the parser, and possibly immediate semantic
analysis.
Neil.