[PATCH] Fix -Wimplicit-fallthrough ICE (PR c/77946)

Bernd Schmidt bschmidt@redhat.com
Thu Oct 13 10:11:00 GMT 2016


On 10/13/2016 01:25 AM, Jakub Jelinek wrote:
> Seems 2 functions in varasm.c just use TREE_PUBLIC on LABEL_DECLs together
> with other kinds of decls, but as TREE_PUBLIC on LABEL_DECLs means now
> something different, it breaks badly.

Which functions are these?

> 	PR c/77946
> 	* tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
> 	public_flag.
> 	* varasm.c (default_binds_local_p_3): Formatting fix.
>
> 	* c-c++-common/Wimplicit-fallthrough-34.c: New test.

Ok. Let's hope this one works.


Bernd



More information about the Gcc-patches mailing list