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] Fix PR c/9262


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.


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